Skip to content

Commit 3403d43

Browse files
committed
#16 #36 added property 'mapOptions'
1 parent d7d8d05 commit 3403d43

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/locationpicker.jquery.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@
376376
// Defaults
377377
var settings = $.extend({}, $.fn.locationpicker.defaults, options );
378378
// Initialize
379-
var gmapContext = new GMapContext(this, {
379+
var gmapContext = new GMapContext(this, $.extend({}, settings.mapOptions, {
380380
zoom: settings.zoom,
381381
center: new google.maps.LatLng(settings.location.latitude, settings.location.longitude),
382382
mapTypeId: settings.mapTypeId,
@@ -394,7 +394,7 @@
394394
markerIcon: settings.markerIcon,
395395
markerDraggable: settings.markerDraggable,
396396
markerVisible: settings.markerVisible
397-
});
397+
}));
398398
$target.data("locationpicker", gmapContext);
399399
// Subscribe GMap events
400400
function displayMarkerWithSelectedArea() {
@@ -438,6 +438,7 @@
438438
zoom: 15,
439439
mapTypeId: google.maps.MapTypeId.ROADMAP,
440440
styles: [],
441+
mapOptions: {},
441442
scrollwheel: true,
442443
inputBinding: {
443444
latitudeInput: null,

0 commit comments

Comments
 (0)