# Adjust Map Zoom Does Not Work For List of Markers

**URL:** <https://forum.bubble.io/t/adjust-map-zoom-does-not-work-for-list-of-markers/236082>\
**Category:** Bugs\
**Created:** [December 7, 2022, 1:38pm UTC](https://forum.bubble.io/t/adjust-map-zoom-does-not-work-for-list-of-markers/236082 "2022-12-07T13:38:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![berksngn1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/berksngn1/32/149195_2.png) [@berksngn1](https://forum.bubble.io/u/berksngn1)\
**Post date:** [December 7, 2022, 1:38pm UTC](https://forum.bubble.io/t/adjust-map-zoom-does-not-work-for-list-of-markers/236082/1 "2022-12-07T13:38:49Z")

</div>

Hi All,

About a month ago I created a map that has a list of markers (2 of them) and set their workflow as it was adjusting the zoom automatically to show both markers. However, it suddenly broke without me changing any properties. I have been trying to create the same on different pages as well but it does not work.

I am using **Adjust Map Zoom** function (description below), however it only zooms on the first addresss.

> **Adjust map zoom**  
> This action automatically adjusts the map zoom so that all markers are visible.

Below are my demo and editor links. Am I doing something wrong or is adjusting map zoom broken?

> **[Bubble - Visual Programming](https://berktest.bubbleapps.io/version-test)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

> **[Bubble Editor - berktest](https://bubble.io/page?name=index&id=berktest&tab=tabs-1)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

Thanks a lot.  
Berk

---

<div class="post-metadata">

**Author:** ![berksngn1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/berksngn1/32/149195_2.png) [@berksngn1](https://forum.bubble.io/u/berksngn1)\
**Post date:** [December 8, 2022, 8:28am UTC](https://forum.bubble.io/t/adjust-map-zoom-does-not-work-for-list-of-markers/236082/2 "2022-12-08T08:28:24Z")

</div>

bump. anyone?

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [December 8, 2022, 9:35am UTC](https://forum.bubble.io/t/adjust-map-zoom-does-not-work-for-list-of-markers/236082/3 "2022-12-08T09:35:39Z")

</div>

![image](https://us1.discourse-cdn.com/bubble/original/3X/0/1/01934ad84534c586d38cd977ae1c2764fe7758aa.png)

Could this be your issue? Anyway, since a few people seem to have checked it out recently, there’s no way to tell.

---

<div class="post-metadata">

**Author:** ![berksngn1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/berksngn1/32/149195_2.png) [@berksngn1](https://forum.bubble.io/u/berksngn1)\
**Post date:** [December 8, 2022, 9:40am UTC](https://forum.bubble.io/t/adjust-map-zoom-does-not-work-for-list-of-markers/236082/4 "2022-12-08T09:40:59Z")

</div>

Hi keith!

I am afraid that is not it. I created this app in a minute to demonstrate the issue without entering Google API keys (as I cannot share my client’s app).

Thanks for your reply though!

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [December 8, 2022, 9:44am UTC](https://forum.bubble.io/t/adjust-map-zoom-does-not-work-for-list-of-markers/236082/5 "2022-12-08T09:44:27Z")

</div>

Yeah the Gmap API thing is a bummer. Anyway, I had hoped to take a look to see what’s going on but you may just want to file a bug report with Bubble if this is something reproducible in your client app. It wouldn’t be the first time that a Bubble change/issue had broken certain maps functionality!

---

<div class="post-metadata">

**Author:** ![berksngn1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/berksngn1/32/149195_2.png) [@berksngn1](https://forum.bubble.io/u/berksngn1)\
**Post date:** [December 8, 2022, 2:17pm UTC](https://forum.bubble.io/t/adjust-map-zoom-does-not-work-for-list-of-markers/236082/6 "2022-12-08T14:17:26Z")

</div>

I guess I will do it. Thanks again!

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [December 8, 2022, 6:06pm UTC](https://forum.bubble.io/t/adjust-map-zoom-does-not-work-for-list-of-markers/236082/7 "2022-12-08T18:06:18Z")

</div>

So, on Adjust Map Markers an error is being thrown in the console (hit 12 to show dev tools and select Console if it’s not visible):

```
not a LatLng or LatLngLiteral: not an Object
    at _.re.captureStackTrace (https://maps.googleapis.com/maps/api/js?v=3&callback=initialize_google_map_api&language=en&key=AIzaSyDrc7Z2Xh0LNmHty4bO9Jine0mnKpx6p9Q:258:1698)
    at new _.re (https://maps.googleapis.co

```

And also on page load it’s throwing:

`Failed to load resource: the server responded with a status of 500 ()`

for `https://berktest.bubbleapps.io/version-test/api/1.1/places`

That’s internal server for Google Maps.

If you haven’t really changed anything in your app this all implies that there’s some problem on the Bubble side of things. File a bug report and give them information on errors related to Google Maps that you see in your real app’s console!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [December 21, 2022, 1:39pm UTC](https://forum.bubble.io/t/adjust-map-zoom-does-not-work-for-list-of-markers/236082/8 "2022-12-21T13:39:30Z")

</div>

This topic was automatically closed after 14 days. New replies are no longer allowed.
