Put the latlng popup on the contextmenu event.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4447 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2023-09-04 19:26:48 +00:00
parent 45231c6ede
commit e20ba7384f

View File

@ -303,7 +303,7 @@ class GgAppElement extends LitElement {
}
if (!this.leaflet) {
this.leaflet = L.map(map, {attributionControl: false, maxZoom: 16, bounceAtZoomLimits: false});
this.leaflet.on({click: this.on_click.bind(this)});
this.leaflet.on({contextmenu: this.on_click.bind(this)});
}
let self = this;
let grid_layer = L.GridLayer.extend({