@florasync/leaflet-geokit 0.8.1 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/README.md +109 -64
- package/dist/django/index.js +3825 -3277
- package/dist/django/index.js.map +1 -1
- package/dist/leaflet-geokit.es.js +2181 -1644
- package/dist/leaflet-geokit.es.js.map +1 -1
- package/dist/leaflet-geokit.external.es.js +1443 -906
- package/dist/leaflet-geokit.external.es.js.map +1 -1
- package/dist/leaflet-geokit.umd.js +64 -16
- package/dist/leaflet-geokit.umd.js.map +1 -1
- package/dist/preact/{index-x8CrGR_z.js → index-BMfJn-mD.js} +1428 -878
- package/dist/preact/index-BMfJn-mD.js.map +1 -0
- package/dist/preact/index.js +1 -1
- package/dist/preact-bundled/index.js +3300 -2750
- package/dist/preact-bundled/index.js.map +1 -1
- package/dist/react/{index-x8CrGR_z.js → index-BMfJn-mD.js} +1428 -878
- package/dist/react/index-BMfJn-mD.js.map +1 -0
- package/dist/react/index.js +1 -1
- package/dist/react-bundled/index.js +2332 -1782
- package/dist/react-bundled/index.js.map +1 -1
- package/dist/types/components/LeafletDrawMapElement.d.ts +17 -4
- package/dist/types/lib/MapController.d.ts +9 -5
- package/dist/types/types/events.d.ts +34 -6
- package/dist/types/types/public.d.ts +16 -5
- package/dist/types/utils/geojson.d.ts +10 -0
- package/package.json +2 -2
- package/dist/preact/index-x8CrGR_z.js.map +0 -1
- package/dist/react/index-x8CrGR_z.js.map +0 -1
|
@@ -1,32 +1,43 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var Ge = Object.defineProperty;
|
|
2
|
+
var He = (a, t, e) => t in a ? Ge(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
|
|
3
|
+
var h = (a, t, e) => He(a, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
import * as x from "leaflet";
|
|
5
5
|
import "leaflet-draw";
|
|
6
6
|
import "leaflet-ruler";
|
|
7
|
-
const
|
|
7
|
+
const L = {
|
|
8
|
+
Ready: "leaflet-draw:ready",
|
|
9
|
+
Created: "leaflet-draw:created",
|
|
10
|
+
Edited: "leaflet-draw:edited",
|
|
11
|
+
Deleted: "leaflet-draw:deleted",
|
|
12
|
+
Error: "leaflet-draw:error",
|
|
13
|
+
Ingest: "leaflet-draw:ingest",
|
|
14
|
+
Export: "leaflet-draw:export"
|
|
15
|
+
}, q = {
|
|
16
|
+
Status: "leaflet-geokit:status",
|
|
17
|
+
Diagnostic: "leaflet-geokit:diagnostic"
|
|
18
|
+
}, fe = {
|
|
8
19
|
trace: 10,
|
|
9
20
|
debug: 20,
|
|
10
21
|
info: 30,
|
|
11
22
|
warn: 40,
|
|
12
23
|
error: 50
|
|
13
24
|
};
|
|
14
|
-
function
|
|
15
|
-
return
|
|
25
|
+
function Ve(a, t) {
|
|
26
|
+
return a === "silent" ? !1 : fe[t] >= fe[a];
|
|
16
27
|
}
|
|
17
|
-
function
|
|
28
|
+
function Je() {
|
|
18
29
|
try {
|
|
19
30
|
return (/* @__PURE__ */ new Date()).toISOString();
|
|
20
31
|
} catch {
|
|
21
32
|
return "";
|
|
22
33
|
}
|
|
23
34
|
}
|
|
24
|
-
function
|
|
35
|
+
function V(a, t = "debug", e = console) {
|
|
25
36
|
let r = t;
|
|
26
37
|
const o = (n) => (...s) => {
|
|
27
38
|
try {
|
|
28
|
-
if (!
|
|
29
|
-
const l = `[${
|
|
39
|
+
if (!Ve(r, n)) return;
|
|
40
|
+
const l = `[${Je()}][${a}][${n.toUpperCase()}]`, c = e[n];
|
|
30
41
|
typeof c == "function" ? c(l, ...s) : e.log(l, ...s);
|
|
31
42
|
} catch {
|
|
32
43
|
}
|
|
@@ -44,36 +55,36 @@ function G(i, t = "debug", e = console) {
|
|
|
44
55
|
warn: o("warn"),
|
|
45
56
|
error: o("error"),
|
|
46
57
|
child(n) {
|
|
47
|
-
return
|
|
58
|
+
return V(`${a}:${n}`, r, e);
|
|
48
59
|
}
|
|
49
60
|
};
|
|
50
61
|
}
|
|
51
|
-
const Ge = '.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V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QoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i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t9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}', Ve = `.leaflet-draw-section{position:relative}.leaflet-draw-toolbar{margin-top:12px}.leaflet-draw-toolbar-top{margin-top:0}.leaflet-draw-toolbar-notop a:first-child{border-top-right-radius:0}.leaflet-draw-toolbar-nobottom a:last-child{border-bottom-right-radius:0}.leaflet-draw-toolbar a{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAAeCAYAAACWuCNnAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAG7AAABuwBHnU4NQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAbvSURBVHic7dtdbBxXFQfw/9nZ3SRKwAP7UFFUQOoHqGnUoEAoNghX9tyxVcpD1X0J+WgiUQmpfUB5ACSgG1qJIKASqBIUIauqAbWseIlqb+bOWHVR6y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FGo3E8DMMPAHiDiCaY+ZOb4YCsEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhEjYfwGO+b5dFNs4OgAAAABJRU5ErkJggg==);background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20viewBox='0%200%20600%2060'%20height='60'%20width='600'%20id='svg4225'%20version='1.1'%20inkscape:version='0.91%20r13725'%20sodipodi:docname='spritesheet.svg'%20inkscape:export-filename='/home/fpuga/development/upstream/icarto.Leaflet.draw/src/images/spritesheet-2x.png'%20inkscape:export-xdpi='90'%20inkscape:export-ydpi='90'%3e%3cmetadata%20id='metadata4258'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs4256'%20/%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1920'%20inkscape:window-height='1056'%20id='namedview4254'%20showgrid='false'%20inkscape:zoom='1.3101852'%20inkscape:cx='237.56928'%20inkscape:cy='7.2419621'%20inkscape:window-x='1920'%20inkscape:window-y='24'%20inkscape:window-maximized='1'%20inkscape:current-layer='svg4225'%20/%3e%3cg%20id='enabled'%20style='fill:%23464646;fill-opacity:1'%3e%3cg%20id='polyline'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%2018,36%200,6%206,0%200,-6%20-6,0%20z%20m%204,4%20-2,0%200,-2%202,0%200,2%20z'%20id='path4229'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%2036,18%200,6%206,0%200,-6%20-6,0%20z%20m%204,4%20-2,0%200,-2%202,0%200,2%20z'%20id='path4231'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%2023.142,39.145%20-2.285,-2.29%2016,-15.998%202.285,2.285%20z'%20id='path4233'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3cpath%20id='polygon'%20d='M%20100,24.565%2097.904,39.395%2083.07,42%2076,28.773%2086.463,18%20Z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='rectangle'%20d='m%20140,20%2020,0%200,20%20-20,0%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='circle'%20d='m%20221,30%20c%200,6.078%20-4.926,11%20-11,11%20-6.074,0%20-11,-4.922%20-11,-11%200,-6.074%204.926,-11%2011,-11%206.074,0%2011,4.926%2011,11%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='marker'%20d='m%20270,19%20c%20-4.971,0%20-9,4.029%20-9,9%200,4.971%205.001,12%209,14%204.001,-2%209,-9.029%209,-14%200,-4.971%20-4.029,-9%20-9,-9%20z%20m%200,12.5%20c%20-2.484,0%20-4.5,-2.014%20-4.5,-4.5%200,-2.484%202.016,-4.5%204.5,-4.5%202.485,0%204.5,2.016%204.5,4.5%200,2.486%20-2.015,4.5%20-4.5,4.5%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cg%20id='edit'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%20337,30.156%200,0.407%200,5.604%20c%200,1.658%20-1.344,3%20-3,3%20l%20-10,0%20c%20-1.655,0%20-3,-1.342%20-3,-3%20l%200,-10%20c%200,-1.657%201.345,-3%203,-3%20l%206.345,0%203.19,-3.17%20-9.535,0%20c%20-3.313,0%20-6,2.687%20-6,6%20l%200,10%20c%200,3.313%202.687,6%206,6%20l%2010,0%20c%203.314,0%206,-2.687%206,-6%20l%200,-8.809%20-3,2.968'%20id='path4240'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20338.72,24.637%20-8.892,8.892%20-2.828,0%200,-2.829%208.89,-8.89%20z'%20id='path4242'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20338.697,17.826%204,0%200,4%20-4,0%20z'%20transform='matrix(-0.70698336,-0.70723018,0.70723018,-0.70698336,567.55917,274.78273)'%20id='path4244'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3cg%20id='remove'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%20381,42%2018,0%200,-18%20-18,0%200,18%20z%20m%2014,-16%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z'%20id='path4247'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20395,20%200,-4%20-10,0%200,4%20-6,0%200,2%2022,0%200,-2%20-6,0%20z%20m%20-2,0%20-6,0%200,-2%206,0%200,2%20z'%20id='path4249'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3c/g%3e%3cg%20id='disabled'%20transform='translate(120,0)'%20style='fill:%23bbbbbb'%3e%3cuse%20xlink:href='%23edit'%20id='edit-disabled'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%20/%3e%3cuse%20xlink:href='%23remove'%20id='remove-disabled'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%20/%3e%3c/g%3e%3cpath%20style='fill:none;stroke:%23464646;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='circle-3'%20d='m%20581.65725,30%20c%200,6.078%20-4.926,11%20-11,11%20-6.074,0%20-11,-4.922%20-11,-11%200,-6.074%204.926,-11%2011,-11%206.074,0%2011,4.926%2011,11%20z'%20inkscape:connector-curvature='0'%20/%3e%3c/svg%3e");background-repeat:no-repeat;background-size:300px 30px;background-clip:padding-box}.leaflet-retina .leaflet-draw-toolbar a{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAA8CAYAAAC6nMS5AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAA16SURBVHic7d1/jBxneQfw7zNzvotdn+9sVQkxoRKoammBqqpbk6uT5mLfvHPn42yn1VFRVCEhoFH5IYpoSaUCKi1NcGkcfrbCVRFKEwG2aHLn83pmLvY2CTqT1AmCOBE0EOT4B0nBPw/snb2dp3/sLr6s77i923dud/a+H8ny7tzMo8f3eud99p133gGIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiFYGaXYCRETUPMYYrWe/MAzZX2QQ27d5OpqdABFROxgZGVlz5cqVrzuOc18QBJPNzofsYvvSYrVcgTVftZ2l6npgYODXHMc5oKoHHcfZHQTB2WbnRETpGRkZWVMoFA6IyO2qutX3/R1Z64TnO8fWOwLSzti+mSKDg4M3l0qlnSJyG4CbAF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P4ny5SWDQ/Mer3HGLPoTtgYMyIiv3gOmqpmZfRuJWD7rgwax/G7UH7EzcYkSf7bGHNXX1/f6oUO9H1/Z+WcPoDysgw7bJ/DUl8Hq52LqwoVkb9T1WiRx8UoX158RlWfnJqaupxCbmRJFEWn+/r6buvu7v4ggI9g4Ynv50XknkKh8JkMjly9wqFDh77j+/6oqo4BqD1xXRaRPw6CwMZl1GXjuu6XSqXSOwH8LoD1AMaMMecA1PtF53WV4wCUC+menp699jOlpWD7rhz5fP5Kf3//UFdX132q+l4Ad3d3d7/fGPN1EZlQ1e/19PS8dPbs2fWu694kIgOqOqqqm4Dy4rKlUumOw4cPN3KVYk7WVkE1xsx5aSBLT+duhDEmQrkSnssZlIeXnxWRY6p6PI7j41nveFeq4eHh9XEc7xSRnQBej6t3kp5EuWh+OI7jh+dYsDDTfN/frKrjAKpPmv9pkiS7JicnH29mXku1devWV3d0dBxAuRNeMhF5ulgsjqRxgk7DfOfqxWr1czvbtzGt3r5zGRwc7FPV3ap6y0L7ishPAHx63bp1e/bt2xenkQ8LLEuMMZtE5JCqfhfAMwCeSZLkO2vWrDk+NjbGyZHUFjzP2yginwcAVX1fVi99Vo2OjnaeP3/+3SLydgBvBNBd56GXAHxXVR/s7e3dm9YJOg0rqQNm+y5dFtp3HmKM2QxgF8qr9b8GwA0AzgH4MYBjIjJ28eLFkFeOiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIhWgv8Hnffz4dmwY9cAAAAASUVORK5CYII=);background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20viewBox='0%200%20600%2060'%20height='60'%20width='600'%20id='svg4225'%20version='1.1'%20inkscape:version='0.91%20r13725'%20sodipodi:docname='spritesheet.svg'%20inkscape:export-filename='/home/fpuga/development/upstream/icarto.Leaflet.draw/src/images/spritesheet-2x.png'%20inkscape:export-xdpi='90'%20inkscape:export-ydpi='90'%3e%3cmetadata%20id='metadata4258'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs4256'%20/%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1920'%20inkscape:window-height='1056'%20id='namedview4254'%20showgrid='false'%20inkscape:zoom='1.3101852'%20inkscape:cx='237.56928'%20inkscape:cy='7.2419621'%20inkscape:window-x='1920'%20inkscape:window-y='24'%20inkscape:window-maximized='1'%20inkscape:current-layer='svg4225'%20/%3e%3cg%20id='enabled'%20style='fill:%23464646;fill-opacity:1'%3e%3cg%20id='polyline'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%2018,36%200,6%206,0%200,-6%20-6,0%20z%20m%204,4%20-2,0%200,-2%202,0%200,2%20z'%20id='path4229'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%2036,18%200,6%206,0%200,-6%20-6,0%20z%20m%204,4%20-2,0%200,-2%202,0%200,2%20z'%20id='path4231'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%2023.142,39.145%20-2.285,-2.29%2016,-15.998%202.285,2.285%20z'%20id='path4233'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3cpath%20id='polygon'%20d='M%20100,24.565%2097.904,39.395%2083.07,42%2076,28.773%2086.463,18%20Z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='rectangle'%20d='m%20140,20%2020,0%200,20%20-20,0%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='circle'%20d='m%20221,30%20c%200,6.078%20-4.926,11%20-11,11%20-6.074,0%20-11,-4.922%20-11,-11%200,-6.074%204.926,-11%2011,-11%206.074,0%2011,4.926%2011,11%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='marker'%20d='m%20270,19%20c%20-4.971,0%20-9,4.029%20-9,9%200,4.971%205.001,12%209,14%204.001,-2%209,-9.029%209,-14%200,-4.971%20-4.029,-9%20-9,-9%20z%20m%200,12.5%20c%20-2.484,0%20-4.5,-2.014%20-4.5,-4.5%200,-2.484%202.016,-4.5%204.5,-4.5%202.485,0%204.5,2.016%204.5,4.5%200,2.486%20-2.015,4.5%20-4.5,4.5%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cg%20id='edit'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%20337,30.156%200,0.407%200,5.604%20c%200,1.658%20-1.344,3%20-3,3%20l%20-10,0%20c%20-1.655,0%20-3,-1.342%20-3,-3%20l%200,-10%20c%200,-1.657%201.345,-3%203,-3%20l%206.345,0%203.19,-3.17%20-9.535,0%20c%20-3.313,0%20-6,2.687%20-6,6%20l%200,10%20c%200,3.313%202.687,6%206,6%20l%2010,0%20c%203.314,0%206,-2.687%206,-6%20l%200,-8.809%20-3,2.968'%20id='path4240'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20338.72,24.637%20-8.892,8.892%20-2.828,0%200,-2.829%208.89,-8.89%20z'%20id='path4242'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20338.697,17.826%204,0%200,4%20-4,0%20z'%20transform='matrix(-0.70698336,-0.70723018,0.70723018,-0.70698336,567.55917,274.78273)'%20id='path4244'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3cg%20id='remove'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%20381,42%2018,0%200,-18%20-18,0%200,18%20z%20m%2014,-16%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z'%20id='path4247'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20395,20%200,-4%20-10,0%200,4%20-6,0%200,2%2022,0%200,-2%20-6,0%20z%20m%20-2,0%20-6,0%200,-2%206,0%200,2%20z'%20id='path4249'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3c/g%3e%3cg%20id='disabled'%20transform='translate(120,0)'%20style='fill:%23bbbbbb'%3e%3cuse%20xlink:href='%23edit'%20id='edit-disabled'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%20/%3e%3cuse%20xlink:href='%23remove'%20id='remove-disabled'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%20/%3e%3c/g%3e%3cpath%20style='fill:none;stroke:%23464646;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='circle-3'%20d='m%20581.65725,30%20c%200,6.078%20-4.926,11%20-11,11%20-6.074,0%20-11,-4.922%20-11,-11%200,-6.074%204.926,-11%2011,-11%206.074,0%2011,4.926%2011,11%20z'%20inkscape:connector-curvature='0'%20/%3e%3c/svg%3e")}.leaflet-draw a{display:block;text-align:center;text-decoration:none}.leaflet-draw a .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.leaflet-draw-actions{display:none;list-style:none;margin:0;padding:0;position:absolute;left:26px;top:0;white-space:nowrap}.leaflet-touch .leaflet-draw-actions{left:32px}.leaflet-right .leaflet-draw-actions{right:26px;left:auto}.leaflet-touch .leaflet-right .leaflet-draw-actions{right:32px;left:auto}.leaflet-draw-actions li{display:inline-block}.leaflet-draw-actions li:first-child a{border-left:0}.leaflet-draw-actions li:last-child a{-webkit-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.leaflet-right .leaflet-draw-actions li:last-child a{-webkit-border-radius:0;border-radius:0}.leaflet-right .leaflet-draw-actions li:first-child a{-webkit-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.leaflet-draw-actions a{background-color:#919187;border-left:1px solid #AAA;color:#fff;font:11px/19px Helvetica Neue,Arial,Helvetica,sans-serif;line-height:28px;text-decoration:none;padding-left:10px;padding-right:10px;height:28px}.leaflet-touch .leaflet-draw-actions a{font-size:12px;line-height:30px;height:30px}.leaflet-draw-actions-bottom{margin-top:0}.leaflet-draw-actions-top{margin-top:1px}.leaflet-draw-actions-top a,.leaflet-draw-actions-bottom a{height:27px;line-height:27px}.leaflet-draw-actions a:hover{background-color:#a0a098}.leaflet-draw-actions-top.leaflet-draw-actions-bottom a{height:26px;line-height:26px}.leaflet-draw-toolbar .leaflet-draw-draw-polyline{background-position:-2px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polyline{background-position:0 -1px}.leaflet-draw-toolbar .leaflet-draw-draw-polygon{background-position:-31px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polygon{background-position:-29px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-rectangle{background-position:-62px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-rectangle{background-position:-60px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-circle{background-position:-92px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circle{background-position:-90px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-marker{background-position:-122px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-marker{background-position:-120px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-circlemarker{background-position:-273px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circlemarker{background-position:-271px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-edit{background-position:-152px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit{background-position:-150px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-remove{background-position:-182px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove{background-position:-180px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled{background-position:-212px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled{background-position:-210px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled{background-position:-242px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled{background-position:-240px -2px}.leaflet-mouse-marker{background-color:#fff;cursor:crosshair}.leaflet-draw-tooltip{background:#363636;background:#00000080;border:1px solid transparent;-webkit-border-radius:4px;border-radius:4px;color:#fff;font:12px/18px Helvetica Neue,Arial,Helvetica,sans-serif;margin-left:20px;margin-top:-21px;padding:4px 8px;position:absolute;visibility:hidden;white-space:nowrap;z-index:6}.leaflet-draw-tooltip:before{border-right:6px solid black;border-right-color:#00000080;border-top:6px solid transparent;border-bottom:6px solid transparent;content:"";position:absolute;top:7px;left:-7px}.leaflet-error-draw-tooltip{background-color:#f2dede;border:1px solid #e6b6bd;color:#b94a48}.leaflet-error-draw-tooltip:before{border-right-color:#e6b6bd}.leaflet-draw-tooltip-single{margin-top:-12px}.leaflet-draw-tooltip-subtext{color:#f8d5e4}.leaflet-draw-guide-dash{font-size:1%;opacity:.6;position:absolute;width:5px;height:5px}.leaflet-edit-marker-selected{background-color:#fe57a11a;border:4px dashed rgba(254,87,161,.6);-webkit-border-radius:4px;border-radius:4px;box-sizing:content-box}.leaflet-edit-move{cursor:move}.leaflet-edit-resize{cursor:pointer}.leaflet-oldie .leaflet-draw-toolbar{border:1px solid #999}`, Je = ".leaflet-ruler{height:35px;width:35px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAQAAABKfvVzAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfhBQoMHg6McuYvAAABwklEQVQ4y43TP0jUYRgH8M/daQpqdujhnwShGiwyipCIoIgWxyIwrqEhnCQoGqKhpoYMg1qCQjg8TC2JCtSkjCgaKisIhyQUwpJssD9KZWRZg6d450/yGV54n/fzfd53eUOCaoNa5QpNGNPr9cKjUAatdsB++co0G1XiiHd+uqnTq8VzI874o9s2Ic1iiEpii9tmnJOdfkOldt/dU+HYolHnjdmpRNzbuVaNL86m4sXqNOrz3kMXHFKYMqd8VREGBToMifqLgwY1yNZirya5knaBqH16fJjNJiWEFSlxy4g980+pMuZkir/UJjLbrvNRPnINaLUygK/yQpuImHp47LOjuKJPOJA/1y4iZsAlyozLs8IO42L/4QlhGrSCy5oCeKH+dM59vVbL9sn6AP5MRzpnVKtN1viRxit1WRvEmVKFrQbTpoddNR3E+aYKuw1lPOapa0GcEf22KzOtejmcG1rkYdjEAn59KU5cDzjt+HI4BSZtVJTazfIsMQOmFAusLr/E53lniickJYIDNcaUL+JhMZPWBUdOeCCaweGOw5k0lFrv2uyRuBxPlLpoBtTK0p3mh+f+dKl6jX6LapRj6XrzD+1bmkFA/dTVAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE3LTA1LTEwVDEyOjMwOjE0KzAyOjAwUNH5TAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNy0wNS0xMFQxMjozMDoxNCswMjowMCGMQfAAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC);background-repeat:no-repeat;background-position:center}.leaflet-ruler:hover{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAACmAAAApgHdff84AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAn9QTFRF////AAAAAAAAAAAAAAAAAAAzABcXABQUABIkDhwrAA0aAAwYABUgABQfABIbABAZAA8fABUcABMaABMfABIeABEcABAbABQeABMdABIdABEbABIbABIbABEdABEcABIcBxsoABEdABIdABIdABEcABMbABMdFBwgERofAhIbEhsfAhIdBxUeEhsgEBofAhMbAhMdBRMdAhIbAhIdAhMdCRceARIcDBgfDBgfDBcfDBcfFhwgDBceDBceCxceFCs5HTdGAxMcDxofGTFAHDRDHDVDHDVEHTZFDRkfEBofERogCh0oERsgARIcEhsfEhsgCh4pDCEsDRkfDRkfEBofBhQdDSMvDRgfDBgfCBUeBxUeDyUyECYzUDktPTAqCRceCRYeChYeDxkfEBkgLCgmWj4wCBYdW0AwGh4hHCAiHSAiTDctBhUdBxYdEBkfLyonMConBhUdJiUkLCclLSgmLigmOzApPTEpDBgfBRQdDBgfERsgWT8wBBMdCBYeChceQjMrSzctZEUyBBMdERsgXUAxXkExY0QzglQ5AxUfBxolSjcthlU6hlY7h1Y7AxMcSDUsSjYsd042g1Q5hlY6jVo8AhIcAxMcBBQdLEpcOVpvARIcAhIcBhQdDSIuEhsgJ0NUNS0oNi0oO11yTTgtUXmSUnqUXEAxXUExYEIyZUUzaEYzb0o1cEo1dEw2i1g8jFk8jcfskFs9mdX9mmA/mtf/pmZCqGdCsWxEvnJHxHVJxnZJyHdJzHlK0XxM031M139N3IFO3YJO4INP5IVQ5YZQ5oZQ6ohR7IlS7opS74tS8ItT841T9I1T9o5U949U+ZBV+pBV/ZJW/pJW/5NWIYcOagAAAJt0Uk5TAAECAwQFCw0OEhQVGBkcHyEkKCkqLTAzNUZLVFZZW2RnanJzeHl8f4uMjY6Pj5KVl52eoKGprKytrq+vsLGytLu9vb/BwsLDxcXP0NDS09bf4uPk5OXl5ufo6enq7O3u7+/x8fHy8/P09PT09fX19fX29vb29vb29/j4+Pj5+fn5+fn6+vr6+vr7/Pz8/Pz9/f39/f39/v7+/v7Td3FlAAABgklEQVQoU2NggAMRJU1DTWURBlQgqhWUND11Tfr05GBdMYQws8a07j2XVx2/cnLl5T0T5+ixQsX5/RrWr70CA+s2NPoLgMUlciddvnLl3PbslMysmi2ngXKTc/iA4uwRC1dfudRT76UtJy5lMHvHlSsni82ZgBLWbZdOHCuPlARpForvBYszA9ky1WeunC8y5YCI9125cqrEnJlbnoHBZ/6mK+0eTAjxUgtmbl99Bt6Ksxd2pXGDxRPg4kZMDIqxV6406cDFT8PEGRwnHLlYJQwSTwSJ51tCxRmiVuw7VAsRP7zkIEKcofnAlb0hEPWXls9AiDNUHriyMxwoPgVoToEVQpwhdNHuY/2imOIMZq1nr2QUgsVtkMUZZOOuXOmYiinOwF63/8QVsDgLd0wnFwMCOM3dBhK3ZeGOXjzLHklCIu8oRDxs8eaNXYJIMuplJ0HigYs3b906UwFJgtGzxY6FLWDe0mXLli3wVoEAaZAMjxoLA6eDu5urq4uziTEEqAIAvamx163e5EoAAAAASUVORK5CYII=)}.leaflet-ruler-clicked{height:35px;width:35px;background-repeat:no-repeat;background-position:center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAA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+/x8fHy8/P09PT09fX19fX29vb29vb29/j4+Pj5+fn5+fn6+vr6+vr7/Pz8/Pz9/f39/f39/v7+/v7Td3FlAAABgklEQVQoU2NggAMRJU1DTWURBlQgqhWUND11Tfr05GBdMYQws8a07j2XVx2/cnLl5T0T5+ixQsX5/RrWr70CA+s2NPoLgMUlciddvnLl3PbslMysmi2ngXKTc/iA4uwRC1dfudRT76UtJy5lMHvHlSsni82ZgBLWbZdOHCuPlARpForvBYszA9ky1WeunC8y5YCI9125cqrEnJlbnoHBZ/6mK+0eTAjxUgtmbl99Bt6Ksxd2pXGDxRPg4kZMDIqxV6406cDFT8PEGRwnHLlYJQwSTwSJ51tCxRmiVuw7VAsRP7zkIEKcofnAlb0hEPWXls9AiDNUHriyMxwoPgVoToEVQpwhdNHuY/2imOIMZq1nr2QUgsVtkMUZZOOuXOmYiinOwF63/8QVsDgLd0wnFwMCOM3dBhK3ZeGOXjzLHklCIu8oRDxs8eaNXYJIMuplJ0HigYs3b906UwFJgtGzxY6FLWDe0mXLli3wVoEAaZAMjxoLA6eDu5urq4uziTEEqAIAvamx163e5EoAAAAASUVORK5CYII=);border-color:#7fff00!important}.leaflet-bar{background-color:#fff}.leaflet-control{cursor:pointer}.result-tooltip{background-color:#fff;border-width:medium;border-color:#de0000;font-size:smaller}.moving-tooltip{background-color:#ffffffb3;background-clip:padding-box;opacity:.5;border:dotted;border-color:red;font-size:smaller}.plus-length{padding-left:45px}", Ze = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJ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CiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC", qe = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='430'%20height='430'%20style='width:100%25;height:100%25;transform:translate3d(0,0,0);content-visibility:visible'%20viewBox='0%200%20430%20430'%3e%3cdefs%3e%3cclipPath%20id='i'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='s'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='e'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='p'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='f'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='m'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='g'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='j'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='h'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cfilter%20id='t'%20width='300%25'%20height='300%25'%20x='-100%25'%20y='-100%25'%3e%3cfeGaussianBlur%20result='filter_result_0'/%3e%3c/filter%3e%3cfilter%20id='r'%20width='300%25'%20height='300%25'%20x='-100%25'%20y='-100%25'%3e%3cfeGaussianBlur%20result='filter_result_0'%20stdDeviation='52.5%2052.5'/%3e%3c/filter%3e%3cfilter%20id='n'%20width='300%25'%20height='300%25'%20x='-100%25'%20y='-100%25'%3e%3cfeGaussianBlur%20result='filter_result_0'/%3e%3c/filter%3e%3cfilter%20id='k'%20width='300%25'%20height='300%25'%20x='-100%25'%20y='-100%25'%3e%3cfeGaussianBlur%20result='filter_result_0'/%3e%3c/filter%3e%3cmask%20id='u'%20mask-type='alpha'%3e%3cuse%20xmlns:ns1='http://www.w3.org/1999/xlink'%20ns1:href='%23a'/%3e%3c/mask%3e%3cmask%20id='q'%20mask-type='alpha'%3e%3cuse%20xmlns:ns2='http://www.w3.org/1999/xlink'%20ns2:href='%23b'/%3e%3c/mask%3e%3cmask%20id='o'%20mask-type='alpha'%3e%3cuse%20xmlns:ns3='http://www.w3.org/1999/xlink'%20ns3:href='%23c'/%3e%3c/mask%3e%3cmask%20id='l'%20mask-type='alpha'%3e%3cuse%20xmlns:ns4='http://www.w3.org/1999/xlink'%20ns4:href='%23d'/%3e%3c/mask%3e%3cg%20id='a'%20fill-opacity='0'%20stroke-linecap='round'%20stroke-linejoin='round'%20clip-path='url(%23e)'%20style='display:none'%3e%3cpath%20class='secondary'%20style='display:none'/%3e%3cpath%20class='primary'%20style='display:none'/%3e%3c/g%3e%3cg%20id='b'%20fill-opacity='0'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='12'%20clip-path='url(%23f)'%20style='display:block'%3e%3cpath%20stroke='%2308A88A'%20d='M44.446-66.518a79.998%2079.998%200%200%200-101.012%209.952A79.998%2079.998%200%201%200%2056.569%2056.569%2080.005%2080.005%200%200%200%2073.91-30.615a80.001%2080.001%200%200%200-29.464-35.903z'%20class='secondary'%20style='display:block'%20transform='translate(215%20214)'/%3e%3cpath%20stroke='%23121331'%20d='m141.409%2025.241%208.727%205.041s0%200%200%200a22.3%2022.3%200%200%201%2010.411%2013.542%2022.32%2022.32%200%200%201-2.221%2016.937l-26.515%2045.924a22.325%2022.325%200%200%201-30.497%208.172l-8.754-5.059a143.414%20143.414%200%200%201-43.718%2025.286v10.108a22.302%2022.302%200%200%201-13.778%2020.612%2022.303%2022.303%200%200%201-8.539%201.696h-53.029a22.303%2022.303%200%200%201-15.779-6.531%2022.302%2022.302%200%200%201-6.537-15.777v-10.073a143.416%20143.416%200%200%201-43.719-25.285l-8.754%205.059a22.325%2022.325%200%200%201-30.497-8.172l-26.523-45.924a22.315%2022.315%200%200%201-2.238-16.943A22.31%2022.31%200%200%201-150.142%2030.3l8.727-5.041a145.097%20145.097%200%200%201%200-50.518l-8.727-5.041a22.294%2022.294%200%200%201-10.409-13.554%2022.306%2022.306%200%200%201%202.238-16.943l26.514-45.924a22.325%2022.325%200%200%201%2030.497-8.172l8.754%205.059a143.416%20143.416%200%200%201%2043.719-25.285v-10.073a22.302%2022.302%200%200%201%206.537-15.777%2022.3%2022.3%200%200%201%2015.779-6.531h53.02a22.307%2022.307%200%200%201%2022.317%2022.308v10.037a143.41%20143.41%200%200%201%2043.718%2025.285l8.754-5.059a22.325%2022.325%200%200%201%2030.497%208.172l26.515%2045.942a22.313%2022.313%200%200%201-1.618%2024.757%2022.294%2022.294%200%200%201-6.554%205.74l-8.727%205.041a145.097%20145.097%200%200%201%200%2050.518z'%20class='primary'%20style='display:block'%20transform='rotate(-120%20169.576%2045.095)'/%3e%3c/g%3e%3cg%20id='c'%20fill-opacity='0'%20stroke-linecap='round'%20stroke-linejoin='round'%20clip-path='url(%23g)'%20style='display:none'%3e%3cpath%20class='secondary'%20style='display:none'/%3e%3cpath%20class='primary'%20style='display:none'/%3e%3c/g%3e%3cg%20id='d'%20fill-opacity='0'%20stroke-linecap='round'%20stroke-linejoin='round'%20clip-path='url(%23h)'%20style='display:none'%3e%3cpath%20class='secondary'%20style='display:none'/%3e%3cpath%20class='primary'%20style='display:none'/%3e%3c/g%3e%3c/defs%3e%3cg%20clip-path='url(%23i)'%3e%3cg%20clip-path='url(%23j)'%20filter='url(%23k)'%20mask='url(%23l)'%20style='display:none'%3e%3cg%20class='design'%3e%3cpath%20class='primary'/%3e%3c/g%3e%3cg%20class='design'%3e%3cpath%20class='secondary'/%3e%3c/g%3e%3c/g%3e%3cg%20clip-path='url(%23m)'%20filter='url(%23n)'%20mask='url(%23o)'%20style='display:none'%3e%3cg%20class='design'%3e%3cpath%20class='primary'/%3e%3c/g%3e%3cg%20class='design'%3e%3cpath%20class='secondary'/%3e%3c/g%3e%3c/g%3e%3cg%20clip-path='url(%23p)'%20mask='url(%23q)'%20style='display:block'%3e%3cg%20filter='url(%23r)'%20transform='rotate(-94%20238.762%20-16.565)%20scale(2.4)'%3e%3cg%20class='design'%3e%3cpath%20fill='%234BE1EC'%20d='M0-250c137.975%200%20250%20112.025%20250%20250S137.975%20250%200%20250-250%20137.975-250%200-137.975-250%200-250z'%20class='primary'/%3e%3c/g%3e%3cg%20class='design'%3e%3cpath%20fill='%23CB5EEE'%20d='M113.242-295.384c97.478%200%20176.5%2079.022%20176.5%20176.5s-79.022%20176.5-176.5%20176.5c-43.948%200-74.396-34.057-105.29-60.631-37.631-32.369-71.21-62.338-71.21-115.869%200-97.478%2079.022-176.5%20176.5-176.5z'%20class='secondary'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20clip-path='url(%23s)'%20filter='url(%23t)'%20mask='url(%23u)'%20style='display:none'%3e%3cg%20class='design'%3e%3cpath%20class='primary'/%3e%3c/g%3e%3cg%20class='design'%3e%3cpath%20class='secondary'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", xe = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%20-1.67%2047.336%2047.336'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group_42'%20data-name='Group%2042'%20transform='translate(-172.455%20-364.36)'%3e%3cpath%20id='Rectangle_17'%20data-name='Rectangle%2017'%20d='M4.351,0H40.984a4.351,4.351,0,0,1,4.351,4.351V22.117a1,1,0,0,1-1,1H1a1,1,0,0,1-1-1V4.351A4.351,4.351,0,0,1,4.351,0Z'%20transform='translate(173.455%20384.243)'%20fill='none'%20stroke='%23000000'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3cpath%20id='Path_90'%20data-name='Path%2090'%20d='M218.79,390.249a3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.778,3.778,0,0,1-3.777-3.778'%20fill='none'%20stroke='%23000000'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3cg%20id='Group_41'%20data-name='Group%2041'%3e%3cpath%20id='Rectangle_18'%20data-name='Rectangle%2018'%20d='M4.351,0H26.473a4.351,4.351,0,0,1,4.351,4.351V17.883a1,1,0,0,1-1,1H1a1,1,0,0,1-1-1V4.351A4.351,4.351,0,0,1,4.351,0Z'%20transform='translate(180.71%20365.36)'%20fill='none'%20stroke='%23000000'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3cpath%20id='Path_91'%20data-name='Path%2091'%20d='M211.234,370.794a3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778'%20fill='none'%20stroke='%23000000'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Ke = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAQAAABKfvVzAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfhBQoMHg6McuYvAAABwklEQVQ4y43TP0jUYRgH8M/daQpqdujhnwShGiwyipCIoIgWxyIwrqEhnCQoGqKhpoYMg1qCQjg8TC2JCtSkjCgaKisIhyQUwpJssD9KZWRZg6d450/yGV54n/fzfd53eUOCaoNa5QpNGNPr9cKjUAatdsB++co0G1XiiHd+uqnTq8VzI874o9s2Ic1iiEpii9tmnJOdfkOldt/dU+HYolHnjdmpRNzbuVaNL86m4sXqNOrz3kMXHFKYMqd8VREGBToMifqLgwY1yNZirya5knaBqH16fJjNJiWEFSlxy4g980+pMuZkir/UJjLbrvNRPnINaLUygK/yQpuImHp47LOjuKJPOJA/1y4iZsAlyozLs8IO42L/4QlhGrSCy5oCeKH+dM59vVbL9sn6AP5MRzpnVKtN1viRxit1WRvEmVKFrQbTpoddNR3E+aYKuw1lPOapa0GcEf22KzOtejmcG1rkYdjEAn59KU5cDzjt+HI4BSZtVJTazfIsMQOmFAusLr/E53lniickJYIDNcaUL+JhMZPWBUdOeCCaweGOw5k0lFrv2uyRuBxPlLpoBtTK0p3mh+f+dKl6jX6LapRj6XrzD+1bmkFA/dTVAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE3LTA1LTEwVDEyOjMwOjE0KzAyOjAwUNH5TAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNy0wNS0xMFQxMjozMDoxNCswMjowMCGMQfAAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC", Qe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAACmAAAApgHdff84AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAn9QTFRF////AAAAAAAAAAAAAAAAAAAzABcXABQUABIkDhwrAA0aAAwYABUgABQfABIbABAZAA8fABUcABMaABMfABIeABEcABAbABQeABMdABIdABEbABIbABIbABEdABEcABIcBxsoABEdABIdABIdABEcABMbABMdFBwgERofAhIbEhsfAhIdBxUeEhsgEBofAhMbAhMdBRMdAhIbAhIdAhMdCRceARIcDBgfDBgfDBcfDBcfFhwgDBceDBceCxceFCs5HTdGAxMcDxofGTFAHDRDHDVDHDVEHTZFDRkfEBofERogCh0oERsgARIcEhsfEhsgCh4pDCEsDRkfDRkfEBofBhQdDSMvDRgfDBgfCBUeBxUeDyUyECYzUDktPTAqCRceCRYeChYeDxkfEBkgLCgmWj4wCBYdW0AwGh4hHCAiHSAiTDctBhUdBxYdEBkfLyonMConBhUdJiUkLCclLSgmLigmOzApPTEpDBgfBRQdDBgfERsgWT8wBBMdCBYeChceQjMrSzctZEUyBBMdERsgXUAxXkExY0QzglQ5AxUfBxolSjcthlU6hlY7h1Y7AxMcSDUsSjYsd042g1Q5hlY6jVo8AhIcAxMcBBQdLEpcOVpvARIcAhIcBhQdDSIuEhsgJ0NUNS0oNi0oO11yTTgtUXmSUnqUXEAxXUExYEIyZUUzaEYzb0o1cEo1dEw2i1g8jFk8jcfskFs9mdX9mmA/mtf/pmZCqGdCsWxEvnJHxHVJxnZJyHdJzHlK0XxM031M139N3IFO3YJO4INP5IVQ5YZQ5oZQ6ohR7IlS7opS74tS8ItT841T9I1T9o5U949U+ZBV+pBV/ZJW/pJW/5NWIYcOagAAAJt0Uk5TAAECAwQFCw0OEhQVGBkcHyEkKCkqLTAzNUZLVFZZW2RnanJzeHl8f4uMjY6Pj5KVl52eoKGprKytrq+vsLGytLu9vb/BwsLDxcXP0NDS09bf4uPk5OXl5ufo6enq7O3u7+/x8fHy8/P09PT09fX19fX29vb29vb29/j4+Pj5+fn5+fn6+vr6+vr7/Pz8/Pz9/f39/f39/v7+/v7Td3FlAAABgklEQVQoU2NggAMRJU1DTWURBlQgqhWUND11Tfr05GBdMYQws8a07j2XVx2/cnLl5T0T5+ixQsX5/RrWr70CA+s2NPoLgMUlciddvnLl3PbslMysmi2ngXKTc/iA4uwRC1dfudRT76UtJy5lMHvHlSsni82ZgBLWbZdOHCuPlARpForvBYszA9ky1WeunC8y5YCI9125cqrEnJlbnoHBZ/6mK+0eTAjxUgtmbl99Bt6Ksxd2pXGDxRPg4kZMDIqxV6406cDFT8PEGRwnHLlYJQwSTwSJ51tCxRmiVuw7VAsRP7zkIEKcofnAlb0hEPWXls9AiDNUHriyMxwoPgVoToEVQpwhdNHuY/2imOIMZq1nr2QUgsVtkMUZZOOuXOmYiinOwF63/8QVsDgLd0wnFwMCOM3dBhK3ZeGOXjzLHklCIu8oRDxs8eaNXYJIMuplJ0HigYs3b906UwFJgtGzxY6FLWDe0mXLli3wVoEAaZAMjxoLA6eDu5urq4uziTEEqAIAvamx163e5EoAAAAASUVORK5CYII=";
|
|
52
|
-
function
|
|
62
|
+
const Ze = '.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW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K5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqg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ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}', je = `.leaflet-draw-section{position:relative}.leaflet-draw-toolbar{margin-top:12px}.leaflet-draw-toolbar-top{margin-top:0}.leaflet-draw-toolbar-notop a:first-child{border-top-right-radius:0}.leaflet-draw-toolbar-nobottom a:last-child{border-bottom-right-radius:0}.leaflet-draw-toolbar a{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAAeCAYAAACWuCNnAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAG7AAABuwBHnU4NQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAbvSURBVHic7dtdbBxXFQfw/9nZ3SRKwAP7UFFUQOoHqGnUoEAoNghX9tyxVcpD1X0J+WgiUQmpfUB5ACSgG1qJIKASqBIUIauqAbWseIlqb+bOWHVR6y0FKZBEqdIUQROIREGRx3FFvR/38ODZst3a3nE8Ywfv+T2t7hzdM3fle/bOnWtACCGEEEIIIYQQQgghhBBCCCGEEEIIIcRa0EbfgBDdFItFKwzDAa3175LuWylVAvBIR/MxrXUp6Vxx9dp4VyObVEdKKW591lonXgiVUg6AHzPzk9ls9meVSmUh6RzXkz179uQKhcIgM+8CACI6U6vVnp+enm6knXt4ePiuTCbzWQAwxlSDIHg57ZwroDAMnwKwz3XdBzzPG08hxzsTNprQG2lTjtd13WFmfghAP4A+AJcATFiW9YNKpfL3uP0kUliiX4SG1pqUUpx0wXJd9/PMXAGwPWq6yMyPz8/P/7xarf4nyVwt7QV4JWkU52i8YwBu6bh0wRhzJAiCF5POCQCDg4N2Pp//NYDRjkuTxph9QRCESeYrFov5ubm5R5n5AIAPtV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+NEb4pHglrtdrz+Xz+AoBbu4Ser9fra37d3YEBfBvAkq+XmfmbpVIp9grwWnie9zSAp9PMcT3Z7OPNZrO/aTQaf1BKfbd9X7RTGIaHmPlcnPNYsVZYSikOw7AB4CAzj/f19e1fjwOMnueVEeMxJJfLbYqCNT093TDGHAGw0qHYBQBH0vj+Pc+bYOb3HFRk5nHf9yeTzgfgMhF9uEvMTQD+71/vR3pqvJOTk28AeBJAeXR09P1LxbiuuxfA9wB8LU6fsVdYrUOhtm0fTusxcAlMRN+KziUt5SqAM3v37r00OZnGfFp/QRC86DjOUCaTGWPm2zoun8fiIbuZtPLX6/UH8/n8rQDuippertfrD6aRKyqOR5VS81ji8Z+IbmfmgwB+mEb+9dZr4wWA/v7+R6rV6k+azeYpx3EezeVyJ7dv335lfn7+lkajcZCZDzPzYd/3/xSnv9gFq3UuaR2LFQDA87xAKVUB8BEAZ6N9nrNEdEZr/TcArLVOPG8aJ9jj8n3/pcHBwZ1btmx5519zmPl0vV5/Ie2V7fT09Nujo6Nus9kcA4CtW7ce1lq/nUYu27a/Mzs7CyI6gMVX/u/CzJeZ+Ue2bcc9pb1aXc8lJZms18YLANE2wkOu694N4OFGo3E8DMMPAHiDiCaY+ZOb4YCsEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhEjYfwGO+b5dFNs4OgAAAABJRU5ErkJggg==);background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20viewBox='0%200%20600%2060'%20height='60'%20width='600'%20id='svg4225'%20version='1.1'%20inkscape:version='0.91%20r13725'%20sodipodi:docname='spritesheet.svg'%20inkscape:export-filename='/home/fpuga/development/upstream/icarto.Leaflet.draw/src/images/spritesheet-2x.png'%20inkscape:export-xdpi='90'%20inkscape:export-ydpi='90'%3e%3cmetadata%20id='metadata4258'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs4256'%20/%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1920'%20inkscape:window-height='1056'%20id='namedview4254'%20showgrid='false'%20inkscape:zoom='1.3101852'%20inkscape:cx='237.56928'%20inkscape:cy='7.2419621'%20inkscape:window-x='1920'%20inkscape:window-y='24'%20inkscape:window-maximized='1'%20inkscape:current-layer='svg4225'%20/%3e%3cg%20id='enabled'%20style='fill:%23464646;fill-opacity:1'%3e%3cg%20id='polyline'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%2018,36%200,6%206,0%200,-6%20-6,0%20z%20m%204,4%20-2,0%200,-2%202,0%200,2%20z'%20id='path4229'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%2036,18%200,6%206,0%200,-6%20-6,0%20z%20m%204,4%20-2,0%200,-2%202,0%200,2%20z'%20id='path4231'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%2023.142,39.145%20-2.285,-2.29%2016,-15.998%202.285,2.285%20z'%20id='path4233'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3cpath%20id='polygon'%20d='M%20100,24.565%2097.904,39.395%2083.07,42%2076,28.773%2086.463,18%20Z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='rectangle'%20d='m%20140,20%2020,0%200,20%20-20,0%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='circle'%20d='m%20221,30%20c%200,6.078%20-4.926,11%20-11,11%20-6.074,0%20-11,-4.922%20-11,-11%200,-6.074%204.926,-11%2011,-11%206.074,0%2011,4.926%2011,11%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='marker'%20d='m%20270,19%20c%20-4.971,0%20-9,4.029%20-9,9%200,4.971%205.001,12%209,14%204.001,-2%209,-9.029%209,-14%200,-4.971%20-4.029,-9%20-9,-9%20z%20m%200,12.5%20c%20-2.484,0%20-4.5,-2.014%20-4.5,-4.5%200,-2.484%202.016,-4.5%204.5,-4.5%202.485,0%204.5,2.016%204.5,4.5%200,2.486%20-2.015,4.5%20-4.5,4.5%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cg%20id='edit'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%20337,30.156%200,0.407%200,5.604%20c%200,1.658%20-1.344,3%20-3,3%20l%20-10,0%20c%20-1.655,0%20-3,-1.342%20-3,-3%20l%200,-10%20c%200,-1.657%201.345,-3%203,-3%20l%206.345,0%203.19,-3.17%20-9.535,0%20c%20-3.313,0%20-6,2.687%20-6,6%20l%200,10%20c%200,3.313%202.687,6%206,6%20l%2010,0%20c%203.314,0%206,-2.687%206,-6%20l%200,-8.809%20-3,2.968'%20id='path4240'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20338.72,24.637%20-8.892,8.892%20-2.828,0%200,-2.829%208.89,-8.89%20z'%20id='path4242'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20338.697,17.826%204,0%200,4%20-4,0%20z'%20transform='matrix(-0.70698336,-0.70723018,0.70723018,-0.70698336,567.55917,274.78273)'%20id='path4244'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3cg%20id='remove'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%20381,42%2018,0%200,-18%20-18,0%200,18%20z%20m%2014,-16%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z'%20id='path4247'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20395,20%200,-4%20-10,0%200,4%20-6,0%200,2%2022,0%200,-2%20-6,0%20z%20m%20-2,0%20-6,0%200,-2%206,0%200,2%20z'%20id='path4249'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3c/g%3e%3cg%20id='disabled'%20transform='translate(120,0)'%20style='fill:%23bbbbbb'%3e%3cuse%20xlink:href='%23edit'%20id='edit-disabled'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%20/%3e%3cuse%20xlink:href='%23remove'%20id='remove-disabled'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%20/%3e%3c/g%3e%3cpath%20style='fill:none;stroke:%23464646;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='circle-3'%20d='m%20581.65725,30%20c%200,6.078%20-4.926,11%20-11,11%20-6.074,0%20-11,-4.922%20-11,-11%200,-6.074%204.926,-11%2011,-11%206.074,0%2011,4.926%2011,11%20z'%20inkscape:connector-curvature='0'%20/%3e%3c/svg%3e");background-repeat:no-repeat;background-size:300px 30px;background-clip:padding-box}.leaflet-retina .leaflet-draw-toolbar a{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAA8CAYAAAC6nMS5AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAA16SURBVHic7d1/jBxneQfw7zNzvotdn+9sVQkxoRKoammBqqpbk6uT5mLfvHPn42yn1VFRVCEhoFH5IYpoSaUCKi1NcGkcfrbCVRFKEwG2aHLn83pmLvY2CTqT1AmCOBE0EOT4B0nBPw/snb2dp3/sLr6s77i923dud/a+H8ny7tzMo8f3eud99p133gGIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiFYGaXYCRETUPMYYrWe/MAzZX2QQ27d5OpqdABFROxgZGVlz5cqVrzuOc18QBJPNzofsYvvSYrVcgTVftZ2l6npgYODXHMc5oKoHHcfZHQTB2WbnRETpGRkZWVMoFA6IyO2qutX3/R1Z64TnO8fWOwLSzti+mSKDg4M3l0qlnSJyG4CbAFwP4ByAlwE8paoPX3fddcH4+PjP00yk5QqsrDPGvAZAHsBrReRNqvpeY8x/iMg9QRCcaXJ6ZIHv+xtUdReAHQBej/IHGABOAnhORMY6OjoempiYONe0JC3zPM84jjOqqrfi6r/3RQCPAdgXhmHUvOyaa3R01L1w4cJBALdVNq1W1THP87woir7ZzNyocWzf7PA8b4uI7E6S5A9Frqknb6j8eZOIvKNQKPzU9/1/dhznvlwuV0gjn5YbFapW09Vqu/Z9K9u2bdsNruvmUe50axUAfMV13X/I5XInlzcze2x/28lCu1b19fWt7u7u/hCAvwGwboHdL6jq7unp6T1TU1OXlyG9VAwODv5mkiR7Ady6wK6Plkqldz/yyCPfX468bBkaGuqamZm5E8DbReQNANYscMiLIrI1CILnZ280xrwHwL+hck4VkacBDLTS6HVaIxWt/Blm+z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Wh+OI7jh+dYsDDTfN/frKrjAKpPmv9pkiS7JicnH29mXku1devWV3d0dBxAuRNeMhF5ulgsjqRxgk7DfOfqxWr1czvbtzGt3r5zGRwc7FPV3ap6y0L7ishPAHx63bp1e/bt2xenkQ8LLEuMMZtE5JCqfhfAMwCeSZLkO2vWrDk+NjbGyZHUFjzP2yginwcAVX1fVi99Vo2OjnaeP3/+3SLydgBvBNBd56GXAHxXVR/s7e3dm9YJOg0rqQNm+y5dFtp3HmKM2QxgF8qr9b8GwA0AzgH4MYBjIjJ28eLFkFeOiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIhWgv8Hnffz4dmwY9cAAAAASUVORK5CYII=);background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20viewBox='0%200%20600%2060'%20height='60'%20width='600'%20id='svg4225'%20version='1.1'%20inkscape:version='0.91%20r13725'%20sodipodi:docname='spritesheet.svg'%20inkscape:export-filename='/home/fpuga/development/upstream/icarto.Leaflet.draw/src/images/spritesheet-2x.png'%20inkscape:export-xdpi='90'%20inkscape:export-ydpi='90'%3e%3cmetadata%20id='metadata4258'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs4256'%20/%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1920'%20inkscape:window-height='1056'%20id='namedview4254'%20showgrid='false'%20inkscape:zoom='1.3101852'%20inkscape:cx='237.56928'%20inkscape:cy='7.2419621'%20inkscape:window-x='1920'%20inkscape:window-y='24'%20inkscape:window-maximized='1'%20inkscape:current-layer='svg4225'%20/%3e%3cg%20id='enabled'%20style='fill:%23464646;fill-opacity:1'%3e%3cg%20id='polyline'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%2018,36%200,6%206,0%200,-6%20-6,0%20z%20m%204,4%20-2,0%200,-2%202,0%200,2%20z'%20id='path4229'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%2036,18%200,6%206,0%200,-6%20-6,0%20z%20m%204,4%20-2,0%200,-2%202,0%200,2%20z'%20id='path4231'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%2023.142,39.145%20-2.285,-2.29%2016,-15.998%202.285,2.285%20z'%20id='path4233'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3cpath%20id='polygon'%20d='M%20100,24.565%2097.904,39.395%2083.07,42%2076,28.773%2086.463,18%20Z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='rectangle'%20d='m%20140,20%2020,0%200,20%20-20,0%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='circle'%20d='m%20221,30%20c%200,6.078%20-4.926,11%20-11,11%20-6.074,0%20-11,-4.922%20-11,-11%200,-6.074%204.926,-11%2011,-11%206.074,0%2011,4.926%2011,11%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='marker'%20d='m%20270,19%20c%20-4.971,0%20-9,4.029%20-9,9%200,4.971%205.001,12%209,14%204.001,-2%209,-9.029%209,-14%200,-4.971%20-4.029,-9%20-9,-9%20z%20m%200,12.5%20c%20-2.484,0%20-4.5,-2.014%20-4.5,-4.5%200,-2.484%202.016,-4.5%204.5,-4.5%202.485,0%204.5,2.016%204.5,4.5%200,2.486%20-2.015,4.5%20-4.5,4.5%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cg%20id='edit'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%20337,30.156%200,0.407%200,5.604%20c%200,1.658%20-1.344,3%20-3,3%20l%20-10,0%20c%20-1.655,0%20-3,-1.342%20-3,-3%20l%200,-10%20c%200,-1.657%201.345,-3%203,-3%20l%206.345,0%203.19,-3.17%20-9.535,0%20c%20-3.313,0%20-6,2.687%20-6,6%20l%200,10%20c%200,3.313%202.687,6%206,6%20l%2010,0%20c%203.314,0%206,-2.687%206,-6%20l%200,-8.809%20-3,2.968'%20id='path4240'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20338.72,24.637%20-8.892,8.892%20-2.828,0%200,-2.829%208.89,-8.89%20z'%20id='path4242'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20338.697,17.826%204,0%200,4%20-4,0%20z'%20transform='matrix(-0.70698336,-0.70723018,0.70723018,-0.70698336,567.55917,274.78273)'%20id='path4244'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3cg%20id='remove'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%20381,42%2018,0%200,-18%20-18,0%200,18%20z%20m%2014,-16%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z'%20id='path4247'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20395,20%200,-4%20-10,0%200,4%20-6,0%200,2%2022,0%200,-2%20-6,0%20z%20m%20-2,0%20-6,0%200,-2%206,0%200,2%20z'%20id='path4249'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3c/g%3e%3cg%20id='disabled'%20transform='translate(120,0)'%20style='fill:%23bbbbbb'%3e%3cuse%20xlink:href='%23edit'%20id='edit-disabled'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%20/%3e%3cuse%20xlink:href='%23remove'%20id='remove-disabled'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%20/%3e%3c/g%3e%3cpath%20style='fill:none;stroke:%23464646;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='circle-3'%20d='m%20581.65725,30%20c%200,6.078%20-4.926,11%20-11,11%20-6.074,0%20-11,-4.922%20-11,-11%200,-6.074%204.926,-11%2011,-11%206.074,0%2011,4.926%2011,11%20z'%20inkscape:connector-curvature='0'%20/%3e%3c/svg%3e")}.leaflet-draw a{display:block;text-align:center;text-decoration:none}.leaflet-draw a .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.leaflet-draw-actions{display:none;list-style:none;margin:0;padding:0;position:absolute;left:26px;top:0;white-space:nowrap}.leaflet-touch .leaflet-draw-actions{left:32px}.leaflet-right .leaflet-draw-actions{right:26px;left:auto}.leaflet-touch .leaflet-right .leaflet-draw-actions{right:32px;left:auto}.leaflet-draw-actions li{display:inline-block}.leaflet-draw-actions li:first-child a{border-left:0}.leaflet-draw-actions li:last-child a{-webkit-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.leaflet-right .leaflet-draw-actions li:last-child a{-webkit-border-radius:0;border-radius:0}.leaflet-right .leaflet-draw-actions li:first-child a{-webkit-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.leaflet-draw-actions a{background-color:#919187;border-left:1px solid #AAA;color:#fff;font:11px/19px Helvetica Neue,Arial,Helvetica,sans-serif;line-height:28px;text-decoration:none;padding-left:10px;padding-right:10px;height:28px}.leaflet-touch .leaflet-draw-actions a{font-size:12px;line-height:30px;height:30px}.leaflet-draw-actions-bottom{margin-top:0}.leaflet-draw-actions-top{margin-top:1px}.leaflet-draw-actions-top a,.leaflet-draw-actions-bottom a{height:27px;line-height:27px}.leaflet-draw-actions a:hover{background-color:#a0a098}.leaflet-draw-actions-top.leaflet-draw-actions-bottom a{height:26px;line-height:26px}.leaflet-draw-toolbar .leaflet-draw-draw-polyline{background-position:-2px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polyline{background-position:0 -1px}.leaflet-draw-toolbar .leaflet-draw-draw-polygon{background-position:-31px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polygon{background-position:-29px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-rectangle{background-position:-62px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-rectangle{background-position:-60px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-circle{background-position:-92px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circle{background-position:-90px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-marker{background-position:-122px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-marker{background-position:-120px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-circlemarker{background-position:-273px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circlemarker{background-position:-271px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-edit{background-position:-152px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit{background-position:-150px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-remove{background-position:-182px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove{background-position:-180px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled{background-position:-212px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled{background-position:-210px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled{background-position:-242px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled{background-position:-240px -2px}.leaflet-mouse-marker{background-color:#fff;cursor:crosshair}.leaflet-draw-tooltip{background:#363636;background:#00000080;border:1px solid transparent;-webkit-border-radius:4px;border-radius:4px;color:#fff;font:12px/18px Helvetica Neue,Arial,Helvetica,sans-serif;margin-left:20px;margin-top:-21px;padding:4px 8px;position:absolute;visibility:hidden;white-space:nowrap;z-index:6}.leaflet-draw-tooltip:before{border-right:6px solid black;border-right-color:#00000080;border-top:6px solid transparent;border-bottom:6px solid transparent;content:"";position:absolute;top:7px;left:-7px}.leaflet-error-draw-tooltip{background-color:#f2dede;border:1px solid #e6b6bd;color:#b94a48}.leaflet-error-draw-tooltip:before{border-right-color:#e6b6bd}.leaflet-draw-tooltip-single{margin-top:-12px}.leaflet-draw-tooltip-subtext{color:#f8d5e4}.leaflet-draw-guide-dash{font-size:1%;opacity:.6;position:absolute;width:5px;height:5px}.leaflet-edit-marker-selected{background-color:#fe57a11a;border:4px dashed rgba(254,87,161,.6);-webkit-border-radius:4px;border-radius:4px;box-sizing:content-box}.leaflet-edit-move{cursor:move}.leaflet-edit-resize{cursor:pointer}.leaflet-oldie .leaflet-draw-toolbar{border:1px solid #999}`, Ye = ".leaflet-ruler{height:35px;width:35px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAQAAABKfvVzAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfhBQoMHg6McuYvAAABwklEQVQ4y43TP0jUYRgH8M/daQpqdujhnwShGiwyipCIoIgWxyIwrqEhnCQoGqKhpoYMg1qCQjg8TC2JCtSkjCgaKisIhyQUwpJssD9KZWRZg6d450/yGV54n/fzfd53eUOCaoNa5QpNGNPr9cKjUAatdsB++co0G1XiiHd+uqnTq8VzI874o9s2Ic1iiEpii9tmnJOdfkOldt/dU+HYolHnjdmpRNzbuVaNL86m4sXqNOrz3kMXHFKYMqd8VREGBToMifqLgwY1yNZirya5knaBqH16fJjNJiWEFSlxy4g980+pMuZkir/UJjLbrvNRPnINaLUygK/yQpuImHp47LOjuKJPOJA/1y4iZsAlyozLs8IO42L/4QlhGrSCy5oCeKH+dM59vVbL9sn6AP5MRzpnVKtN1viRxit1WRvEmVKFrQbTpoddNR3E+aYKuw1lPOapa0GcEf22KzOtejmcG1rkYdjEAn59KU5cDzjt+HI4BSZtVJTazfIsMQOmFAusLr/E53lniickJYIDNcaUL+JhMZPWBUdOeCCaweGOw5k0lFrv2uyRuBxPlLpoBtTK0p3mh+f+dKl6jX6LapRj6XrzD+1bmkFA/dTVAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE3LTA1LTEwVDEyOjMwOjE0KzAyOjAwUNH5TAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNy0wNS0xMFQxMjozMDoxNCswMjowMCGMQfAAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC);background-repeat:no-repeat;background-position:center}.leaflet-ruler:hover{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAACmAAAApgHdff84AAAAGXRFWHRTb2Z0d2F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7+/v7Td3FlAAABgklEQVQoU2NggAMRJU1DTWURBlQgqhWUND11Tfr05GBdMYQws8a07j2XVx2/cnLl5T0T5+ixQsX5/RrWr70CA+s2NPoLgMUlciddvnLl3PbslMysmi2ngXKTc/iA4uwRC1dfudRT76UtJy5lMHvHlSsni82ZgBLWbZdOHCuPlARpForvBYszA9ky1WeunC8y5YCI9125cqrEnJlbnoHBZ/6mK+0eTAjxUgtmbl99Bt6Ksxd2pXGDxRPg4kZMDIqxV6406cDFT8PEGRwnHLlYJQwSTwSJ51tCxRmiVuw7VAsRP7zkIEKcofnAlb0hEPWXls9AiDNUHriyMxwoPgVoToEVQpwhdNHuY/2imOIMZq1nr2QUgsVtkMUZZOOuXOmYiinOwF63/8QVsDgLd0wnFwMCOM3dBhK3ZeGOXjzLHklCIu8oRDxs8eaNXYJIMuplJ0HigYs3b906UwFJgtGzxY6FLWDe0mXLli3wVoEAaZAMjxoLA6eDu5urq4uziTEEqAIAvamx163e5EoAAAAASUVORK5CYII=)}.leaflet-ruler-clicked{height:35px;width:35px;background-repeat:no-repeat;background-position:center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAACmAAAApgHdff84AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAn9QTFRF////AAAAAAAAAAAAAAAAAAAzABcXABQUABIkDhwrAA0aAAwYABUgABQfABIbABAZAA8fABUcABMaABMfABIeABEcABAbABQeABMdABIdABEbABIbABIbABEdABEcABIcBxsoABEdABIdABIdABEcABMbABMdFBwgERofAhIbEhsfAhIdBxUeEhsgEBofAhMbAhMdBRMdAhIbAhIdAhMdCRceARIcDBgfDBgfDBcfDBcfFhwgDBceDBceCxceFCs5HTdGAxMcDxofGTFAHDRDHDVDHDVEHTZFDRkfEBofERogCh0oERsgARIcEhsfEhsgCh4pDCEsDRkfDRkfEBofBhQdDSMvDRgfD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q1nr2QUgsVtkMUZZOOuXOmYiinOwF63/8QVsDgLd0wnFwMCOM3dBhK3ZeGOXjzLHklCIu8oRDxs8eaNXYJIMuplJ0HigYs3b906UwFJgtGzxY6FLWDe0mXLli3wVoEAaZAMjxoLA6eDu5urq4uziTEEqAIAvamx163e5EoAAAAASUVORK5CYII=);border-color:#7fff00!important}.leaflet-bar{background-color:#fff}.leaflet-control{cursor:pointer}.result-tooltip{background-color:#fff;border-width:medium;border-color:#de0000;font-size:smaller}.moving-tooltip{background-color:#ffffffb3;background-clip:padding-box;opacity:.5;border:dotted;border-color:red;font-size:smaller}.plus-length{padding-left:45px}", qe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk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uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=", Qe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC", We = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='430'%20height='430'%20style='width:100%25;height:100%25;transform:translate3d(0,0,0);content-visibility:visible'%20viewBox='0%200%20430%20430'%3e%3cdefs%3e%3cclipPath%20id='i'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='s'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='e'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='p'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='f'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='m'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='g'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='j'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='h'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cfilter%20id='t'%20width='300%25'%20height='300%25'%20x='-100%25'%20y='-100%25'%3e%3cfeGaussianBlur%20result='filter_result_0'/%3e%3c/filter%3e%3cfilter%20id='r'%20width='300%25'%20height='300%25'%20x='-100%25'%20y='-100%25'%3e%3cfeGaussianBlur%20result='filter_result_0'%20stdDeviation='52.5%2052.5'/%3e%3c/filter%3e%3cfilter%20id='n'%20width='300%25'%20height='300%25'%20x='-100%25'%20y='-100%25'%3e%3cfeGaussianBlur%20result='filter_result_0'/%3e%3c/filter%3e%3cfilter%20id='k'%20width='300%25'%20height='300%25'%20x='-100%25'%20y='-100%25'%3e%3cfeGaussianBlur%20result='filter_result_0'/%3e%3c/filter%3e%3cmask%20id='u'%20mask-type='alpha'%3e%3cuse%20xmlns:ns1='http://www.w3.org/1999/xlink'%20ns1:href='%23a'/%3e%3c/mask%3e%3cmask%20id='q'%20mask-type='alpha'%3e%3cuse%20xmlns:ns2='http://www.w3.org/1999/xlink'%20ns2:href='%23b'/%3e%3c/mask%3e%3cmask%20id='o'%20mask-type='alpha'%3e%3cuse%20xmlns:ns3='http://www.w3.org/1999/xlink'%20ns3:href='%23c'/%3e%3c/mask%3e%3cmask%20id='l'%20mask-type='alpha'%3e%3cuse%20xmlns:ns4='http://www.w3.org/1999/xlink'%20ns4:href='%23d'/%3e%3c/mask%3e%3cg%20id='a'%20fill-opacity='0'%20stroke-linecap='round'%20stroke-linejoin='round'%20clip-path='url(%23e)'%20style='display:none'%3e%3cpath%20class='secondary'%20style='display:none'/%3e%3cpath%20class='primary'%20style='display:none'/%3e%3c/g%3e%3cg%20id='b'%20fill-opacity='0'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='12'%20clip-path='url(%23f)'%20style='display:block'%3e%3cpath%20stroke='%2308A88A'%20d='M44.446-66.518a79.998%2079.998%200%200%200-101.012%209.952A79.998%2079.998%200%201%200%2056.569%2056.569%2080.005%2080.005%200%200%200%2073.91-30.615a80.001%2080.001%200%200%200-29.464-35.903z'%20class='secondary'%20style='display:block'%20transform='translate(215%20214)'/%3e%3cpath%20stroke='%23121331'%20d='m141.409%2025.241%208.727%205.041s0%200%200%200a22.3%2022.3%200%200%201%2010.411%2013.542%2022.32%2022.32%200%200%201-2.221%2016.937l-26.515%2045.924a22.325%2022.325%200%200%201-30.497%208.172l-8.754-5.059a143.414%20143.414%200%200%201-43.718%2025.286v10.108a22.302%2022.302%200%200%201-13.778%2020.612%2022.303%2022.303%200%200%201-8.539%201.696h-53.029a22.303%2022.303%200%200%201-15.779-6.531%2022.302%2022.302%200%200%201-6.537-15.777v-10.073a143.416%20143.416%200%200%201-43.719-25.285l-8.754%205.059a22.325%2022.325%200%200%201-30.497-8.172l-26.523-45.924a22.315%2022.315%200%200%201-2.238-16.943A22.31%2022.31%200%200%201-150.142%2030.3l8.727-5.041a145.097%20145.097%200%200%201%200-50.518l-8.727-5.041a22.294%2022.294%200%200%201-10.409-13.554%2022.306%2022.306%200%200%201%202.238-16.943l26.514-45.924a22.325%2022.325%200%200%201%2030.497-8.172l8.754%205.059a143.416%20143.416%200%200%201%2043.719-25.285v-10.073a22.302%2022.302%200%200%201%206.537-15.777%2022.3%2022.3%200%200%201%2015.779-6.531h53.02a22.307%2022.307%200%200%201%2022.317%2022.308v10.037a143.41%20143.41%200%200%201%2043.718%2025.285l8.754-5.059a22.325%2022.325%200%200%201%2030.497%208.172l26.515%2045.942a22.313%2022.313%200%200%201-1.618%2024.757%2022.294%2022.294%200%200%201-6.554%205.74l-8.727%205.041a145.097%20145.097%200%200%201%200%2050.518z'%20class='primary'%20style='display:block'%20transform='rotate(-120%20169.576%2045.095)'/%3e%3c/g%3e%3cg%20id='c'%20fill-opacity='0'%20stroke-linecap='round'%20stroke-linejoin='round'%20clip-path='url(%23g)'%20style='display:none'%3e%3cpath%20class='secondary'%20style='display:none'/%3e%3cpath%20class='primary'%20style='display:none'/%3e%3c/g%3e%3cg%20id='d'%20fill-opacity='0'%20stroke-linecap='round'%20stroke-linejoin='round'%20clip-path='url(%23h)'%20style='display:none'%3e%3cpath%20class='secondary'%20style='display:none'/%3e%3cpath%20class='primary'%20style='display:none'/%3e%3c/g%3e%3c/defs%3e%3cg%20clip-path='url(%23i)'%3e%3cg%20clip-path='url(%23j)'%20filter='url(%23k)'%20mask='url(%23l)'%20style='display:none'%3e%3cg%20class='design'%3e%3cpath%20class='primary'/%3e%3c/g%3e%3cg%20class='design'%3e%3cpath%20class='secondary'/%3e%3c/g%3e%3c/g%3e%3cg%20clip-path='url(%23m)'%20filter='url(%23n)'%20mask='url(%23o)'%20style='display:none'%3e%3cg%20class='design'%3e%3cpath%20class='primary'/%3e%3c/g%3e%3cg%20class='design'%3e%3cpath%20class='secondary'/%3e%3c/g%3e%3c/g%3e%3cg%20clip-path='url(%23p)'%20mask='url(%23q)'%20style='display:block'%3e%3cg%20filter='url(%23r)'%20transform='rotate(-94%20238.762%20-16.565)%20scale(2.4)'%3e%3cg%20class='design'%3e%3cpath%20fill='%234BE1EC'%20d='M0-250c137.975%200%20250%20112.025%20250%20250S137.975%20250%200%20250-250%20137.975-250%200-137.975-250%200-250z'%20class='primary'/%3e%3c/g%3e%3cg%20class='design'%3e%3cpath%20fill='%23CB5EEE'%20d='M113.242-295.384c97.478%200%20176.5%2079.022%20176.5%20176.5s-79.022%20176.5-176.5%20176.5c-43.948%200-74.396-34.057-105.29-60.631-37.631-32.369-71.21-62.338-71.21-115.869%200-97.478%2079.022-176.5%20176.5-176.5z'%20class='secondary'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20clip-path='url(%23s)'%20filter='url(%23t)'%20mask='url(%23u)'%20style='display:none'%3e%3cg%20class='design'%3e%3cpath%20class='primary'/%3e%3c/g%3e%3cg%20class='design'%3e%3cpath%20class='secondary'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Le = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%20-1.67%2047.336%2047.336'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group_42'%20data-name='Group%2042'%20transform='translate(-172.455%20-364.36)'%3e%3cpath%20id='Rectangle_17'%20data-name='Rectangle%2017'%20d='M4.351,0H40.984a4.351,4.351,0,0,1,4.351,4.351V22.117a1,1,0,0,1-1,1H1a1,1,0,0,1-1-1V4.351A4.351,4.351,0,0,1,4.351,0Z'%20transform='translate(173.455%20384.243)'%20fill='none'%20stroke='%23000000'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3cpath%20id='Path_90'%20data-name='Path%2090'%20d='M218.79,390.249a3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.778,3.778,0,0,1-3.777-3.778'%20fill='none'%20stroke='%23000000'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3cg%20id='Group_41'%20data-name='Group%2041'%3e%3cpath%20id='Rectangle_18'%20data-name='Rectangle%2018'%20d='M4.351,0H26.473a4.351,4.351,0,0,1,4.351,4.351V17.883a1,1,0,0,1-1,1H1a1,1,0,0,1-1-1V4.351A4.351,4.351,0,0,1,4.351,0Z'%20transform='translate(180.71%20365.36)'%20fill='none'%20stroke='%23000000'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3cpath%20id='Path_91'%20data-name='Path%2091'%20d='M211.234,370.794a3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778'%20fill='none'%20stroke='%23000000'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Xe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAQAAABKfvVzAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfhBQoMHg6McuYvAAABwklEQVQ4y43TP0jUYRgH8M/daQpqdujhnwShGiwyipCIoIgWxyIwrqEhnCQoGqKhpoYMg1qCQjg8TC2JCtSkjCgaKisIhyQUwpJssD9KZWRZg6d450/yGV54n/fzfd53eUOCaoNa5QpNGNPr9cKjUAatdsB++co0G1XiiHd+uqnTq8VzI874o9s2Ic1iiEpii9tmnJOdfkOldt/dU+HYolHnjdmpRNzbuVaNL86m4sXqNOrz3kMXHFKYMqd8VREGBToMifqLgwY1yNZirya5knaBqH16fJjNJiWEFSlxy4g980+pMuZkir/UJjLbrvNRPnINaLUygK/yQpuImHp47LOjuKJPOJA/1y4iZsAlyozLs8IO42L/4QlhGrSCy5oCeKH+dM59vVbL9sn6AP5MRzpnVKtN1viRxit1WRvEmVKFrQbTpoddNR3E+aYKuw1lPOapa0GcEf22KzOtejmcG1rkYdjEAn59KU5cDzjt+HI4BSZtVJTazfIsMQOmFAusLr/E53lniickJYIDNcaUL+JhMZPWBUdOeCCaweGOw5k0lFrv2uyRuBxPlLpoBtTK0p3mh+f+dKl6jX6LapRj6XrzD+1bmkFA/dTVAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE3LTA1LTEwVDEyOjMwOjE0KzAyOjAwUNH5TAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNy0wNS0xMFQxMjozMDoxNCswMjowMCGMQfAAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC", $e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAACmAAAApgHdff84AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAn9QTFRF////AAAAAAAAAAAAAAAAAAAzABcXABQUABIkDhwrAA0aAAwYABUgABQfABIbABAZAA8fABUcABMaABMfABIeABEcABAbABQeABMdABIdABEbABIbABIbABEdABEcABIcBxsoABEdABIdABIdABEcABMbABMdFBwgERofAhIbEhsfAhIdBxUeEhsgEBofAhMbAhMdBRMdAhIbAhIdAhMdCRceARIcDBgfDBgfDBcfDBcfFhwgDBceDBceCxceFCs5HTdGAxMcDxofGTFAHDRDHDV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xRmiVuw7VAsRP7zkIEKcofnAlb0hEPWXls9AiDNUHriyMxwoPgVoToEVQpwhdNHuY/2imOIMZq1nr2QUgsVtkMUZZOOuXOmYiinOwF63/8QVsDgLd0wnFwMCOM3dBhK3ZeGOXjzLHklCIu8oRDxs8eaNXYJIMuplJ0HigYs3b906UwFJgtGzxY6FLWDe0mXLli3wVoEAaZAMjxoLA6eDu5urq4uziTEEqAIAvamx163e5EoAAAAASUVORK5CYII=";
|
|
63
|
+
function et(a) {
|
|
53
64
|
const t = "data-leaflet-styles";
|
|
54
|
-
if (
|
|
65
|
+
if (a.querySelector(`style[${t}]`)) return;
|
|
55
66
|
const e = document.createElement("style");
|
|
56
67
|
e.setAttribute(t, "true"), e.textContent = `
|
|
57
68
|
/* --- Leaflet core CSS --- */
|
|
58
|
-
${
|
|
69
|
+
${Ze}
|
|
59
70
|
|
|
60
71
|
/* --- Leaflet.draw CSS --- */
|
|
61
|
-
${
|
|
72
|
+
${je}
|
|
62
73
|
|
|
63
74
|
/* --- Leaflet.ruler CSS --- */
|
|
64
|
-
${
|
|
75
|
+
${Ye}
|
|
65
76
|
|
|
66
77
|
/* --- Fix Leaflet.ruler icons (broken relative paths in inlined CSS) --- */
|
|
67
78
|
.leaflet-ruler {
|
|
68
79
|
width: 30px !important; /* Match Leaflet Draw default size approx */
|
|
69
80
|
height: 30px !important;
|
|
70
81
|
background-color: #fff; /* Ensure visibility */
|
|
71
|
-
background-image: url(${
|
|
82
|
+
background-image: url(${Xe}) !important;
|
|
72
83
|
background-size: 16px 16px; /* Scale icon to fit */
|
|
73
84
|
}
|
|
74
85
|
.leaflet-ruler:hover,
|
|
75
86
|
.leaflet-ruler-clicked {
|
|
76
|
-
background-image: url(${
|
|
87
|
+
background-image: url(${$e}) !important;
|
|
77
88
|
}
|
|
78
89
|
|
|
79
90
|
/* --- Custom overrides for marker/handle sizes --- */
|
|
@@ -103,7 +114,7 @@ ${Je}
|
|
|
103
114
|
padding: 0;
|
|
104
115
|
border-radius: 4px;
|
|
105
116
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
|
|
106
|
-
background-image: url(${
|
|
117
|
+
background-image: url(${We});
|
|
107
118
|
transition: background-color 0.15s ease, box-shadow 0.15s ease;
|
|
108
119
|
}
|
|
109
120
|
.leaflet-ruler-settings-button:hover {
|
|
@@ -187,7 +198,7 @@ ${Je}
|
|
|
187
198
|
|
|
188
199
|
/* --- Layer Cake draw tool icon + manager UI --- */
|
|
189
200
|
.leaflet-draw-toolbar a.leaflet-draw-draw-cake {
|
|
190
|
-
background-image: url(${
|
|
201
|
+
background-image: url(${Le}) !important;
|
|
191
202
|
background-size: 18px 18px !important;
|
|
192
203
|
background-position: 50% 50% !important;
|
|
193
204
|
background-repeat: no-repeat !important;
|
|
@@ -233,6 +244,54 @@ ${Je}
|
|
|
233
244
|
border-right-color: #8A2BE2 !important;
|
|
234
245
|
}
|
|
235
246
|
|
|
247
|
+
/* --- Managed toolbar controls --- */
|
|
248
|
+
[data-geokit-map-container][data-geokit-default-toolbar-hidden] .leaflet-draw-toolbar,
|
|
249
|
+
[data-geokit-map-container][data-geokit-default-toolbar-hidden] .leaflet-ruler,
|
|
250
|
+
[data-geokit-map-container][data-geokit-default-toolbar-hidden] .leaflet-ruler-settings-control {
|
|
251
|
+
display: none !important;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.leaflet-geokit-toolbar-group {
|
|
255
|
+
display: flex !important;
|
|
256
|
+
flex-direction: column !important;
|
|
257
|
+
gap: 6px !important;
|
|
258
|
+
padding: 6px !important;
|
|
259
|
+
border: 1px solid rgba(15, 23, 18, 0.16) !important;
|
|
260
|
+
border-radius: 16px !important;
|
|
261
|
+
background: rgba(255, 255, 255, 0.94) !important;
|
|
262
|
+
backdrop-filter: blur(10px) !important;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.leaflet-geokit-toolbar-button {
|
|
266
|
+
width: 44px !important;
|
|
267
|
+
height: 44px !important;
|
|
268
|
+
border: 1px solid rgba(15, 23, 18, 0.18) !important;
|
|
269
|
+
border-radius: 12px !important;
|
|
270
|
+
background: #fff !important;
|
|
271
|
+
color: #1f5134 !important;
|
|
272
|
+
box-shadow: 0 10px 24px rgba(15, 23, 18, 0.16) !important;
|
|
273
|
+
transition:
|
|
274
|
+
background 160ms ease,
|
|
275
|
+
border-color 160ms ease,
|
|
276
|
+
box-shadow 160ms ease,
|
|
277
|
+
transform 160ms ease !important;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.leaflet-geokit-toolbar-button:hover,
|
|
281
|
+
.leaflet-geokit-toolbar-button:focus-visible {
|
|
282
|
+
background: #f0f8ed !important;
|
|
283
|
+
border-color: #2f8f5f !important;
|
|
284
|
+
box-shadow:
|
|
285
|
+
0 0 0 1px rgba(47, 143, 95, 0.35),
|
|
286
|
+
0 12px 26px rgba(15, 23, 18, 0.18) !important;
|
|
287
|
+
transform: translateY(-1px) !important;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.leaflet-geokit-toolbar-button:focus-visible {
|
|
291
|
+
outline: 2px solid #2f8f5f !important;
|
|
292
|
+
outline-offset: 2px !important;
|
|
293
|
+
}
|
|
294
|
+
|
|
236
295
|
/* --- Move tool mode cursor styles --- */
|
|
237
296
|
.leaflet-draw-move-mode {
|
|
238
297
|
cursor: default !important;
|
|
@@ -245,68 +304,112 @@ ${Je}
|
|
|
245
304
|
.leaflet-draw-move-mode .leaflet-interactive:active {
|
|
246
305
|
cursor: grabbing !important;
|
|
247
306
|
}
|
|
248
|
-
`,
|
|
307
|
+
`, a.appendChild(e);
|
|
249
308
|
}
|
|
250
|
-
function
|
|
309
|
+
function tt(a) {
|
|
251
310
|
const t = "data-leaflet-custom-styles";
|
|
252
|
-
if (
|
|
311
|
+
if (a.querySelector(`style[${t}]`)) return;
|
|
253
312
|
const e = document.createElement("style");
|
|
254
313
|
e.setAttribute(t, "true"), e.textContent = `
|
|
255
314
|
/* Ensure Layer Cake toolbar icon uses project asset instead of draw sprite sheet */
|
|
256
315
|
.leaflet-draw-toolbar a.leaflet-draw-draw-cake {
|
|
257
|
-
background-image: url(${
|
|
316
|
+
background-image: url(${Le}) !important;
|
|
258
317
|
background-size: 18px 18px !important;
|
|
259
318
|
background-position: 50% 50% !important;
|
|
260
319
|
background-repeat: no-repeat !important;
|
|
261
320
|
background-color: #fff;
|
|
262
321
|
}
|
|
263
|
-
`,
|
|
322
|
+
`, a.appendChild(e);
|
|
264
323
|
}
|
|
265
|
-
function
|
|
266
|
-
var
|
|
267
|
-
(t = (
|
|
268
|
-
iconRetinaUrl:
|
|
269
|
-
iconUrl:
|
|
270
|
-
shadowUrl:
|
|
324
|
+
function rt() {
|
|
325
|
+
var a, t;
|
|
326
|
+
(t = (a = x.Icon.Default).mergeOptions) == null || t.call(a, {
|
|
327
|
+
iconRetinaUrl: qe,
|
|
328
|
+
iconUrl: Ke,
|
|
329
|
+
shadowUrl: Qe
|
|
271
330
|
});
|
|
272
331
|
}
|
|
273
|
-
function
|
|
274
|
-
const { root: t, skipStyles: e } =
|
|
332
|
+
function ot(a) {
|
|
333
|
+
const { root: t, skipStyles: e } = a;
|
|
275
334
|
try {
|
|
276
|
-
e || (
|
|
335
|
+
e || (et(t), rt()), tt(t);
|
|
277
336
|
} catch {
|
|
278
337
|
}
|
|
279
338
|
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
const
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
339
|
+
const M = [];
|
|
340
|
+
for (let a = 0; a < 256; ++a)
|
|
341
|
+
M.push((a + 256).toString(16).slice(1));
|
|
342
|
+
function at(a, t = 0) {
|
|
343
|
+
return (M[a[t + 0]] + M[a[t + 1]] + M[a[t + 2]] + M[a[t + 3]] + "-" + M[a[t + 4]] + M[a[t + 5]] + "-" + M[a[t + 6]] + M[a[t + 7]] + "-" + M[a[t + 8]] + M[a[t + 9]] + "-" + M[a[t + 10]] + M[a[t + 11]] + M[a[t + 12]] + M[a[t + 13]] + M[a[t + 14]] + M[a[t + 15]]).toLowerCase();
|
|
344
|
+
}
|
|
345
|
+
let K;
|
|
346
|
+
const it = new Uint8Array(16);
|
|
347
|
+
function nt() {
|
|
348
|
+
if (!K) {
|
|
349
|
+
if (typeof crypto == "undefined" || !crypto.getRandomValues)
|
|
350
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
351
|
+
K = crypto.getRandomValues.bind(crypto);
|
|
352
|
+
}
|
|
353
|
+
return K(it);
|
|
354
|
+
}
|
|
355
|
+
const st = typeof crypto != "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ge = { randomUUID: st };
|
|
356
|
+
function de(a, t, e) {
|
|
357
|
+
var o, i, n;
|
|
358
|
+
if (ge.randomUUID && !a)
|
|
359
|
+
return ge.randomUUID();
|
|
360
|
+
a = a || {};
|
|
361
|
+
const r = (n = (i = a.random) != null ? i : (o = a.rng) == null ? void 0 : o.call(a)) != null ? n : nt();
|
|
362
|
+
if (r.length < 16)
|
|
363
|
+
throw new Error("Random bytes length must be >= 16");
|
|
364
|
+
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, at(r);
|
|
365
|
+
}
|
|
366
|
+
function J(a) {
|
|
304
367
|
var e, r;
|
|
305
|
-
const t = (r =
|
|
368
|
+
const t = (r = a.id) != null ? r : (e = a.properties) == null ? void 0 : e.id;
|
|
306
369
|
if (t != null)
|
|
307
370
|
return String(t);
|
|
308
371
|
}
|
|
309
|
-
|
|
372
|
+
const lt = /^(.*)::(\d+)$/;
|
|
373
|
+
function me(a) {
|
|
374
|
+
const t = J(a);
|
|
375
|
+
if (!t) return null;
|
|
376
|
+
const e = lt.exec(t);
|
|
377
|
+
return e ? {
|
|
378
|
+
baseId: e[1],
|
|
379
|
+
childIndex: Number(e[2]),
|
|
380
|
+
feature: a
|
|
381
|
+
} : null;
|
|
382
|
+
}
|
|
383
|
+
function ct(a, t) {
|
|
384
|
+
const e = t && typeof t == "object" ? { ...t } : {};
|
|
385
|
+
return e.id = a, e;
|
|
386
|
+
}
|
|
387
|
+
function dt(a, t) {
|
|
388
|
+
const e = [...t].sort((s, l) => s.childIndex - l.childIndex), r = e[0].feature, o = ct(a, r.properties), i = e.map((s) => s.feature.geometry).filter((s) => s != null);
|
|
389
|
+
let n;
|
|
390
|
+
return i.length === 0 ? n = {
|
|
391
|
+
type: "GeometryCollection",
|
|
392
|
+
geometries: []
|
|
393
|
+
} : i.length === 1 ? n = i[0] : i.every((s) => s.type === "Point") ? n = {
|
|
394
|
+
type: "MultiPoint",
|
|
395
|
+
coordinates: i.map((s) => s.coordinates)
|
|
396
|
+
} : i.every((s) => s.type === "LineString") ? n = {
|
|
397
|
+
type: "MultiLineString",
|
|
398
|
+
coordinates: i.map((s) => s.coordinates)
|
|
399
|
+
} : i.every((s) => s.type === "Polygon") ? n = {
|
|
400
|
+
type: "MultiPolygon",
|
|
401
|
+
coordinates: i.map((s) => s.coordinates)
|
|
402
|
+
} : n = {
|
|
403
|
+
type: "GeometryCollection",
|
|
404
|
+
geometries: i
|
|
405
|
+
}, {
|
|
406
|
+
type: "Feature",
|
|
407
|
+
id: a,
|
|
408
|
+
properties: o,
|
|
409
|
+
geometry: n
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
function ut(a, t) {
|
|
310
413
|
const e = (r) => {
|
|
311
414
|
switch (r.type) {
|
|
312
415
|
case "Point":
|
|
@@ -319,54 +422,54 @@ function at(i, t) {
|
|
|
319
422
|
case "MultiLineString":
|
|
320
423
|
case "Polygon":
|
|
321
424
|
for (const o of r.coordinates)
|
|
322
|
-
for (const
|
|
425
|
+
for (const i of o) t(i);
|
|
323
426
|
break;
|
|
324
427
|
case "MultiPolygon":
|
|
325
428
|
for (const o of r.coordinates)
|
|
326
|
-
for (const
|
|
327
|
-
for (const n of
|
|
429
|
+
for (const i of o)
|
|
430
|
+
for (const n of i) t(n);
|
|
328
431
|
break;
|
|
329
432
|
case "GeometryCollection":
|
|
330
433
|
for (const o of r.geometries) e(o);
|
|
331
434
|
break;
|
|
332
435
|
}
|
|
333
436
|
};
|
|
334
|
-
e(
|
|
437
|
+
e(a);
|
|
335
438
|
}
|
|
336
|
-
function
|
|
337
|
-
const t =
|
|
439
|
+
function ht(a) {
|
|
440
|
+
const t = a.geometry;
|
|
338
441
|
if (!t) return null;
|
|
339
|
-
let e = 1 / 0, r = 1 / 0, o = -1 / 0,
|
|
340
|
-
return
|
|
442
|
+
let e = 1 / 0, r = 1 / 0, o = -1 / 0, i = -1 / 0, n = !1;
|
|
443
|
+
return ut(t, (s) => {
|
|
341
444
|
const [l, c] = s;
|
|
342
|
-
typeof l != "number" || typeof c != "number" || (n = !0, l < e && (e = l), c < r && (r = c), l > o && (o = l), c >
|
|
343
|
-
}), n ? [e, r, o,
|
|
445
|
+
typeof l != "number" || typeof c != "number" || (n = !0, l < e && (e = l), c < r && (r = c), l > o && (o = l), c > i && (i = c));
|
|
446
|
+
}), n ? [e, r, o, i] : null;
|
|
344
447
|
}
|
|
345
|
-
function
|
|
346
|
-
let t = 1 / 0, e = 1 / 0, r = -1 / 0, o = -1 / 0,
|
|
347
|
-
for (const n of
|
|
348
|
-
const s =
|
|
349
|
-
s && (
|
|
448
|
+
function pt(a) {
|
|
449
|
+
let t = 1 / 0, e = 1 / 0, r = -1 / 0, o = -1 / 0, i = !1;
|
|
450
|
+
for (const n of a.features) {
|
|
451
|
+
const s = ht(n);
|
|
452
|
+
s && (i = !0, t = Math.min(t, s[0]), e = Math.min(e, s[1]), r = Math.max(r, s[2]), o = Math.max(o, s[3]));
|
|
350
453
|
}
|
|
351
|
-
return
|
|
454
|
+
return i ? [t, e, r, o] : null;
|
|
352
455
|
}
|
|
353
|
-
function
|
|
354
|
-
const [t, e, r, o] =
|
|
456
|
+
function ft(a) {
|
|
457
|
+
const [t, e, r, o] = a;
|
|
355
458
|
return [
|
|
356
459
|
[e, t],
|
|
357
460
|
[o, r]
|
|
358
461
|
];
|
|
359
462
|
}
|
|
360
|
-
function
|
|
463
|
+
function gt(a) {
|
|
361
464
|
var e;
|
|
362
465
|
const t = [];
|
|
363
|
-
for (const r of
|
|
466
|
+
for (const r of a.features) {
|
|
364
467
|
if (!r || r.type !== "Feature") continue;
|
|
365
|
-
const o = (e = r.properties) != null ? e : {},
|
|
366
|
-
const d = o && typeof o == "object" ? { ...o } : {},
|
|
367
|
-
return
|
|
468
|
+
const o = (e = r.properties) != null ? e : {}, i = J(r), n = (l, c) => {
|
|
469
|
+
const d = o && typeof o == "object" ? { ...o } : {}, u = i !== void 0 ? `${i}::${c}` : void 0;
|
|
470
|
+
return u !== void 0 && (d.id = u), {
|
|
368
471
|
type: "Feature",
|
|
369
|
-
id:
|
|
472
|
+
id: u,
|
|
370
473
|
properties: d,
|
|
371
474
|
geometry: l
|
|
372
475
|
};
|
|
@@ -405,25 +508,52 @@ function he(i) {
|
|
|
405
508
|
}
|
|
406
509
|
return { type: "FeatureCollection", features: t };
|
|
407
510
|
}
|
|
408
|
-
function
|
|
409
|
-
|
|
511
|
+
function mt(a, t = {}) {
|
|
512
|
+
var n;
|
|
513
|
+
if (((n = t.adapter) != null ? n : "editing") !== "source") return a;
|
|
514
|
+
const r = /* @__PURE__ */ new Map();
|
|
515
|
+
for (const s of a.features) {
|
|
516
|
+
const l = me(s);
|
|
517
|
+
if (!l) continue;
|
|
518
|
+
const c = r.get(l.baseId);
|
|
519
|
+
c ? c.push(l) : r.set(l.baseId, [l]);
|
|
520
|
+
}
|
|
521
|
+
if (r.size === 0) return a;
|
|
522
|
+
const o = /* @__PURE__ */ new Set(), i = [];
|
|
523
|
+
for (const s of a.features) {
|
|
524
|
+
const l = me(s);
|
|
525
|
+
if (!l) {
|
|
526
|
+
i.push(s);
|
|
527
|
+
continue;
|
|
528
|
+
}
|
|
529
|
+
o.has(l.baseId) || (o.add(l.baseId), i.push(
|
|
530
|
+
dt(l.baseId, r.get(l.baseId))
|
|
531
|
+
));
|
|
532
|
+
}
|
|
533
|
+
return {
|
|
534
|
+
type: "FeatureCollection",
|
|
535
|
+
features: i
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
function Me(a) {
|
|
539
|
+
return (a == null ? void 0 : a.type) === "Polygon";
|
|
410
540
|
}
|
|
411
|
-
function
|
|
412
|
-
return (
|
|
541
|
+
function Ce(a) {
|
|
542
|
+
return (a == null ? void 0 : a.type) === "MultiPolygon";
|
|
413
543
|
}
|
|
414
|
-
function
|
|
415
|
-
const t =
|
|
416
|
-
return t ?
|
|
544
|
+
function yt(a) {
|
|
545
|
+
const t = a.geometry;
|
|
546
|
+
return t ? Me(t) ? [t.coordinates] : Ce(t) ? t.coordinates : [] : [];
|
|
417
547
|
}
|
|
418
|
-
function
|
|
419
|
-
var o,
|
|
548
|
+
function bt(a, t) {
|
|
549
|
+
var o, i;
|
|
420
550
|
const e = [];
|
|
421
|
-
for (const n of
|
|
422
|
-
const s =
|
|
551
|
+
for (const n of a) {
|
|
552
|
+
const s = yt(n);
|
|
423
553
|
s.length > 0 && e.push(...s);
|
|
424
554
|
}
|
|
425
555
|
if (e.length === 0) return null;
|
|
426
|
-
const r = (
|
|
556
|
+
const r = (i = t != null ? t : (o = a[0]) == null ? void 0 : o.properties) != null ? i : {};
|
|
427
557
|
return e.length === 1 ? {
|
|
428
558
|
type: "Feature",
|
|
429
559
|
properties: { ...r },
|
|
@@ -440,10 +570,10 @@ function dt(i, t) {
|
|
|
440
570
|
}
|
|
441
571
|
};
|
|
442
572
|
}
|
|
443
|
-
class
|
|
444
|
-
constructor(t =
|
|
445
|
-
|
|
446
|
-
|
|
573
|
+
class At {
|
|
574
|
+
constructor(t = V("feature-store", "debug")) {
|
|
575
|
+
h(this, "log");
|
|
576
|
+
h(this, "features");
|
|
447
577
|
this.log = t, this.features = /* @__PURE__ */ new Map();
|
|
448
578
|
}
|
|
449
579
|
size() {
|
|
@@ -459,11 +589,11 @@ class ut {
|
|
|
459
589
|
* Add features to the store; returns the assigned/normalized ids in order.
|
|
460
590
|
*/
|
|
461
591
|
add(t) {
|
|
462
|
-
var
|
|
463
|
-
const e = [], r = (n = (
|
|
592
|
+
var i, n, s, l;
|
|
593
|
+
const e = [], r = (n = (i = performance.now) == null ? void 0 : i.call(performance)) != null ? n : Date.now();
|
|
464
594
|
for (const c of t.features) {
|
|
465
|
-
const d = this.ensureId(c),
|
|
466
|
-
this.features.set(d,
|
|
595
|
+
const d = this.ensureId(c), u = { ...c, id: d };
|
|
596
|
+
this.features.set(d, u), e.push(d);
|
|
467
597
|
}
|
|
468
598
|
const o = ((l = (s = performance.now) == null ? void 0 : s.call(performance)) != null ? l : Date.now()) - r;
|
|
469
599
|
return this.log.debug("add", {
|
|
@@ -512,20 +642,20 @@ class ut {
|
|
|
512
642
|
bounds() {
|
|
513
643
|
const t = this.toFeatureCollection();
|
|
514
644
|
if (t.features.length === 0) return null;
|
|
515
|
-
const e =
|
|
516
|
-
return e ?
|
|
645
|
+
const e = pt(t);
|
|
646
|
+
return e ? ft(e) : null;
|
|
517
647
|
}
|
|
518
648
|
/**
|
|
519
649
|
* Ensure the feature has an id; returns the resolved id.
|
|
520
650
|
*/
|
|
521
651
|
ensureId(t) {
|
|
522
|
-
const e =
|
|
652
|
+
const e = J(t);
|
|
523
653
|
if (e) return String(e);
|
|
524
|
-
const r =
|
|
654
|
+
const r = de();
|
|
525
655
|
return t.id = r, t.properties && typeof t.properties == "object" && (t.properties.id = r), r;
|
|
526
656
|
}
|
|
527
657
|
}
|
|
528
|
-
const
|
|
658
|
+
const Z = {
|
|
529
659
|
polygon: {
|
|
530
660
|
selectors: ["a.leaflet-draw-draw-polygon"],
|
|
531
661
|
dataTool: "polygon"
|
|
@@ -577,111 +707,122 @@ const V = {
|
|
|
577
707
|
layerStyle: {
|
|
578
708
|
selectors: [],
|
|
579
709
|
dataTool: "layer-style"
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
710
|
+
},
|
|
711
|
+
save: {
|
|
712
|
+
selectors: [],
|
|
713
|
+
dataTool: "save"
|
|
714
|
+
}
|
|
715
|
+
}, vt = Object.keys(Z), _e = "leaflet-geokit-tool-button-icon", Ie = ".leaflet-geokit-cake-icon, .leaflet-geokit-move-icon", wt = "[data-geokit-managed-toolbar='true']", xt = "[data-geokit-tool-popover='true']", kt = "[data-geokit-tool][aria-expanded='true']", te = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap();
|
|
716
|
+
function Q(a, t, e = {}) {
|
|
717
|
+
R(a);
|
|
718
|
+
for (const r of vt) {
|
|
719
|
+
const o = Z[r];
|
|
720
|
+
for (const i of Et(a, o.selectors)) {
|
|
721
|
+
i.setAttribute("data-geokit-tool", o.dataTool), Lt(i);
|
|
588
722
|
const n = t == null ? void 0 : t[r];
|
|
589
|
-
n &&
|
|
723
|
+
n && Mt(i, n, r), Te(i, r, {
|
|
590
724
|
source: "leaflet-toolbar",
|
|
591
725
|
activate: !1,
|
|
592
726
|
onTrigger: e.onTrigger
|
|
593
727
|
});
|
|
594
728
|
}
|
|
595
729
|
}
|
|
596
|
-
|
|
730
|
+
Bt(a, t, e);
|
|
597
731
|
}
|
|
598
|
-
function
|
|
732
|
+
function Et(a, t) {
|
|
599
733
|
const e = /* @__PURE__ */ new Set();
|
|
600
734
|
for (const r of t)
|
|
601
|
-
|
|
735
|
+
a.querySelectorAll(r).forEach((o) => {
|
|
602
736
|
e.add(o);
|
|
603
737
|
});
|
|
604
738
|
return [...e];
|
|
605
739
|
}
|
|
606
|
-
function
|
|
607
|
-
const t =
|
|
608
|
-
t && (
|
|
609
|
-
const e =
|
|
610
|
-
e.length > 0 &&
|
|
611
|
-
|
|
740
|
+
function Lt(a) {
|
|
741
|
+
const t = te.get(a);
|
|
742
|
+
t && (a.removeEventListener("click", t), te.delete(a)), delete a.__geokitToolButtonConfig;
|
|
743
|
+
const e = j(a.dataset.geokitToolButtonClass);
|
|
744
|
+
e.length > 0 && a.classList.remove(...e), delete a.dataset.geokitToolButtonClass, a.removeAttribute("data-geokit-custom-tool-button"), a.dataset.geokitOriginalTitle !== void 0 && ye(a, "title", a.dataset.geokitOriginalTitle), a.dataset.geokitOriginalAriaLabel !== void 0 && ye(
|
|
745
|
+
a,
|
|
612
746
|
"aria-label",
|
|
613
|
-
|
|
614
|
-
),
|
|
615
|
-
|
|
747
|
+
a.dataset.geokitOriginalAriaLabel
|
|
748
|
+
), a.dataset.geokitOriginalStyleBackgroundImage !== void 0 && ae(
|
|
749
|
+
a,
|
|
616
750
|
"background-image",
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
),
|
|
620
|
-
|
|
751
|
+
a.dataset.geokitOriginalStyleBackgroundImage,
|
|
752
|
+
a.dataset.geokitOriginalStyleBackgroundImagePriority
|
|
753
|
+
), a.dataset.geokitOriginalStylePosition !== void 0 && ae(
|
|
754
|
+
a,
|
|
621
755
|
"position",
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
), Array.from(
|
|
756
|
+
a.dataset.geokitOriginalStylePosition,
|
|
757
|
+
a.dataset.geokitOriginalStylePositionPriority
|
|
758
|
+
), Array.from(a.children).forEach((r) => {
|
|
625
759
|
r instanceof HTMLElement && r.dataset.geokitToolButtonIcon === "true" && r.remove();
|
|
626
|
-
}),
|
|
760
|
+
}), a.querySelectorAll(Ie).forEach((r) => {
|
|
627
761
|
r.hidden = !1;
|
|
628
|
-
}),
|
|
762
|
+
}), a.removeAttribute("aria-expanded");
|
|
629
763
|
}
|
|
630
|
-
function
|
|
631
|
-
e ?
|
|
764
|
+
function ye(a, t, e) {
|
|
765
|
+
e ? a.setAttribute(t, e) : a.removeAttribute(t);
|
|
632
766
|
}
|
|
633
|
-
function
|
|
634
|
-
e ?
|
|
767
|
+
function ae(a, t, e, r) {
|
|
768
|
+
e ? a.style.setProperty(t, e, r) : a.style.removeProperty(t);
|
|
635
769
|
}
|
|
636
|
-
function
|
|
637
|
-
var
|
|
638
|
-
|
|
639
|
-
const r = (
|
|
640
|
-
r &&
|
|
641
|
-
const o =
|
|
642
|
-
o.length > 0 && (
|
|
770
|
+
function Mt(a, t, e) {
|
|
771
|
+
var i;
|
|
772
|
+
Ct(a), a.__geokitToolButtonConfig = t, a.setAttribute("data-geokit-custom-tool-button", "true"), t.title && a.setAttribute("title", t.title);
|
|
773
|
+
const r = (i = t.ariaLabel) != null ? i : t.title;
|
|
774
|
+
r && a.setAttribute("aria-label", r);
|
|
775
|
+
const o = j(t.className);
|
|
776
|
+
o.length > 0 && (a.classList.add(...o), a.dataset.geokitToolButtonClass = o.join(" ")), t.iconUrl ? U(a, t, { tool: e }) : (t.iconHtml || t.renderIcon) && U(a, t, { tool: e });
|
|
643
777
|
}
|
|
644
|
-
function
|
|
778
|
+
function Ct(a) {
|
|
645
779
|
var t, e;
|
|
646
|
-
|
|
780
|
+
a.dataset.geokitOriginalTitle === void 0 && (a.dataset.geokitOriginalTitle = (t = a.getAttribute("title")) != null ? t : ""), a.dataset.geokitOriginalAriaLabel === void 0 && (a.dataset.geokitOriginalAriaLabel = (e = a.getAttribute("aria-label")) != null ? e : ""), a.dataset.geokitOriginalStyleBackgroundImage === void 0 && (a.dataset.geokitOriginalStyleBackgroundImage = a.style.getPropertyValue("background-image"), a.dataset.geokitOriginalStyleBackgroundImagePriority = a.style.getPropertyPriority("background-image")), a.dataset.geokitOriginalStylePosition === void 0 && (a.dataset.geokitOriginalStylePosition = a.style.getPropertyValue("position"), a.dataset.geokitOriginalStylePositionPriority = a.style.getPropertyPriority("position"));
|
|
647
781
|
}
|
|
648
|
-
function
|
|
649
|
-
return
|
|
782
|
+
function j(a) {
|
|
783
|
+
return a ? a.split(/\s+/).map((t) => t.trim()).filter(Boolean) : [];
|
|
650
784
|
}
|
|
651
|
-
function
|
|
785
|
+
function _t(a) {
|
|
786
|
+
return !!(a.iconUrl || a.iconHtml || a.renderIcon);
|
|
787
|
+
}
|
|
788
|
+
function U(a, t, e = {}) {
|
|
652
789
|
var l, c;
|
|
653
|
-
const [r, o] =
|
|
654
|
-
|
|
790
|
+
const [r, o] = It(t.iconSize);
|
|
791
|
+
a.style.setProperty("background-image", "none", "important"), a.style.setProperty("position", "relative", "important"), a.querySelectorAll(Ie).forEach((d) => {
|
|
655
792
|
d.hidden = !0;
|
|
656
793
|
});
|
|
657
|
-
const
|
|
658
|
-
|
|
794
|
+
const i = document.createElement("span");
|
|
795
|
+
i.className = _e, i.dataset.geokitToolButtonIcon = "true", i.setAttribute("aria-hidden", "true"), i.style.setProperty("position", "absolute", "important"), i.style.setProperty("display", "block", "important"), i.style.setProperty("left", "50%", "important"), i.style.setProperty("top", "50%", "important"), i.style.setProperty("width", `${r}px`, "important"), i.style.setProperty("height", `${o}px`, "important"), i.style.setProperty("transform", "translate(-50%, -50%)", "important"), i.style.setProperty("pointer-events", "none", "important");
|
|
659
796
|
const n = (c = t.renderIcon) == null ? void 0 : c.call(t, {
|
|
660
797
|
tool: (l = e.tool) != null ? l : "polygon",
|
|
661
798
|
groupId: e.groupId,
|
|
662
|
-
button:
|
|
799
|
+
button: a
|
|
663
800
|
});
|
|
664
801
|
if (n instanceof HTMLElement || typeof SVGElement != "undefined" && n instanceof SVGElement)
|
|
665
|
-
|
|
802
|
+
i.appendChild(n);
|
|
666
803
|
else if (typeof n == "string" && n.trim())
|
|
667
|
-
|
|
804
|
+
i.innerHTML = n, be(i);
|
|
668
805
|
else if (t.iconHtml)
|
|
669
|
-
|
|
806
|
+
i.innerHTML = t.iconHtml, be(i);
|
|
670
807
|
else if (t.iconUrl) {
|
|
671
808
|
const d = document.createElement("img");
|
|
672
|
-
d.src = t.iconUrl, d.alt = "", d.decoding = "async", d.draggable = !1, d.style.setProperty("display", "block", "important"), d.style.setProperty("width", "100%", "important"), d.style.setProperty("height", "100%", "important"), d.style.setProperty("object-fit", "contain", "important"),
|
|
809
|
+
d.src = t.iconUrl, d.alt = "", d.decoding = "async", d.draggable = !1, d.style.setProperty("display", "block", "important"), d.style.setProperty("width", "100%", "important"), d.style.setProperty("height", "100%", "important"), d.style.setProperty("object-fit", "contain", "important"), i.appendChild(d);
|
|
673
810
|
}
|
|
674
|
-
|
|
811
|
+
a.appendChild(i);
|
|
812
|
+
}
|
|
813
|
+
function be(a) {
|
|
814
|
+
const t = a.firstElementChild;
|
|
815
|
+
t && (t.style.setProperty("display", "block", "important"), t.style.setProperty("width", "100%", "important"), t.style.setProperty("height", "100%", "important"), t.style.setProperty("color", "currentColor", "important"));
|
|
675
816
|
}
|
|
676
|
-
function
|
|
677
|
-
const t =
|
|
817
|
+
function It(a) {
|
|
818
|
+
const t = a == null ? void 0 : a[0], e = a == null ? void 0 : a[1];
|
|
678
819
|
return typeof t == "number" && Number.isFinite(t) && t > 0 && typeof e == "number" && Number.isFinite(e) && e > 0 ? [t, e] : [18, 18];
|
|
679
820
|
}
|
|
680
|
-
function
|
|
821
|
+
function Te(a, t, e) {
|
|
681
822
|
const r = (o) => {
|
|
682
823
|
var s;
|
|
683
|
-
const
|
|
684
|
-
|
|
824
|
+
const i = Tt(a), n = St(a);
|
|
825
|
+
i != null && i.popover ? zt(a, t, i, {
|
|
685
826
|
container: n,
|
|
686
827
|
groupId: e.groupId
|
|
687
828
|
}) : R(n), (s = e.onTrigger) == null || s.call(e, t, {
|
|
@@ -690,12 +831,12 @@ function Ce(i, t, e) {
|
|
|
690
831
|
activate: e.activate
|
|
691
832
|
}), e.activate && (o.preventDefault(), o.stopPropagation());
|
|
692
833
|
};
|
|
693
|
-
|
|
834
|
+
a.addEventListener("click", r), te.set(a, r);
|
|
694
835
|
}
|
|
695
|
-
function
|
|
696
|
-
const t =
|
|
836
|
+
function Tt(a) {
|
|
837
|
+
const t = a.__geokitToolButtonConfig;
|
|
697
838
|
if (t) return t;
|
|
698
|
-
const e =
|
|
839
|
+
const e = a.dataset.geokitToolButtonConfig;
|
|
699
840
|
if (!e) return null;
|
|
700
841
|
try {
|
|
701
842
|
return JSON.parse(e);
|
|
@@ -703,66 +844,85 @@ function vt(i) {
|
|
|
703
844
|
return null;
|
|
704
845
|
}
|
|
705
846
|
}
|
|
706
|
-
function
|
|
847
|
+
function St(a) {
|
|
707
848
|
var e;
|
|
708
|
-
const t =
|
|
709
|
-
return (e = t != null ? t :
|
|
710
|
-
}
|
|
711
|
-
function
|
|
712
|
-
var
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
849
|
+
const t = a.closest("[data-geokit-map-container]");
|
|
850
|
+
return (e = t != null ? t : a.parentElement) != null ? e : a;
|
|
851
|
+
}
|
|
852
|
+
function Bt(a, t, e) {
|
|
853
|
+
var i;
|
|
854
|
+
a.setAttribute("data-geokit-map-container", "true"), a.querySelectorAll(wt).forEach((n) => n.remove());
|
|
855
|
+
const r = (i = e.toolbarGroups) != null ? i : [], o = r.some(
|
|
856
|
+
(n) => (n == null ? void 0 : n.hideDefaultToolbar) !== !1
|
|
857
|
+
);
|
|
858
|
+
Ot(a, o), r.forEach((n) => {
|
|
859
|
+
var c;
|
|
860
|
+
if (!(n != null && n.id) || !Array.isArray(n.tools) || n.tools.length === 0)
|
|
716
861
|
return;
|
|
717
|
-
const
|
|
718
|
-
|
|
719
|
-
const
|
|
720
|
-
|
|
721
|
-
const p =
|
|
722
|
-
|
|
862
|
+
const s = document.createElement("div");
|
|
863
|
+
s.dataset.geokitManagedToolbar = "true", s.dataset.geokitToolbarGroup = n.id, s.className = "leaflet-geokit-toolbar-group leaflet-bar", s.setAttribute("role", "toolbar"), s.setAttribute("aria-label", (c = n.ariaLabel) != null ? c : n.id), Pt(s, n.position, n.offset);
|
|
864
|
+
const l = j(n.className);
|
|
865
|
+
l.length > 0 && s.classList.add(...l), n.tools.forEach((d, u) => {
|
|
866
|
+
const p = Dt(d, n, u, t == null ? void 0 : t[d]);
|
|
867
|
+
Te(p, d, {
|
|
723
868
|
source: "toolbar",
|
|
724
869
|
activate: !0,
|
|
725
|
-
groupId:
|
|
870
|
+
groupId: n.id,
|
|
726
871
|
onTrigger: e.onTrigger
|
|
727
|
-
}),
|
|
728
|
-
}),
|
|
872
|
+
}), s.appendChild(p);
|
|
873
|
+
}), a.appendChild(s);
|
|
874
|
+
});
|
|
875
|
+
}
|
|
876
|
+
function Ot(a, t) {
|
|
877
|
+
a.toggleAttribute("data-geokit-default-toolbar-hidden", t), a.querySelectorAll(
|
|
878
|
+
".leaflet-draw-toolbar, .leaflet-ruler, .leaflet-ruler-settings-control"
|
|
879
|
+
).forEach((e) => {
|
|
880
|
+
t ? (e.dataset.geokitOriginalDisplay === void 0 && (e.dataset.geokitOriginalDisplay = e.style.display, e.dataset.geokitOriginalDisplayPriority = e.style.getPropertyPriority("display")), e.style.setProperty("display", "none", "important")) : e.dataset.geokitOriginalDisplay !== void 0 && (ae(
|
|
881
|
+
e,
|
|
882
|
+
"display",
|
|
883
|
+
e.dataset.geokitOriginalDisplay,
|
|
884
|
+
e.dataset.geokitOriginalDisplayPriority
|
|
885
|
+
), delete e.dataset.geokitOriginalDisplay, delete e.dataset.geokitOriginalDisplayPriority);
|
|
729
886
|
});
|
|
730
887
|
}
|
|
731
|
-
function
|
|
732
|
-
var s, l, c, d,
|
|
888
|
+
function Dt(a, t, e, r) {
|
|
889
|
+
var s, l, c, d, u;
|
|
733
890
|
const o = document.createElement("button");
|
|
734
|
-
o.type = "button", o.dataset.geokitTool = (l = (s =
|
|
891
|
+
o.type = "button", o.dataset.geokitTool = (l = (s = Z[a]) == null ? void 0 : s.dataTool) != null ? l : a, o.dataset.geokitToolbarGroup = t.id, o.dataset.geokitToolbarPosition = (c = t.position) != null ? c : "topright", o.dataset.geokitToolInstance = Ft(
|
|
735
892
|
t.id,
|
|
736
|
-
|
|
893
|
+
a,
|
|
737
894
|
e
|
|
738
895
|
), o.className = "leaflet-geokit-toolbar-button", o.style.setProperty("display", "block", "important"), o.style.setProperty("width", "34px", "important"), o.style.setProperty("height", "34px", "important"), o.style.setProperty("padding", "0", "important"), o.style.setProperty("border", "0", "important"), o.style.setProperty("border-bottom", "1px solid #ccc", "important"), o.style.setProperty("background", "#fff", "important"), o.style.setProperty("cursor", "pointer", "important"), o.style.setProperty("position", "relative", "important");
|
|
739
|
-
const
|
|
740
|
-
o.title =
|
|
741
|
-
const n =
|
|
742
|
-
if (n.length > 0 && o.classList.add(...n), r && (o.__geokitToolButtonConfig = r,
|
|
743
|
-
const
|
|
744
|
-
|
|
896
|
+
const i = (d = r == null ? void 0 : r.title) != null ? d : Se(a);
|
|
897
|
+
o.title = i, o.setAttribute("aria-label", (u = r == null ? void 0 : r.ariaLabel) != null ? u : i);
|
|
898
|
+
const n = j(r == null ? void 0 : r.className);
|
|
899
|
+
if (n.length > 0 && o.classList.add(...n), r && (o.__geokitToolButtonConfig = r, _t(r) && U(o, r, { tool: a, groupId: t.id })), !o.querySelector(`.${_e}`)) {
|
|
900
|
+
const p = {
|
|
901
|
+
iconHtml: Gt(a),
|
|
902
|
+
iconSize: [20, 20]
|
|
903
|
+
};
|
|
904
|
+
U(o, p, { tool: a, groupId: t.id });
|
|
745
905
|
}
|
|
746
906
|
return o;
|
|
747
907
|
}
|
|
748
|
-
function
|
|
749
|
-
const [r, o] =
|
|
750
|
-
|
|
908
|
+
function Pt(a, t = "topright", e) {
|
|
909
|
+
const [r, o] = Ht(e);
|
|
910
|
+
a.style.setProperty("position", "absolute", "important"), a.style.setProperty("z-index", "1000", "important"), a.style.setProperty("background", "#fff", "important"), a.style.setProperty(
|
|
751
911
|
"box-shadow",
|
|
752
912
|
"0 1px 5px rgba(0,0,0,0.35)",
|
|
753
913
|
"important"
|
|
754
914
|
);
|
|
755
|
-
const [
|
|
756
|
-
|
|
915
|
+
const [i, n] = t.startsWith("bottom") ? ["bottom", t.endsWith("right") ? "right" : "left"] : ["top", t.endsWith("right") ? "right" : "left"];
|
|
916
|
+
a.style.setProperty(i, `${o}px`, "important"), a.style.setProperty(n, `${r}px`, "important");
|
|
757
917
|
}
|
|
758
|
-
function
|
|
759
|
-
var s, l, c, d,
|
|
918
|
+
function zt(a, t, e, r) {
|
|
919
|
+
var s, l, c, d, u, p, g, m;
|
|
760
920
|
if (!e.popover) return;
|
|
761
921
|
R(r.container);
|
|
762
922
|
const o = document.createElement("div");
|
|
763
|
-
if (o.dataset.geokitToolPopover = "true", o.dataset.geokitTool = (l = (s =
|
|
923
|
+
if (o.dataset.geokitToolPopover = "true", o.dataset.geokitTool = (l = (s = Z[t]) == null ? void 0 : s.dataTool) != null ? l : t, a.dataset.geokitToolInstance && (o.dataset.geokitToolInstance = a.dataset.geokitToolInstance), r.groupId && (o.dataset.geokitToolbarGroup = r.groupId), o.setAttribute("role", "dialog"), o.setAttribute(
|
|
764
924
|
"aria-label",
|
|
765
|
-
(d = (c = e.popover.ariaLabel) != null ? c : e.popover.title) != null ? d :
|
|
925
|
+
(d = (c = e.popover.ariaLabel) != null ? c : e.popover.title) != null ? d : Se(t)
|
|
766
926
|
), o.style.setProperty("position", "absolute", "important"), o.style.setProperty("z-index", "10001", "important"), o.style.setProperty("max-width", "260px", "important"), o.style.setProperty("padding", "10px 12px", "important"), o.style.setProperty(
|
|
767
927
|
"border",
|
|
768
928
|
"1px solid rgba(0,0,0,0.22)",
|
|
@@ -783,32 +943,32 @@ function Mt(i, t, e, r) {
|
|
|
783
943
|
const f = document.createElement("div");
|
|
784
944
|
f.innerHTML = e.popover.html, o.appendChild(f);
|
|
785
945
|
}
|
|
786
|
-
const
|
|
946
|
+
const i = (p = (u = e.popover).render) == null ? void 0 : p.call(u, {
|
|
787
947
|
tool: t,
|
|
788
948
|
groupId: r.groupId,
|
|
789
|
-
button:
|
|
949
|
+
button: a,
|
|
790
950
|
popover: o
|
|
791
|
-
}), n = typeof DocumentFragment != "undefined" &&
|
|
792
|
-
if (
|
|
793
|
-
o.appendChild(
|
|
794
|
-
else if (typeof
|
|
951
|
+
}), n = typeof DocumentFragment != "undefined" && i instanceof DocumentFragment;
|
|
952
|
+
if (i instanceof HTMLElement || n)
|
|
953
|
+
o.appendChild(i);
|
|
954
|
+
else if (typeof i == "string" && i.trim()) {
|
|
795
955
|
const f = document.createElement("div");
|
|
796
|
-
f.innerHTML =
|
|
956
|
+
f.innerHTML = i, o.appendChild(f);
|
|
797
957
|
}
|
|
798
|
-
r.container.appendChild(o),
|
|
958
|
+
r.container.appendChild(o), Rt(r.container, a, o), a.setAttribute("aria-expanded", "true"), oe.set(o, {
|
|
799
959
|
tool: t,
|
|
800
960
|
groupId: r.groupId,
|
|
801
|
-
button:
|
|
961
|
+
button: a,
|
|
802
962
|
config: e
|
|
803
|
-
}),
|
|
963
|
+
}), Ut(r.container, a, o), (m = (g = e.popover).onOpen) == null || m.call(g, {
|
|
804
964
|
tool: t,
|
|
805
965
|
groupId: r.groupId,
|
|
806
|
-
button:
|
|
966
|
+
button: a,
|
|
807
967
|
popover: o
|
|
808
968
|
});
|
|
809
969
|
}
|
|
810
|
-
function
|
|
811
|
-
const r =
|
|
970
|
+
function Rt(a, t, e) {
|
|
971
|
+
const r = a.getBoundingClientRect(), o = t.getBoundingClientRect(), i = Math.max(
|
|
812
972
|
8,
|
|
813
973
|
Math.min(
|
|
814
974
|
o.left - r.left,
|
|
@@ -821,58 +981,58 @@ function Ct(i, t, e) {
|
|
|
821
981
|
r.height - e.offsetHeight - 8
|
|
822
982
|
)
|
|
823
983
|
);
|
|
824
|
-
e.style.setProperty("left", `${
|
|
984
|
+
e.style.setProperty("left", `${i}px`, "important"), e.style.setProperty("top", `${n}px`, "important");
|
|
825
985
|
}
|
|
826
|
-
function
|
|
986
|
+
function Ut(a, t, e) {
|
|
827
987
|
const r = (n) => {
|
|
828
|
-
n.key === "Escape" && R(
|
|
988
|
+
n.key === "Escape" && R(a);
|
|
829
989
|
}, o = (n) => {
|
|
830
990
|
const s = n.target;
|
|
831
|
-
s instanceof Node && (e.contains(s) || t.contains(s) || R(
|
|
991
|
+
s instanceof Node && (e.contains(s) || t.contains(s) || R(a));
|
|
832
992
|
};
|
|
833
993
|
document.addEventListener("keydown", r, !0);
|
|
834
|
-
const
|
|
994
|
+
const i = window.setTimeout(() => {
|
|
835
995
|
e.isConnected && document.addEventListener("pointerdown", o, !0);
|
|
836
996
|
}, 0);
|
|
837
|
-
|
|
997
|
+
re.set(e, {
|
|
838
998
|
keydown: r,
|
|
839
999
|
pointerdown: o,
|
|
840
|
-
pointerdownTimer:
|
|
1000
|
+
pointerdownTimer: i
|
|
841
1001
|
});
|
|
842
1002
|
}
|
|
843
|
-
function R(
|
|
844
|
-
|
|
845
|
-
var o,
|
|
846
|
-
const e =
|
|
847
|
-
e == null || e.button.removeAttribute("aria-expanded"), e || (o =
|
|
1003
|
+
function R(a) {
|
|
1004
|
+
a.querySelectorAll(xt).forEach((t) => {
|
|
1005
|
+
var o, i, n;
|
|
1006
|
+
const e = oe.get(t);
|
|
1007
|
+
e == null || e.button.removeAttribute("aria-expanded"), e || (o = Nt(a, t)) == null || o.removeAttribute(
|
|
848
1008
|
"aria-expanded"
|
|
849
1009
|
);
|
|
850
|
-
const r =
|
|
1010
|
+
const r = re.get(t);
|
|
851
1011
|
r && (window.clearTimeout(r.pointerdownTimer), document.removeEventListener("keydown", r.keydown, !0), document.removeEventListener(
|
|
852
1012
|
"pointerdown",
|
|
853
1013
|
r.pointerdown,
|
|
854
1014
|
!0
|
|
855
|
-
),
|
|
1015
|
+
), re.delete(t)), t.remove(), e && ((n = (i = e.config.popover) == null ? void 0 : i.onClose) == null || n.call(i, {
|
|
856
1016
|
tool: e.tool,
|
|
857
1017
|
groupId: e.groupId,
|
|
858
1018
|
button: e.button,
|
|
859
1019
|
popover: t
|
|
860
|
-
}),
|
|
1020
|
+
}), oe.delete(t));
|
|
861
1021
|
});
|
|
862
1022
|
}
|
|
863
|
-
function
|
|
864
|
-
const e =
|
|
865
|
-
|
|
1023
|
+
function Nt(a, t) {
|
|
1024
|
+
const e = a.querySelectorAll(
|
|
1025
|
+
kt
|
|
866
1026
|
);
|
|
867
1027
|
for (const r of e)
|
|
868
1028
|
if (t.dataset.geokitToolInstance && r.dataset.geokitToolInstance === t.dataset.geokitToolInstance || r.dataset.geokitTool === t.dataset.geokitTool && r.dataset.geokitToolbarGroup === t.dataset.geokitToolbarGroup)
|
|
869
1029
|
return r;
|
|
870
1030
|
return null;
|
|
871
1031
|
}
|
|
872
|
-
function
|
|
873
|
-
return `${
|
|
1032
|
+
function Ft(a, t, e) {
|
|
1033
|
+
return `${a}:${t}:${e}`;
|
|
874
1034
|
}
|
|
875
|
-
function
|
|
1035
|
+
function Se(a) {
|
|
876
1036
|
return {
|
|
877
1037
|
polygon: "Draw polygon",
|
|
878
1038
|
polyline: "Draw line",
|
|
@@ -886,64 +1046,67 @@ function Ie(i) {
|
|
|
886
1046
|
delete: "Delete features",
|
|
887
1047
|
ruler: "Measure distance",
|
|
888
1048
|
measurementSettings: "Measurement settings",
|
|
889
|
-
layerStyle: "Layer style"
|
|
890
|
-
|
|
1049
|
+
layerStyle: "Layer style",
|
|
1050
|
+
save: "Save map geometry"
|
|
1051
|
+
}[a];
|
|
891
1052
|
}
|
|
892
|
-
function
|
|
1053
|
+
function Gt(a) {
|
|
1054
|
+
const t = "currentColor", e = "none";
|
|
893
1055
|
return {
|
|
894
|
-
polygon: "
|
|
895
|
-
polyline: "
|
|
896
|
-
rectangle: "
|
|
897
|
-
circle: "
|
|
898
|
-
marker: "
|
|
899
|
-
layerCake: "
|
|
900
|
-
move: "
|
|
901
|
-
select: "
|
|
902
|
-
edit: "
|
|
903
|
-
delete: "
|
|
904
|
-
ruler: "
|
|
905
|
-
measurementSettings: "
|
|
906
|
-
layerStyle: "
|
|
907
|
-
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
|
|
1056
|
+
polygon: `<svg viewBox="0 0 24 24" fill="${e}" stroke="${t}" stroke-width="1.8" stroke-linejoin="round"><path d="M5.5 7.2 9.2 4.8 18.5 8.3 16.1 18.2 6.3 15.7Z"/><circle cx="5.5" cy="7.2" r="1.2" fill="currentColor"/><circle cx="18.5" cy="8.3" r="1.2" fill="currentColor"/><circle cx="16.1" cy="18.2" r="1.2" fill="currentColor"/></svg>`,
|
|
1057
|
+
polyline: `<svg viewBox="0 0 24 24" fill="${e}" stroke="${t}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4.8 16.7 9.2 9.5 14.4 13.1 19 6.1"/><circle cx="4.8" cy="16.7" r="1.3" fill="currentColor"/><circle cx="14.4" cy="13.1" r="1.3" fill="currentColor"/><circle cx="19" cy="6.1" r="1.3" fill="currentColor"/></svg>`,
|
|
1058
|
+
rectangle: `<svg viewBox="0 0 24 24" fill="${e}" stroke="${t}" stroke-width="1.8"><rect x="5.5" y="6.5" width="13" height="11" rx="2"/><path d="M8.5 10h7"/></svg>`,
|
|
1059
|
+
circle: `<svg viewBox="0 0 24 24" fill="${e}" stroke="${t}" stroke-width="1.8"><circle cx="12" cy="12" r="6.8"/><circle cx="12" cy="12" r="2" fill="currentColor"/></svg>`,
|
|
1060
|
+
marker: `<svg viewBox="0 0 24 24" fill="${e}" stroke="${t}" stroke-width="1.7" stroke-linejoin="round"><path d="M12 3.4a6 6 0 0 0-6 6c0 4.2 4.5 9.4 5.6 10.5a.6.6 0 0 0 .8 0C13.5 18.8 18 13.6 18 9.4a6 6 0 0 0-6-6Z"/><circle cx="12" cy="9.5" r="2.1" fill="currentColor" stroke="none"/></svg>`,
|
|
1061
|
+
layerCake: `<svg viewBox="0 0 24 24" fill="${e}" stroke="${t}" stroke-width="1.7" stroke-linecap="round"><ellipse cx="12" cy="7.6" rx="6.8" ry="2.7"/><path d="M5.2 11c1.3 1.2 3.8 2 6.8 2s5.5-.8 6.8-2M6.3 15c1.3.9 3.3 1.5 5.7 1.5s4.4-.6 5.7-1.5"/></svg>`,
|
|
1062
|
+
move: `<svg viewBox="0 0 24 24" fill="${e}" stroke="${t}" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M12 4v16M4 12h16M12 4l-2 2M12 4l2 2M20 12l-2-2M20 12l-2 2M12 20l-2-2M12 20l2-2M4 12l2-2M4 12l2 2"/></svg>`,
|
|
1063
|
+
select: `<svg viewBox="0 0 24 24" fill="${e}" stroke="${t}" stroke-width="1.8" stroke-linejoin="round"><path d="M6 4.8 18.5 12 13 13.4 10.2 19Z"/></svg>`,
|
|
1064
|
+
edit: `<svg viewBox="0 0 24 24" fill="${e}" stroke="${t}" stroke-width="1.7" stroke-linejoin="round"><path d="m6 17.8 3.5-.7 7.7-7.7-2.8-2.8-7.7 7.7Z"/><path d="m12.9 7.9 2.8 2.8"/></svg>`,
|
|
1065
|
+
delete: `<svg viewBox="0 0 24 24" fill="${e}" stroke="${t}" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M7.5 8.2h9l-.8 10a1.7 1.7 0 0 1-1.7 1.5h-4a1.7 1.7 0 0 1-1.7-1.5Z"/><path d="M9.5 8.2V6.8c0-.7.6-1.3 1.3-1.3h2.4c.7 0 1.3.6 1.3 1.3v1.4M10.5 11.5v4.8M13.5 11.5v4.8"/></svg>`,
|
|
1066
|
+
ruler: `<svg viewBox="0 0 24 24" fill="${e}" stroke="${t}" stroke-width="1.7" stroke-linejoin="round"><path d="M5.2 17.8 17.8 5.2l1.7 1.7L6.9 19.5H5.2Z"/><path d="m12.2 8 1.5 1.5M9.9 10.3l1.5 1.5M7.6 12.6l1.5 1.5"/></svg>`,
|
|
1067
|
+
measurementSettings: `<svg viewBox="0 0 24 24" fill="${e}" stroke="${t}" stroke-width="1.6" stroke-linecap="round"><circle cx="12" cy="12" r="3.2"/><path d="M12 4.8v2M12 17.2v2M4.8 12h2M17.2 12h2M7 7l1.4 1.4M15.6 15.6 17 17M17 7l-1.4 1.4M8.4 15.6 7 17"/></svg>`,
|
|
1068
|
+
layerStyle: '<svg viewBox="0 0 24 24" fill="none"><path d="M5 6h14v3H5z" fill="currentColor" opacity=".9"/><path d="M5 11h14v3H5z" fill="currentColor" opacity=".65"/><path d="M5 16h14v3H5z" fill="currentColor" opacity=".4"/></svg>',
|
|
1069
|
+
save: `<svg viewBox="0 0 24 24" fill="${e}" stroke="${t}" stroke-width="1.8" stroke-linejoin="round" stroke-linecap="round"><path d="M5.5 4.8h11.2l1.8 1.8v12.6h-13Z"/><path d="M8 4.8v5h7v-5M8.2 19.2v-5.4h7.6v5.4"/><path d="M10 16.4h4"/></svg>`
|
|
1070
|
+
}[a];
|
|
1071
|
+
}
|
|
1072
|
+
function Ht(a) {
|
|
1073
|
+
const t = a == null ? void 0 : a[0], e = a == null ? void 0 : a[1];
|
|
911
1074
|
return typeof t == "number" && Number.isFinite(t) && t >= 0 && typeof e == "number" && Number.isFinite(e) && e >= 0 ? [t, e] : [10, 10];
|
|
912
1075
|
}
|
|
913
|
-
const
|
|
914
|
-
function
|
|
1076
|
+
const Ae = /* @__PURE__ */ new WeakSet();
|
|
1077
|
+
function Vt(a = x) {
|
|
915
1078
|
var r;
|
|
916
|
-
if (
|
|
917
|
-
const t =
|
|
1079
|
+
if (Ae.has(a)) return;
|
|
1080
|
+
const t = a.DrawToolbar;
|
|
918
1081
|
if (!((r = t == null ? void 0 : t.prototype) != null && r.getModeHandlers)) return;
|
|
919
1082
|
const e = t.prototype.getModeHandlers;
|
|
920
1083
|
t.prototype.getModeHandlers = function(o) {
|
|
921
1084
|
var n, s, l, c;
|
|
922
|
-
const
|
|
1085
|
+
const i = e.call(this, o);
|
|
923
1086
|
if ((n = this.options) != null && n.cake) {
|
|
924
|
-
const d = (s =
|
|
925
|
-
if (!d) return
|
|
926
|
-
|
|
1087
|
+
const d = (s = a.Draw) == null ? void 0 : s.Cake;
|
|
1088
|
+
if (!d) return i;
|
|
1089
|
+
i.push({
|
|
927
1090
|
enabled: !0,
|
|
928
1091
|
handler: new d(o, this.options.cake),
|
|
929
1092
|
title: "Draw Layer Cake (Subtractive Zones)"
|
|
930
1093
|
});
|
|
931
1094
|
}
|
|
932
1095
|
if ((l = this.options) != null && l.move) {
|
|
933
|
-
const d = (c =
|
|
934
|
-
if (!d) return
|
|
935
|
-
|
|
1096
|
+
const d = (c = a.Draw) == null ? void 0 : c.Move;
|
|
1097
|
+
if (!d) return i;
|
|
1098
|
+
i.push({
|
|
936
1099
|
enabled: !0,
|
|
937
1100
|
handler: new d(o, this.options.move),
|
|
938
1101
|
title: "Move/Translate Features"
|
|
939
1102
|
});
|
|
940
1103
|
}
|
|
941
|
-
return
|
|
942
|
-
},
|
|
1104
|
+
return i;
|
|
1105
|
+
}, Ae.add(a);
|
|
943
1106
|
}
|
|
944
|
-
const
|
|
1107
|
+
const G = class G extends x.Draw.Circle {
|
|
945
1108
|
constructor(t, e) {
|
|
946
|
-
super(t, e), this.type =
|
|
1109
|
+
super(t, e), this.type = G.TYPE;
|
|
947
1110
|
}
|
|
948
1111
|
addHooks() {
|
|
949
1112
|
super.addHooks();
|
|
@@ -954,39 +1117,39 @@ const H = class H extends x.Draw.Circle {
|
|
|
954
1117
|
});
|
|
955
1118
|
}
|
|
956
1119
|
};
|
|
957
|
-
|
|
958
|
-
let
|
|
959
|
-
x.Draw.Cake =
|
|
960
|
-
function
|
|
961
|
-
const t =
|
|
1120
|
+
h(G, "TYPE", "cake");
|
|
1121
|
+
let N = G;
|
|
1122
|
+
x.Draw.Cake = N;
|
|
1123
|
+
function Jt(a) {
|
|
1124
|
+
const t = a.Draw;
|
|
962
1125
|
if (!t || t.Cake) return;
|
|
963
1126
|
const r = class r extends t.Circle {
|
|
964
|
-
constructor(
|
|
965
|
-
super(
|
|
1127
|
+
constructor(i, n) {
|
|
1128
|
+
super(i, n), this.type = r.TYPE;
|
|
966
1129
|
}
|
|
967
1130
|
addHooks() {
|
|
968
1131
|
super.addHooks();
|
|
969
|
-
const
|
|
970
|
-
|
|
1132
|
+
const i = this._tooltip;
|
|
1133
|
+
i != null && i.updateContent && i.updateContent({
|
|
971
1134
|
text: "Click and drag to draw the Layer Cake base",
|
|
972
1135
|
subtext: "Release mouse to finish base layer"
|
|
973
1136
|
});
|
|
974
1137
|
}
|
|
975
1138
|
};
|
|
976
|
-
|
|
1139
|
+
h(r, "TYPE", "cake");
|
|
977
1140
|
let e = r;
|
|
978
1141
|
t.Cake = e;
|
|
979
1142
|
}
|
|
980
|
-
const
|
|
1143
|
+
const H = class H extends x.Draw.Feature {
|
|
981
1144
|
constructor(e, r) {
|
|
982
1145
|
super(e, r);
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
this.type =
|
|
1146
|
+
h(this, "_featureGroup");
|
|
1147
|
+
h(this, "_selectedLayer", null);
|
|
1148
|
+
h(this, "_originalLatLngs", null);
|
|
1149
|
+
h(this, "_dragStartLatLng", null);
|
|
1150
|
+
h(this, "_isDragging", !1);
|
|
1151
|
+
h(this, "_pendingMove", null);
|
|
1152
|
+
this.type = H.TYPE, this._featureGroup = (r == null ? void 0 : r.featureGroup) || new x.FeatureGroup();
|
|
990
1153
|
}
|
|
991
1154
|
enable() {
|
|
992
1155
|
this._enabled || super.enable();
|
|
@@ -1039,8 +1202,8 @@ const F = class F extends x.Draw.Feature {
|
|
|
1039
1202
|
x.DomEvent.stopPropagation(e.originalEvent), x.DomEvent.preventDefault(e.originalEvent);
|
|
1040
1203
|
const r = e.target;
|
|
1041
1204
|
if (this._selectedLayer = r, this._isDragging = !0, this._dragStartLatLng = e.latlng, this._storeOriginalLatLngs(r), r.getElement) {
|
|
1042
|
-
const
|
|
1043
|
-
|
|
1205
|
+
const i = r.getElement();
|
|
1206
|
+
i && (i.style.cursor = "grabbing");
|
|
1044
1207
|
} else r._path && (r._path.style.cursor = "grabbing");
|
|
1045
1208
|
this._map.on("mousemove", this._onMouseMove, this), this._map.on("mouseup", this._onMouseUp, this);
|
|
1046
1209
|
const o = r.toGeoJSON();
|
|
@@ -1064,21 +1227,21 @@ const F = class F extends x.Draw.Feature {
|
|
|
1064
1227
|
lng: e.latlng.lng - this._dragStartLatLng.lng
|
|
1065
1228
|
};
|
|
1066
1229
|
if (r.setLatLng) {
|
|
1067
|
-
const
|
|
1230
|
+
const i = x.latLng(
|
|
1068
1231
|
this._originalLatLngs.lat + o.lat,
|
|
1069
1232
|
this._originalLatLngs.lng + o.lng
|
|
1070
1233
|
);
|
|
1071
|
-
r.setLatLng(
|
|
1234
|
+
r.setLatLng(i);
|
|
1072
1235
|
} else if (r.setLatLngs) {
|
|
1073
|
-
const
|
|
1074
|
-
r.setLatLngs(
|
|
1236
|
+
const i = this._offsetLatLngs(this._originalLatLngs, o);
|
|
1237
|
+
r.setLatLngs(i);
|
|
1075
1238
|
}
|
|
1076
1239
|
}
|
|
1077
1240
|
_offsetLatLngs(e, r) {
|
|
1078
1241
|
return e instanceof x.LatLng || e.lat !== void 0 && e.lng !== void 0 ? x.latLng(e.lat + r.lat, e.lng + r.lng) : Array.isArray(e) ? e.map((o) => this._offsetLatLngs(o, r)) : e;
|
|
1079
1242
|
}
|
|
1080
1243
|
_onMouseUp(e) {
|
|
1081
|
-
var o,
|
|
1244
|
+
var o, i;
|
|
1082
1245
|
if (!this._isDragging || !this._selectedLayer) return;
|
|
1083
1246
|
this._pendingMove && (this._pendingMove.newGeoJSON = this._selectedLayer.toGeoJSON());
|
|
1084
1247
|
const r = this._selectedLayer;
|
|
@@ -1089,7 +1252,7 @@ const F = class F extends x.Draw.Feature {
|
|
|
1089
1252
|
this._map.fire("draw:moveend", {
|
|
1090
1253
|
layer: this._selectedLayer,
|
|
1091
1254
|
originalGeoJSON: (o = this._pendingMove) == null ? void 0 : o.originalGeoJSON,
|
|
1092
|
-
newGeoJSON: (
|
|
1255
|
+
newGeoJSON: (i = this._pendingMove) == null ? void 0 : i.newGeoJSON
|
|
1093
1256
|
}), this._map.off("mousemove", this._onMouseMove, this), this._map.off("mouseup", this._onMouseUp, this), this._isDragging = !1;
|
|
1094
1257
|
}
|
|
1095
1258
|
_cleanupDragging() {
|
|
@@ -1127,21 +1290,21 @@ const F = class F extends x.Draw.Feature {
|
|
|
1127
1290
|
return this._pendingMove !== null;
|
|
1128
1291
|
}
|
|
1129
1292
|
};
|
|
1130
|
-
|
|
1131
|
-
let
|
|
1132
|
-
x.Draw.Move =
|
|
1133
|
-
function
|
|
1134
|
-
const t =
|
|
1293
|
+
h(H, "TYPE", "move");
|
|
1294
|
+
let ie = H;
|
|
1295
|
+
x.Draw.Move = ie;
|
|
1296
|
+
function Zt(a) {
|
|
1297
|
+
const t = a.Draw;
|
|
1135
1298
|
if (!t || t.Move) return;
|
|
1136
1299
|
const r = class r extends t.Feature {
|
|
1137
1300
|
constructor(n, s) {
|
|
1138
1301
|
super(n, s);
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1302
|
+
h(this, "_featureGroup");
|
|
1303
|
+
h(this, "_selectedLayer", null);
|
|
1304
|
+
h(this, "_originalLatLngs", null);
|
|
1305
|
+
h(this, "_dragStartLatLng", null);
|
|
1306
|
+
h(this, "_isDragging", !1);
|
|
1307
|
+
h(this, "_pendingMove", null);
|
|
1145
1308
|
this.type = r.TYPE, this._featureGroup = (s == null ? void 0 : s.featureGroup) || new x.FeatureGroup();
|
|
1146
1309
|
}
|
|
1147
1310
|
enable() {
|
|
@@ -1153,7 +1316,7 @@ function zt(i) {
|
|
|
1153
1316
|
addHooks() {
|
|
1154
1317
|
const n = this._map;
|
|
1155
1318
|
if (!n) return;
|
|
1156
|
-
|
|
1319
|
+
a.DomUtil.addClass(n.getContainer(), "leaflet-draw-move-mode"), this._featureGroup.eachLayer((l) => {
|
|
1157
1320
|
this._enableLayerHover(l);
|
|
1158
1321
|
});
|
|
1159
1322
|
const s = this._tooltip;
|
|
@@ -1164,7 +1327,7 @@ function zt(i) {
|
|
|
1164
1327
|
}
|
|
1165
1328
|
removeHooks() {
|
|
1166
1329
|
const n = this._map;
|
|
1167
|
-
n && (
|
|
1330
|
+
n && (a.DomUtil.removeClass(n.getContainer(), "leaflet-draw-move-mode"), this._featureGroup.eachLayer((s) => {
|
|
1168
1331
|
this._disableLayerHover(s);
|
|
1169
1332
|
}), this._cleanupDragging());
|
|
1170
1333
|
}
|
|
@@ -1192,7 +1355,7 @@ function zt(i) {
|
|
|
1192
1355
|
}
|
|
1193
1356
|
_onLayerMouseDown(n) {
|
|
1194
1357
|
if (this._isDragging) return;
|
|
1195
|
-
|
|
1358
|
+
a.DomEvent.stopPropagation(n.originalEvent), a.DomEvent.preventDefault(n.originalEvent);
|
|
1196
1359
|
const s = n.target;
|
|
1197
1360
|
if (this._selectedLayer = s, this._isDragging = !0, this._dragStartLatLng = n.latlng, this._storeOriginalLatLngs(s), s.getElement) {
|
|
1198
1361
|
const c = s.getElement();
|
|
@@ -1219,7 +1382,7 @@ function zt(i) {
|
|
|
1219
1382
|
lng: n.latlng.lng - this._dragStartLatLng.lng
|
|
1220
1383
|
};
|
|
1221
1384
|
if (s.setLatLng) {
|
|
1222
|
-
const c =
|
|
1385
|
+
const c = a.latLng(
|
|
1223
1386
|
this._originalLatLngs.lat + l.lat,
|
|
1224
1387
|
this._originalLatLngs.lng + l.lng
|
|
1225
1388
|
);
|
|
@@ -1230,7 +1393,7 @@ function zt(i) {
|
|
|
1230
1393
|
}
|
|
1231
1394
|
}
|
|
1232
1395
|
_offsetLatLngs(n, s) {
|
|
1233
|
-
return n instanceof
|
|
1396
|
+
return n instanceof a.LatLng || n.lat !== void 0 && n.lng !== void 0 ? a.latLng(n.lat + s.lat, n.lng + s.lng) : Array.isArray(n) ? n.map((l) => this._offsetLatLngs(l, s)) : n;
|
|
1234
1397
|
}
|
|
1235
1398
|
_onMouseUp(n) {
|
|
1236
1399
|
var l, c;
|
|
@@ -1273,50 +1436,50 @@ function zt(i) {
|
|
|
1273
1436
|
return this._pendingMove !== null;
|
|
1274
1437
|
}
|
|
1275
1438
|
};
|
|
1276
|
-
|
|
1439
|
+
h(r, "TYPE", "move");
|
|
1277
1440
|
let e = r;
|
|
1278
1441
|
t.Move = e;
|
|
1279
1442
|
}
|
|
1280
|
-
const
|
|
1281
|
-
function
|
|
1282
|
-
return
|
|
1443
|
+
const jt = 63710088e-1;
|
|
1444
|
+
function W(a) {
|
|
1445
|
+
return a * Math.PI / 180;
|
|
1283
1446
|
}
|
|
1284
|
-
function
|
|
1285
|
-
return
|
|
1447
|
+
function ve(a) {
|
|
1448
|
+
return a * 180 / Math.PI;
|
|
1286
1449
|
}
|
|
1287
|
-
function
|
|
1288
|
-
const r = t /
|
|
1289
|
-
return { lat:
|
|
1450
|
+
function Yt(a, t, e) {
|
|
1451
|
+
const r = t / jt, o = W(e), i = W(a.lat), n = W(a.lng), s = Math.sin(i), l = Math.cos(i), c = Math.sin(r), d = Math.cos(r), u = s * d + l * c * Math.cos(o), p = Math.asin(u), g = Math.sin(o) * c * l, m = d - s * u, f = n + Math.atan2(g, m);
|
|
1452
|
+
return { lat: ve(p), lng: ve(f) };
|
|
1290
1453
|
}
|
|
1291
|
-
function
|
|
1454
|
+
function qt(a) {
|
|
1292
1455
|
let t = 0;
|
|
1293
|
-
for (let e = 0; e <
|
|
1294
|
-
const [r, o] =
|
|
1295
|
-
t += r * n -
|
|
1456
|
+
for (let e = 0; e < a.length - 1; e++) {
|
|
1457
|
+
const [r, o] = a[e], [i, n] = a[e + 1];
|
|
1458
|
+
t += r * n - i * o;
|
|
1296
1459
|
}
|
|
1297
1460
|
return t / 2;
|
|
1298
1461
|
}
|
|
1299
|
-
function
|
|
1300
|
-
const t =
|
|
1301
|
-
return !t || !e || t[0] === e[0] && t[1] === e[1] ?
|
|
1462
|
+
function ne(a) {
|
|
1463
|
+
const t = a[0], e = a.at(-1);
|
|
1464
|
+
return !t || !e || t[0] === e[0] && t[1] === e[1] ? a : [...a, t];
|
|
1302
1465
|
}
|
|
1303
|
-
function
|
|
1304
|
-
const e =
|
|
1305
|
-
if (
|
|
1306
|
-
const
|
|
1307
|
-
return
|
|
1466
|
+
function se(a, t) {
|
|
1467
|
+
const e = ne(a);
|
|
1468
|
+
if (qt(e) < 0 === t) return e;
|
|
1469
|
+
const i = [...e].reverse();
|
|
1470
|
+
return ne(i);
|
|
1308
1471
|
}
|
|
1309
|
-
function
|
|
1472
|
+
function le(a, t, e) {
|
|
1310
1473
|
if (e < 4) throw new Error("steps must be >= 4");
|
|
1311
1474
|
const r = [];
|
|
1312
1475
|
for (let o = 0; o < e; o++) {
|
|
1313
|
-
const
|
|
1476
|
+
const i = o / e * 360, n = Yt(a, t, i);
|
|
1314
1477
|
r.push([n.lng, n.lat]);
|
|
1315
1478
|
}
|
|
1316
|
-
return
|
|
1479
|
+
return ne(r);
|
|
1317
1480
|
}
|
|
1318
|
-
function
|
|
1319
|
-
const { id: t, center: e, radiusMeters: r, layerIndex: o, steps:
|
|
1481
|
+
function Kt(a) {
|
|
1482
|
+
const { id: t, center: e, radiusMeters: r, layerIndex: o, steps: i } = a, n = se(le(e, r, i), !1);
|
|
1320
1483
|
return {
|
|
1321
1484
|
type: "Feature",
|
|
1322
1485
|
properties: {
|
|
@@ -1333,26 +1496,26 @@ function Nt(i) {
|
|
|
1333
1496
|
geometry: { type: "Polygon", coordinates: [n] }
|
|
1334
1497
|
};
|
|
1335
1498
|
}
|
|
1336
|
-
function
|
|
1499
|
+
function Qt(a) {
|
|
1337
1500
|
const {
|
|
1338
1501
|
id: t,
|
|
1339
1502
|
center: e,
|
|
1340
1503
|
radiusOuterMeters: r,
|
|
1341
1504
|
radiusInnerMeters: o,
|
|
1342
|
-
layerIndex:
|
|
1505
|
+
layerIndex: i,
|
|
1343
1506
|
steps: n
|
|
1344
|
-
} =
|
|
1345
|
-
|
|
1507
|
+
} = a, s = se(
|
|
1508
|
+
le(e, r, n),
|
|
1346
1509
|
!1
|
|
1347
|
-
), l =
|
|
1348
|
-
|
|
1510
|
+
), l = se(
|
|
1511
|
+
le(e, o, n),
|
|
1349
1512
|
!0
|
|
1350
1513
|
);
|
|
1351
1514
|
return {
|
|
1352
1515
|
type: "Feature",
|
|
1353
1516
|
properties: {
|
|
1354
1517
|
id: t,
|
|
1355
|
-
layer_index:
|
|
1518
|
+
layer_index: i,
|
|
1356
1519
|
radius_outer: r,
|
|
1357
1520
|
type: "ring",
|
|
1358
1521
|
_meta: {
|
|
@@ -1364,76 +1527,76 @@ function Ht(i) {
|
|
|
1364
1527
|
geometry: { type: "Polygon", coordinates: [s, l] }
|
|
1365
1528
|
};
|
|
1366
1529
|
}
|
|
1367
|
-
function
|
|
1368
|
-
const { circles: t, steps: e = 64 } =
|
|
1369
|
-
return r.forEach((
|
|
1370
|
-
const s =
|
|
1530
|
+
function Wt(a) {
|
|
1531
|
+
const { circles: t, steps: e = 64 } = a, r = [...t].sort((i, n) => i.getRadius() - n.getRadius()), o = [];
|
|
1532
|
+
return r.forEach((i, n) => {
|
|
1533
|
+
const s = i.getLatLng(), l = i.getRadius(), c = de();
|
|
1371
1534
|
if (n === 0) {
|
|
1372
1535
|
o.push(
|
|
1373
|
-
|
|
1536
|
+
Kt({ id: c, center: s, radiusMeters: l, layerIndex: n, steps: e })
|
|
1374
1537
|
);
|
|
1375
1538
|
return;
|
|
1376
1539
|
}
|
|
1377
|
-
const
|
|
1540
|
+
const u = r[n - 1].getRadius();
|
|
1378
1541
|
o.push(
|
|
1379
|
-
|
|
1542
|
+
Qt({
|
|
1380
1543
|
id: c,
|
|
1381
1544
|
center: s,
|
|
1382
1545
|
radiusOuterMeters: l,
|
|
1383
|
-
radiusInnerMeters:
|
|
1546
|
+
radiusInnerMeters: u,
|
|
1384
1547
|
layerIndex: n,
|
|
1385
1548
|
steps: e
|
|
1386
1549
|
})
|
|
1387
1550
|
);
|
|
1388
1551
|
}), { type: "FeatureCollection", features: o };
|
|
1389
1552
|
}
|
|
1390
|
-
function P(
|
|
1391
|
-
|
|
1553
|
+
function P(a) {
|
|
1554
|
+
a.preventDefault(), a.stopPropagation();
|
|
1392
1555
|
}
|
|
1393
|
-
function
|
|
1556
|
+
function Xt(a) {
|
|
1394
1557
|
var c, d;
|
|
1395
|
-
const { root: t, addButtonId: e, saveButtonId: r, onAddRing: o, onSave:
|
|
1558
|
+
const { root: t, addButtonId: e, saveButtonId: r, onAddRing: o, onSave: i } = a, n = (c = t.querySelector) == null ? void 0 : c.call(t, `#${e}`), s = (d = t.querySelector) == null ? void 0 : d.call(t, `#${r}`);
|
|
1396
1559
|
if (!n || !s) return;
|
|
1397
1560
|
const l = "data-cake-controls-bound";
|
|
1398
1561
|
if (!(n.hasAttribute(l) || s.hasAttribute(l))) {
|
|
1399
1562
|
n.setAttribute(l, "true"), s.setAttribute(l, "true");
|
|
1400
|
-
for (const
|
|
1401
|
-
|
|
1402
|
-
n.addEventListener("click", (
|
|
1403
|
-
P(
|
|
1404
|
-
}), s.addEventListener("click", (
|
|
1405
|
-
P(
|
|
1563
|
+
for (const u of [n, s])
|
|
1564
|
+
u.addEventListener("pointerdown", P), u.addEventListener("mousedown", P), u.addEventListener("touchstart", P);
|
|
1565
|
+
n.addEventListener("click", (u) => {
|
|
1566
|
+
P(u), o();
|
|
1567
|
+
}), s.addEventListener("click", (u) => {
|
|
1568
|
+
P(u), i();
|
|
1406
1569
|
});
|
|
1407
1570
|
}
|
|
1408
1571
|
}
|
|
1409
|
-
function
|
|
1572
|
+
function $t(a) {
|
|
1410
1573
|
var e;
|
|
1411
|
-
const t = (e =
|
|
1574
|
+
const t = (e = a.options) != null ? e : {};
|
|
1412
1575
|
t.original || (t.original = { ...t }), t.editing || (t.editing = { ...t });
|
|
1413
1576
|
}
|
|
1414
|
-
function z(
|
|
1577
|
+
function z(a, t) {
|
|
1415
1578
|
if (t === "imperial") {
|
|
1416
|
-
const e =
|
|
1579
|
+
const e = a * 3.28084;
|
|
1417
1580
|
return e >= 5280 ? `${(e / 5280).toFixed(2)} mi` : `${Math.round(e)} ft`;
|
|
1418
1581
|
}
|
|
1419
|
-
return
|
|
1582
|
+
return a >= 1e3 ? `${(a / 1e3).toFixed(2)} km` : `${Math.round(a)} m`;
|
|
1420
1583
|
}
|
|
1421
|
-
class
|
|
1584
|
+
class er {
|
|
1422
1585
|
constructor(t, e, r, o = "metric") {
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1586
|
+
h(this, "map");
|
|
1587
|
+
h(this, "layers", []);
|
|
1588
|
+
h(this, "controlsGroup");
|
|
1589
|
+
h(this, "onSave");
|
|
1590
|
+
h(this, "sessionId", de().slice(0, 8));
|
|
1591
|
+
h(this, "baseCircleOptions");
|
|
1592
|
+
h(this, "detachMapListeners", []);
|
|
1593
|
+
h(this, "renderScheduled", !1);
|
|
1594
|
+
h(this, "measurementSystem");
|
|
1432
1595
|
this.map = t, this.onSave = r, this.measurementSystem = o, this.controlsGroup = x.layerGroup().addTo(t), this.baseCircleOptions = { ...e.options }, delete this.baseCircleOptions.editing, delete this.baseCircleOptions.original, this.addLayer(e), this.installEditEventBridges(), this.renderControls();
|
|
1433
1596
|
}
|
|
1434
1597
|
installEditEventBridges() {
|
|
1435
|
-
var d,
|
|
1436
|
-
const t = x, e = (
|
|
1598
|
+
var d, u, p, g, m, f, A, v;
|
|
1599
|
+
const t = x, e = (u = (d = t == null ? void 0 : t.Draw) == null ? void 0 : d.Event) == null ? void 0 : u.EDITMOVE, r = (g = (p = t == null ? void 0 : t.Draw) == null ? void 0 : p.Event) == null ? void 0 : g.EDITRESIZE, o = (f = (m = t == null ? void 0 : t.Draw) == null ? void 0 : m.Event) == null ? void 0 : f.EDITSTART, i = (v = (A = t == null ? void 0 : t.Draw) == null ? void 0 : A.Event) == null ? void 0 : v.EDITSTOP;
|
|
1437
1600
|
if (!e || !r) return;
|
|
1438
1601
|
const n = (y) => {
|
|
1439
1602
|
const b = y == null ? void 0 : y.layer;
|
|
@@ -1445,18 +1608,18 @@ class Jt {
|
|
|
1445
1608
|
var k;
|
|
1446
1609
|
const b = y == null ? void 0 : y.layer;
|
|
1447
1610
|
if (!b || !this.layers.includes(b)) return;
|
|
1448
|
-
const
|
|
1449
|
-
((k =
|
|
1611
|
+
const w = b;
|
|
1612
|
+
((k = w.getTooltip) == null ? void 0 : k.call(w)) && this.updateLabels(w);
|
|
1450
1613
|
}, c = () => {
|
|
1451
1614
|
this.layers.forEach((y) => {
|
|
1452
|
-
var
|
|
1453
|
-
const b = (
|
|
1615
|
+
var w;
|
|
1616
|
+
const b = (w = y.getTooltip) == null ? void 0 : w.call(y);
|
|
1454
1617
|
b && (y.setTooltipContent(
|
|
1455
1618
|
z(y.getRadius(), this.measurementSystem)
|
|
1456
1619
|
), b.options.offset = [10, 0], b.options.direction = "right", y.closeTooltip(), y.openTooltip());
|
|
1457
1620
|
});
|
|
1458
1621
|
};
|
|
1459
|
-
this.map.on(e, n), this.map.on(r, s), o && (this.map.on(o, l), this.detachMapListeners.push(() => this.map.off(o, l))),
|
|
1622
|
+
this.map.on(e, n), this.map.on(r, s), o && (this.map.on(o, l), this.detachMapListeners.push(() => this.map.off(o, l))), i && (this.map.on(i, c), this.detachMapListeners.push(() => this.map.off(i, c))), this.detachMapListeners.push(() => this.map.off(e, n)), this.detachMapListeners.push(() => this.map.off(r, s));
|
|
1460
1623
|
}
|
|
1461
1624
|
requestRenderControls() {
|
|
1462
1625
|
if (this.renderScheduled) return;
|
|
@@ -1476,10 +1639,10 @@ class Jt {
|
|
|
1476
1639
|
);
|
|
1477
1640
|
const e = t.editing;
|
|
1478
1641
|
setTimeout(() => {
|
|
1479
|
-
var r, o,
|
|
1642
|
+
var r, o, i, n, s;
|
|
1480
1643
|
try {
|
|
1481
|
-
if ((r = t.redraw) == null || r.call(t),
|
|
1482
|
-
(
|
|
1644
|
+
if ((r = t.redraw) == null || r.call(t), $t(t), (o = e == null ? void 0 : e.enabled) != null && o.call(e)) {
|
|
1645
|
+
(i = e.updateMarkers) == null || i.call(e), this.requestRenderControls();
|
|
1483
1646
|
return;
|
|
1484
1647
|
}
|
|
1485
1648
|
(n = e == null ? void 0 : e.enable) == null || n.call(e), (s = e == null ? void 0 : e.updateMarkers) == null || s.call(e), this.requestRenderControls();
|
|
@@ -1498,7 +1661,7 @@ class Jt {
|
|
|
1498
1661
|
this.addLayer(r), this.renderControls();
|
|
1499
1662
|
}
|
|
1500
1663
|
save() {
|
|
1501
|
-
const t =
|
|
1664
|
+
const t = Wt({ circles: this.layers });
|
|
1502
1665
|
this.onSave(t), this.destroy();
|
|
1503
1666
|
}
|
|
1504
1667
|
getLargestCircle() {
|
|
@@ -1509,8 +1672,8 @@ class Jt {
|
|
|
1509
1672
|
syncCenters(t) {
|
|
1510
1673
|
const e = t.getLatLng();
|
|
1511
1674
|
this.layers.forEach((r) => {
|
|
1512
|
-
var o,
|
|
1513
|
-
r !== t && (r.setLatLng(e), (o = r.redraw) == null || o.call(r), (n = (
|
|
1675
|
+
var o, i, n;
|
|
1676
|
+
r !== t && (r.setLatLng(e), (o = r.redraw) == null || o.call(r), (n = (i = r.editing) == null ? void 0 : i.updateMarkers) == null || n.call(i));
|
|
1514
1677
|
}), this.requestRenderControls();
|
|
1515
1678
|
}
|
|
1516
1679
|
/**
|
|
@@ -1527,27 +1690,27 @@ class Jt {
|
|
|
1527
1690
|
);
|
|
1528
1691
|
if (o.length > 0) {
|
|
1529
1692
|
const s = o.reduce(
|
|
1530
|
-
(d,
|
|
1693
|
+
(d, u) => d.getRadius() > u.getRadius() ? d : u
|
|
1531
1694
|
), l = e - s.getRadius(), c = z(l, this.measurementSystem);
|
|
1532
1695
|
r = `${z(e, this.measurementSystem)} (+${c})`;
|
|
1533
1696
|
}
|
|
1534
|
-
const
|
|
1535
|
-
if (
|
|
1697
|
+
const i = (n = t.getTooltip) == null ? void 0 : n.call(t);
|
|
1698
|
+
if (i) {
|
|
1536
1699
|
t.setTooltipContent(r);
|
|
1537
1700
|
const l = t.getBounds().getSouthWest();
|
|
1538
|
-
l.lat = t.getLatLng().lat,
|
|
1701
|
+
l.lat = t.getLatLng().lat, i.options.direction = "left", i.options.offset = [-10, 0], i.setLatLng(l), t.closeTooltip(), t.openTooltip();
|
|
1539
1702
|
}
|
|
1540
1703
|
}
|
|
1541
1704
|
renderControls() {
|
|
1542
1705
|
this.controlsGroup.clearLayers();
|
|
1543
1706
|
const t = this.getLargestCircle();
|
|
1544
1707
|
if (!t) return;
|
|
1545
|
-
const r = t.getBounds().getNorthEast(), o = `cake-add-${this.sessionId}`,
|
|
1708
|
+
const r = t.getBounds().getNorthEast(), o = `cake-add-${this.sessionId}`, i = `cake-save-${this.sessionId}`, n = x.divIcon({
|
|
1546
1709
|
className: "layer-cake-controls",
|
|
1547
1710
|
html: `
|
|
1548
1711
|
<div class="layer-cake-controls__container">
|
|
1549
1712
|
<button id="${o}" type="button">➕ Ring</button>
|
|
1550
|
-
<button id="${
|
|
1713
|
+
<button id="${i}" type="button" class="layer-cake-controls__save">💾 Save</button>
|
|
1551
1714
|
</div>
|
|
1552
1715
|
`,
|
|
1553
1716
|
iconSize: [140, 40],
|
|
@@ -1560,10 +1723,10 @@ class Jt {
|
|
|
1560
1723
|
bubblingMouseEvents: !1
|
|
1561
1724
|
}).addTo(this.controlsGroup), setTimeout(() => {
|
|
1562
1725
|
const s = this.map.getContainer();
|
|
1563
|
-
|
|
1726
|
+
Xt({
|
|
1564
1727
|
root: s,
|
|
1565
1728
|
addButtonId: o,
|
|
1566
|
-
saveButtonId:
|
|
1729
|
+
saveButtonId: i,
|
|
1567
1730
|
onAddRing: () => this.addRing(),
|
|
1568
1731
|
onSave: () => this.save()
|
|
1569
1732
|
});
|
|
@@ -1578,7 +1741,7 @@ class Jt {
|
|
|
1578
1741
|
}), this.detachMapListeners = [], this.layers.forEach((t) => this.map.removeLayer(t)), this.layers = [], this.controlsGroup.clearLayers(), this.map.removeLayer(this.controlsGroup);
|
|
1579
1742
|
}
|
|
1580
1743
|
}
|
|
1581
|
-
const
|
|
1744
|
+
const tr = `<?xml version="1.0" encoding="utf-8"?>
|
|
1582
1745
|
\r<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
1583
1746
|
<svg width="800px" height="800px" viewBox="0 -1.67 47.336 47.336" xmlns="http://www.w3.org/2000/svg">\r
|
|
1584
1747
|
<g id="Group_42" data-name="Group 42" transform="translate(-172.455 -364.36)">\r
|
|
@@ -1589,7 +1752,7 @@ const Zt = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
1589
1752
|
<path id="Path_91" data-name="Path 91" d="M211.234,370.794a3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>\r
|
|
1590
1753
|
</g>\r
|
|
1591
1754
|
</g>\r
|
|
1592
|
-
</svg>`,
|
|
1755
|
+
</svg>`, rr = `<?xml version="1.0" encoding="utf-8"?>
|
|
1593
1756
|
<!-- Four-way directional arrow icon for move tool -->
|
|
1594
1757
|
<svg width="800px" height="800px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
1595
1758
|
<g fill="none" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
@@ -1609,60 +1772,60 @@ const Zt = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
1609
1772
|
<path d="M22 12 L19 15"/>
|
|
1610
1773
|
</g>
|
|
1611
1774
|
</svg>
|
|
1612
|
-
`,
|
|
1613
|
-
function
|
|
1614
|
-
const t = BigInt(Math.round(
|
|
1615
|
-
return Number(t) /
|
|
1775
|
+
`, Be = 6378137, S = 6356752314245e-6, T = 1 / 298.257223563, or = Math.PI / 180, ar = 180 / Math.PI, F = 1e9;
|
|
1776
|
+
function ir(a) {
|
|
1777
|
+
const t = BigInt(Math.round(a * F));
|
|
1778
|
+
return Number(t) / F;
|
|
1616
1779
|
}
|
|
1617
|
-
function B(
|
|
1618
|
-
return
|
|
1780
|
+
function B(a) {
|
|
1781
|
+
return ir(a) * or;
|
|
1619
1782
|
}
|
|
1620
|
-
function
|
|
1621
|
-
const t =
|
|
1783
|
+
function we(a) {
|
|
1784
|
+
const t = a * ar % 360;
|
|
1622
1785
|
return t < 0 ? t + 360 : t;
|
|
1623
1786
|
}
|
|
1624
|
-
function
|
|
1625
|
-
const t = BigInt(Math.round(
|
|
1626
|
-
return Number(t) /
|
|
1787
|
+
function ce(a) {
|
|
1788
|
+
const t = BigInt(Math.round(a * F));
|
|
1789
|
+
return Number(t) / F;
|
|
1627
1790
|
}
|
|
1628
|
-
function
|
|
1629
|
-
const o =
|
|
1791
|
+
function nr(a, t, e, r) {
|
|
1792
|
+
const o = sr(a, t, e, r);
|
|
1630
1793
|
if (o.converged)
|
|
1631
1794
|
return {
|
|
1632
|
-
meters:
|
|
1633
|
-
bearingDegrees:
|
|
1795
|
+
meters: ce(o.distanceMeters),
|
|
1796
|
+
bearingDegrees: we(o.bearingRad),
|
|
1634
1797
|
algorithm: "vincenty",
|
|
1635
1798
|
iterations: o.iterations
|
|
1636
1799
|
};
|
|
1637
|
-
const
|
|
1800
|
+
const i = lr(a, t, e, r);
|
|
1638
1801
|
return {
|
|
1639
|
-
meters:
|
|
1640
|
-
bearingDegrees:
|
|
1802
|
+
meters: ce(i.distanceMeters),
|
|
1803
|
+
bearingDegrees: we(i.bearingRad),
|
|
1641
1804
|
algorithm: "karney",
|
|
1642
1805
|
iterations: o.iterations
|
|
1643
1806
|
};
|
|
1644
1807
|
}
|
|
1645
|
-
function
|
|
1646
|
-
const o = B(
|
|
1808
|
+
function sr(a, t, e, r) {
|
|
1809
|
+
const o = B(a), i = B(e), n = B(r - t), s = Math.atan((1 - T) * Math.tan(o)), l = Math.atan((1 - T) * Math.tan(i)), c = Math.sin(s), d = Math.cos(s), u = Math.sin(l), p = Math.cos(l);
|
|
1647
1810
|
let g = n, m = 0, f = 0;
|
|
1648
1811
|
const A = 200;
|
|
1649
|
-
let
|
|
1812
|
+
let v = 0, y = 0, b = 0, w = 0, E = 0;
|
|
1650
1813
|
for (; Math.abs(g - m) > 1e-12 && f < A; ) {
|
|
1651
|
-
const
|
|
1652
|
-
if (
|
|
1653
|
-
(
|
|
1654
|
-
),
|
|
1814
|
+
const ue = Math.sin(g), he = Math.cos(g);
|
|
1815
|
+
if (v = Math.sqrt(
|
|
1816
|
+
(p * ue) ** 2 + (d * u - c * p * he) ** 2
|
|
1817
|
+
), v === 0)
|
|
1655
1818
|
return {
|
|
1656
1819
|
distanceMeters: 0,
|
|
1657
1820
|
bearingRad: 0,
|
|
1658
1821
|
iterations: f,
|
|
1659
1822
|
converged: !0
|
|
1660
1823
|
};
|
|
1661
|
-
y = c *
|
|
1662
|
-
const
|
|
1663
|
-
|
|
1664
|
-
const
|
|
1665
|
-
m = g, g = n + (1 -
|
|
1824
|
+
y = c * u + d * p * he, b = Math.atan2(v, y);
|
|
1825
|
+
const pe = d * p * ue / v;
|
|
1826
|
+
w = 1 - pe ** 2, E = w === 0 ? 0 : y - 2 * c * u / w;
|
|
1827
|
+
const Y = T / 16 * w * (4 + T * (4 - 3 * w));
|
|
1828
|
+
m = g, g = n + (1 - Y) * T * pe * (b + Y * v * (E + Y * y * (-1 + 2 * E ** 2))), f += 1;
|
|
1666
1829
|
}
|
|
1667
1830
|
if (f >= A)
|
|
1668
1831
|
return {
|
|
@@ -1671,30 +1834,30 @@ function Xt(i, t, e, r) {
|
|
|
1671
1834
|
iterations: f,
|
|
1672
1835
|
converged: !1
|
|
1673
1836
|
};
|
|
1674
|
-
const k = (
|
|
1675
|
-
|
|
1676
|
-
d *
|
|
1837
|
+
const k = (Be ** 2 - S ** 2) / S ** 2 * w, C = 1 + k / 16384 * (4096 + k * (-768 + k * (320 - 175 * k))), _ = k / 1024 * (256 + k * (-128 + k * (74 - 47 * k))), D = _ * v * (E + _ / 4 * (y * (-1 + 2 * E ** 2) - _ / 6 * E * (-3 + 4 * v ** 2) * (-3 + 4 * E ** 2))), Ne = S * C * (b - D), Fe = Math.atan2(
|
|
1838
|
+
p * Math.sin(g),
|
|
1839
|
+
d * u - c * p * Math.cos(g)
|
|
1677
1840
|
);
|
|
1678
1841
|
return {
|
|
1679
|
-
distanceMeters:
|
|
1680
|
-
bearingRad:
|
|
1842
|
+
distanceMeters: Ne,
|
|
1843
|
+
bearingRad: Fe,
|
|
1681
1844
|
iterations: f,
|
|
1682
1845
|
converged: !0
|
|
1683
1846
|
};
|
|
1684
1847
|
}
|
|
1685
|
-
function
|
|
1686
|
-
const o = B(
|
|
1687
|
-
(
|
|
1688
|
-
), m = c *
|
|
1848
|
+
function lr(a, t, e, r) {
|
|
1849
|
+
const o = B(a), i = B(e), n = B(r - t), s = Math.atan((1 - T) * Math.tan(o)), l = Math.atan((1 - T) * Math.tan(i)), c = Math.sin(s), d = Math.cos(s), u = Math.sin(l), p = Math.cos(l), g = Math.sqrt(
|
|
1850
|
+
(p * Math.sin(n)) ** 2 + (d * u - c * p * Math.cos(n)) ** 2
|
|
1851
|
+
), m = c * u + d * p * Math.cos(n), f = Math.atan2(g, m);
|
|
1689
1852
|
if (f === 0)
|
|
1690
1853
|
return { distanceMeters: 0, bearingRad: 0 };
|
|
1691
|
-
const
|
|
1692
|
-
|
|
1693
|
-
d *
|
|
1854
|
+
const v = 1 - (d * p * Math.sin(n) / Math.sin(f)) ** 2, y = v === 0 ? 0 : m - 2 * c * u / v, b = (Be ** 2 - S ** 2) / S ** 2 * v, w = 1 + b / 16384 * (4096 + b * (-768 + b * (320 - 175 * b))), E = b / 1024 * (256 + b * (-128 + b * (74 - 47 * b))), k = E * g * (y + E / 4 * (m * (-1 + 2 * y ** 2) - E / 6 * y * (-3 + 4 * g ** 2) * (-3 + 4 * y ** 2))), C = S * w * (f - k), _ = Math.atan2(
|
|
1855
|
+
p * Math.sin(n),
|
|
1856
|
+
d * u - c * p * Math.cos(n)
|
|
1694
1857
|
);
|
|
1695
|
-
return { distanceMeters:
|
|
1858
|
+
return { distanceMeters: C, bearingRad: _ };
|
|
1696
1859
|
}
|
|
1697
|
-
const
|
|
1860
|
+
const cr = {
|
|
1698
1861
|
position: "topleft",
|
|
1699
1862
|
circleMarker: {
|
|
1700
1863
|
color: "red",
|
|
@@ -1710,97 +1873,97 @@ const $t = {
|
|
|
1710
1873
|
factor: null,
|
|
1711
1874
|
label: "Bearing:"
|
|
1712
1875
|
}
|
|
1713
|
-
},
|
|
1876
|
+
}, dr = {
|
|
1714
1877
|
display: "km",
|
|
1715
1878
|
decimal: 2,
|
|
1716
1879
|
factor: null,
|
|
1717
1880
|
label: "Distance (km):"
|
|
1718
|
-
},
|
|
1881
|
+
}, ur = {
|
|
1719
1882
|
display: "mi",
|
|
1720
1883
|
decimal: 2,
|
|
1721
1884
|
factor: 0.621371,
|
|
1722
1885
|
label: "Distance (mi):"
|
|
1723
1886
|
};
|
|
1724
|
-
function
|
|
1725
|
-
const t =
|
|
1887
|
+
function hr(a) {
|
|
1888
|
+
const t = a === "imperial" ? { ...ur } : { ...dr };
|
|
1726
1889
|
return {
|
|
1727
|
-
|
|
1890
|
+
...cr,
|
|
1728
1891
|
lengthUnit: t
|
|
1729
1892
|
};
|
|
1730
1893
|
}
|
|
1731
|
-
const
|
|
1894
|
+
const pr = {
|
|
1732
1895
|
metric: "Meters / Kilometers",
|
|
1733
1896
|
imperial: "Feet / Miles"
|
|
1734
1897
|
};
|
|
1735
|
-
function
|
|
1736
|
-
var
|
|
1737
|
-
const e = !!((
|
|
1898
|
+
function X(a, t = {}) {
|
|
1899
|
+
var i, n;
|
|
1900
|
+
const e = !!((i = a == null ? void 0 : a.Control) != null && i.Draw), r = !!a.draw, o = e && r;
|
|
1738
1901
|
return o || (n = t.onError) == null || n.call(
|
|
1739
1902
|
t,
|
|
1740
1903
|
"Leaflet.draw is not available on the provided Leaflet instance"
|
|
1741
1904
|
), o;
|
|
1742
1905
|
}
|
|
1743
|
-
let
|
|
1744
|
-
const
|
|
1906
|
+
let xe = !1;
|
|
1907
|
+
const fr = {
|
|
1745
1908
|
polygon: "tool:polygon:created",
|
|
1746
1909
|
polyline: "tool:polyline:created",
|
|
1747
1910
|
rectangle: "tool:rectangle:created",
|
|
1748
1911
|
circle: "tool:circle:created",
|
|
1749
1912
|
marker: "tool:marker:created"
|
|
1750
1913
|
};
|
|
1751
|
-
class
|
|
1914
|
+
class gr {
|
|
1752
1915
|
constructor(t) {
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1916
|
+
h(this, "container");
|
|
1917
|
+
h(this, "logger");
|
|
1918
|
+
h(this, "options");
|
|
1756
1919
|
// Active Leaflet namespace (injected or bundled fallback)
|
|
1757
|
-
|
|
1920
|
+
h(this, "L");
|
|
1758
1921
|
// Data store (id-centric)
|
|
1759
|
-
|
|
1922
|
+
h(this, "store");
|
|
1760
1923
|
// Leaflet entities
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1924
|
+
h(this, "map", null);
|
|
1925
|
+
h(this, "tileLayer", null);
|
|
1926
|
+
h(this, "drawnItems", null);
|
|
1764
1927
|
// Keep 'any' here to avoid type friction across different @types/leaflet-draw versions
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1928
|
+
h(this, "drawControl", null);
|
|
1929
|
+
h(this, "rulerControl", null);
|
|
1930
|
+
h(this, "measurementControl", null);
|
|
1931
|
+
h(this, "measurementSystem", "metric");
|
|
1932
|
+
h(this, "measurementModalOverlay", null);
|
|
1933
|
+
h(this, "measurementModalDialog", null);
|
|
1934
|
+
h(this, "measurementModalRadios", {});
|
|
1935
|
+
h(this, "measurementModalKeydownHandler", null);
|
|
1773
1936
|
// Detacher for our polygon close-on-first-vertex patch
|
|
1774
|
-
|
|
1937
|
+
h(this, "detachPolygonFinishPatch", null);
|
|
1775
1938
|
// Context menu for vertex deletion
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1939
|
+
h(this, "vertexMenuEl", null);
|
|
1940
|
+
h(this, "vertexMenuCleanup", null);
|
|
1941
|
+
h(this, "vertexEditSurfaceCleanup", null);
|
|
1942
|
+
h(this, "activeCakeSession", null);
|
|
1780
1943
|
// Move tool UI elements
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
var e, r, o,
|
|
1788
|
-
this.options = t, this.container = t.container, this.logger = ((e = t.logger) != null ? e :
|
|
1944
|
+
h(this, "moveConfirmationUI", null);
|
|
1945
|
+
h(this, "activeMoveHandler", null);
|
|
1946
|
+
h(this, "markerIconConfig", null);
|
|
1947
|
+
h(this, "markerIcon", null);
|
|
1948
|
+
h(this, "toolButtonConfig", null);
|
|
1949
|
+
h(this, "toolbarGroups", null);
|
|
1950
|
+
var e, r, o, i;
|
|
1951
|
+
this.options = t, this.container = t.container, this.logger = ((e = t.logger) != null ? e : V("controller", "debug")).child(
|
|
1789
1952
|
"map"
|
|
1790
|
-
), this.L = this.resolveLeaflet(t), this.store = new
|
|
1953
|
+
), this.L = this.resolveLeaflet(t), this.store = new At(this.logger.child("store")), this.setMarkerIconConfig((r = t.markerIconConfig) != null ? r : null, {
|
|
1791
1954
|
reapplyExistingLayers: !1,
|
|
1792
1955
|
syncDrawControl: !1
|
|
1793
|
-
}), this.toolButtonConfig = (o = t.toolButtonConfig) != null ? o : null, this.toolbarGroups = (
|
|
1956
|
+
}), this.toolButtonConfig = (o = t.toolButtonConfig) != null ? o : null, this.toolbarGroups = (i = t.toolbarGroups) != null ? i : null, this.logger.debug("ctor", {
|
|
1794
1957
|
config: t.map,
|
|
1795
1958
|
controls: t.controls,
|
|
1796
1959
|
readOnly: t.readOnly,
|
|
1797
1960
|
useExternalLeaflet: t.useExternalLeaflet
|
|
1798
|
-
}),
|
|
1961
|
+
}), Jt(this.L), Zt(this.L), Vt(this.L);
|
|
1799
1962
|
}
|
|
1800
1963
|
emitToolEvent(t, e) {
|
|
1801
|
-
var o,
|
|
1964
|
+
var o, i;
|
|
1802
1965
|
try {
|
|
1803
|
-
(
|
|
1966
|
+
(i = (o = this.options.toolHooks) == null ? void 0 : o[t]) == null || i.call(o, e);
|
|
1804
1967
|
} catch (n) {
|
|
1805
1968
|
this._error(`tool hook failed: ${t}`, n);
|
|
1806
1969
|
}
|
|
@@ -1834,11 +1997,26 @@ class ar {
|
|
|
1834
1997
|
this.options.toolbarGroups = t != null ? t : null, this.toolbarGroups = t != null ? t : null, this.applyToolButtonCustomizations();
|
|
1835
1998
|
}
|
|
1836
1999
|
activateTool(t, e = {}) {
|
|
1837
|
-
var o;
|
|
2000
|
+
var o, i, n;
|
|
1838
2001
|
const r = (o = e.source) != null ? o : "api";
|
|
1839
2002
|
try {
|
|
1840
2003
|
if (t === "select")
|
|
1841
2004
|
return this.deactivateTool({ source: r, groupId: e.groupId });
|
|
2005
|
+
if (t === "save") {
|
|
2006
|
+
const l = this.store.toFeatureCollection();
|
|
2007
|
+
return (n = (i = this.options.callbacks) == null ? void 0 : i.onSaved) == null || n.call(i, {
|
|
2008
|
+
geoJSON: l,
|
|
2009
|
+
featureCount: l.features.length
|
|
2010
|
+
}), this.emitToolEvent("tool:save", {
|
|
2011
|
+
geoJSON: l,
|
|
2012
|
+
featureCount: l.features.length
|
|
2013
|
+
}), this.emitToolTrigger({
|
|
2014
|
+
tool: t,
|
|
2015
|
+
source: r,
|
|
2016
|
+
groupId: e.groupId,
|
|
2017
|
+
handled: !0
|
|
2018
|
+
}), !0;
|
|
2019
|
+
}
|
|
1842
2020
|
if (t === "layerStyle")
|
|
1843
2021
|
return this.emitToolTrigger({
|
|
1844
2022
|
tool: t,
|
|
@@ -1854,36 +2032,36 @@ class ar {
|
|
|
1854
2032
|
handled: !0
|
|
1855
2033
|
}), !0;
|
|
1856
2034
|
if (t === "ruler") {
|
|
1857
|
-
const
|
|
2035
|
+
const l = this.triggerRulerTool();
|
|
1858
2036
|
return this.emitToolTrigger({
|
|
1859
2037
|
tool: t,
|
|
1860
2038
|
source: r,
|
|
1861
2039
|
groupId: e.groupId,
|
|
1862
|
-
handled:
|
|
1863
|
-
error:
|
|
1864
|
-
}),
|
|
2040
|
+
handled: l,
|
|
2041
|
+
error: l ? void 0 : "Ruler control is not available"
|
|
2042
|
+
}), l;
|
|
1865
2043
|
}
|
|
1866
|
-
const
|
|
1867
|
-
return !
|
|
2044
|
+
const s = this.findLeafletDrawHandler(t);
|
|
2045
|
+
return !s || typeof s.enable != "function" ? (this.emitToolTrigger({
|
|
1868
2046
|
tool: t,
|
|
1869
2047
|
source: r,
|
|
1870
2048
|
groupId: e.groupId,
|
|
1871
2049
|
handled: !1,
|
|
1872
2050
|
error: `Tool "${t}" is not available on this map`
|
|
1873
|
-
}), !1) : (
|
|
2051
|
+
}), !1) : (s.enable(), this.emitToolTrigger({
|
|
1874
2052
|
tool: t,
|
|
1875
2053
|
source: r,
|
|
1876
2054
|
groupId: e.groupId,
|
|
1877
2055
|
handled: !0
|
|
1878
2056
|
}), !0);
|
|
1879
|
-
} catch (
|
|
1880
|
-
const
|
|
1881
|
-
return this._error(
|
|
2057
|
+
} catch (s) {
|
|
2058
|
+
const l = `Failed to activate tool "${t}"`;
|
|
2059
|
+
return this._error(l, s), this.emitToolTrigger({
|
|
1882
2060
|
tool: t,
|
|
1883
2061
|
source: r,
|
|
1884
2062
|
groupId: e.groupId,
|
|
1885
2063
|
handled: !1,
|
|
1886
|
-
error:
|
|
2064
|
+
error: s instanceof Error ? s.message : l
|
|
1887
2065
|
}), !1;
|
|
1888
2066
|
}
|
|
1889
2067
|
}
|
|
@@ -1901,29 +2079,29 @@ class ar {
|
|
|
1901
2079
|
handled: !0
|
|
1902
2080
|
}), !0;
|
|
1903
2081
|
} catch (o) {
|
|
1904
|
-
const
|
|
1905
|
-
return this._error(
|
|
2082
|
+
const i = "Failed to deactivate active map tools";
|
|
2083
|
+
return this._error(i, o), this.emitToolTrigger({
|
|
1906
2084
|
tool: "select",
|
|
1907
2085
|
source: e,
|
|
1908
2086
|
groupId: t.groupId,
|
|
1909
2087
|
handled: !1,
|
|
1910
|
-
error: o instanceof Error ? o.message :
|
|
2088
|
+
error: o instanceof Error ? o.message : i
|
|
1911
2089
|
}), !1;
|
|
1912
2090
|
}
|
|
1913
2091
|
}
|
|
1914
2092
|
resolveLeaflet(t) {
|
|
1915
2093
|
if (!t.useExternalLeaflet)
|
|
1916
2094
|
return x;
|
|
1917
|
-
if (t.leaflet &&
|
|
2095
|
+
if (t.leaflet && X(t.leaflet))
|
|
1918
2096
|
return this.logger.debug("leaflet-runtime:external-injected"), t.leaflet;
|
|
1919
2097
|
const r = globalThis.L;
|
|
1920
|
-
return r &&
|
|
2098
|
+
return r && X(r) ? (this.logger.debug("leaflet-runtime:external-global"), r) : (this.logger.warn("leaflet-runtime:external-fallback-bundled", {
|
|
1921
2099
|
message: "External Leaflet requested but Draw APIs were missing; falling back to bundled Leaflet/Draw"
|
|
1922
2100
|
}), x);
|
|
1923
2101
|
}
|
|
1924
2102
|
// ---------------- Lifecycle ----------------
|
|
1925
2103
|
async init() {
|
|
1926
|
-
var e, r, o,
|
|
2104
|
+
var e, r, o, i, n, s;
|
|
1927
2105
|
const t = (r = (e = performance.now) == null ? void 0 : e.call(performance)) != null ? r : Date.now();
|
|
1928
2106
|
try {
|
|
1929
2107
|
await this.destroy();
|
|
@@ -1931,62 +2109,65 @@ class ar {
|
|
|
1931
2109
|
latitude: l,
|
|
1932
2110
|
longitude: c,
|
|
1933
2111
|
zoom: d,
|
|
1934
|
-
minZoom:
|
|
1935
|
-
maxZoom:
|
|
2112
|
+
minZoom: u,
|
|
2113
|
+
maxZoom: p,
|
|
1936
2114
|
tileUrl: g,
|
|
1937
2115
|
tileAttribution: m,
|
|
1938
2116
|
preferCanvas: f = !0,
|
|
1939
2117
|
// Default to Canvas rendering for better performance
|
|
1940
2118
|
useExternalLeaflet: A
|
|
1941
|
-
} = this.options.map,
|
|
1942
|
-
A &&
|
|
1943
|
-
onError: (
|
|
2119
|
+
} = this.options.map, v = [l, c], y = this.L;
|
|
2120
|
+
A && X(y, {
|
|
2121
|
+
onError: (C) => this.logger.warn("external-leaflet-missing-draw", { message: C })
|
|
1944
2122
|
}), this.map = y.map(this.container, {
|
|
1945
2123
|
zoomControl: !0,
|
|
1946
|
-
minZoom:
|
|
2124
|
+
minZoom: u,
|
|
1947
2125
|
preferCanvas: f
|
|
1948
|
-
}).setView(
|
|
2126
|
+
}).setView(v, d), this.setTileLayer(
|
|
1949
2127
|
{
|
|
1950
2128
|
urlTemplate: g,
|
|
1951
2129
|
attribution: m != null ? m : "",
|
|
1952
|
-
maxZoom:
|
|
2130
|
+
maxZoom: p
|
|
1953
2131
|
},
|
|
1954
2132
|
{
|
|
1955
|
-
onTileError: (
|
|
1956
|
-
var
|
|
1957
|
-
(
|
|
2133
|
+
onTileError: (C) => {
|
|
2134
|
+
var _, D;
|
|
2135
|
+
(D = (_ = this.options.callbacks) == null ? void 0 : _.onTileError) == null || D.call(_, C);
|
|
1958
2136
|
}
|
|
1959
2137
|
}
|
|
1960
2138
|
), this.drawnItems = y.featureGroup().addTo(this.map);
|
|
1961
2139
|
const b = this.buildDrawOptions(
|
|
1962
2140
|
this.options.controls,
|
|
1963
2141
|
!!this.options.readOnly
|
|
1964
|
-
),
|
|
1965
|
-
this.drawControl = new
|
|
2142
|
+
), w = y.Control.Draw;
|
|
2143
|
+
this.drawControl = new w(b), this.map.addControl(this.drawControl), this.applyLayerCakeToolbarIcon(), this.applyMoveToolbarIcon(), this.restoreVisibleLayersFromStore(), this.options.controls.ruler && (this.logger.debug("init:ruler", {
|
|
1966
2144
|
available: typeof y.control.ruler == "function"
|
|
1967
2145
|
}), typeof y.control.ruler == "function" ? (this.addRulerControl(), this.installMeasurementSettingsControl()) : this.logger.warn("init:ruler:missing", {
|
|
1968
2146
|
msg: "L.control.ruler is not defined"
|
|
1969
2147
|
})), this.applyToolButtonCustomizations(), this.patchLeafletDrawBugs(), this.installPolygonFinishPatch(), this.installVertexEditSurfaceMenu(), this.map.invalidateSize(), setTimeout(() => {
|
|
1970
|
-
var
|
|
2148
|
+
var C;
|
|
1971
2149
|
try {
|
|
1972
|
-
(
|
|
2150
|
+
(C = this.map) == null || C.invalidateSize();
|
|
1973
2151
|
} catch {
|
|
1974
2152
|
}
|
|
1975
2153
|
}, 0), this.bindDrawEvents();
|
|
1976
|
-
const E = ((
|
|
2154
|
+
const E = ((i = (o = performance.now) == null ? void 0 : o.call(performance)) != null ? i : Date.now()) - t;
|
|
1977
2155
|
this.logger.debug("init:ready", { elapsedMs: Math.round(E) });
|
|
1978
2156
|
const k = this.store.bounds();
|
|
1979
2157
|
(s = (n = this.options.callbacks) == null ? void 0 : n.onReady) == null || s.call(n, k ? { bounds: k } : {});
|
|
1980
2158
|
} catch (l) {
|
|
1981
|
-
this._error("Failed to initialize Leaflet map", l
|
|
2159
|
+
this._error("Failed to initialize Leaflet map", l, {
|
|
2160
|
+
code: "map_init_failed",
|
|
2161
|
+
recoverable: !1
|
|
2162
|
+
});
|
|
1982
2163
|
}
|
|
1983
2164
|
}
|
|
1984
2165
|
async destroy() {
|
|
1985
2166
|
var t, e, r, o;
|
|
1986
2167
|
try {
|
|
1987
|
-
|
|
1988
|
-
} catch (
|
|
1989
|
-
this._error("Failed to remove Leaflet map",
|
|
2168
|
+
Q(this.container, null, { toolbarGroups: null }), this.map && (this.map.off(), this.map.remove());
|
|
2169
|
+
} catch (i) {
|
|
2170
|
+
this._error("Failed to remove Leaflet map", i);
|
|
1990
2171
|
}
|
|
1991
2172
|
try {
|
|
1992
2173
|
(t = this.detachPolygonFinishPatch) == null || t.call(this);
|
|
@@ -2018,22 +2199,32 @@ class ar {
|
|
|
2018
2199
|
async getGeoJSON() {
|
|
2019
2200
|
return this.store.toFeatureCollection();
|
|
2020
2201
|
}
|
|
2202
|
+
async exportGeoJSON(t = {}) {
|
|
2203
|
+
return mt(await this.getGeoJSON(), t);
|
|
2204
|
+
}
|
|
2205
|
+
async importGeoJSON(t, e = {}) {
|
|
2206
|
+
var s;
|
|
2207
|
+
if (!this.map || !this.drawnItems) return [];
|
|
2208
|
+
const r = (s = e.behavior) != null ? s : "replace";
|
|
2209
|
+
r === "replace" && await this.clearLayers();
|
|
2210
|
+
const o = gt(t), i = this.store.add(o), n = this.createGeoJSONLayers(o);
|
|
2211
|
+
return this.addGeoJSONLayersToDrawnItems(n), this.logger.debug("importGeoJSON", {
|
|
2212
|
+
behavior: r,
|
|
2213
|
+
count: o.features.length,
|
|
2214
|
+
ids: i
|
|
2215
|
+
}), e.fitToData && await this.fitBoundsToData(), i;
|
|
2216
|
+
}
|
|
2021
2217
|
async loadGeoJSON(t, e = !1) {
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
count: r.features.length,
|
|
2027
|
-
ids: o
|
|
2028
|
-
}), e && await this.fitBoundsToData();
|
|
2218
|
+
await this.importGeoJSON(t, {
|
|
2219
|
+
behavior: "replace",
|
|
2220
|
+
fitToData: e
|
|
2221
|
+
});
|
|
2029
2222
|
}
|
|
2030
2223
|
async clearLayers() {
|
|
2031
2224
|
this.drawnItems && this.drawnItems.clearLayers(), this.store.clear();
|
|
2032
2225
|
}
|
|
2033
2226
|
async addFeatures(t) {
|
|
2034
|
-
|
|
2035
|
-
const e = he(t), r = this.store.add(e), o = this.createGeoJSONLayers(e);
|
|
2036
|
-
return this.addGeoJSONLayersToDrawnItems(o), r;
|
|
2227
|
+
return this.importGeoJSON(t, { behavior: "add" });
|
|
2037
2228
|
}
|
|
2038
2229
|
async updateFeature(t, e) {
|
|
2039
2230
|
if (!this.store.has(t)) {
|
|
@@ -2062,8 +2253,8 @@ class ar {
|
|
|
2062
2253
|
if (!e) return;
|
|
2063
2254
|
const r = e, o = this.L.latLngBounds(r);
|
|
2064
2255
|
if (t > 0) {
|
|
2065
|
-
const
|
|
2066
|
-
this.L.latLng(
|
|
2256
|
+
const i = o.getSouthWest(), n = o.getNorthEast(), s = (n.lat - i.lat) * t, l = (n.lng - i.lng) * t, c = this.L.latLngBounds(
|
|
2257
|
+
this.L.latLng(i.lat - s, i.lng - l),
|
|
2067
2258
|
this.L.latLng(n.lat + s, n.lng + l)
|
|
2068
2259
|
);
|
|
2069
2260
|
this.map.fitBounds(c);
|
|
@@ -2074,9 +2265,9 @@ class ar {
|
|
|
2074
2265
|
if (!this.map) return;
|
|
2075
2266
|
const r = this.L.latLngBounds(t);
|
|
2076
2267
|
if (e > 0) {
|
|
2077
|
-
const o = r.getSouthWest(),
|
|
2268
|
+
const o = r.getSouthWest(), i = r.getNorthEast(), n = (i.lat - o.lat) * e, s = (i.lng - o.lng) * e, l = this.L.latLngBounds(
|
|
2078
2269
|
this.L.latLng(o.lat - n, o.lng - s),
|
|
2079
|
-
this.L.latLng(
|
|
2270
|
+
this.L.latLng(i.lat + n, i.lng + s)
|
|
2080
2271
|
);
|
|
2081
2272
|
this.map.fitBounds(l);
|
|
2082
2273
|
} else
|
|
@@ -2108,10 +2299,10 @@ class ar {
|
|
|
2108
2299
|
t.urlTemplate,
|
|
2109
2300
|
r
|
|
2110
2301
|
);
|
|
2111
|
-
let
|
|
2302
|
+
let i = !1;
|
|
2112
2303
|
o.on("tileerror", (n) => {
|
|
2113
2304
|
var s;
|
|
2114
|
-
this.logger.error("tile-layer:error", { error: n }),
|
|
2305
|
+
this.logger.error("tile-layer:error", { error: n }), i || (i = !0, (s = e == null ? void 0 : e.onTileError) == null || s.call(e, n));
|
|
2115
2306
|
}), o.addTo(this.map), this.tileLayer = o;
|
|
2116
2307
|
}
|
|
2117
2308
|
/**
|
|
@@ -2125,7 +2316,7 @@ class ar {
|
|
|
2125
2316
|
if (!this.map || !this.drawnItems) return null;
|
|
2126
2317
|
const r = (await this.getGeoJSON()).features.filter((s) => {
|
|
2127
2318
|
const l = s.geometry;
|
|
2128
|
-
return l && (
|
|
2319
|
+
return l && (Me(l) || Ce(l));
|
|
2129
2320
|
});
|
|
2130
2321
|
if (r.length <= 1) {
|
|
2131
2322
|
if (r.length === 1) {
|
|
@@ -2134,14 +2325,14 @@ class ar {
|
|
|
2134
2325
|
}
|
|
2135
2326
|
return null;
|
|
2136
2327
|
}
|
|
2137
|
-
const o =
|
|
2328
|
+
const o = bt(r, t == null ? void 0 : t.properties);
|
|
2138
2329
|
if (!o) return null;
|
|
2139
|
-
const
|
|
2330
|
+
const i = [];
|
|
2140
2331
|
for (const s of r) {
|
|
2141
2332
|
const l = s.id;
|
|
2142
|
-
l &&
|
|
2333
|
+
l && i.push(String(l));
|
|
2143
2334
|
}
|
|
2144
|
-
for (const s of
|
|
2335
|
+
for (const s of i)
|
|
2145
2336
|
await this.removeFeature(s);
|
|
2146
2337
|
const [n] = await this.addFeatures({
|
|
2147
2338
|
type: "FeatureCollection",
|
|
@@ -2159,10 +2350,10 @@ class ar {
|
|
|
2159
2350
|
}
|
|
2160
2351
|
// ---------------- Internals ----------------
|
|
2161
2352
|
buildDrawOptions(t, e) {
|
|
2162
|
-
var
|
|
2353
|
+
var i;
|
|
2163
2354
|
const r = {
|
|
2164
2355
|
polygon: t.polygon ? {
|
|
2165
|
-
allowIntersection: (
|
|
2356
|
+
allowIntersection: (i = this.options.map.polygonAllowIntersection) != null ? i : !1,
|
|
2166
2357
|
// Disallow self-intersections by default
|
|
2167
2358
|
showArea: !0,
|
|
2168
2359
|
// Display area tooltip while drawing
|
|
@@ -2228,7 +2419,7 @@ class ar {
|
|
|
2228
2419
|
return this.L.geoJSON(t, {
|
|
2229
2420
|
pointToLayer: (e, r) => this.markerIcon ? this.L.marker(r, { icon: this.markerIcon }) : this.L.marker(r),
|
|
2230
2421
|
onEachFeature: (e, r) => {
|
|
2231
|
-
const o =
|
|
2422
|
+
const o = J(e);
|
|
2232
2423
|
o && (r._fid = o);
|
|
2233
2424
|
}
|
|
2234
2425
|
});
|
|
@@ -2248,12 +2439,12 @@ class ar {
|
|
|
2248
2439
|
this.addGeoJSONLayersToDrawnItems(e);
|
|
2249
2440
|
}
|
|
2250
2441
|
syncDrawMarkerOptions() {
|
|
2251
|
-
var r, o,
|
|
2442
|
+
var r, o, i, n;
|
|
2252
2443
|
const t = this.drawControl;
|
|
2253
2444
|
if (!t)
|
|
2254
2445
|
return;
|
|
2255
2446
|
const e = this.buildMarkerDrawOptions();
|
|
2256
|
-
(r = t.options) != null || (t.options = {}), (
|
|
2447
|
+
(r = t.options) != null || (t.options = {}), (i = (o = t.options).draw) != null || (o.draw = {}), t.options.draw.marker = e, (n = t.setDrawingOptions) == null || n.call(t, { marker: e });
|
|
2257
2448
|
}
|
|
2258
2449
|
reapplyMarkerIconsToExistingLayers() {
|
|
2259
2450
|
if (!this.drawnItems)
|
|
@@ -2270,7 +2461,7 @@ class ar {
|
|
|
2270
2461
|
});
|
|
2271
2462
|
}
|
|
2272
2463
|
applyToolButtonCustomizations() {
|
|
2273
|
-
|
|
2464
|
+
Q(this.container, this.toolButtonConfig, {
|
|
2274
2465
|
toolbarGroups: this.toolbarGroups,
|
|
2275
2466
|
onTrigger: (t, e) => {
|
|
2276
2467
|
if (e.activate) {
|
|
@@ -2288,7 +2479,7 @@ class ar {
|
|
|
2288
2479
|
});
|
|
2289
2480
|
}
|
|
2290
2481
|
}), setTimeout(() => {
|
|
2291
|
-
|
|
2482
|
+
Q(this.container, this.toolButtonConfig, {
|
|
2292
2483
|
toolbarGroups: this.toolbarGroups,
|
|
2293
2484
|
onTrigger: (t, e) => {
|
|
2294
2485
|
if (e.activate) {
|
|
@@ -2316,7 +2507,7 @@ class ar {
|
|
|
2316
2507
|
});
|
|
2317
2508
|
}
|
|
2318
2509
|
findLeafletDrawHandler(t) {
|
|
2319
|
-
var n, s, l, c, d,
|
|
2510
|
+
var n, s, l, c, d, u, p, g, m, f;
|
|
2320
2511
|
const e = {
|
|
2321
2512
|
polygon: "polygon",
|
|
2322
2513
|
polyline: "polyline",
|
|
@@ -2331,16 +2522,16 @@ class ar {
|
|
|
2331
2522
|
}, o = e[t];
|
|
2332
2523
|
if (o)
|
|
2333
2524
|
return (d = (c = (l = (s = (n = this.drawControl) == null ? void 0 : n._toolbars) == null ? void 0 : s.draw) == null ? void 0 : l._modes) == null ? void 0 : c[o]) == null ? void 0 : d.handler;
|
|
2334
|
-
const
|
|
2335
|
-
return
|
|
2525
|
+
const i = r[t];
|
|
2526
|
+
return i ? (f = (m = (g = (p = (u = this.drawControl) == null ? void 0 : u._toolbars) == null ? void 0 : p.edit) == null ? void 0 : g._modes) == null ? void 0 : m[i]) == null ? void 0 : f.handler : null;
|
|
2336
2527
|
}
|
|
2337
2528
|
disableActiveToolHandlers() {
|
|
2338
2529
|
var e;
|
|
2339
2530
|
const t = (e = this.drawControl) == null ? void 0 : e._toolbars;
|
|
2340
2531
|
t && Object.values(t).forEach((r) => {
|
|
2341
2532
|
var o;
|
|
2342
|
-
Object.values((o = r == null ? void 0 : r._modes) != null ? o : {}).forEach((
|
|
2343
|
-
const n =
|
|
2533
|
+
Object.values((o = r == null ? void 0 : r._modes) != null ? o : {}).forEach((i) => {
|
|
2534
|
+
const n = i == null ? void 0 : i.handler;
|
|
2344
2535
|
n && typeof n.disable == "function" && n.disable();
|
|
2345
2536
|
});
|
|
2346
2537
|
});
|
|
@@ -2363,7 +2554,7 @@ class ar {
|
|
|
2363
2554
|
let r = e.querySelector(
|
|
2364
2555
|
".leaflet-geokit-cake-icon"
|
|
2365
2556
|
);
|
|
2366
|
-
r || (r = document.createElement("span"), r.className = "leaflet-geokit-cake-icon", r.setAttribute("aria-hidden", "true"), e.appendChild(r)), r.style.setProperty("position", "absolute", "important"), r.style.setProperty("display", "block", "important"), r.style.setProperty("left", "50%", "important"), r.style.setProperty("top", "50%", "important"), r.style.setProperty("width", "18px", "important"), r.style.setProperty("height", "18px", "important"), r.style.setProperty("transform", "translate(-50%, -50%)", "important"), r.style.setProperty("pointer-events", "none", "important"), r.firstElementChild || (r.innerHTML =
|
|
2557
|
+
r || (r = document.createElement("span"), r.className = "leaflet-geokit-cake-icon", r.setAttribute("aria-hidden", "true"), e.appendChild(r)), r.style.setProperty("position", "absolute", "important"), r.style.setProperty("display", "block", "important"), r.style.setProperty("left", "50%", "important"), r.style.setProperty("top", "50%", "important"), r.style.setProperty("width", "18px", "important"), r.style.setProperty("height", "18px", "important"), r.style.setProperty("transform", "translate(-50%, -50%)", "important"), r.style.setProperty("pointer-events", "none", "important"), r.firstElementChild || (r.innerHTML = tr);
|
|
2367
2558
|
const o = r.firstElementChild;
|
|
2368
2559
|
o && (o.style.setProperty("width", "100%", "important"), o.style.setProperty("height", "100%", "important"), o.style.setProperty("display", "block", "important"));
|
|
2369
2560
|
};
|
|
@@ -2380,7 +2571,7 @@ class ar {
|
|
|
2380
2571
|
let r = e.querySelector(
|
|
2381
2572
|
".leaflet-geokit-move-icon"
|
|
2382
2573
|
);
|
|
2383
|
-
r || (r = document.createElement("span"), r.className = "leaflet-geokit-move-icon", r.setAttribute("aria-hidden", "true"), e.appendChild(r)), r.style.setProperty("position", "absolute", "important"), r.style.setProperty("display", "block", "important"), r.style.setProperty("left", "50%", "important"), r.style.setProperty("top", "50%", "important"), r.style.setProperty("width", "18px", "important"), r.style.setProperty("height", "18px", "important"), r.style.setProperty("transform", "translate(-50%, -50%)", "important"), r.style.setProperty("pointer-events", "none", "important"), r.firstElementChild || (r.innerHTML =
|
|
2574
|
+
r || (r = document.createElement("span"), r.className = "leaflet-geokit-move-icon", r.setAttribute("aria-hidden", "true"), e.appendChild(r)), r.style.setProperty("position", "absolute", "important"), r.style.setProperty("display", "block", "important"), r.style.setProperty("left", "50%", "important"), r.style.setProperty("top", "50%", "important"), r.style.setProperty("width", "18px", "important"), r.style.setProperty("height", "18px", "important"), r.style.setProperty("transform", "translate(-50%, -50%)", "important"), r.style.setProperty("pointer-events", "none", "important"), r.firstElementChild || (r.innerHTML = rr);
|
|
2384
2575
|
const o = r.firstElementChild;
|
|
2385
2576
|
o && (o.style.setProperty("width", "100%", "important"), o.style.setProperty("height", "100%", "important"), o.style.setProperty("display", "block", "important"));
|
|
2386
2577
|
};
|
|
@@ -2390,11 +2581,11 @@ class ar {
|
|
|
2390
2581
|
addRulerControl() {
|
|
2391
2582
|
if (!this.map) return;
|
|
2392
2583
|
this.installRulerPrecisionPatch();
|
|
2393
|
-
const t =
|
|
2584
|
+
const t = hr(this.measurementSystem);
|
|
2394
2585
|
this.rulerControl = this.L.control.ruler(t), this.map.addControl(this.rulerControl);
|
|
2395
2586
|
}
|
|
2396
2587
|
installRulerPrecisionPatch() {
|
|
2397
|
-
if (
|
|
2588
|
+
if (xe) return;
|
|
2398
2589
|
const t = this.L.Control.Ruler;
|
|
2399
2590
|
if (!t || typeof t != "function") return;
|
|
2400
2591
|
const e = t.prototype, r = e._calculateBearingAndDistance;
|
|
@@ -2406,17 +2597,17 @@ class ar {
|
|
|
2406
2597
|
try {
|
|
2407
2598
|
const c = this._clickedLatLong, d = (n = this._movingLatLong) != null ? n : this._clickedLatLong;
|
|
2408
2599
|
if (!c || !d) return;
|
|
2409
|
-
const { meters:
|
|
2600
|
+
const { meters: u, bearingDegrees: p } = nr(
|
|
2410
2601
|
c.lat,
|
|
2411
2602
|
c.lng,
|
|
2412
2603
|
d.lat,
|
|
2413
2604
|
d.lng
|
|
2414
|
-
), g =
|
|
2415
|
-
this._result = this._result || {}, this._result.Distance = f, this._result.Bearing =
|
|
2605
|
+
), g = u / 1e3, m = typeof ((l = (s = this.options) == null ? void 0 : s.lengthUnit) == null ? void 0 : l.factor) == "number" ? this.options.lengthUnit.factor : 1, f = ce(g * m);
|
|
2606
|
+
this._result = this._result || {}, this._result.Distance = f, this._result.Bearing = p, this._result.meters = u;
|
|
2416
2607
|
} catch (c) {
|
|
2417
2608
|
o == null || o.warn("ruler:precision-patch", c);
|
|
2418
2609
|
}
|
|
2419
|
-
},
|
|
2610
|
+
}, xe = !0;
|
|
2420
2611
|
}
|
|
2421
2612
|
rebuildRulerControl() {
|
|
2422
2613
|
if (!(!this.map || !this.options.controls.ruler)) {
|
|
@@ -2445,8 +2636,8 @@ class ar {
|
|
|
2445
2636
|
"leaflet-ruler-settings-button",
|
|
2446
2637
|
r
|
|
2447
2638
|
);
|
|
2448
|
-
return o.type = "button", o.title = "Measurement settings", o.setAttribute("aria-label", "Measurement settings"), o.addEventListener("click", (
|
|
2449
|
-
|
|
2639
|
+
return o.type = "button", o.title = "Measurement settings", o.setAttribute("aria-label", "Measurement settings"), o.addEventListener("click", (i) => {
|
|
2640
|
+
i.preventDefault(), i.stopPropagation(), t.toggleMeasurementModal(!0);
|
|
2450
2641
|
}), t.L.DomEvent.disableClickPropagation(r), t.L.DomEvent.disableScrollPropagation(r), r;
|
|
2451
2642
|
}
|
|
2452
2643
|
});
|
|
@@ -2467,16 +2658,16 @@ class ar {
|
|
|
2467
2658
|
r.className = "leaflet-ruler-modal-title", r.textContent = "Measurement Units", e.appendChild(r);
|
|
2468
2659
|
const o = document.createElement("p");
|
|
2469
2660
|
o.className = "leaflet-ruler-modal-description", o.textContent = "Choose how the measurement tool reports distances.", e.appendChild(o);
|
|
2470
|
-
const
|
|
2471
|
-
|
|
2661
|
+
const i = document.createElement("div");
|
|
2662
|
+
i.className = "leaflet-ruler-modal-options", e.appendChild(i), ["metric", "imperial"].forEach((l) => {
|
|
2472
2663
|
const c = document.createElement("label");
|
|
2473
2664
|
c.className = "leaflet-ruler-modal-option";
|
|
2474
2665
|
const d = document.createElement("input");
|
|
2475
2666
|
d.type = "radio", d.name = "leaflet-ruler-units", d.value = l, d.addEventListener("change", () => {
|
|
2476
2667
|
d.checked && this.setRulerUnits(l);
|
|
2477
2668
|
});
|
|
2478
|
-
const
|
|
2479
|
-
|
|
2669
|
+
const u = document.createElement("span");
|
|
2670
|
+
u.textContent = pr[l], c.appendChild(d), c.appendChild(u), i.appendChild(c), this.measurementModalRadios[l] = d;
|
|
2480
2671
|
});
|
|
2481
2672
|
const n = document.createElement("div");
|
|
2482
2673
|
n.className = "leaflet-ruler-modal-actions";
|
|
@@ -2531,30 +2722,30 @@ class ar {
|
|
|
2531
2722
|
this.detachPolygonFinishPatch = null;
|
|
2532
2723
|
const t = this.map, e = (l = (s = this.drawControl) == null ? void 0 : s._toolbars) == null ? void 0 : l.draw;
|
|
2533
2724
|
if (!e || !!!((d = (c = e._modes) == null ? void 0 : c.polygon) != null && d.handler)) return;
|
|
2534
|
-
const o = 10,
|
|
2535
|
-
var
|
|
2725
|
+
const o = 10, i = (u) => {
|
|
2726
|
+
var p, g, m, f, A, v, y, b;
|
|
2536
2727
|
try {
|
|
2537
|
-
const
|
|
2538
|
-
if (!
|
|
2539
|
-
const E =
|
|
2728
|
+
const w = (g = (p = e._modes) == null ? void 0 : p.polygon) == null ? void 0 : g.handler;
|
|
2729
|
+
if (!w || !w._enabled) return;
|
|
2730
|
+
const E = w._markers;
|
|
2540
2731
|
if (!Array.isArray(E) || E.length < 3) return;
|
|
2541
2732
|
const k = (f = (m = E[0]) == null ? void 0 : m.getLatLng) == null ? void 0 : f.call(m);
|
|
2542
2733
|
if (!k) return;
|
|
2543
|
-
const
|
|
2544
|
-
Math.hypot(
|
|
2545
|
-
} catch (
|
|
2546
|
-
this._error("polygon-finish-patch",
|
|
2734
|
+
const C = t.latLngToContainerPoint(k), _ = t.latLngToContainerPoint(u.latlng);
|
|
2735
|
+
Math.hypot(C.x - _.x, C.y - _.y) <= o && typeof w._finishShape == "function" && ((v = (A = u.originalEvent) == null ? void 0 : A.preventDefault) == null || v.call(A), (b = (y = u.originalEvent) == null ? void 0 : y.stopPropagation) == null || b.call(y), w._finishShape());
|
|
2736
|
+
} catch (w) {
|
|
2737
|
+
this._error("polygon-finish-patch", w);
|
|
2547
2738
|
}
|
|
2548
2739
|
};
|
|
2549
|
-
t.on("click",
|
|
2740
|
+
t.on("click", i), this.detachPolygonFinishPatch = () => {
|
|
2550
2741
|
try {
|
|
2551
|
-
t.off("click",
|
|
2742
|
+
t.off("click", i);
|
|
2552
2743
|
} catch {
|
|
2553
2744
|
}
|
|
2554
2745
|
};
|
|
2555
2746
|
}
|
|
2556
2747
|
patchLeafletDrawBugs() {
|
|
2557
|
-
var t, e, r, o,
|
|
2748
|
+
var t, e, r, o, i;
|
|
2558
2749
|
try {
|
|
2559
2750
|
const n = this.L, s = n.GeometryUtil;
|
|
2560
2751
|
if (!s) return;
|
|
@@ -2567,15 +2758,15 @@ class ar {
|
|
|
2567
2758
|
yd: 0,
|
|
2568
2759
|
ft: 0,
|
|
2569
2760
|
nm: 2
|
|
2570
|
-
}, c = (e = (t = s.formattedNumber) == null ? void 0 : t.bind(s)) != null ? e : ((d,
|
|
2571
|
-
s.readableArea = (d,
|
|
2761
|
+
}, c = (e = (t = s.formattedNumber) == null ? void 0 : t.bind(s)) != null ? e : ((d, u) => Number(d).toFixed(u));
|
|
2762
|
+
s.readableArea = (d, u, p) => {
|
|
2572
2763
|
var f;
|
|
2573
|
-
const g = (f = n.Util) != null && f.extend ? n.Util.extend({}, l,
|
|
2764
|
+
const g = (f = n.Util) != null && f.extend ? n.Util.extend({}, l, p || {}) : { ...l, ...p || {} };
|
|
2574
2765
|
let m;
|
|
2575
|
-
if (
|
|
2766
|
+
if (u) {
|
|
2576
2767
|
let A = ["ha", "m"];
|
|
2577
|
-
const
|
|
2578
|
-
|
|
2768
|
+
const v = typeof u;
|
|
2769
|
+
v === "string" ? A = [u] : v !== "boolean" && (A = Array.isArray(u) ? u : A), d >= 1e6 && A.indexOf("km") !== -1 ? m = `${c(1e-6 * d, g.km)} km²` : d >= 1e4 && A.indexOf("ha") !== -1 ? m = `${c(1e-4 * d, g.ha)} ha` : m = `${c(d, g.m)} m²`;
|
|
2579
2770
|
} else
|
|
2580
2771
|
d = d / 0.836127, d >= 3097600 ? m = `${c(d / 3097600, g.mi)} mi²` : d >= 4840 ? m = `${c(d / 4840, g.ac)} acres` : m = `${c(d, g.yd)} yd²`;
|
|
2581
2772
|
return m;
|
|
@@ -2585,10 +2776,10 @@ class ar {
|
|
|
2585
2776
|
}
|
|
2586
2777
|
try {
|
|
2587
2778
|
const n = this.L, s = (r = n.Edit) == null ? void 0 : r.Circle, l = (o = n.Draw) == null ? void 0 : o.Event, c = n.GeometryUtil;
|
|
2588
|
-
if (!((
|
|
2589
|
-
s.prototype._resize = function(
|
|
2779
|
+
if (!((i = s == null ? void 0 : s.prototype) != null && i._resize) || !l || !c) return;
|
|
2780
|
+
s.prototype._resize = function(u) {
|
|
2590
2781
|
var m, f, A;
|
|
2591
|
-
const
|
|
2782
|
+
const p = this._moveMarker.getLatLng(), g = c.isVersion07x() ? p.distanceTo(u) : this._map.distance(p, u);
|
|
2592
2783
|
this._shape.setRadius(g);
|
|
2593
2784
|
try {
|
|
2594
2785
|
(m = this._map) != null && m.editTooltip && ((A = (f = this._map) == null ? void 0 : f._editTooltip) != null && A.updateContent) && this._map._editTooltip.updateContent({
|
|
@@ -2612,51 +2803,51 @@ class ar {
|
|
|
2612
2803
|
!this.map || !this.drawnItems || (this.map.on(this.L.Draw.Event.CREATED, (t) => {
|
|
2613
2804
|
var e, r, o;
|
|
2614
2805
|
try {
|
|
2615
|
-
const { layer:
|
|
2616
|
-
if (n ===
|
|
2806
|
+
const { layer: i, layerType: n } = t;
|
|
2807
|
+
if (n === N.TYPE) {
|
|
2617
2808
|
try {
|
|
2618
2809
|
(e = this.activeCakeSession) == null || e.destroy();
|
|
2619
2810
|
} catch {
|
|
2620
2811
|
}
|
|
2621
|
-
this.activeCakeSession = new
|
|
2812
|
+
this.activeCakeSession = new er(
|
|
2622
2813
|
this.map,
|
|
2623
|
-
|
|
2624
|
-
(
|
|
2814
|
+
i,
|
|
2815
|
+
(u) => {
|
|
2625
2816
|
if (!this.drawnItems) return;
|
|
2626
|
-
const
|
|
2817
|
+
const p = this.store.add(u), g = this.L.geoJSON(u);
|
|
2627
2818
|
let m = 0;
|
|
2628
2819
|
g.eachLayer((f) => {
|
|
2629
|
-
var
|
|
2630
|
-
const A = (
|
|
2820
|
+
var v, y, b;
|
|
2821
|
+
const A = (v = p[m]) != null ? v : p[p.length - 1];
|
|
2631
2822
|
f._fid = A, this.drawnItems.addLayer(f), this.installVertexContextMenu(f), (b = (y = this.options.callbacks) == null ? void 0 : y.onCreated) == null || b.call(y, {
|
|
2632
2823
|
id: A,
|
|
2633
2824
|
layerType: "polygon",
|
|
2634
2825
|
geoJSON: f.toGeoJSON()
|
|
2635
2826
|
}), m++;
|
|
2636
2827
|
}), this.activeCakeSession = null, this.emitToolEvent("tool:layer-cake:saved", {
|
|
2637
|
-
featureCollection:
|
|
2828
|
+
featureCollection: u
|
|
2638
2829
|
});
|
|
2639
2830
|
},
|
|
2640
2831
|
this.measurementSystem
|
|
2641
2832
|
), this.emitToolEvent("tool:layer-cake:session-started", {
|
|
2642
|
-
center:
|
|
2643
|
-
radius:
|
|
2833
|
+
center: i.getLatLng(),
|
|
2834
|
+
radius: i.getRadius()
|
|
2644
2835
|
});
|
|
2645
2836
|
return;
|
|
2646
2837
|
}
|
|
2647
|
-
this.drawnItems.addLayer(
|
|
2648
|
-
const s =
|
|
2838
|
+
this.drawnItems.addLayer(i);
|
|
2839
|
+
const s = i.toGeoJSON(), c = this.store.add({
|
|
2649
2840
|
type: "FeatureCollection",
|
|
2650
2841
|
features: [s]
|
|
2651
2842
|
})[0];
|
|
2652
|
-
|
|
2653
|
-
const d =
|
|
2843
|
+
i._fid = c, this.installVertexContextMenu(i), (o = (r = this.options.callbacks) == null ? void 0 : r.onCreated) == null || o.call(r, { id: c, layerType: n, geoJSON: s });
|
|
2844
|
+
const d = fr[n];
|
|
2654
2845
|
d && this.emitToolEvent(d, {
|
|
2655
2846
|
id: c,
|
|
2656
2847
|
geoJSON: s
|
|
2657
2848
|
});
|
|
2658
|
-
} catch (
|
|
2659
|
-
this._error("onCreated handler failed",
|
|
2849
|
+
} catch (i) {
|
|
2850
|
+
this._error("onCreated handler failed", i);
|
|
2660
2851
|
}
|
|
2661
2852
|
}), this.map.on(this.L.Draw.Event.EDITED, (t) => {
|
|
2662
2853
|
var e, r;
|
|
@@ -2723,23 +2914,30 @@ class ar {
|
|
|
2723
2914
|
originalGeoJSON: t == null ? void 0 : t.originalGeoJSON,
|
|
2724
2915
|
newGeoJSON: t == null ? void 0 : t.newGeoJSON
|
|
2725
2916
|
});
|
|
2726
|
-
const
|
|
2917
|
+
const i = t.layer, n = i._fid;
|
|
2727
2918
|
if (n) {
|
|
2728
|
-
const s =
|
|
2919
|
+
const s = i.toGeoJSON();
|
|
2729
2920
|
this.store.update(n, s), (o = (r = this.options.callbacks) == null ? void 0 : r.onEdited) == null || o.call(r, {
|
|
2730
2921
|
ids: [n],
|
|
2731
2922
|
geoJSON: this.store.toFeatureCollection()
|
|
2732
2923
|
});
|
|
2733
2924
|
}
|
|
2734
2925
|
this.hideMoveConfirmationUI();
|
|
2735
|
-
} catch (
|
|
2736
|
-
this._error("draw:moveconfirmed handler failed",
|
|
2926
|
+
} catch (i) {
|
|
2927
|
+
this._error("draw:moveconfirmed handler failed", i);
|
|
2737
2928
|
}
|
|
2738
2929
|
}));
|
|
2739
2930
|
}
|
|
2740
|
-
_error(t, e) {
|
|
2741
|
-
var
|
|
2742
|
-
|
|
2931
|
+
_error(t, e, r) {
|
|
2932
|
+
var i, n, s, l;
|
|
2933
|
+
const o = {
|
|
2934
|
+
code: (i = r == null ? void 0 : r.code) != null ? i : "controller_error",
|
|
2935
|
+
message: t,
|
|
2936
|
+
recoverable: (n = r == null ? void 0 : r.recoverable) != null ? n : !0,
|
|
2937
|
+
cause: e,
|
|
2938
|
+
timestamp: Date.now()
|
|
2939
|
+
};
|
|
2940
|
+
this.logger.error("error", o), (l = (s = this.options.callbacks) == null ? void 0 : s.onError) == null || l.call(s, o);
|
|
2743
2941
|
}
|
|
2744
2942
|
// -------- Vertex deletion context menu --------
|
|
2745
2943
|
installVertexEditSurfaceMenu() {
|
|
@@ -2749,10 +2947,10 @@ class ar {
|
|
|
2749
2947
|
(o = this.vertexEditSurfaceCleanup) == null || o.call(this);
|
|
2750
2948
|
} catch {
|
|
2751
2949
|
}
|
|
2752
|
-
const t = this.map.getContainer(), e = (
|
|
2753
|
-
this.openNearestEditableVertexMenuFromDomEvent(
|
|
2754
|
-
}, r = (
|
|
2755
|
-
(
|
|
2950
|
+
const t = this.map.getContainer(), e = (i) => {
|
|
2951
|
+
this.openNearestEditableVertexMenuFromDomEvent(i);
|
|
2952
|
+
}, r = (i) => {
|
|
2953
|
+
(i.ctrlKey || i.metaKey) && this.openNearestEditableVertexMenuFromDomEvent(i);
|
|
2756
2954
|
};
|
|
2757
2955
|
t.addEventListener("contextmenu", e, {
|
|
2758
2956
|
capture: !0
|
|
@@ -2767,12 +2965,12 @@ class ar {
|
|
|
2767
2965
|
if (!this.map || !this.drawnItems) return;
|
|
2768
2966
|
const e = this.map.mouseEventToContainerPoint(t), r = this.map.containerPointToLatLng(e);
|
|
2769
2967
|
let o = null;
|
|
2770
|
-
if (this.drawnItems.eachLayer((
|
|
2968
|
+
if (this.drawnItems.eachLayer((i) => {
|
|
2771
2969
|
if (o) return;
|
|
2772
|
-
const n =
|
|
2970
|
+
const n = i.editing;
|
|
2773
2971
|
if (!(n && typeof n.enabled == "function" && n.enabled())) return;
|
|
2774
|
-
const l = this.findNearestVertex(
|
|
2775
|
-
l && (o = { layer:
|
|
2972
|
+
const l = this.findNearestVertex(i, r, 16);
|
|
2973
|
+
l && (o = { layer: i, ...l });
|
|
2776
2974
|
}), !o) return;
|
|
2777
2975
|
t.preventDefault(), t.stopPropagation(), this.showVertexMenu(e, async () => {
|
|
2778
2976
|
await this.deleteVertex(
|
|
@@ -2788,15 +2986,15 @@ class ar {
|
|
|
2788
2986
|
installVertexContextMenu(t) {
|
|
2789
2987
|
if (!t || typeof t.on != "function") return;
|
|
2790
2988
|
const e = (o) => {
|
|
2791
|
-
var
|
|
2989
|
+
var i, n, s, l;
|
|
2792
2990
|
try {
|
|
2793
|
-
(n = (
|
|
2991
|
+
(n = (i = o == null ? void 0 : o.originalEvent) == null ? void 0 : i.preventDefault) == null || n.call(i), (l = (s = o == null ? void 0 : o.originalEvent) == null ? void 0 : s.stopPropagation) == null || l.call(s);
|
|
2794
2992
|
} catch {
|
|
2795
2993
|
}
|
|
2796
2994
|
this.openVertexMenu(t, o);
|
|
2797
2995
|
}, r = (o) => {
|
|
2798
|
-
const
|
|
2799
|
-
|
|
2996
|
+
const i = o == null ? void 0 : o.originalEvent;
|
|
2997
|
+
i && (i.ctrlKey || i.metaKey) && this.openVertexMenu(t, o);
|
|
2800
2998
|
};
|
|
2801
2999
|
try {
|
|
2802
3000
|
t.on("contextmenu", e), t.on("click", r);
|
|
@@ -2809,7 +3007,7 @@ class ar {
|
|
|
2809
3007
|
const o = t.editing;
|
|
2810
3008
|
if (!o || typeof o.enabled != "function" || !o.enabled())
|
|
2811
3009
|
return;
|
|
2812
|
-
const
|
|
3010
|
+
const i = e == null ? void 0 : e.latlng, n = this.map.latLngToContainerPoint(i), s = this.findNearestVertex(t, i, 12);
|
|
2813
3011
|
if (!s) return;
|
|
2814
3012
|
this.showVertexMenu(n, async () => {
|
|
2815
3013
|
await this.deleteVertex(t, s.pathIndex, s.vertexIndex);
|
|
@@ -2828,15 +3026,15 @@ class ar {
|
|
|
2828
3026
|
if (this.vertexMenuCleanup = null, !this.container) return;
|
|
2829
3027
|
const o = document.createElement("div");
|
|
2830
3028
|
o.style.position = "absolute", o.style.top = `${t.y}px`, o.style.left = `${t.x}px`, o.style.transform = "translate(-50%, -100%)", o.style.background = "#fff", o.style.border = "1px solid rgba(0,0,0,0.15)", o.style.borderRadius = "6px", o.style.boxShadow = "0 4px 12px rgba(0,0,0,0.15)", o.style.padding = "6px", o.style.zIndex = "10000", o.style.fontSize = "12px", o.style.userSelect = "none";
|
|
2831
|
-
const
|
|
2832
|
-
|
|
3029
|
+
const i = document.createElement("button");
|
|
3030
|
+
i.textContent = "Delete vertex", i.style.padding = "6px 10px", i.style.border = "none", i.style.background = "#da1e28", i.style.color = "#fff", i.style.borderRadius = "4px", i.style.cursor = "pointer", i.addEventListener("click", (l) => {
|
|
2833
3031
|
l.stopPropagation(), l.preventDefault();
|
|
2834
3032
|
try {
|
|
2835
3033
|
e();
|
|
2836
3034
|
} finally {
|
|
2837
3035
|
n();
|
|
2838
3036
|
}
|
|
2839
|
-
}), o.appendChild(
|
|
3037
|
+
}), o.appendChild(i);
|
|
2840
3038
|
const n = () => {
|
|
2841
3039
|
try {
|
|
2842
3040
|
window.removeEventListener("pointerdown", s), this.container.removeEventListener("scroll", n, !0), o.remove();
|
|
@@ -2853,24 +3051,24 @@ class ar {
|
|
|
2853
3051
|
}
|
|
2854
3052
|
findNearestVertex(t, e, r) {
|
|
2855
3053
|
if (!this.map) return null;
|
|
2856
|
-
const o = (
|
|
3054
|
+
const o = (p) => this.map.latLngToContainerPoint(p), i = (p, g) => Math.hypot(p.x - g.x, p.y - g.y), n = o(e);
|
|
2857
3055
|
let s = 1 / 0, l = -1, c = -1;
|
|
2858
3056
|
const d = t.getLatLngs();
|
|
2859
|
-
return (Array.isArray(d[0]) ? d : [d]).forEach((
|
|
2860
|
-
|
|
2861
|
-
const A = o(m),
|
|
2862
|
-
|
|
3057
|
+
return (Array.isArray(d[0]) ? d : [d]).forEach((p, g) => {
|
|
3058
|
+
p.forEach((m, f) => {
|
|
3059
|
+
const A = o(m), v = i(A, n);
|
|
3060
|
+
v < s && (s = v, l = g, c = f);
|
|
2863
3061
|
});
|
|
2864
3062
|
}), l === -1 || s > r ? null : { pathIndex: l, vertexIndex: c };
|
|
2865
3063
|
}
|
|
2866
3064
|
async deleteVertex(t, e, r) {
|
|
2867
|
-
var o,
|
|
3065
|
+
var o, i, n;
|
|
2868
3066
|
try {
|
|
2869
3067
|
if (!(typeof t.getLatLngs == "function" && (t instanceof this.L.Polygon || t instanceof this.L.Polyline))) return;
|
|
2870
3068
|
const l = t.getLatLngs(), c = Array.isArray(l[0]) ? l : [l], d = c[e];
|
|
2871
3069
|
if (!d) return;
|
|
2872
|
-
const
|
|
2873
|
-
if (d.length <=
|
|
3070
|
+
const p = t instanceof this.L.Polygon ? 3 : 2;
|
|
3071
|
+
if (d.length <= p) return;
|
|
2874
3072
|
if (d.splice(r, 1), c.length === 1)
|
|
2875
3073
|
t.setLatLngs(d);
|
|
2876
3074
|
else {
|
|
@@ -2881,7 +3079,7 @@ class ar {
|
|
|
2881
3079
|
const g = t._fid;
|
|
2882
3080
|
if (g) {
|
|
2883
3081
|
const m = t.toGeoJSON();
|
|
2884
|
-
this.store.update(g, m), (n = (
|
|
3082
|
+
this.store.update(g, m), (n = (i = this.options.callbacks) == null ? void 0 : i.onEdited) == null || n.call(i, {
|
|
2885
3083
|
ids: [g],
|
|
2886
3084
|
geoJSON: this.store.toFeatureCollection()
|
|
2887
3085
|
});
|
|
@@ -2897,14 +3095,14 @@ class ar {
|
|
|
2897
3095
|
if (this.hideMoveConfirmationUI(), !this.container || !this.map) return;
|
|
2898
3096
|
const o = this.drawControl;
|
|
2899
3097
|
if (!o) return;
|
|
2900
|
-
const
|
|
2901
|
-
if (!
|
|
2902
|
-
const n =
|
|
3098
|
+
const i = (e = o == null ? void 0 : o._toolbars) == null ? void 0 : e.draw;
|
|
3099
|
+
if (!i) return;
|
|
3100
|
+
const n = i._modes || {};
|
|
2903
3101
|
let s = null;
|
|
2904
|
-
for (const
|
|
2905
|
-
const
|
|
2906
|
-
if (((r =
|
|
2907
|
-
s =
|
|
3102
|
+
for (const u in n) {
|
|
3103
|
+
const p = n[u];
|
|
3104
|
+
if (((r = p == null ? void 0 : p.handler) == null ? void 0 : r.type) === "move") {
|
|
3105
|
+
s = p.handler;
|
|
2908
3106
|
break;
|
|
2909
3107
|
}
|
|
2910
3108
|
}
|
|
@@ -2912,12 +3110,12 @@ class ar {
|
|
|
2912
3110
|
const l = document.createElement("div");
|
|
2913
3111
|
l.style.position = "absolute", l.style.bottom = "60px", l.style.left = "50%", l.style.transform = "translateX(-50%)", l.style.display = "flex", l.style.gap = "8px", l.style.background = "#fff", l.style.border = "2px solid #3388ff", l.style.borderRadius = "8px", l.style.padding = "12px 16px", l.style.boxShadow = "0 4px 12px rgba(0,0,0,0.2)", l.style.zIndex = "10000", l.style.fontSize = "14px", l.style.fontFamily = "system-ui, sans-serif";
|
|
2914
3112
|
const c = document.createElement("button");
|
|
2915
|
-
c.textContent = "✓ Save", c.style.padding = "8px 16px", c.style.border = "none", c.style.background = "#28a745", c.style.color = "#fff", c.style.borderRadius = "4px", c.style.cursor = "pointer", c.style.fontWeight = "600", c.style.fontSize = "14px", c.addEventListener("click", (
|
|
2916
|
-
|
|
3113
|
+
c.textContent = "✓ Save", c.style.padding = "8px 16px", c.style.border = "none", c.style.background = "#28a745", c.style.color = "#fff", c.style.borderRadius = "4px", c.style.cursor = "pointer", c.style.fontWeight = "600", c.style.fontSize = "14px", c.addEventListener("click", (u) => {
|
|
3114
|
+
u.stopPropagation(), u.preventDefault(), s != null && s.confirmMove && s.confirmMove();
|
|
2917
3115
|
});
|
|
2918
3116
|
const d = document.createElement("button");
|
|
2919
|
-
d.textContent = "✕ Cancel", d.style.padding = "8px 16px", d.style.border = "1px solid #ccc", d.style.background = "#fff", d.style.color = "#333", d.style.borderRadius = "4px", d.style.cursor = "pointer", d.style.fontWeight = "600", d.style.fontSize = "14px", d.addEventListener("click", (
|
|
2920
|
-
|
|
3117
|
+
d.textContent = "✕ Cancel", d.style.padding = "8px 16px", d.style.border = "1px solid #ccc", d.style.background = "#fff", d.style.color = "#333", d.style.borderRadius = "4px", d.style.cursor = "pointer", d.style.fontWeight = "600", d.style.fontSize = "14px", d.addEventListener("click", (u) => {
|
|
3118
|
+
u.stopPropagation(), u.preventDefault(), this.emitToolEvent("tool:move:cancelled", {
|
|
2921
3119
|
layerId: t == null ? void 0 : t._fid
|
|
2922
3120
|
}), s != null && s.cancelMove && s.cancelMove(), this.hideMoveConfirmationUI();
|
|
2923
3121
|
}), l.appendChild(c), l.appendChild(d), this.container.appendChild(l), this.moveConfirmationUI = l, this.logger.debug("showMoveConfirmationUI", {
|
|
@@ -2935,151 +3133,151 @@ class ar {
|
|
|
2935
3133
|
}
|
|
2936
3134
|
}
|
|
2937
3135
|
}
|
|
2938
|
-
const
|
|
2939
|
-
function
|
|
2940
|
-
var r, o,
|
|
2941
|
-
if (
|
|
3136
|
+
const Oe = [25, 41], De = [12, 41], Pe = [1, -34];
|
|
3137
|
+
function O(a, t) {
|
|
3138
|
+
var r, o, i, n;
|
|
3139
|
+
if (a == null)
|
|
2942
3140
|
return null;
|
|
2943
|
-
const e = typeof
|
|
3141
|
+
const e = typeof a == "string" ? a.trim() : "";
|
|
2944
3142
|
if (!e)
|
|
2945
3143
|
return (r = t.reportError) == null || r.call(t, t.errorMessage, t.cause), null;
|
|
2946
3144
|
try {
|
|
2947
3145
|
return new URL(e, (o = t.baseUrl) != null ? o : document.baseURI).toString();
|
|
2948
3146
|
} catch (s) {
|
|
2949
|
-
return (n = t.reportError) == null || n.call(t, t.errorMessage, (
|
|
3147
|
+
return (n = t.reportError) == null || n.call(t, t.errorMessage, (i = t.cause) != null ? i : s), null;
|
|
2950
3148
|
}
|
|
2951
3149
|
}
|
|
2952
|
-
function
|
|
3150
|
+
function $(a, t, e) {
|
|
2953
3151
|
var l, c;
|
|
2954
|
-
if (
|
|
3152
|
+
if (a == null)
|
|
2955
3153
|
return [...t];
|
|
2956
|
-
if (!Array.isArray(
|
|
3154
|
+
if (!Array.isArray(a) || a.length !== 2)
|
|
2957
3155
|
return (l = e.reportError) == null || l.call(e, e.errorMessage, e.cause), [...t];
|
|
2958
|
-
const [r, o] =
|
|
2959
|
-
return Number.isFinite(
|
|
3156
|
+
const [r, o] = a, i = Number(r), n = Number(o);
|
|
3157
|
+
return Number.isFinite(i) && Number.isFinite(n) && (!e.positiveOnly || i > 0 && n > 0) ? [i, n] : ((c = e.reportError) == null || c.call(e, e.errorMessage, e.cause), [...t]);
|
|
2960
3158
|
}
|
|
2961
|
-
function
|
|
2962
|
-
var l, c, d,
|
|
2963
|
-
if (
|
|
3159
|
+
function ee(a, t, e) {
|
|
3160
|
+
var l, c, d, u, p;
|
|
3161
|
+
if (a == null)
|
|
2964
3162
|
return [...t];
|
|
2965
|
-
const r = typeof
|
|
3163
|
+
const r = typeof a == "string" ? a.trim() : "";
|
|
2966
3164
|
if (!r)
|
|
2967
3165
|
return (l = e.reportError) == null || l.call(e, e.errorMessage, e.cause), [...t];
|
|
2968
3166
|
const o = r.split(",");
|
|
2969
3167
|
if (o.length !== 2)
|
|
2970
3168
|
return (c = e.reportError) == null || c.call(e, e.errorMessage, e.cause), [...t];
|
|
2971
|
-
const
|
|
2972
|
-
return Number.isFinite(
|
|
3169
|
+
const i = Number((d = o[0]) == null ? void 0 : d.trim()), n = Number((u = o[1]) == null ? void 0 : u.trim());
|
|
3170
|
+
return Number.isFinite(i) && Number.isFinite(n) && (!e.positiveOnly || i > 0 && n > 0) ? [i, n] : ((p = e.reportError) == null || p.call(e, e.errorMessage, e.cause), [...t]);
|
|
2973
3171
|
}
|
|
2974
|
-
function
|
|
2975
|
-
var
|
|
2976
|
-
if (!
|
|
3172
|
+
function mr(a, t = {}) {
|
|
3173
|
+
var i, n;
|
|
3174
|
+
if (!a || typeof a != "object")
|
|
2977
3175
|
return null;
|
|
2978
|
-
const e =
|
|
3176
|
+
const e = O(a.iconUrl, {
|
|
2979
3177
|
...t,
|
|
2980
3178
|
errorMessage: "Invalid marker icon config: iconUrl must be a valid URL",
|
|
2981
|
-
cause: { field: "iconUrl", value:
|
|
3179
|
+
cause: { field: "iconUrl", value: a.iconUrl }
|
|
2982
3180
|
});
|
|
2983
3181
|
if (!e)
|
|
2984
3182
|
return null;
|
|
2985
|
-
const r = (
|
|
3183
|
+
const r = (i = O(a.iconRetinaUrl, {
|
|
2986
3184
|
...t,
|
|
2987
3185
|
errorMessage: "Invalid marker icon config: iconRetinaUrl must be a valid URL",
|
|
2988
|
-
cause: { field: "iconRetinaUrl", value:
|
|
2989
|
-
})) != null ?
|
|
3186
|
+
cause: { field: "iconRetinaUrl", value: a.iconRetinaUrl }
|
|
3187
|
+
})) != null ? i : e, o = (n = O(a.shadowUrl, {
|
|
2990
3188
|
...t,
|
|
2991
3189
|
errorMessage: "Invalid marker icon config: shadowUrl must be a valid URL",
|
|
2992
|
-
cause: { field: "shadowUrl", value:
|
|
3190
|
+
cause: { field: "shadowUrl", value: a.shadowUrl }
|
|
2993
3191
|
})) != null ? n : void 0;
|
|
2994
3192
|
return {
|
|
2995
3193
|
iconUrl: e,
|
|
2996
3194
|
iconRetinaUrl: r,
|
|
2997
3195
|
shadowUrl: o,
|
|
2998
|
-
iconSize:
|
|
3196
|
+
iconSize: $(a.iconSize, Oe, {
|
|
2999
3197
|
...t,
|
|
3000
3198
|
positiveOnly: !0,
|
|
3001
3199
|
errorMessage: "Invalid marker icon config: iconSize must be a [width, height] tuple of positive finite numbers",
|
|
3002
|
-
cause: { field: "iconSize", value:
|
|
3200
|
+
cause: { field: "iconSize", value: a.iconSize }
|
|
3003
3201
|
}),
|
|
3004
|
-
iconAnchor:
|
|
3005
|
-
|
|
3006
|
-
|
|
3202
|
+
iconAnchor: $(
|
|
3203
|
+
a.iconAnchor,
|
|
3204
|
+
De,
|
|
3007
3205
|
{
|
|
3008
3206
|
...t,
|
|
3009
3207
|
errorMessage: "Invalid marker icon config: iconAnchor must be a [x, y] tuple of finite numbers",
|
|
3010
|
-
cause: { field: "iconAnchor", value:
|
|
3208
|
+
cause: { field: "iconAnchor", value: a.iconAnchor }
|
|
3011
3209
|
}
|
|
3012
3210
|
),
|
|
3013
|
-
popupAnchor:
|
|
3014
|
-
|
|
3015
|
-
|
|
3211
|
+
popupAnchor: $(
|
|
3212
|
+
a.popupAnchor,
|
|
3213
|
+
Pe,
|
|
3016
3214
|
{
|
|
3017
3215
|
...t,
|
|
3018
3216
|
errorMessage: "Invalid marker icon config: popupAnchor must be a [x, y] tuple of finite numbers",
|
|
3019
|
-
cause: { field: "popupAnchor", value:
|
|
3217
|
+
cause: { field: "popupAnchor", value: a.popupAnchor }
|
|
3020
3218
|
}
|
|
3021
3219
|
)
|
|
3022
3220
|
};
|
|
3023
3221
|
}
|
|
3024
|
-
function
|
|
3025
|
-
var
|
|
3026
|
-
const e =
|
|
3222
|
+
function yr(a, t = {}) {
|
|
3223
|
+
var i, n;
|
|
3224
|
+
const e = O(a.iconUrl, {
|
|
3027
3225
|
...t,
|
|
3028
3226
|
errorMessage: 'Invalid "marker-icon-url" attribute; falling back to default markers',
|
|
3029
|
-
cause: { attribute: "marker-icon-url", value:
|
|
3227
|
+
cause: { attribute: "marker-icon-url", value: a.iconUrl }
|
|
3030
3228
|
});
|
|
3031
3229
|
if (!e)
|
|
3032
3230
|
return null;
|
|
3033
|
-
const r = (
|
|
3231
|
+
const r = (i = O(a.iconRetinaUrl, {
|
|
3034
3232
|
...t,
|
|
3035
3233
|
errorMessage: 'Invalid "marker-icon-retina-url" attribute; using "marker-icon-url" instead',
|
|
3036
3234
|
cause: {
|
|
3037
3235
|
attribute: "marker-icon-retina-url",
|
|
3038
|
-
value:
|
|
3236
|
+
value: a.iconRetinaUrl
|
|
3039
3237
|
}
|
|
3040
|
-
})) != null ?
|
|
3238
|
+
})) != null ? i : e, o = (n = O(a.shadowUrl, {
|
|
3041
3239
|
...t,
|
|
3042
3240
|
errorMessage: 'Invalid "marker-shadow-url" attribute; dropping the custom marker shadow',
|
|
3043
|
-
cause: { attribute: "marker-shadow-url", value:
|
|
3241
|
+
cause: { attribute: "marker-shadow-url", value: a.shadowUrl }
|
|
3044
3242
|
})) != null ? n : void 0;
|
|
3045
3243
|
return {
|
|
3046
3244
|
iconUrl: e,
|
|
3047
3245
|
iconRetinaUrl: r,
|
|
3048
3246
|
shadowUrl: o,
|
|
3049
|
-
iconSize:
|
|
3050
|
-
|
|
3051
|
-
|
|
3247
|
+
iconSize: ee(
|
|
3248
|
+
a.iconSize,
|
|
3249
|
+
Oe,
|
|
3052
3250
|
{
|
|
3053
3251
|
...t,
|
|
3054
3252
|
positiveOnly: !0,
|
|
3055
3253
|
errorMessage: 'Invalid "marker-icon-size" attribute; using the default marker size',
|
|
3056
3254
|
cause: {
|
|
3057
3255
|
attribute: "marker-icon-size",
|
|
3058
|
-
value:
|
|
3256
|
+
value: a.iconSize
|
|
3059
3257
|
}
|
|
3060
3258
|
}
|
|
3061
3259
|
),
|
|
3062
|
-
iconAnchor:
|
|
3063
|
-
|
|
3064
|
-
|
|
3260
|
+
iconAnchor: ee(
|
|
3261
|
+
a.iconAnchor,
|
|
3262
|
+
De,
|
|
3065
3263
|
{
|
|
3066
3264
|
...t,
|
|
3067
3265
|
errorMessage: 'Invalid "marker-icon-anchor" attribute; using the default marker anchor',
|
|
3068
3266
|
cause: {
|
|
3069
3267
|
attribute: "marker-icon-anchor",
|
|
3070
|
-
value:
|
|
3268
|
+
value: a.iconAnchor
|
|
3071
3269
|
}
|
|
3072
3270
|
}
|
|
3073
3271
|
),
|
|
3074
|
-
popupAnchor:
|
|
3075
|
-
|
|
3076
|
-
|
|
3272
|
+
popupAnchor: ee(
|
|
3273
|
+
a.popupAnchor,
|
|
3274
|
+
Pe,
|
|
3077
3275
|
{
|
|
3078
3276
|
...t,
|
|
3079
3277
|
errorMessage: 'Invalid "marker-popup-anchor" attribute; using the default popup anchor',
|
|
3080
3278
|
cause: {
|
|
3081
3279
|
attribute: "marker-popup-anchor",
|
|
3082
|
-
value:
|
|
3280
|
+
value: a.popupAnchor
|
|
3083
3281
|
}
|
|
3084
3282
|
}
|
|
3085
3283
|
)
|
|
@@ -3103,16 +3301,16 @@ const I = {
|
|
|
3103
3301
|
maxZoom: 20
|
|
3104
3302
|
}
|
|
3105
3303
|
};
|
|
3106
|
-
function
|
|
3107
|
-
return typeof
|
|
3304
|
+
function ze(a) {
|
|
3305
|
+
return typeof a == "string" ? a.trim().toLowerCase() : "";
|
|
3108
3306
|
}
|
|
3109
|
-
function
|
|
3110
|
-
if (typeof
|
|
3111
|
-
const t =
|
|
3307
|
+
function Re(a) {
|
|
3308
|
+
if (typeof a != "string") return;
|
|
3309
|
+
const t = a.trim();
|
|
3112
3310
|
return t.length > 0 ? t : void 0;
|
|
3113
3311
|
}
|
|
3114
|
-
function
|
|
3115
|
-
const { style: t, attribution: e } =
|
|
3312
|
+
function br(a) {
|
|
3313
|
+
const { style: t, attribution: e } = a, r = ze(a.provider), o = Re(a.apiKey);
|
|
3116
3314
|
switch (r) {
|
|
3117
3315
|
case "osm":
|
|
3118
3316
|
return {
|
|
@@ -3124,7 +3322,7 @@ function lr(i) {
|
|
|
3124
3322
|
case "here": {
|
|
3125
3323
|
if (!o)
|
|
3126
3324
|
throw new Error("HERE Maps requires an API key");
|
|
3127
|
-
const
|
|
3325
|
+
const i = typeof t == "string" ? t.trim() : "", n = i && i in I.here.styles ? i : I.here.defaultStyle;
|
|
3128
3326
|
return {
|
|
3129
3327
|
urlTemplate: `https://maps.hereapi.com/v3/base/mc/{z}/{x}/{y}/png8?style=${encodeURIComponent(n)}&apiKey=${encodeURIComponent(o)}`,
|
|
3130
3328
|
attribution: e || I.here.attribution,
|
|
@@ -3133,57 +3331,64 @@ function lr(i) {
|
|
|
3133
3331
|
};
|
|
3134
3332
|
}
|
|
3135
3333
|
default:
|
|
3136
|
-
throw new Error(`Unknown tile provider: ${
|
|
3334
|
+
throw new Error(`Unknown tile provider: ${a.provider}`);
|
|
3137
3335
|
}
|
|
3138
3336
|
}
|
|
3139
|
-
function
|
|
3140
|
-
const t =
|
|
3337
|
+
function Ar(a) {
|
|
3338
|
+
const t = ze(a.provider), e = Re(a.apiKey);
|
|
3141
3339
|
return t ? t === "here" && !e ? { valid: !1, error: "HERE Maps requires an API key" } : { valid: !0 } : { valid: !1, error: "Provider is required" };
|
|
3142
3340
|
}
|
|
3143
|
-
class
|
|
3341
|
+
class Ue extends HTMLElement {
|
|
3144
3342
|
constructor() {
|
|
3145
3343
|
super();
|
|
3146
3344
|
// Shadow DOM and container references
|
|
3147
|
-
|
|
3148
|
-
|
|
3345
|
+
h(this, "_root");
|
|
3346
|
+
h(this, "_container");
|
|
3149
3347
|
// Logging
|
|
3150
|
-
|
|
3348
|
+
h(this, "_logger", V("component:leaflet-geokit", "debug"));
|
|
3151
3349
|
// Internal state mirrors for attributes/properties
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3350
|
+
h(this, "_latitude", 0);
|
|
3351
|
+
h(this, "_longitude", 0);
|
|
3352
|
+
h(this, "_zoom", 2);
|
|
3353
|
+
h(this, "_minZoom");
|
|
3354
|
+
h(this, "_maxZoom");
|
|
3355
|
+
h(this, "_tileUrl", "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png");
|
|
3356
|
+
h(this, "_tileAttribution");
|
|
3357
|
+
h(this, "_tileProvider");
|
|
3358
|
+
h(this, "_tileStyle");
|
|
3359
|
+
h(this, "_apiKey");
|
|
3360
|
+
h(this, "_activeTileProvider", "tile-url");
|
|
3361
|
+
h(this, "_readOnly", !1);
|
|
3362
|
+
h(this, "_logLevel", "debug");
|
|
3363
|
+
h(this, "_devOverlay", !1);
|
|
3364
|
+
h(this, "_polygonAllowIntersection", !1);
|
|
3365
|
+
h(this, "_preferCanvas", !0);
|
|
3168
3366
|
// Default to Canvas for performance
|
|
3169
3367
|
// Theming
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3368
|
+
h(this, "_themeUrl");
|
|
3369
|
+
h(this, "_themeCss", "");
|
|
3370
|
+
h(this, "_themeLinkEl", null);
|
|
3371
|
+
h(this, "_themeStyleEl", null);
|
|
3174
3372
|
// Controller
|
|
3175
|
-
|
|
3373
|
+
h(this, "_controller", null);
|
|
3176
3374
|
// External Leaflet configuration
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3375
|
+
h(this, "_useExternalLeaflet", !1);
|
|
3376
|
+
h(this, "_skipLeafletStyles", !1);
|
|
3377
|
+
h(this, "_leafletInstance");
|
|
3378
|
+
h(this, "_toolHooks");
|
|
3379
|
+
h(this, "_toolEventEmitter");
|
|
3380
|
+
h(this, "_markerIconConfig");
|
|
3381
|
+
h(this, "_toolButtonConfig");
|
|
3382
|
+
h(this, "_toolbarGroups");
|
|
3383
|
+
h(this, "_status", {
|
|
3384
|
+
state: "uninitialized",
|
|
3385
|
+
ready: !1,
|
|
3386
|
+
busy: !1,
|
|
3387
|
+
featureCount: 0,
|
|
3388
|
+
timestamp: Date.now()
|
|
3389
|
+
});
|
|
3390
|
+
h(this, "_externalToolTriggerListener", (e) => {
|
|
3391
|
+
var o, i;
|
|
3187
3392
|
const r = e.detail;
|
|
3188
3393
|
if ((r == null ? void 0 : r.action) === "deactivate" || (r == null ? void 0 : r.active) === !1) {
|
|
3189
3394
|
this.deactivateTool({
|
|
@@ -3193,11 +3398,11 @@ class ze extends HTMLElement {
|
|
|
3193
3398
|
return;
|
|
3194
3399
|
}
|
|
3195
3400
|
r != null && r.tool && this.activateTool(r.tool, {
|
|
3196
|
-
source: (
|
|
3401
|
+
source: (i = r.source) != null ? i : "event",
|
|
3197
3402
|
groupId: r.groupId
|
|
3198
3403
|
});
|
|
3199
3404
|
});
|
|
3200
|
-
|
|
3405
|
+
h(this, "_externalToolDeactivateListener", (e) => {
|
|
3201
3406
|
var o;
|
|
3202
3407
|
const r = e.detail;
|
|
3203
3408
|
this.deactivateTool({
|
|
@@ -3263,10 +3468,17 @@ class ze extends HTMLElement {
|
|
|
3263
3468
|
// Lifecycle
|
|
3264
3469
|
async connectedCallback() {
|
|
3265
3470
|
var e;
|
|
3266
|
-
this._logger.debug("connectedCallback", this._currentConfig()),
|
|
3471
|
+
this._logger.debug("connectedCallback", this._currentConfig()), this._setStatus({
|
|
3472
|
+
state: "initializing",
|
|
3473
|
+
ready: !1,
|
|
3474
|
+
busy: !0,
|
|
3475
|
+
featureCount: 0,
|
|
3476
|
+
lastEvent: "connected",
|
|
3477
|
+
lastError: null
|
|
3478
|
+
}), ot({
|
|
3267
3479
|
root: this._root,
|
|
3268
3480
|
skipStyles: this._skipLeafletStyles
|
|
3269
|
-
}), this._applyThemeStyles(), this._controller = new
|
|
3481
|
+
}), this._applyThemeStyles(), this._controller = new gr({
|
|
3270
3482
|
container: this._container,
|
|
3271
3483
|
map: this._mapConfig(),
|
|
3272
3484
|
controls: this._controlsFromAttributes(),
|
|
@@ -3274,25 +3486,49 @@ class ze extends HTMLElement {
|
|
|
3274
3486
|
logger: this._logger.child("controller"),
|
|
3275
3487
|
callbacks: {
|
|
3276
3488
|
onReady: (r) => {
|
|
3277
|
-
this.dispatchEvent(new CustomEvent(
|
|
3489
|
+
this.dispatchEvent(new CustomEvent(L.Ready, { detail: r })), this._syncStatusFromController({
|
|
3490
|
+
state: "ready",
|
|
3491
|
+
ready: !0,
|
|
3492
|
+
busy: !1,
|
|
3493
|
+
lastEvent: L.Ready,
|
|
3494
|
+
clearLastError: !0
|
|
3495
|
+
});
|
|
3278
3496
|
},
|
|
3279
3497
|
onCreated: (r) => {
|
|
3280
|
-
this.dispatchEvent(
|
|
3281
|
-
|
|
3282
|
-
|
|
3498
|
+
this.dispatchEvent(new CustomEvent(L.Created, { detail: r })), this._setStatus({
|
|
3499
|
+
state: "ready",
|
|
3500
|
+
ready: !0,
|
|
3501
|
+
busy: !1,
|
|
3502
|
+
featureCount: this._status.featureCount + 1,
|
|
3503
|
+
lastEvent: L.Created,
|
|
3504
|
+
lastError: null
|
|
3505
|
+
});
|
|
3283
3506
|
},
|
|
3284
3507
|
onEdited: (r) => {
|
|
3285
|
-
this.dispatchEvent(
|
|
3286
|
-
|
|
3287
|
-
|
|
3508
|
+
this.dispatchEvent(new CustomEvent(L.Edited, { detail: r })), this._setStatus({
|
|
3509
|
+
state: "ready",
|
|
3510
|
+
ready: !0,
|
|
3511
|
+
busy: !1,
|
|
3512
|
+
featureCount: r.geoJSON.features.length,
|
|
3513
|
+
lastEvent: L.Edited,
|
|
3514
|
+
lastError: null
|
|
3515
|
+
});
|
|
3288
3516
|
},
|
|
3289
3517
|
onDeleted: (r) => {
|
|
3290
|
-
this.dispatchEvent(
|
|
3291
|
-
|
|
3292
|
-
|
|
3518
|
+
this.dispatchEvent(new CustomEvent(L.Deleted, { detail: r })), this._setStatus({
|
|
3519
|
+
state: "ready",
|
|
3520
|
+
ready: !0,
|
|
3521
|
+
busy: !1,
|
|
3522
|
+
featureCount: r.geoJSON.features.length,
|
|
3523
|
+
lastEvent: L.Deleted,
|
|
3524
|
+
lastError: null
|
|
3525
|
+
});
|
|
3293
3526
|
},
|
|
3294
3527
|
onError: (r) => {
|
|
3295
|
-
this.
|
|
3528
|
+
this._emitError(r, {
|
|
3529
|
+
state: r.recoverable ? this._status.ready ? "ready" : this._status.state : "error",
|
|
3530
|
+
lastEvent: L.Error
|
|
3531
|
+
});
|
|
3296
3532
|
},
|
|
3297
3533
|
onTileError: (r) => {
|
|
3298
3534
|
if (this._tileProvider)
|
|
@@ -3306,6 +3542,24 @@ class ze extends HTMLElement {
|
|
|
3306
3542
|
},
|
|
3307
3543
|
onToolTrigger: (r) => {
|
|
3308
3544
|
this._emitToolTriggerResult(r);
|
|
3545
|
+
},
|
|
3546
|
+
onSaved: (r) => {
|
|
3547
|
+
this.dispatchEvent(
|
|
3548
|
+
new CustomEvent(L.Export, {
|
|
3549
|
+
detail: {
|
|
3550
|
+
geoJSON: r.geoJSON,
|
|
3551
|
+
featureCount: r.featureCount,
|
|
3552
|
+
adapter: "editing"
|
|
3553
|
+
}
|
|
3554
|
+
})
|
|
3555
|
+
), this._setStatus({
|
|
3556
|
+
state: "ready",
|
|
3557
|
+
ready: !0,
|
|
3558
|
+
busy: !1,
|
|
3559
|
+
featureCount: r.featureCount,
|
|
3560
|
+
lastEvent: L.Export,
|
|
3561
|
+
lastError: null
|
|
3562
|
+
});
|
|
3309
3563
|
}
|
|
3310
3564
|
},
|
|
3311
3565
|
leaflet: (e = this._leafletInstance) != null ? e : void 0,
|
|
@@ -3324,7 +3578,7 @@ class ze extends HTMLElement {
|
|
|
3324
3578
|
), this.addEventListener(
|
|
3325
3579
|
"leaflet-geokit:deactivate-tool",
|
|
3326
3580
|
this._externalToolDeactivateListener
|
|
3327
|
-
), await this._controller.init(), this._tileProvider && this._updateTileLayer();
|
|
3581
|
+
), await this._controller.init(), this._status.state !== "error" && this._tileProvider && this._updateTileLayer();
|
|
3328
3582
|
}
|
|
3329
3583
|
async disconnectedCallback() {
|
|
3330
3584
|
this._logger.debug("disconnectedCallback"), this._controller && (await this._controller.destroy(), this._controller = null), this.removeEventListener(
|
|
@@ -3336,7 +3590,14 @@ class ze extends HTMLElement {
|
|
|
3336
3590
|
), this.removeEventListener(
|
|
3337
3591
|
"leaflet-geokit:deactivate-tool",
|
|
3338
3592
|
this._externalToolDeactivateListener
|
|
3339
|
-
)
|
|
3593
|
+
), this._setStatus({
|
|
3594
|
+
state: "uninitialized",
|
|
3595
|
+
ready: !1,
|
|
3596
|
+
busy: !1,
|
|
3597
|
+
featureCount: 0,
|
|
3598
|
+
lastEvent: "disconnected",
|
|
3599
|
+
lastError: null
|
|
3600
|
+
});
|
|
3340
3601
|
}
|
|
3341
3602
|
// Observed attributes and reflection
|
|
3342
3603
|
static get observedAttributes() {
|
|
@@ -3448,7 +3709,7 @@ class ze extends HTMLElement {
|
|
|
3448
3709
|
) : this._isMarkerIconAttribute(e) ? this._syncMarkerIconConfig() : e === "tool-button-config" ? this._syncToolButtonConfig() : e === "toolbar-groups" ? this._syncToolbarGroups() : (e === "min-zoom" || e === "max-zoom" || e === "read-only" || e === "dev-overlay" || e === "log-level" || e === "prefer-canvas" || e === "use-external-leaflet" || e === "skip-leaflet-styles" || e.startsWith("draw-") || e === "edit-features" || e === "delete-features") && this._controller.destroy().then(() => this._controller.init()));
|
|
3449
3710
|
}
|
|
3450
3711
|
_updateTileLayer() {
|
|
3451
|
-
var r, o,
|
|
3712
|
+
var r, o, i, n;
|
|
3452
3713
|
if (!this._controller)
|
|
3453
3714
|
return;
|
|
3454
3715
|
const e = this._controller;
|
|
@@ -3463,34 +3724,34 @@ class ze extends HTMLElement {
|
|
|
3463
3724
|
style: this._tileStyle,
|
|
3464
3725
|
apiKey: this._apiKey,
|
|
3465
3726
|
attribution: this._tileAttribution
|
|
3466
|
-
}, c =
|
|
3727
|
+
}, c = Ar(l);
|
|
3467
3728
|
if (!c.valid) {
|
|
3468
|
-
const
|
|
3729
|
+
const p = (r = c.error) != null && r.toLowerCase().includes("api key") ? "missing_api_key" : "tile_load_failed";
|
|
3469
3730
|
this._handleTileProviderError(
|
|
3470
|
-
|
|
3731
|
+
p,
|
|
3471
3732
|
(o = c.error) != null ? o : "Invalid tile provider configuration",
|
|
3472
3733
|
s
|
|
3473
3734
|
);
|
|
3474
3735
|
return;
|
|
3475
3736
|
}
|
|
3476
|
-
const d =
|
|
3737
|
+
const d = br(l), u = this._activeTileProvider;
|
|
3477
3738
|
e.setTileLayer(d, {
|
|
3478
|
-
onTileError: (
|
|
3739
|
+
onTileError: (p) => {
|
|
3479
3740
|
if (this._tileProvider !== s) return;
|
|
3480
|
-
const g = this._describeTileLayerError(
|
|
3741
|
+
const g = this._describeTileLayerError(p, s), m = s === "here" ? this._resolveHereTileLayerErrorCode(g) : "tile_load_failed";
|
|
3481
3742
|
this._handleTileProviderError(m, g, s);
|
|
3482
3743
|
}
|
|
3483
3744
|
}), this._activeTileProvider = s, this._emitTileProviderChanged(
|
|
3484
3745
|
s,
|
|
3485
3746
|
this._tileStyle,
|
|
3486
|
-
|
|
3747
|
+
u
|
|
3487
3748
|
);
|
|
3488
3749
|
return;
|
|
3489
3750
|
}
|
|
3490
3751
|
e.setTileLayer(
|
|
3491
3752
|
{
|
|
3492
3753
|
urlTemplate: this._tileUrl,
|
|
3493
|
-
attribution: (
|
|
3754
|
+
attribution: (i = this._tileAttribution) != null ? i : "",
|
|
3494
3755
|
maxZoom: this._maxZoom,
|
|
3495
3756
|
subdomains: ["a", "b", "c"]
|
|
3496
3757
|
},
|
|
@@ -3515,19 +3776,33 @@ class ze extends HTMLElement {
|
|
|
3515
3776
|
}
|
|
3516
3777
|
}
|
|
3517
3778
|
_handleTileProviderError(e, r, o) {
|
|
3518
|
-
this._logger.error(`Tile provider error (${e}): ${r}`)
|
|
3779
|
+
this._logger.error(`Tile provider error (${e}): ${r}`);
|
|
3780
|
+
const i = Date.now();
|
|
3781
|
+
this.dispatchEvent(
|
|
3519
3782
|
new CustomEvent("tile-provider-error", {
|
|
3520
3783
|
bubbles: !0,
|
|
3521
3784
|
detail: {
|
|
3522
3785
|
code: e,
|
|
3523
3786
|
message: r,
|
|
3524
3787
|
provider: o,
|
|
3525
|
-
timestamp:
|
|
3788
|
+
timestamp: i
|
|
3526
3789
|
}
|
|
3527
3790
|
})
|
|
3791
|
+
), this._emitDiagnostic(
|
|
3792
|
+
{
|
|
3793
|
+
code: e,
|
|
3794
|
+
message: r,
|
|
3795
|
+
recoverable: !0,
|
|
3796
|
+
severity: "warn",
|
|
3797
|
+
timestamp: i
|
|
3798
|
+
},
|
|
3799
|
+
{
|
|
3800
|
+
state: this._status.ready ? "ready" : this._status.state,
|
|
3801
|
+
lastEvent: "tile-provider-error"
|
|
3802
|
+
}
|
|
3528
3803
|
);
|
|
3529
|
-
const
|
|
3530
|
-
typeof
|
|
3804
|
+
const n = this._controller;
|
|
3805
|
+
typeof n.setTileLayer == "function" && (n.setTileLayer({
|
|
3531
3806
|
urlTemplate: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
|
3532
3807
|
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
|
|
3533
3808
|
maxZoom: 19,
|
|
@@ -3551,19 +3826,25 @@ class ze extends HTMLElement {
|
|
|
3551
3826
|
return e === "marker-icon-url" || e === "marker-icon-retina-url" || e === "marker-shadow-url" || e === "marker-icon-size" || e === "marker-icon-anchor" || e === "marker-popup-anchor";
|
|
3552
3827
|
}
|
|
3553
3828
|
_effectiveMarkerIconConfig() {
|
|
3554
|
-
const e = (o,
|
|
3555
|
-
this.
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3829
|
+
const e = (o, i) => {
|
|
3830
|
+
this._emitError(
|
|
3831
|
+
{
|
|
3832
|
+
code: "invalid_marker_icon_config",
|
|
3833
|
+
message: o,
|
|
3834
|
+
recoverable: !0,
|
|
3835
|
+
cause: i
|
|
3836
|
+
},
|
|
3837
|
+
{
|
|
3838
|
+
state: this._status.ready ? "ready" : this._status.state
|
|
3839
|
+
}
|
|
3559
3840
|
);
|
|
3560
3841
|
};
|
|
3561
3842
|
if (this._markerIconConfig === null)
|
|
3562
3843
|
return null;
|
|
3563
3844
|
if (this._markerIconConfig !== void 0)
|
|
3564
|
-
return
|
|
3845
|
+
return mr(this._markerIconConfig, { reportError: e });
|
|
3565
3846
|
const r = this.getAttribute("marker-icon-url");
|
|
3566
|
-
return r == null ? null :
|
|
3847
|
+
return r == null ? null : yr(
|
|
3567
3848
|
{
|
|
3568
3849
|
iconUrl: r,
|
|
3569
3850
|
iconRetinaUrl: this.getAttribute("marker-icon-retina-url"),
|
|
@@ -3591,13 +3872,16 @@ class ze extends HTMLElement {
|
|
|
3591
3872
|
throw new Error("tool-button-config must be a JSON object");
|
|
3592
3873
|
return r;
|
|
3593
3874
|
} catch (r) {
|
|
3594
|
-
return this.
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
}
|
|
3875
|
+
return this._emitError(
|
|
3876
|
+
{
|
|
3877
|
+
code: "invalid_tool_button_config",
|
|
3878
|
+
message: "Failed to parse tool-button-config",
|
|
3879
|
+
recoverable: !0,
|
|
3880
|
+
cause: r
|
|
3881
|
+
},
|
|
3882
|
+
{
|
|
3883
|
+
state: this._status.ready ? "ready" : this._status.state
|
|
3884
|
+
}
|
|
3601
3885
|
), null;
|
|
3602
3886
|
}
|
|
3603
3887
|
}
|
|
@@ -3617,13 +3901,16 @@ class ze extends HTMLElement {
|
|
|
3617
3901
|
throw new Error("toolbar-groups must be a JSON array");
|
|
3618
3902
|
return r;
|
|
3619
3903
|
} catch (r) {
|
|
3620
|
-
return this.
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
}
|
|
3904
|
+
return this._emitError(
|
|
3905
|
+
{
|
|
3906
|
+
code: "invalid_toolbar_groups",
|
|
3907
|
+
message: "Failed to parse toolbar-groups",
|
|
3908
|
+
recoverable: !0,
|
|
3909
|
+
cause: r
|
|
3910
|
+
},
|
|
3911
|
+
{
|
|
3912
|
+
state: this._status.ready ? "ready" : this._status.state
|
|
3913
|
+
}
|
|
3627
3914
|
), null;
|
|
3628
3915
|
}
|
|
3629
3916
|
}
|
|
@@ -3691,6 +3978,9 @@ class ze extends HTMLElement {
|
|
|
3691
3978
|
var r;
|
|
3692
3979
|
this._apiKey = this._normalizeText(e != null ? e : null), this._reflect("api-key", (r = this._apiKey) != null ? r : null), this.hasAttribute("here-api-key") && this.removeAttribute("here-api-key"), this._controller && this._updateTileLayer();
|
|
3693
3980
|
}
|
|
3981
|
+
get status() {
|
|
3982
|
+
return this._cloneStatus(this._status);
|
|
3983
|
+
}
|
|
3694
3984
|
get tileAttribution() {
|
|
3695
3985
|
return this._tileAttribution;
|
|
3696
3986
|
}
|
|
@@ -3789,30 +4079,51 @@ class ze extends HTMLElement {
|
|
|
3789
4079
|
async getGeoJSON() {
|
|
3790
4080
|
return this._logger.debug("getGeoJSON"), this._controller ? this._controller.getGeoJSON() : { type: "FeatureCollection", features: [] };
|
|
3791
4081
|
}
|
|
4082
|
+
async importGeoJSON(e, r = {}) {
|
|
4083
|
+
var n, s, l, c;
|
|
4084
|
+
const o = (n = r.behavior) != null ? n : "replace";
|
|
4085
|
+
if (this._logger.debug("importGeoJSON", {
|
|
4086
|
+
behavior: o,
|
|
4087
|
+
fitToData: (s = r.fitToData) != null ? s : !1,
|
|
4088
|
+
features: (c = (l = e == null ? void 0 : e.features) == null ? void 0 : l.length) != null ? c : 0
|
|
4089
|
+
}), !this._controller) return [];
|
|
4090
|
+
const i = this.status;
|
|
4091
|
+
return this._setImportLoadingStatus(i), this._performImport(
|
|
4092
|
+
e,
|
|
4093
|
+
r,
|
|
4094
|
+
i,
|
|
4095
|
+
o === "add" ? "Failed to add GeoJSON features to the map" : "Failed to load GeoJSON into the map"
|
|
4096
|
+
);
|
|
4097
|
+
}
|
|
3792
4098
|
async loadGeoJSON(e) {
|
|
3793
|
-
var
|
|
3794
|
-
|
|
3795
|
-
const r = { fc: e, mode: "load" };
|
|
3796
|
-
this.dispatchEvent(new CustomEvent("leaflet-draw:ingest", { detail: r }));
|
|
3797
|
-
const o = r.fc && r.fc.type === "FeatureCollection" ? r.fc : e;
|
|
3798
|
-
await this._controller.loadGeoJSON(o, !1);
|
|
4099
|
+
var r, o;
|
|
4100
|
+
this._logger.debug("loadGeoJSON", { features: (o = (r = e == null ? void 0 : e.features) == null ? void 0 : r.length) != null ? o : 0 }), await this.importGeoJSON(e, { behavior: "replace" });
|
|
3799
4101
|
}
|
|
3800
4102
|
async clearLayers() {
|
|
3801
|
-
this._logger.debug("clearLayers"), this._controller && await this._controller.clearLayers()
|
|
4103
|
+
this._logger.debug("clearLayers"), this._controller && (await this._controller.clearLayers(), this._setStatus({
|
|
4104
|
+
state: "ready",
|
|
4105
|
+
ready: !0,
|
|
4106
|
+
busy: !1,
|
|
4107
|
+
featureCount: 0,
|
|
4108
|
+
lastEvent: "clearLayers",
|
|
4109
|
+
lastError: null
|
|
4110
|
+
}));
|
|
3802
4111
|
}
|
|
3803
4112
|
async addFeatures(e) {
|
|
3804
|
-
var
|
|
3805
|
-
|
|
3806
|
-
const r = { fc: e, mode: "add" };
|
|
3807
|
-
this.dispatchEvent(new CustomEvent("leaflet-draw:ingest", { detail: r }));
|
|
3808
|
-
const o = r.fc && r.fc.type === "FeatureCollection" ? r.fc : e;
|
|
3809
|
-
return this._controller.addFeatures(o);
|
|
4113
|
+
var r, o;
|
|
4114
|
+
return this._logger.debug("addFeatures", { count: (o = (r = e == null ? void 0 : e.features) == null ? void 0 : r.length) != null ? o : 0 }), this.importGeoJSON(e, { behavior: "add" });
|
|
3810
4115
|
}
|
|
3811
4116
|
async updateFeature(e, r) {
|
|
3812
4117
|
this._logger.debug("updateFeature", { id: e }), this._controller && await this._controller.updateFeature(e, r);
|
|
3813
4118
|
}
|
|
3814
4119
|
async removeFeature(e) {
|
|
3815
|
-
this._logger.debug("removeFeature", { id: e }), this._controller && await this._controller.removeFeature(e)
|
|
4120
|
+
this._logger.debug("removeFeature", { id: e }), this._controller && (await this._controller.removeFeature(e), await this._syncStatusFromController({
|
|
4121
|
+
state: "ready",
|
|
4122
|
+
ready: !0,
|
|
4123
|
+
busy: !1,
|
|
4124
|
+
lastEvent: "removeFeature",
|
|
4125
|
+
clearLastError: !0
|
|
4126
|
+
}));
|
|
3816
4127
|
}
|
|
3817
4128
|
async fitBoundsToData(e) {
|
|
3818
4129
|
this._logger.debug("fitBoundsToData", { padding: e }), this._controller && await this._controller.fitBoundsToData(
|
|
@@ -3828,10 +4139,16 @@ class ze extends HTMLElement {
|
|
|
3828
4139
|
async setView(e, r, o) {
|
|
3829
4140
|
this._logger.debug("setView", { lat: e, lng: r, zoom: o }), this.latitude = e, this.longitude = r, typeof o == "number" && (this.zoom = o), this._controller && await this._controller.setView(e, r, o);
|
|
3830
4141
|
}
|
|
3831
|
-
async exportGeoJSON() {
|
|
3832
|
-
|
|
3833
|
-
const
|
|
3834
|
-
|
|
4142
|
+
async exportGeoJSON(e = {}) {
|
|
4143
|
+
var n;
|
|
4144
|
+
const r = (n = e.adapter) != null ? n : "editing";
|
|
4145
|
+
if (this._logger.debug("exportGeoJSON", { adapter: r }), !this._controller) return { type: "FeatureCollection", features: [] };
|
|
4146
|
+
const o = await this._exportWithController(e), i = {
|
|
4147
|
+
geoJSON: o,
|
|
4148
|
+
featureCount: o.features.length,
|
|
4149
|
+
adapter: r
|
|
4150
|
+
};
|
|
4151
|
+
return this.dispatchEvent(new CustomEvent(L.Export, { detail: i })), o;
|
|
3835
4152
|
}
|
|
3836
4153
|
/**
|
|
3837
4154
|
* Merge all visible polygon layers into a single polygon.
|
|
@@ -3842,16 +4159,23 @@ class ze extends HTMLElement {
|
|
|
3842
4159
|
*/
|
|
3843
4160
|
async mergePolygons(e) {
|
|
3844
4161
|
if (this._logger.debug("mergePolygons"), !this._controller) return null;
|
|
3845
|
-
const o = (await this._controller.getGeoJSON()).features.length,
|
|
3846
|
-
if (
|
|
4162
|
+
const o = (await this._controller.getGeoJSON()).features.length, i = await this._controller.mergeVisiblePolygons(e);
|
|
4163
|
+
if (i) {
|
|
3847
4164
|
const n = await this._controller.getGeoJSON(), s = {
|
|
3848
|
-
id:
|
|
4165
|
+
id: i,
|
|
3849
4166
|
mergedFeatureCount: o - n.features.length + 1,
|
|
3850
4167
|
geoJSON: n
|
|
3851
4168
|
};
|
|
3852
|
-
this.dispatchEvent(new CustomEvent("leaflet-draw:merged", { detail: s }))
|
|
4169
|
+
this.dispatchEvent(new CustomEvent("leaflet-draw:merged", { detail: s })), this._setStatus({
|
|
4170
|
+
state: "ready",
|
|
4171
|
+
ready: !0,
|
|
4172
|
+
busy: !1,
|
|
4173
|
+
featureCount: n.features.length,
|
|
4174
|
+
lastEvent: "leaflet-draw:merged",
|
|
4175
|
+
lastError: null
|
|
4176
|
+
});
|
|
3853
4177
|
}
|
|
3854
|
-
return
|
|
4178
|
+
return i;
|
|
3855
4179
|
}
|
|
3856
4180
|
async setMeasurementUnits(e) {
|
|
3857
4181
|
this._logger.debug("setMeasurementUnits", { system: e }), this._controller && this._controller.setRulerUnits(e);
|
|
@@ -3880,7 +4204,7 @@ class ze extends HTMLElement {
|
|
|
3880
4204
|
timestamp: Date.now(),
|
|
3881
4205
|
error: "Map controller is not initialized"
|
|
3882
4206
|
}), !1;
|
|
3883
|
-
const
|
|
4207
|
+
const i = this._controller, n = typeof i.activateTool == "function" ? i.activateTool.bind(i) : (l = i.triggerTool) == null ? void 0 : l.bind(i);
|
|
3884
4208
|
return n ? n(e, {
|
|
3885
4209
|
source: o,
|
|
3886
4210
|
groupId: r.groupId
|
|
@@ -3926,8 +4250,8 @@ class ze extends HTMLElement {
|
|
|
3926
4250
|
source: r,
|
|
3927
4251
|
groupId: e.groupId
|
|
3928
4252
|
});
|
|
3929
|
-
const
|
|
3930
|
-
return
|
|
4253
|
+
const i = typeof o.activateTool == "function" ? o.activateTool.bind(o) : (s = o.triggerTool) == null ? void 0 : s.bind(o);
|
|
4254
|
+
return i ? i("select", {
|
|
3931
4255
|
source: r,
|
|
3932
4256
|
groupId: e.groupId
|
|
3933
4257
|
}) : (this._emitToolTriggerResult({
|
|
@@ -3939,42 +4263,173 @@ class ze extends HTMLElement {
|
|
|
3939
4263
|
error: "Map controller cannot deactivate tools"
|
|
3940
4264
|
}), !1);
|
|
3941
4265
|
}
|
|
3942
|
-
async loadGeoJSONFromUrl(e) {
|
|
3943
|
-
|
|
3944
|
-
const
|
|
3945
|
-
if (
|
|
3946
|
-
|
|
3947
|
-
|
|
4266
|
+
async loadGeoJSONFromUrl(e, r = {}) {
|
|
4267
|
+
var l, c, d;
|
|
4268
|
+
const o = (l = r.behavior) != null ? l : "replace";
|
|
4269
|
+
if (this._logger.debug("loadGeoJSONFromUrl", {
|
|
4270
|
+
url: e,
|
|
4271
|
+
behavior: o,
|
|
4272
|
+
fitToData: (c = r.fitToData) != null ? c : !0
|
|
4273
|
+
}), !this._controller) return;
|
|
4274
|
+
const i = this.status;
|
|
4275
|
+
this._setImportLoadingStatus(i);
|
|
4276
|
+
let n;
|
|
4277
|
+
try {
|
|
4278
|
+
n = await fetch(e, { headers: { Accept: "application/json" } });
|
|
4279
|
+
} catch (u) {
|
|
4280
|
+
const p = new Error(`Failed to fetch GeoJSON from ${e}`);
|
|
4281
|
+
throw this._emitError(
|
|
4282
|
+
{
|
|
4283
|
+
code: "data_fetch_failed",
|
|
4284
|
+
message: p.message,
|
|
4285
|
+
recoverable: !0,
|
|
4286
|
+
cause: u
|
|
4287
|
+
},
|
|
4288
|
+
{
|
|
4289
|
+
state: i.ready ? "ready" : i.state,
|
|
4290
|
+
featureCount: i.featureCount
|
|
4291
|
+
}
|
|
4292
|
+
), p;
|
|
4293
|
+
}
|
|
4294
|
+
if (!n.ok) {
|
|
4295
|
+
const u = new Error(
|
|
4296
|
+
`Failed to fetch GeoJSON from ${e}: ${n.status} ${n.statusText}`
|
|
3948
4297
|
);
|
|
3949
|
-
throw this.
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
let r;
|
|
4298
|
+
throw this._emitError(
|
|
4299
|
+
{
|
|
4300
|
+
code: "data_fetch_failed",
|
|
4301
|
+
message: u.message,
|
|
4302
|
+
recoverable: !0,
|
|
4303
|
+
cause: u
|
|
4304
|
+
},
|
|
4305
|
+
{
|
|
4306
|
+
state: i.ready ? "ready" : i.state,
|
|
4307
|
+
featureCount: i.featureCount
|
|
4308
|
+
}
|
|
4309
|
+
), u;
|
|
4310
|
+
}
|
|
4311
|
+
let s;
|
|
3964
4312
|
try {
|
|
3965
|
-
|
|
3966
|
-
} catch (
|
|
3967
|
-
const
|
|
3968
|
-
throw this.
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
4313
|
+
s = await n.json();
|
|
4314
|
+
} catch (u) {
|
|
4315
|
+
const p = new Error(`Failed to parse GeoJSON from ${e}`);
|
|
4316
|
+
throw this._emitError(
|
|
4317
|
+
{
|
|
4318
|
+
code: "data_parse_failed",
|
|
4319
|
+
message: p.message,
|
|
4320
|
+
recoverable: !0,
|
|
4321
|
+
cause: u
|
|
4322
|
+
},
|
|
4323
|
+
{
|
|
4324
|
+
state: i.ready ? "ready" : i.state,
|
|
4325
|
+
featureCount: i.featureCount
|
|
4326
|
+
}
|
|
4327
|
+
), p;
|
|
4328
|
+
}
|
|
4329
|
+
await this._performImport(
|
|
4330
|
+
s,
|
|
4331
|
+
{
|
|
4332
|
+
behavior: o,
|
|
4333
|
+
fitToData: (d = r.fitToData) != null ? d : !0
|
|
4334
|
+
},
|
|
4335
|
+
i,
|
|
4336
|
+
o === "add" ? `Failed to add GeoJSON from ${e}` : `Failed to load GeoJSON from ${e}`
|
|
4337
|
+
);
|
|
4338
|
+
}
|
|
4339
|
+
async loadGeoJSONFromText(e, r = {}) {
|
|
4340
|
+
var s, l, c, d;
|
|
4341
|
+
const o = (s = r.behavior) != null ? s : "replace";
|
|
4342
|
+
if (this._logger.debug("loadGeoJSONFromText", {
|
|
4343
|
+
behavior: o,
|
|
4344
|
+
fitToData: (l = r.fitToData) != null ? l : !0,
|
|
4345
|
+
length: (c = e == null ? void 0 : e.length) != null ? c : 0
|
|
4346
|
+
}), !this._controller) return;
|
|
4347
|
+
const i = this.status;
|
|
4348
|
+
this._setImportLoadingStatus(i);
|
|
4349
|
+
let n;
|
|
4350
|
+
try {
|
|
4351
|
+
n = JSON.parse(e);
|
|
4352
|
+
} catch (u) {
|
|
4353
|
+
const p = new Error("Failed to parse GeoJSON text");
|
|
4354
|
+
throw this._emitError(
|
|
4355
|
+
{
|
|
4356
|
+
code: "data_parse_failed",
|
|
4357
|
+
message: p.message,
|
|
4358
|
+
recoverable: !0,
|
|
4359
|
+
cause: u
|
|
4360
|
+
},
|
|
4361
|
+
{
|
|
4362
|
+
state: i.ready ? "ready" : i.state,
|
|
4363
|
+
featureCount: i.featureCount
|
|
4364
|
+
}
|
|
4365
|
+
), p;
|
|
4366
|
+
}
|
|
4367
|
+
await this._performImport(
|
|
4368
|
+
n,
|
|
4369
|
+
{
|
|
4370
|
+
behavior: o,
|
|
4371
|
+
fitToData: (d = r.fitToData) != null ? d : !0
|
|
4372
|
+
},
|
|
4373
|
+
i,
|
|
4374
|
+
o === "add" ? "Failed to add parsed GeoJSON into the map" : "Failed to load parsed GeoJSON into the map"
|
|
4375
|
+
);
|
|
4376
|
+
}
|
|
4377
|
+
_setImportLoadingStatus(e) {
|
|
4378
|
+
this._setStatus({
|
|
4379
|
+
state: "loading",
|
|
4380
|
+
ready: e.ready,
|
|
4381
|
+
busy: !0,
|
|
4382
|
+
featureCount: e.featureCount,
|
|
4383
|
+
lastEvent: L.Ingest,
|
|
4384
|
+
lastError: null
|
|
4385
|
+
});
|
|
4386
|
+
}
|
|
4387
|
+
async _performImport(e, r, o, i) {
|
|
4388
|
+
var c, d;
|
|
4389
|
+
const n = (c = r.behavior) != null ? c : "replace", s = {
|
|
4390
|
+
fc: e,
|
|
4391
|
+
mode: n === "add" ? "add" : "load"
|
|
4392
|
+
};
|
|
4393
|
+
this.dispatchEvent(new CustomEvent(L.Ingest, { detail: s }));
|
|
4394
|
+
const l = s.fc && s.fc.type === "FeatureCollection" ? s.fc : e;
|
|
4395
|
+
try {
|
|
4396
|
+
const u = await this._importWithController(l, {
|
|
4397
|
+
behavior: n,
|
|
4398
|
+
fitToData: (d = r.fitToData) != null ? d : !1
|
|
4399
|
+
});
|
|
4400
|
+
return await this._syncStatusFromController({
|
|
4401
|
+
state: "ready",
|
|
4402
|
+
ready: !0,
|
|
4403
|
+
busy: !1,
|
|
4404
|
+
lastEvent: L.Ingest,
|
|
4405
|
+
clearLastError: !0
|
|
4406
|
+
}), u;
|
|
4407
|
+
} catch (u) {
|
|
4408
|
+
throw this._emitError(
|
|
4409
|
+
{
|
|
4410
|
+
code: n === "add" ? "data_add_failed" : "data_load_failed",
|
|
4411
|
+
message: i,
|
|
4412
|
+
recoverable: !0,
|
|
4413
|
+
cause: u
|
|
4414
|
+
},
|
|
4415
|
+
{
|
|
4416
|
+
state: o.ready ? "ready" : o.state,
|
|
4417
|
+
featureCount: o.featureCount
|
|
4418
|
+
}
|
|
4419
|
+
), u;
|
|
4420
|
+
}
|
|
4421
|
+
}
|
|
4422
|
+
async _importWithController(e, r) {
|
|
4423
|
+
var s, l;
|
|
4424
|
+
if (!this._controller) return [];
|
|
4425
|
+
const o = (s = r.behavior) != null ? s : "replace", i = (l = r.fitToData) != null ? l : !1, n = this._controller;
|
|
4426
|
+
return typeof n.importGeoJSON == "function" ? n.importGeoJSON(e, { behavior: o, fitToData: i }) : o === "add" ? n.addFeatures(e) : (await n.loadGeoJSON(e, i), []);
|
|
4427
|
+
}
|
|
4428
|
+
async _exportWithController(e) {
|
|
4429
|
+
if (!this._controller)
|
|
4430
|
+
return { type: "FeatureCollection", features: [] };
|
|
4431
|
+
const r = this._controller;
|
|
4432
|
+
return typeof r.exportGeoJSON == "function" ? r.exportGeoJSON(e) : r.getGeoJSON();
|
|
3978
4433
|
}
|
|
3979
4434
|
// Helpers
|
|
3980
4435
|
_currentConfig() {
|
|
@@ -4001,16 +4456,16 @@ class ze extends HTMLElement {
|
|
|
4001
4456
|
const e = (o = this._themeUrl) == null ? void 0 : o.trim();
|
|
4002
4457
|
if (e) {
|
|
4003
4458
|
if (!this._themeLinkEl) {
|
|
4004
|
-
const
|
|
4005
|
-
|
|
4459
|
+
const i = document.createElement("link");
|
|
4460
|
+
i.setAttribute("rel", "stylesheet"), i.setAttribute("data-geokit-theme-url", "true"), this._root.appendChild(i), this._themeLinkEl = i;
|
|
4006
4461
|
}
|
|
4007
4462
|
this._themeLinkEl.getAttribute("href") !== e && this._themeLinkEl.setAttribute("href", e);
|
|
4008
4463
|
} else this._themeLinkEl && (this._themeLinkEl.remove(), this._themeLinkEl = null);
|
|
4009
4464
|
const r = this._themeCss;
|
|
4010
4465
|
if (r.trim().length > 0) {
|
|
4011
4466
|
if (!this._themeStyleEl) {
|
|
4012
|
-
const
|
|
4013
|
-
|
|
4467
|
+
const i = document.createElement("style");
|
|
4468
|
+
i.setAttribute("data-geokit-theme-css", "true"), this._root.appendChild(i), this._themeStyleEl = i;
|
|
4014
4469
|
}
|
|
4015
4470
|
this._themeStyleEl.textContent !== r && (this._themeStyleEl.textContent = r);
|
|
4016
4471
|
} else this._themeStyleEl && (this._themeStyleEl.remove(), this._themeStyleEl = null);
|
|
@@ -4027,6 +4482,99 @@ class ze extends HTMLElement {
|
|
|
4027
4482
|
)
|
|
4028
4483
|
);
|
|
4029
4484
|
}
|
|
4485
|
+
_syncStatusFromController(e) {
|
|
4486
|
+
const r = this._controller;
|
|
4487
|
+
return !r || typeof r.getGeoJSON != "function" ? (this._setStatus({
|
|
4488
|
+
state: e.state,
|
|
4489
|
+
ready: e.ready,
|
|
4490
|
+
busy: e.busy,
|
|
4491
|
+
featureCount: this._status.featureCount,
|
|
4492
|
+
lastEvent: e.lastEvent,
|
|
4493
|
+
lastError: e.clearLastError ? null : void 0
|
|
4494
|
+
}), Promise.resolve()) : r.getGeoJSON().then((o) => {
|
|
4495
|
+
this._setStatus({
|
|
4496
|
+
state: e.state,
|
|
4497
|
+
ready: e.ready,
|
|
4498
|
+
busy: e.busy,
|
|
4499
|
+
featureCount: o.features.length,
|
|
4500
|
+
lastEvent: e.lastEvent,
|
|
4501
|
+
lastError: e.clearLastError ? null : void 0
|
|
4502
|
+
});
|
|
4503
|
+
}).catch(() => {
|
|
4504
|
+
this._setStatus({
|
|
4505
|
+
state: e.state,
|
|
4506
|
+
ready: e.ready,
|
|
4507
|
+
busy: e.busy,
|
|
4508
|
+
lastEvent: e.lastEvent,
|
|
4509
|
+
lastError: e.clearLastError ? null : void 0
|
|
4510
|
+
});
|
|
4511
|
+
});
|
|
4512
|
+
}
|
|
4513
|
+
_emitError(e, r) {
|
|
4514
|
+
var i;
|
|
4515
|
+
const o = {
|
|
4516
|
+
...e,
|
|
4517
|
+
timestamp: Date.now()
|
|
4518
|
+
};
|
|
4519
|
+
return this.dispatchEvent(
|
|
4520
|
+
new CustomEvent(L.Error, { detail: o })
|
|
4521
|
+
), this._emitDiagnostic(
|
|
4522
|
+
{
|
|
4523
|
+
code: o.code,
|
|
4524
|
+
message: o.message,
|
|
4525
|
+
recoverable: o.recoverable,
|
|
4526
|
+
severity: o.recoverable ? "warn" : "error",
|
|
4527
|
+
cause: o.cause,
|
|
4528
|
+
timestamp: o.timestamp
|
|
4529
|
+
},
|
|
4530
|
+
{
|
|
4531
|
+
state: r.state,
|
|
4532
|
+
featureCount: r.featureCount,
|
|
4533
|
+
lastEvent: (i = r.lastEvent) != null ? i : L.Error
|
|
4534
|
+
}
|
|
4535
|
+
), o;
|
|
4536
|
+
}
|
|
4537
|
+
_emitDiagnostic(e, r) {
|
|
4538
|
+
var i, n;
|
|
4539
|
+
const o = {
|
|
4540
|
+
...e,
|
|
4541
|
+
state: r.state
|
|
4542
|
+
};
|
|
4543
|
+
return this.dispatchEvent(
|
|
4544
|
+
new CustomEvent(q.Diagnostic, { detail: o })
|
|
4545
|
+
), this._setStatus({
|
|
4546
|
+
state: r.state,
|
|
4547
|
+
ready: r.state === "ready",
|
|
4548
|
+
busy: r.state === "initializing" || r.state === "loading",
|
|
4549
|
+
featureCount: (i = r.featureCount) != null ? i : this._status.featureCount,
|
|
4550
|
+
lastEvent: (n = r.lastEvent) != null ? n : q.Diagnostic,
|
|
4551
|
+
lastError: {
|
|
4552
|
+
code: o.code,
|
|
4553
|
+
message: o.message,
|
|
4554
|
+
recoverable: o.recoverable,
|
|
4555
|
+
timestamp: o.timestamp
|
|
4556
|
+
}
|
|
4557
|
+
}), o;
|
|
4558
|
+
}
|
|
4559
|
+
_setStatus(e) {
|
|
4560
|
+
const r = {
|
|
4561
|
+
...this._status,
|
|
4562
|
+
...e,
|
|
4563
|
+
lastError: e.lastError === null ? void 0 : e.lastError !== void 0 ? { ...e.lastError } : this._status.lastError ? { ...this._status.lastError } : void 0,
|
|
4564
|
+
timestamp: Date.now()
|
|
4565
|
+
};
|
|
4566
|
+
this._status = r, this.dispatchEvent(
|
|
4567
|
+
new CustomEvent(q.Status, {
|
|
4568
|
+
detail: this._cloneStatus(r)
|
|
4569
|
+
})
|
|
4570
|
+
);
|
|
4571
|
+
}
|
|
4572
|
+
_cloneStatus(e) {
|
|
4573
|
+
return {
|
|
4574
|
+
...e,
|
|
4575
|
+
lastError: e.lastError ? { ...e.lastError } : void 0
|
|
4576
|
+
};
|
|
4577
|
+
}
|
|
4030
4578
|
_syncApiKeyFromAttributes() {
|
|
4031
4579
|
const e = this._normalizeText(this.getAttribute("api-key")), r = this._normalizeText(this.getAttribute("here-api-key"));
|
|
4032
4580
|
this._apiKey = e != null ? e : r;
|
|
@@ -4068,28 +4616,17 @@ class ze extends HTMLElement {
|
|
|
4068
4616
|
return Number.isFinite(o) ? o : r != null ? r : NaN;
|
|
4069
4617
|
}
|
|
4070
4618
|
}
|
|
4071
|
-
const
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
Export: "leaflet-draw:export",
|
|
4079
|
-
DrawStart: "leaflet-draw:drawstart",
|
|
4080
|
-
DrawStop: "leaflet-draw:drawstop",
|
|
4081
|
-
EditStart: "leaflet-draw:editstart",
|
|
4082
|
-
EditStop: "leaflet-draw:editstop"
|
|
4083
|
-
}, we = "leaflet-geokit";
|
|
4084
|
-
customElements.get(we) || customElements.define(we, ze);
|
|
4085
|
-
const ve = "leaflet-draw-map";
|
|
4086
|
-
if (!customElements.get(ve)) {
|
|
4087
|
-
class i extends ze {
|
|
4088
|
-
}
|
|
4089
|
-
customElements.define(ve, i);
|
|
4619
|
+
const ke = "leaflet-geokit";
|
|
4620
|
+
customElements.get(ke) || customElements.define(ke, Ue);
|
|
4621
|
+
const Ee = "leaflet-draw-map";
|
|
4622
|
+
if (!customElements.get(Ee)) {
|
|
4623
|
+
class a extends Ue {
|
|
4624
|
+
}
|
|
4625
|
+
customElements.define(Ee, a);
|
|
4090
4626
|
}
|
|
4091
4627
|
export {
|
|
4092
|
-
|
|
4093
|
-
|
|
4628
|
+
L as DrawEvent,
|
|
4629
|
+
q as GeoKitEvent,
|
|
4630
|
+
Ue as LeafletDrawMapElement
|
|
4094
4631
|
};
|
|
4095
4632
|
//# sourceMappingURL=leaflet-geokit.external.es.js.map
|