diff --git a/Logic/Leaflet/Basemap.ts b/Logic/Leaflet/Basemap.ts index 6d38dce..f24a6ec 100644 --- a/Logic/Leaflet/Basemap.ts +++ b/Logic/Leaflet/Basemap.ts @@ -114,6 +114,12 @@ export class Basemap { this.map.on("click", function (e) { self.LastClickLocation.setData({lat: e.latlng.lat, lon: e.latlng.lng}) }); + + this.map.on("contextmenu", function (e) { + self.LastClickLocation.setData({lat: e.latlng.lat, lon: e.latlng.lng}); + console.log("Right click") + e.preventDefault(); + }); } } diff --git a/State.ts b/State.ts index 3a7acc9..8899503 100644 --- a/State.ts +++ b/State.ts @@ -23,7 +23,7 @@ export class State { // The singleton of the global state public static state: State; - public static vNumber = "0.0.7g"; + public static vNumber = "0.0.7h"; // The user journey states thresholds when a new feature gets unlocked public static userJourney = {