diff --git a/src/map/Map.js b/src/map/Map.js index 9993c060..094b67d4 100644 --- a/src/map/Map.js +++ b/src/map/Map.js @@ -550,7 +550,7 @@ L.Map = L.Class.extend({ if (type === 'contextmenu') { L.DomEvent.preventDefault(e); - } + } this.fire(type, { latlng: this.mouseEventToLatLng(e), diff --git a/src/map/ext/Map.Geolocation.js b/src/map/ext/Map.Geolocation.js index c4d0ac09..567222c9 100644 --- a/src/map/ext/Map.Geolocation.js +++ b/src/map/ext/Map.Geolocation.js @@ -42,7 +42,7 @@ L.Map.include({ options = L.Util.extend({ maxZoom: maxZoom || Infinity, setView: true - }); + }, options); return this.locate(options); },