bjorn2404 / jQuery-Store-Locator-Plugin

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

Map not being displayed when having mapSettings #62

Closed dnsv closed 9 years ago

dnsv commented 9 years ago
$(function() {
    $('#map-container').storeLocator({
        'mapSettings' : {
        },
    });
});

Added this to the index.html example.

Load page, type in "434", and the map is being loaded. Now type in "Minnetonka" and the map doesn't load.

bjorn2404 commented 9 years ago

The mapSettings option is an override that allows you to set any Google Maps settings that you would normally use with Google Maps. You need to at least add zoom and the map type for it to work.

'mapSettings'              : {
        zoom     : 12,
        mapTypeId: google.maps.MapTypeId.ROADMAP
    },
dnsv commented 9 years ago

My bad. Thanks.