jQuery-Store-Locator-Plugin
jQuery-Store-Locator-Plugin copied to clipboard
Zoom issue after filtering by category and with some other settings
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>
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.
When I apply the filter it looks the same as #237
Update: This was due to invalid lat|long co-ordinates in my location data, once corrected it zoomed as expected.