diff --git a/src/locationpicker.jquery.js b/src/locationpicker.jquery.js index 6165a77..9c613ae 100644 --- a/src/locationpicker.jquery.js +++ b/src/locationpicker.jquery.js @@ -376,7 +376,7 @@ // Defaults var settings = $.extend({}, $.fn.locationpicker.defaults, options ); // Initialize - var gmapContext = new GMapContext(this, $.extend({}, settings.mapOptions, { + var gmapContext = new GMapContext(this, $.extend({}, { zoom: settings.zoom, center: new google.maps.LatLng(settings.location.latitude, settings.location.longitude), mapTypeId: settings.mapTypeId, @@ -394,7 +394,7 @@ markerIcon: settings.markerIcon, markerDraggable: settings.markerDraggable, markerVisible: settings.markerVisible - })); + }, settings.mapOptions)); $target.data("locationpicker", gmapContext); // Subscribe GMap events function displayMarkerWithSelectedArea() {