From e20ba7384ffc2282106537f32d1ae378b1a25bd6 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Mon, 4 Sep 2023 19:26:48 +0000 Subject: [PATCH] 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 --- apps/gg/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/gg/script.js b/apps/gg/script.js index dd103a12..16338d7a 100644 --- a/apps/gg/script.js +++ b/apps/gg/script.js @@ -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({