Add resctangle after clic (landblock rectangle)

This commit is contained in:
Troispoils 2024-09-21 17:54:36 +02:00
parent 94012aed45
commit 8a64f94659
2 changed files with 38 additions and 1 deletions

View file

@ -1,6 +1,6 @@
import InitMap, { map } from "./map.js";
import InitOverlayPoi from "./overlays/overlaysPoi.js";
import InitOverlayCoord, { UpdateCoord } from "./overlays/overlaysCoord.js";
import InitOverlayCoord, { RectLandBlock, UpdateCoord } from "./overlays/overlaysCoord.js";
import InitOverlayPlayer from "./overlays/overlaysPlayer.js";
//Init leaflet
@ -12,6 +12,7 @@ InitOverlayCoord(map);
map.on("click", function (ev) {
UpdateCoord(ev, map);
RectLandBlock(ev, map);
});
//Interval Player Overlay