Deni wrote:I see another had this issue.
---
I have one shop and the Google Map is pretty useless because it's defaulted to zoom right up on the building and if you're, well, a typical Internet User. You won't know to zoom out.
I've changed the 'zoom' in both the AllShop and Shop JS scripts to 50 with zero affect.
It's completely beyond me as to why the Admin JS is set to 'zoom' 15 and correctly displays a slightly zoomed in map, which clearly shows the intersection,, road names, and surrounding businesses. Why can't I have THAT map? :(
Hi,
After taking into consideration your case, we found that when there is only one shop, the Google Maps "fitBounds" method should not be used, because it causes the zoom issue. We will fix this ASAP.
If you want to fix it on your own, just go to the StoreLocatorAllShops.min.js file,
search for:
"addMarker(allShops[e], !1); map.fitBounds(bounds)"
and replace it with this:
"addMarker(allShops[e], !1); allShops.length > 1 && map.fitBounds(bounds)".
Thank you for reporting this !
Um, I don't 'StoreLocatorAllShops.min.js', only StoreLocatorAllShops.JS
((Running Store Locator 'trial' for Nop 3.5, sorry forgot to mention that))
This is the only place where 'map.fitBounds' shows up:
function onMapLoad() {
bounds = new google.maps.LatLngBounds();
for (var a = 0; a < allShops.length; a++) {
addMarker(allShops[a], false);
}
map.fitBounds(bounds);
}