bjorn2404 / jQuery-Store-Locator-Plugin

A store locator plugin using Google Maps API version 3
MIT License
493 stars 235 forks source link

Zoom issue after filtering by category and with some other settings #278

Closed bjorn2404 closed 1 year ago

bjorn2404 commented 2 years ago

A change in the Google Maps Javascript API with fitBounds on 3/24/22 has created problems in the plugin with zooming with certain settings enabled such as taxonomyFilters. Currently investigating whether this is a bug with the plugin or with the API itself.

As a temporary workaround you can specify the previous version when loading the API, such as:

<script src="https://maps.google.com/maps/api/js?v=3.47"></script>

thinkingcap commented 2 years ago

Using fullMapStart: true, storeLimit: -1, The map looks good on initial load then I get a zoomed out maps when I apply a filter. If Im not displaying all 700 locations it doesnt have this issue.

thinkingcap commented 2 years ago

When I apply the filter it looks the same as #237

thinkingcap commented 2 years ago

Update: This was due to invalid lat|long co-ordinates in my location data, once corrected it zoomed as expected.