bjorn2404 / jQuery-Store-Locator-Plugin

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

fullMapStart loading at max zoom out #237

Open danleecreates opened 6 years ago

danleecreates commented 6 years ago

I noticed that fullMapStart renders at maximum zoom out on page load. Is there somthing that I need to do to remedy this or is this a bug? See code configuration below...

screen shot 2018-08-14 at 10 55 29

$(function() { $('#bh-sl-map-container').storeLocator({ 'dataLocation' : 'data/data.json', 'slideMap' : false, 'fullMapStart' : true, 'distanceAlert' : -1, 'taxonomyFilters' : { 'Targeted_Market' : 'Markets-filters-container1', 'Country' : 'country-filter', } }); });

tcw2682 commented 5 years ago

Maybe set a default location with zoom & minZoom setting?

For example:

`$('#map-container').storeLocator({ 'defaultLat' : '53.204961', 'defaultLng' : '-3.481881', 'defaultLoc' : true,

'mapSettings': { zoom: 6, mapTypeId: google.maps.MapTypeId.ROADMAP, minZoom: 3, } }); `

bjorn2404 commented 2 years ago

Noting that the map can look like this if an invalid latitude or longitude value is used. I'll be looking into validating coordinates in the plugin but it's essentially a data problem.