Skip to content

Commit 913312c

Browse files
committed
[AUTO] Sync MapML Build
1 parent ac99d17 commit 913312c

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

dist/mapml.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3367,7 +3367,6 @@
33673367
if (layers[i].options._leafletLayer)
33683368
boundsRect.bindTooltip(layers[i].options._leafletLayer._title, { sticky: true });
33693369
this.addLayer(boundsRect);
3370-
boundsRect.on('contextmenu', this._openContextMenu, this);
33713370
j++;
33723371
}
33733372
}
@@ -3377,11 +3376,6 @@
33773376
this.clearLayers();
33783377
this._addBounds(e.target);
33793378
},
3380-
3381-
_openContextMenu: function (e) {
3382-
L.DomEvent.stop(e);
3383-
this._map.contextMenu._showAtPoint(e.containerPoint, e, this._map.contextMenu._container);
3384-
},
33853379
});
33863380

33873381
var debugVectors = function (options) {
@@ -3390,7 +3384,9 @@
33903384

33913385

33923386
var ProjectedExtent = L.Path.extend({
3393-
3387+
options: {
3388+
className: "mapml-debug-extent",
3389+
},
33943390
initialize: function (locations, options) {
33953391
//locations passed in as pcrs coordinates
33963392
this._locations = locations;
@@ -4032,13 +4028,13 @@
40324028
_show: function (e) {
40334029
if(this._mapMenuVisible) this._hide();
40344030
this._clickEvent = e;
4035-
let elem = e.originalEvent.srcElement;
4031+
let elem = e.originalEvent.target;
40364032
if(elem.closest("fieldset")){
40374033
elem = elem.closest("fieldset").querySelector("span");
40384034
if(!elem.layer.validProjection) return;
40394035
this._layerClicked = elem;
40404036
this._showAtPoint(e.containerPoint, e, this._layerMenu);
4041-
} else if(elem.classList.contains("leaflet-container")) {
4037+
} else if(elem.classList.contains("leaflet-container") || elem.classList.contains("mapml-debug-extent")) {
40424038
this._layerClicked = undefined;
40434039
this._showAtPoint(e.containerPoint, e, this._container);
40444040
}

0 commit comments

Comments
 (0)