@florasync/leaflet-geokit 0.7.0 → 0.8.1
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 +384 -3
- package/dist/django/index.js +4758 -3546
- package/dist/django/index.js.map +1 -1
- package/dist/leaflet-geokit.es.js +4654 -3442
- package/dist/leaflet-geokit.es.js.map +1 -1
- package/dist/leaflet-geokit.external.es.js +2294 -1082
- package/dist/leaflet-geokit.external.es.js.map +1 -1
- package/dist/leaflet-geokit.umd.js +17 -17
- package/dist/leaflet-geokit.umd.js.map +1 -1
- package/dist/preact/{index-DagV_wwR.js → index-x8CrGR_z.js} +2263 -1051
- package/dist/preact/index-x8CrGR_z.js.map +1 -0
- package/dist/preact/index.js +52 -48
- package/dist/preact/index.js.map +1 -1
- package/dist/preact-bundled/index.js +4808 -3592
- package/dist/preact-bundled/index.js.map +1 -1
- package/dist/react/{index-DagV_wwR.js → index-x8CrGR_z.js} +2263 -1051
- package/dist/react/index-x8CrGR_z.js.map +1 -0
- package/dist/react/index.js +40 -36
- package/dist/react/index.js.map +1 -1
- package/dist/react-bundled/index.js +4809 -3593
- package/dist/react-bundled/index.js.map +1 -1
- package/dist/types/{src/components → components}/LeafletDrawMapElement.d.ts +30 -2
- package/dist/types/{src/django → django}/index.d.ts +2 -2
- package/dist/types/external.d.ts +4 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/{src/lib → lib}/FeatureStore.d.ts +2 -2
- package/dist/types/{src/lib → lib}/MapController.d.ts +50 -3
- package/dist/types/{src/lib → lib}/layer-cake/LayerCakeManager.d.ts +1 -1
- package/dist/types/lib/marker-icons.d.ts +27 -0
- package/dist/types/lib/tool-buttons.d.ts +11 -0
- package/dist/types/{src/preact → preact}/core.d.ts +10 -1
- package/dist/types/{src/preact → preact}/index.d.ts +1 -1
- package/dist/types/{src/preact-bundled → preact-bundled}/index.d.ts +3 -3
- package/dist/types/{src/react → react}/core.d.ts +10 -1
- package/dist/types/{src/react → react}/index.d.ts +1 -1
- package/dist/types/{src/react-bundled → react-bundled}/index.d.ts +3 -3
- package/dist/types/{src/types → types}/public.d.ts +125 -1
- package/package.json +6 -3
- package/dist/preact/index-DagV_wwR.js.map +0 -1
- package/dist/react/index-DagV_wwR.js.map +0 -1
- package/dist/types/e2e/component.spec.d.ts +0 -1
- package/dist/types/e2e/dummy.spec.d.ts +0 -1
- package/dist/types/src/external.d.ts +0 -4
- package/dist/types/src/index.d.ts +0 -4
- package/dist/types/tests/bbox-more.spec.d.ts +0 -1
- package/dist/types/tests/component-api-more.spec.d.ts +0 -1
- package/dist/types/tests/component-branch-coverage.spec.d.ts +0 -1
- package/dist/types/tests/component-delegation.spec.d.ts +0 -1
- package/dist/types/tests/component-events.spec.d.ts +0 -1
- package/dist/types/tests/component-io.spec.d.ts +0 -1
- package/dist/types/tests/component-tile-provider.spec.d.ts +0 -1
- package/dist/types/tests/django-shim.spec.d.ts +0 -1
- package/dist/types/tests/draw-cake.spec.d.ts +0 -1
- package/dist/types/tests/draw-move.spec.d.ts +0 -1
- package/dist/types/tests/eachcoord.spec.d.ts +0 -1
- package/dist/types/tests/element.spec.d.ts +0 -1
- package/dist/types/tests/ensure-element.spec.d.ts +0 -1
- package/dist/types/tests/external-entry.spec.d.ts +0 -1
- package/dist/types/tests/featureStore-more.spec.d.ts +0 -1
- package/dist/types/tests/featureStore.spec.d.ts +0 -1
- package/dist/types/tests/framework-runtime-externalization.spec.d.ts +0 -1
- package/dist/types/tests/geodesic.spec.d.ts +0 -1
- package/dist/types/tests/geojson-merge.spec.d.ts +0 -1
- package/dist/types/tests/geojson-more.spec.d.ts +0 -1
- package/dist/types/tests/geojson.spec.d.ts +0 -1
- package/dist/types/tests/layer-cake-baker.spec.d.ts +0 -1
- package/dist/types/tests/layer-cake-controls.spec.d.ts +0 -1
- package/dist/types/tests/layer-cake-editing.spec.d.ts +0 -1
- package/dist/types/tests/layer-cake-manager.spec.d.ts +0 -1
- package/dist/types/tests/leaflet-assets.spec.d.ts +0 -1
- package/dist/types/tests/leaflet-draw-circle-resize-patch.spec.d.ts +0 -1
- package/dist/types/tests/leaflet-guards.spec.d.ts +0 -1
- package/dist/types/tests/logger-more.spec.d.ts +0 -1
- package/dist/types/tests/logger.spec.d.ts +0 -1
- package/dist/types/tests/map-controller.spec.d.ts +0 -1
- package/dist/types/tests/mapcontroller-merge.spec.d.ts +0 -1
- package/dist/types/tests/preact-bundled-shim.spec.d.ts +0 -1
- package/dist/types/tests/preact-shim.spec.d.ts +0 -1
- package/dist/types/tests/react-bundled-shim.spec.d.ts +0 -1
- package/dist/types/tests/react-shim.spec.d.ts +0 -1
- package/dist/types/tests/ruler.spec.d.ts +0 -1
- package/dist/types/tests/tile-provider-factory.spec.d.ts +0 -1
- package/dist/types/vite.config.d.ts +0 -2
- package/dist/types/vite.config.external.d.ts +0 -2
- package/dist/types/vite.config.preact-bundled.d.ts +0 -2
- package/dist/types/vite.config.preact.d.ts +0 -2
- package/dist/types/vite.config.react-bundled.d.ts +0 -2
- package/dist/types/vite.config.react.d.ts +0 -2
- /package/dist/types/{src/lib → lib}/TileProviderFactory.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/draw/L.Draw.Cake.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/draw/L.Draw.Move.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/draw/toolbar-patch.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/layer-cake/CakeBaker.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/layer-cake/bindCakeControls.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/layer-cake/ensureCircleEditable.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/leaflet-assets.d.ts +0 -0
- /package/dist/types/{src/shims → shims}/ensure-element.d.ts +0 -0
- /package/dist/types/{src/state → state}/types.d.ts +0 -0
- /package/dist/types/{src/types → types}/events.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/geodesic.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/geojson.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/leaflet-guards.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/logger.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/ruler.d.ts +0 -0
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import * as
|
|
1
|
+
var De = Object.defineProperty;
|
|
2
|
+
var Ne = (i, t, e) => t in i ? De(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var u = (i, t, e) => Ne(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import * as x from "leaflet";
|
|
5
5
|
import "leaflet-draw";
|
|
6
6
|
import "leaflet-ruler";
|
|
7
|
-
const
|
|
7
|
+
const ue = {
|
|
8
8
|
trace: 10,
|
|
9
9
|
debug: 20,
|
|
10
10
|
info: 30,
|
|
11
11
|
warn: 40,
|
|
12
12
|
error: 50
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
return
|
|
14
|
+
function He(i, t) {
|
|
15
|
+
return i === "silent" ? !1 : ue[t] >= ue[i];
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Fe() {
|
|
18
18
|
try {
|
|
19
19
|
return (/* @__PURE__ */ new Date()).toISOString();
|
|
20
20
|
} catch {
|
|
21
21
|
return "";
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
let
|
|
26
|
-
const
|
|
24
|
+
function G(i, t = "debug", e = console) {
|
|
25
|
+
let r = t;
|
|
26
|
+
const o = (n) => (...s) => {
|
|
27
27
|
try {
|
|
28
|
-
if (!
|
|
29
|
-
const l = `[${
|
|
30
|
-
typeof c == "function" ? c(l, ...
|
|
28
|
+
if (!He(r, n)) return;
|
|
29
|
+
const l = `[${Fe()}][${i}][${n.toUpperCase()}]`, c = e[n];
|
|
30
|
+
typeof c == "function" ? c(l, ...s) : e.log(l, ...s);
|
|
31
31
|
} catch {
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
return {
|
|
35
35
|
get level() {
|
|
36
|
-
return
|
|
36
|
+
return r;
|
|
37
37
|
},
|
|
38
|
-
setLevel(
|
|
39
|
-
|
|
38
|
+
setLevel(n) {
|
|
39
|
+
r = n;
|
|
40
40
|
},
|
|
41
|
-
trace:
|
|
42
|
-
debug:
|
|
43
|
-
info:
|
|
44
|
-
warn:
|
|
45
|
-
error:
|
|
46
|
-
child(
|
|
47
|
-
return
|
|
41
|
+
trace: o("trace"),
|
|
42
|
+
debug: o("debug"),
|
|
43
|
+
info: o("info"),
|
|
44
|
+
warn: o("warn"),
|
|
45
|
+
error: o("error"),
|
|
46
|
+
child(n) {
|
|
47
|
+
return G(`${i}:${n}`, r, e);
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
const xe = '.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/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+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/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/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+bOWHVR6y0FKZBEqdIUQROIREGRx3FFvR/38ODZst3a3nE8Ywfv+T2t7hzdM3fle/bOnWtACCGEEEIIIYQQQgghhBBCCCGEEEIIIcRa0EbfgBDdFItFKwzDAa3175LuWylVAvBIR/MxrXUp6Vxx9dp4VyObVEdKKW591lonXgiVUg6AHzPzk9ls9meVSmUh6RzXkz179uQKhcIgM+8CACI6U6vVnp+enm6knXt4ePiuTCbzWQAwxlSDIHg57ZwroDAMnwKwz3XdBzzPG08hxzsTNprQG2lTjtd13WFmfghAP4A+AJcATFiW9YNKpfL3uP0kUliiX4SG1pqUUpx0wXJd9/PMXAGwPWq6yMyPz8/P/7xarf4nyVwt7QV4JWkU52i8YwBu6bh0wRhzJAiCF5POCQCDg4N2Pp//NYDRjkuTxph9QRCESeYrFov5ubm5R5n5AIAPtV1aYOb7BgYGTpZKJeO67lFmPsbM9/i+/8Ja8y6zylhOYquPXhsvAJRKpczMzMwTAIaJ6LFGo+HNzs5eKRQKNxPRAWb+CoAjWuvn4vS35skWFasxAAdbbUlOYqVUPwAPwI4lLr8J4KeWZT1eqVTmksoZ5d2QghUVKx/AlmVCFph5yPf9l5LMCwBKqUksFqszRHQcAJj5GwB2MfOE7/tfTDKf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QD+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+9sVQkx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BvBNBd56GXAHxXVR/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}`, ke = ".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////AAAAAAAAAAAAAAAAAAAzABcXABQUABIkDhwrAA0aAAwYABUgABQfABIbABAZAA8fABUcABMaABMfABIeABEcABAbABQeABMdABIdABEbABIbABIbABEdABEcABIcBxsoABEdABIdABIdABEcABMbABMdFBwgERofAhIbEhsfAhIdBxUeEhsgEBofAhMbAhMdBRMd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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////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=);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}", Le = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9Bfptd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1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC", Ce = "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", Ie = "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////AAAAAAAAAAAAAAAAAAAzABcXABQUABIkDhwrAA0aAAwYABUgABQfABIbABAZAA8fABUcABMaABMfABIeABEcABAbABQeABMdABIdABEbABIbABIbABEdABEcABIcBxsoABEdABIdABIdABEcABMbABMdFBwgERofAhIbEhsfAhIdBxUeEhsgEBofAhMbAhMdBRMdAhIbAhIdAhMdCRceARIcDBgfDBgfDBcfDBcfFhwgDBceDBceCxceFCs5HTdGAxMcDxofGTFAHDRDHDVDHDVEHTZFDRkfEBofERogCh0oERsgARIcEhsfEhsgCh4pDCEsDRkfDRkfEBofBhQdDSMvDRgfDBgfCBUeBxUeDyUyECYzUDktPTAqCRceCRYeChYeDxkfEBkgLCgmWj4wCBYdW0AwGh4hHCAiHSAiTDctBhUdBxYdEBkfLyonMConBhUdJiUkLCclLSgmLigmOzApPTEpDBgfBRQdDBgfERsgWT8wBBM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uziTEEqAIAvamx163e5EoAAAAASUVORK5CYII=";
|
|
52
|
-
function
|
|
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/fVzMdMT2g9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yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+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/i4nxTXtOoQ4p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RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+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+bOWHVR6y0FKZBEqdIUQRO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iDiCaY+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+mSKDg4M3l0qlnSJyG4CbAFwP4ByAlwE8pao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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,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAA3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T09fX19fX29vb29vb29/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,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8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xZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+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/dTVAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE3LTA1LTEwVDEyOjMwOjE0KzAyOjAwUNH5TAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNy0wNS0xMFQxMjozMDoxNCswMjowMCGMQfAAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElF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eoKGprKytrq+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 Xe(i) {
|
|
53
53
|
const t = "data-leaflet-styles";
|
|
54
|
-
if (
|
|
54
|
+
if (i.querySelector(`style[${t}]`)) return;
|
|
55
55
|
const e = document.createElement("style");
|
|
56
56
|
e.setAttribute(t, "true"), e.textContent = `
|
|
57
57
|
/* --- Leaflet core CSS --- */
|
|
58
|
-
${
|
|
58
|
+
${Ge}
|
|
59
59
|
|
|
60
60
|
/* --- Leaflet.draw CSS --- */
|
|
61
|
-
${
|
|
61
|
+
${Ve}
|
|
62
62
|
|
|
63
63
|
/* --- Leaflet.ruler CSS --- */
|
|
64
|
-
${
|
|
64
|
+
${Je}
|
|
65
65
|
|
|
66
66
|
/* --- Fix Leaflet.ruler icons (broken relative paths in inlined CSS) --- */
|
|
67
67
|
.leaflet-ruler {
|
|
68
68
|
width: 30px !important; /* Match Leaflet Draw default size approx */
|
|
69
69
|
height: 30px !important;
|
|
70
70
|
background-color: #fff; /* Ensure visibility */
|
|
71
|
-
background-image: url(${
|
|
71
|
+
background-image: url(${Ke}) !important;
|
|
72
72
|
background-size: 16px 16px; /* Scale icon to fit */
|
|
73
73
|
}
|
|
74
74
|
.leaflet-ruler:hover,
|
|
75
75
|
.leaflet-ruler-clicked {
|
|
76
|
-
background-image: url(${
|
|
76
|
+
background-image: url(${Qe}) !important;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
/* --- Custom overrides for marker/handle sizes --- */
|
|
@@ -103,7 +103,7 @@ ${ke}
|
|
|
103
103
|
padding: 0;
|
|
104
104
|
border-radius: 4px;
|
|
105
105
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
|
|
106
|
-
background-image: url(${
|
|
106
|
+
background-image: url(${qe});
|
|
107
107
|
transition: background-color 0.15s ease, box-shadow 0.15s ease;
|
|
108
108
|
}
|
|
109
109
|
.leaflet-ruler-settings-button:hover {
|
|
@@ -187,7 +187,7 @@ ${ke}
|
|
|
187
187
|
|
|
188
188
|
/* --- Layer Cake draw tool icon + manager UI --- */
|
|
189
189
|
.leaflet-draw-toolbar a.leaflet-draw-draw-cake {
|
|
190
|
-
background-image: url(${
|
|
190
|
+
background-image: url(${xe}) !important;
|
|
191
191
|
background-size: 18px 18px !important;
|
|
192
192
|
background-position: 50% 50% !important;
|
|
193
193
|
background-repeat: no-repeat !important;
|
|
@@ -245,204 +245,205 @@ ${ke}
|
|
|
245
245
|
.leaflet-draw-move-mode .leaflet-interactive:active {
|
|
246
246
|
cursor: grabbing !important;
|
|
247
247
|
}
|
|
248
|
-
`,
|
|
248
|
+
`, i.appendChild(e);
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function We(i) {
|
|
251
251
|
const t = "data-leaflet-custom-styles";
|
|
252
|
-
if (
|
|
252
|
+
if (i.querySelector(`style[${t}]`)) return;
|
|
253
253
|
const e = document.createElement("style");
|
|
254
254
|
e.setAttribute(t, "true"), e.textContent = `
|
|
255
255
|
/* Ensure Layer Cake toolbar icon uses project asset instead of draw sprite sheet */
|
|
256
256
|
.leaflet-draw-toolbar a.leaflet-draw-draw-cake {
|
|
257
|
-
background-image: url(${
|
|
257
|
+
background-image: url(${xe}) !important;
|
|
258
258
|
background-size: 18px 18px !important;
|
|
259
259
|
background-position: 50% 50% !important;
|
|
260
260
|
background-repeat: no-repeat !important;
|
|
261
261
|
background-color: #fff;
|
|
262
262
|
}
|
|
263
|
-
`,
|
|
263
|
+
`, i.appendChild(e);
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
var
|
|
267
|
-
(t = (
|
|
268
|
-
iconRetinaUrl:
|
|
269
|
-
iconUrl:
|
|
270
|
-
shadowUrl:
|
|
265
|
+
function $e() {
|
|
266
|
+
var i, t;
|
|
267
|
+
(t = (i = x.Icon.Default).mergeOptions) == null || t.call(i, {
|
|
268
|
+
iconRetinaUrl: Ze,
|
|
269
|
+
iconUrl: je,
|
|
270
|
+
shadowUrl: Ye
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
const { root: t, skipStyles: e } =
|
|
273
|
+
function et(i) {
|
|
274
|
+
const { root: t, skipStyles: e } = i;
|
|
275
275
|
try {
|
|
276
|
-
e || (
|
|
276
|
+
e || (Xe(t), $e()), We(t);
|
|
277
277
|
} catch {
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
let
|
|
281
|
-
const
|
|
282
|
-
function
|
|
283
|
-
if (!
|
|
280
|
+
let U;
|
|
281
|
+
const tt = new Uint8Array(16);
|
|
282
|
+
function rt() {
|
|
283
|
+
if (!U && (U = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !U))
|
|
284
284
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
285
|
-
return
|
|
285
|
+
return U(tt);
|
|
286
286
|
}
|
|
287
|
-
const
|
|
288
|
-
for (let
|
|
289
|
-
|
|
290
|
-
function
|
|
291
|
-
return
|
|
287
|
+
const L = [];
|
|
288
|
+
for (let i = 0; i < 256; ++i)
|
|
289
|
+
L.push((i + 256).toString(16).slice(1));
|
|
290
|
+
function ot(i, t = 0) {
|
|
291
|
+
return L[i[t + 0]] + L[i[t + 1]] + L[i[t + 2]] + L[i[t + 3]] + "-" + L[i[t + 4]] + L[i[t + 5]] + "-" + L[i[t + 6]] + L[i[t + 7]] + "-" + L[i[t + 8]] + L[i[t + 9]] + "-" + L[i[t + 10]] + L[i[t + 11]] + L[i[t + 12]] + L[i[t + 13]] + L[i[t + 14]] + L[i[t + 15]];
|
|
292
292
|
}
|
|
293
|
-
const
|
|
294
|
-
randomUUID:
|
|
293
|
+
const it = typeof crypto != "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto), he = {
|
|
294
|
+
randomUUID: it
|
|
295
295
|
};
|
|
296
|
-
function
|
|
297
|
-
if (
|
|
298
|
-
return
|
|
299
|
-
|
|
300
|
-
const
|
|
301
|
-
return
|
|
302
|
-
}
|
|
303
|
-
function
|
|
304
|
-
var e,
|
|
305
|
-
const t = (
|
|
296
|
+
function ne(i, t, e) {
|
|
297
|
+
if (he.randomUUID && !i)
|
|
298
|
+
return he.randomUUID();
|
|
299
|
+
i = i || {};
|
|
300
|
+
const r = i.random || (i.rng || rt)();
|
|
301
|
+
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, ot(r);
|
|
302
|
+
}
|
|
303
|
+
function se(i) {
|
|
304
|
+
var e, r;
|
|
305
|
+
const t = (r = i.id) != null ? r : (e = i.properties) == null ? void 0 : e.id;
|
|
306
306
|
if (t != null)
|
|
307
307
|
return String(t);
|
|
308
308
|
}
|
|
309
|
-
function
|
|
310
|
-
const e = (
|
|
311
|
-
switch (
|
|
309
|
+
function at(i, t) {
|
|
310
|
+
const e = (r) => {
|
|
311
|
+
switch (r.type) {
|
|
312
312
|
case "Point":
|
|
313
|
-
t(
|
|
313
|
+
t(r.coordinates);
|
|
314
314
|
break;
|
|
315
315
|
case "MultiPoint":
|
|
316
316
|
case "LineString":
|
|
317
|
-
for (const
|
|
317
|
+
for (const o of r.coordinates) t(o);
|
|
318
318
|
break;
|
|
319
319
|
case "MultiLineString":
|
|
320
320
|
case "Polygon":
|
|
321
|
-
for (const
|
|
322
|
-
for (const a of
|
|
321
|
+
for (const o of r.coordinates)
|
|
322
|
+
for (const a of o) t(a);
|
|
323
323
|
break;
|
|
324
324
|
case "MultiPolygon":
|
|
325
|
-
for (const
|
|
326
|
-
for (const a of
|
|
327
|
-
for (const
|
|
325
|
+
for (const o of r.coordinates)
|
|
326
|
+
for (const a of o)
|
|
327
|
+
for (const n of a) t(n);
|
|
328
328
|
break;
|
|
329
329
|
case "GeometryCollection":
|
|
330
|
-
for (const
|
|
330
|
+
for (const o of r.geometries) e(o);
|
|
331
331
|
break;
|
|
332
332
|
}
|
|
333
333
|
};
|
|
334
|
-
e(
|
|
334
|
+
e(i);
|
|
335
335
|
}
|
|
336
|
-
function
|
|
337
|
-
const t =
|
|
336
|
+
function nt(i) {
|
|
337
|
+
const t = i.geometry;
|
|
338
338
|
if (!t) return null;
|
|
339
|
-
let e = 1 / 0,
|
|
340
|
-
return
|
|
341
|
-
const [l, c] =
|
|
342
|
-
typeof l != "number" || typeof c != "number" || (
|
|
343
|
-
}),
|
|
344
|
-
}
|
|
345
|
-
function
|
|
346
|
-
let t = 1 / 0, e = 1 / 0,
|
|
347
|
-
for (const
|
|
348
|
-
const
|
|
349
|
-
|
|
350
|
-
}
|
|
351
|
-
return a ? [t, e,
|
|
352
|
-
}
|
|
353
|
-
function
|
|
354
|
-
const [t, e,
|
|
339
|
+
let e = 1 / 0, r = 1 / 0, o = -1 / 0, a = -1 / 0, n = !1;
|
|
340
|
+
return at(t, (s) => {
|
|
341
|
+
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 > a && (a = c));
|
|
343
|
+
}), n ? [e, r, o, a] : null;
|
|
344
|
+
}
|
|
345
|
+
function st(i) {
|
|
346
|
+
let t = 1 / 0, e = 1 / 0, r = -1 / 0, o = -1 / 0, a = !1;
|
|
347
|
+
for (const n of i.features) {
|
|
348
|
+
const s = nt(n);
|
|
349
|
+
s && (a = !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
|
+
}
|
|
351
|
+
return a ? [t, e, r, o] : null;
|
|
352
|
+
}
|
|
353
|
+
function lt(i) {
|
|
354
|
+
const [t, e, r, o] = i;
|
|
355
355
|
return [
|
|
356
356
|
[e, t],
|
|
357
|
-
[
|
|
357
|
+
[o, r]
|
|
358
358
|
];
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function pe(i) {
|
|
361
361
|
var e;
|
|
362
362
|
const t = [];
|
|
363
|
-
for (const
|
|
364
|
-
if (!
|
|
365
|
-
const
|
|
366
|
-
|
|
367
|
-
|
|
363
|
+
for (const r of i.features) {
|
|
364
|
+
if (!r || r.type !== "Feature") continue;
|
|
365
|
+
const o = (e = r.properties) != null ? e : {}, a = se(r), n = (l, c) => {
|
|
366
|
+
const d = o && typeof o == "object" ? { ...o } : {}, h = a !== void 0 ? `${a}::${c}` : void 0;
|
|
367
|
+
return h !== void 0 && (d.id = h), {
|
|
368
|
+
type: "Feature",
|
|
369
|
+
id: h,
|
|
370
|
+
properties: d,
|
|
371
|
+
geometry: l
|
|
372
|
+
};
|
|
373
|
+
}, s = r.geometry;
|
|
374
|
+
if (s)
|
|
375
|
+
switch (s.type) {
|
|
368
376
|
case "MultiPolygon":
|
|
369
|
-
for (const
|
|
370
|
-
t.push(
|
|
371
|
-
type: "
|
|
372
|
-
|
|
373
|
-
geometry: { type: "Polygon", coordinates: i }
|
|
374
|
-
});
|
|
377
|
+
for (const [l, c] of s.coordinates.entries())
|
|
378
|
+
t.push(
|
|
379
|
+
n({ type: "Polygon", coordinates: c }, l)
|
|
380
|
+
);
|
|
375
381
|
break;
|
|
376
382
|
case "MultiLineString":
|
|
377
|
-
for (const
|
|
378
|
-
t.push(
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
+
for (const [l, c] of s.coordinates.entries())
|
|
384
|
+
t.push(
|
|
385
|
+
n(
|
|
386
|
+
{ type: "LineString", coordinates: c },
|
|
387
|
+
l
|
|
388
|
+
)
|
|
389
|
+
);
|
|
383
390
|
break;
|
|
384
391
|
case "MultiPoint":
|
|
385
|
-
for (const
|
|
386
|
-
t.push(
|
|
387
|
-
type: "
|
|
388
|
-
|
|
389
|
-
geometry: { type: "Point", coordinates: i }
|
|
390
|
-
});
|
|
392
|
+
for (const [l, c] of s.coordinates.entries())
|
|
393
|
+
t.push(
|
|
394
|
+
n({ type: "Point", coordinates: c }, l)
|
|
395
|
+
);
|
|
391
396
|
break;
|
|
392
397
|
case "GeometryCollection":
|
|
393
|
-
for (const
|
|
394
|
-
t.push(
|
|
395
|
-
type: "Feature",
|
|
396
|
-
properties: { ...r },
|
|
397
|
-
geometry: i
|
|
398
|
-
});
|
|
398
|
+
for (const [l, c] of s.geometries.entries())
|
|
399
|
+
t.push(n(c, l));
|
|
399
400
|
break;
|
|
400
401
|
default:
|
|
401
|
-
t.push(
|
|
402
|
+
t.push(r);
|
|
402
403
|
break;
|
|
403
404
|
}
|
|
404
405
|
}
|
|
405
406
|
return { type: "FeatureCollection", features: t };
|
|
406
407
|
}
|
|
407
|
-
function
|
|
408
|
-
return (
|
|
408
|
+
function ke(i) {
|
|
409
|
+
return (i == null ? void 0 : i.type) === "Polygon";
|
|
409
410
|
}
|
|
410
|
-
function
|
|
411
|
-
return (
|
|
411
|
+
function Ee(i) {
|
|
412
|
+
return (i == null ? void 0 : i.type) === "MultiPolygon";
|
|
412
413
|
}
|
|
413
|
-
function
|
|
414
|
-
const t =
|
|
415
|
-
return t ?
|
|
414
|
+
function ct(i) {
|
|
415
|
+
const t = i.geometry;
|
|
416
|
+
return t ? ke(t) ? [t.coordinates] : Ee(t) ? t.coordinates : [] : [];
|
|
416
417
|
}
|
|
417
|
-
function
|
|
418
|
-
var
|
|
418
|
+
function dt(i, t) {
|
|
419
|
+
var o, a;
|
|
419
420
|
const e = [];
|
|
420
|
-
for (const
|
|
421
|
-
const
|
|
422
|
-
|
|
421
|
+
for (const n of i) {
|
|
422
|
+
const s = ct(n);
|
|
423
|
+
s.length > 0 && e.push(...s);
|
|
423
424
|
}
|
|
424
425
|
if (e.length === 0) return null;
|
|
425
|
-
const
|
|
426
|
+
const r = (a = t != null ? t : (o = i[0]) == null ? void 0 : o.properties) != null ? a : {};
|
|
426
427
|
return e.length === 1 ? {
|
|
427
428
|
type: "Feature",
|
|
428
|
-
properties: { ...
|
|
429
|
+
properties: { ...r },
|
|
429
430
|
geometry: {
|
|
430
431
|
type: "Polygon",
|
|
431
432
|
coordinates: e[0]
|
|
432
433
|
}
|
|
433
434
|
} : {
|
|
434
435
|
type: "Feature",
|
|
435
|
-
properties: { ...
|
|
436
|
+
properties: { ...r },
|
|
436
437
|
geometry: {
|
|
437
438
|
type: "MultiPolygon",
|
|
438
439
|
coordinates: e
|
|
439
440
|
}
|
|
440
441
|
};
|
|
441
442
|
}
|
|
442
|
-
class
|
|
443
|
-
constructor(t =
|
|
444
|
-
|
|
445
|
-
|
|
443
|
+
class ut {
|
|
444
|
+
constructor(t = G("feature-store", "debug")) {
|
|
445
|
+
u(this, "log");
|
|
446
|
+
u(this, "features");
|
|
446
447
|
this.log = t, this.features = /* @__PURE__ */ new Map();
|
|
447
448
|
}
|
|
448
449
|
size() {
|
|
@@ -458,17 +459,17 @@ class Ze {
|
|
|
458
459
|
* Add features to the store; returns the assigned/normalized ids in order.
|
|
459
460
|
*/
|
|
460
461
|
add(t) {
|
|
461
|
-
var a,
|
|
462
|
-
const e = [],
|
|
462
|
+
var a, n, s, l;
|
|
463
|
+
const e = [], r = (n = (a = performance.now) == null ? void 0 : a.call(performance)) != null ? n : Date.now();
|
|
463
464
|
for (const c of t.features) {
|
|
464
|
-
const d = this.ensureId(c),
|
|
465
|
-
this.features.set(d,
|
|
465
|
+
const d = this.ensureId(c), h = { ...c, id: d };
|
|
466
|
+
this.features.set(d, h), e.push(d);
|
|
466
467
|
}
|
|
467
|
-
const
|
|
468
|
+
const o = ((l = (s = performance.now) == null ? void 0 : s.call(performance)) != null ? l : Date.now()) - r;
|
|
468
469
|
return this.log.debug("add", {
|
|
469
470
|
count: t.features.length,
|
|
470
471
|
ids: e,
|
|
471
|
-
elapsedMs: Math.round(
|
|
472
|
+
elapsedMs: Math.round(o)
|
|
472
473
|
}), e;
|
|
473
474
|
}
|
|
474
475
|
/**
|
|
@@ -480,8 +481,8 @@ class Ze {
|
|
|
480
481
|
this.log.warn("update:missing", { id: t });
|
|
481
482
|
return;
|
|
482
483
|
}
|
|
483
|
-
const
|
|
484
|
-
this.features.set(t,
|
|
484
|
+
const r = { ...e, id: t };
|
|
485
|
+
this.features.set(t, r), this.log.debug("update", { id: t });
|
|
485
486
|
}
|
|
486
487
|
/**
|
|
487
488
|
* Remove a feature by id. No-op if missing.
|
|
@@ -511,53 +512,438 @@ class Ze {
|
|
|
511
512
|
bounds() {
|
|
512
513
|
const t = this.toFeatureCollection();
|
|
513
514
|
if (t.features.length === 0) return null;
|
|
514
|
-
const e =
|
|
515
|
-
return e ?
|
|
515
|
+
const e = st(t);
|
|
516
|
+
return e ? lt(e) : null;
|
|
516
517
|
}
|
|
517
518
|
/**
|
|
518
519
|
* Ensure the feature has an id; returns the resolved id.
|
|
519
520
|
*/
|
|
520
521
|
ensureId(t) {
|
|
521
|
-
const e =
|
|
522
|
+
const e = se(t);
|
|
522
523
|
if (e) return String(e);
|
|
523
|
-
const
|
|
524
|
-
return t.id =
|
|
524
|
+
const r = ne();
|
|
525
|
+
return t.id = r, t.properties && typeof t.properties == "object" && (t.properties.id = r), r;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
const V = {
|
|
529
|
+
polygon: {
|
|
530
|
+
selectors: ["a.leaflet-draw-draw-polygon"],
|
|
531
|
+
dataTool: "polygon"
|
|
532
|
+
},
|
|
533
|
+
polyline: {
|
|
534
|
+
selectors: ["a.leaflet-draw-draw-polyline"],
|
|
535
|
+
dataTool: "polyline"
|
|
536
|
+
},
|
|
537
|
+
rectangle: {
|
|
538
|
+
selectors: ["a.leaflet-draw-draw-rectangle"],
|
|
539
|
+
dataTool: "rectangle"
|
|
540
|
+
},
|
|
541
|
+
circle: {
|
|
542
|
+
selectors: ["a.leaflet-draw-draw-circle"],
|
|
543
|
+
dataTool: "circle"
|
|
544
|
+
},
|
|
545
|
+
marker: {
|
|
546
|
+
selectors: ["a.leaflet-draw-draw-marker"],
|
|
547
|
+
dataTool: "marker"
|
|
548
|
+
},
|
|
549
|
+
layerCake: {
|
|
550
|
+
selectors: ["a.leaflet-draw-draw-cake"],
|
|
551
|
+
dataTool: "layer-cake"
|
|
552
|
+
},
|
|
553
|
+
move: {
|
|
554
|
+
selectors: ["a.leaflet-draw-draw-move"],
|
|
555
|
+
dataTool: "move"
|
|
556
|
+
},
|
|
557
|
+
select: {
|
|
558
|
+
selectors: [],
|
|
559
|
+
dataTool: "select"
|
|
560
|
+
},
|
|
561
|
+
edit: {
|
|
562
|
+
selectors: ["a.leaflet-draw-edit-edit"],
|
|
563
|
+
dataTool: "edit"
|
|
564
|
+
},
|
|
565
|
+
delete: {
|
|
566
|
+
selectors: ["a.leaflet-draw-edit-remove"],
|
|
567
|
+
dataTool: "delete"
|
|
568
|
+
},
|
|
569
|
+
ruler: {
|
|
570
|
+
selectors: [".leaflet-ruler", "a.leaflet-ruler"],
|
|
571
|
+
dataTool: "ruler"
|
|
572
|
+
},
|
|
573
|
+
measurementSettings: {
|
|
574
|
+
selectors: [".leaflet-ruler-settings-button"],
|
|
575
|
+
dataTool: "measurement-settings"
|
|
576
|
+
},
|
|
577
|
+
layerStyle: {
|
|
578
|
+
selectors: [],
|
|
579
|
+
dataTool: "layer-style"
|
|
580
|
+
}
|
|
581
|
+
}, ht = Object.keys(V), Le = "leaflet-geokit-tool-button-icon", Me = ".leaflet-geokit-cake-icon, .leaflet-geokit-move-icon", pt = "[data-geokit-managed-toolbar='true']", ft = "[data-geokit-tool-popover='true']", gt = "[data-geokit-tool][aria-expanded='true']", X = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap();
|
|
582
|
+
function j(i, t, e = {}) {
|
|
583
|
+
R(i);
|
|
584
|
+
for (const r of ht) {
|
|
585
|
+
const o = V[r];
|
|
586
|
+
for (const a of mt(i, o.selectors)) {
|
|
587
|
+
a.setAttribute("data-geokit-tool", o.dataTool), yt(a);
|
|
588
|
+
const n = t == null ? void 0 : t[r];
|
|
589
|
+
n && bt(a, n, r), Ce(a, r, {
|
|
590
|
+
source: "leaflet-toolbar",
|
|
591
|
+
activate: !1,
|
|
592
|
+
onTrigger: e.onTrigger
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
kt(i, t, e);
|
|
597
|
+
}
|
|
598
|
+
function mt(i, t) {
|
|
599
|
+
const e = /* @__PURE__ */ new Set();
|
|
600
|
+
for (const r of t)
|
|
601
|
+
i.querySelectorAll(r).forEach((o) => {
|
|
602
|
+
e.add(o);
|
|
603
|
+
});
|
|
604
|
+
return [...e];
|
|
605
|
+
}
|
|
606
|
+
function yt(i) {
|
|
607
|
+
const t = X.get(i);
|
|
608
|
+
t && (i.removeEventListener("click", t), X.delete(i)), delete i.__geokitToolButtonConfig;
|
|
609
|
+
const e = J(i.dataset.geokitToolButtonClass);
|
|
610
|
+
e.length > 0 && i.classList.remove(...e), delete i.dataset.geokitToolButtonClass, i.removeAttribute("data-geokit-custom-tool-button"), i.dataset.geokitOriginalTitle !== void 0 && fe(i, "title", i.dataset.geokitOriginalTitle), i.dataset.geokitOriginalAriaLabel !== void 0 && fe(
|
|
611
|
+
i,
|
|
612
|
+
"aria-label",
|
|
613
|
+
i.dataset.geokitOriginalAriaLabel
|
|
614
|
+
), i.dataset.geokitOriginalStyleBackgroundImage !== void 0 && ge(
|
|
615
|
+
i,
|
|
616
|
+
"background-image",
|
|
617
|
+
i.dataset.geokitOriginalStyleBackgroundImage,
|
|
618
|
+
i.dataset.geokitOriginalStyleBackgroundImagePriority
|
|
619
|
+
), i.dataset.geokitOriginalStylePosition !== void 0 && ge(
|
|
620
|
+
i,
|
|
621
|
+
"position",
|
|
622
|
+
i.dataset.geokitOriginalStylePosition,
|
|
623
|
+
i.dataset.geokitOriginalStylePositionPriority
|
|
624
|
+
), Array.from(i.children).forEach((r) => {
|
|
625
|
+
r instanceof HTMLElement && r.dataset.geokitToolButtonIcon === "true" && r.remove();
|
|
626
|
+
}), i.querySelectorAll(Me).forEach((r) => {
|
|
627
|
+
r.hidden = !1;
|
|
628
|
+
}), i.removeAttribute("aria-expanded");
|
|
629
|
+
}
|
|
630
|
+
function fe(i, t, e) {
|
|
631
|
+
e ? i.setAttribute(t, e) : i.removeAttribute(t);
|
|
632
|
+
}
|
|
633
|
+
function ge(i, t, e, r) {
|
|
634
|
+
e ? i.style.setProperty(t, e, r) : i.style.removeProperty(t);
|
|
635
|
+
}
|
|
636
|
+
function bt(i, t, e) {
|
|
637
|
+
var a;
|
|
638
|
+
At(i), i.__geokitToolButtonConfig = t, i.setAttribute("data-geokit-custom-tool-button", "true"), t.title && i.setAttribute("title", t.title);
|
|
639
|
+
const r = (a = t.ariaLabel) != null ? a : t.title;
|
|
640
|
+
r && i.setAttribute("aria-label", r);
|
|
641
|
+
const o = J(t.className);
|
|
642
|
+
o.length > 0 && (i.classList.add(...o), i.dataset.geokitToolButtonClass = o.join(" ")), t.iconUrl ? ee(i, t, { tool: e }) : (t.iconHtml || t.renderIcon) && ee(i, t, { tool: e });
|
|
643
|
+
}
|
|
644
|
+
function At(i) {
|
|
645
|
+
var t, e;
|
|
646
|
+
i.dataset.geokitOriginalTitle === void 0 && (i.dataset.geokitOriginalTitle = (t = i.getAttribute("title")) != null ? t : ""), i.dataset.geokitOriginalAriaLabel === void 0 && (i.dataset.geokitOriginalAriaLabel = (e = i.getAttribute("aria-label")) != null ? e : ""), i.dataset.geokitOriginalStyleBackgroundImage === void 0 && (i.dataset.geokitOriginalStyleBackgroundImage = i.style.getPropertyValue("background-image"), i.dataset.geokitOriginalStyleBackgroundImagePriority = i.style.getPropertyPriority("background-image")), i.dataset.geokitOriginalStylePosition === void 0 && (i.dataset.geokitOriginalStylePosition = i.style.getPropertyValue("position"), i.dataset.geokitOriginalStylePositionPriority = i.style.getPropertyPriority("position"));
|
|
647
|
+
}
|
|
648
|
+
function J(i) {
|
|
649
|
+
return i ? i.split(/\s+/).map((t) => t.trim()).filter(Boolean) : [];
|
|
650
|
+
}
|
|
651
|
+
function ee(i, t, e = {}) {
|
|
652
|
+
var l, c;
|
|
653
|
+
const [r, o] = wt(t.iconSize);
|
|
654
|
+
i.style.setProperty("background-image", "none", "important"), i.style.setProperty("position", "relative", "important"), i.querySelectorAll(Me).forEach((d) => {
|
|
655
|
+
d.hidden = !0;
|
|
656
|
+
});
|
|
657
|
+
const a = document.createElement("span");
|
|
658
|
+
a.className = Le, a.dataset.geokitToolButtonIcon = "true", a.setAttribute("aria-hidden", "true"), a.style.setProperty("position", "absolute", "important"), a.style.setProperty("display", "block", "important"), a.style.setProperty("left", "50%", "important"), a.style.setProperty("top", "50%", "important"), a.style.setProperty("width", `${r}px`, "important"), a.style.setProperty("height", `${o}px`, "important"), a.style.setProperty("transform", "translate(-50%, -50%)", "important"), a.style.setProperty("pointer-events", "none", "important");
|
|
659
|
+
const n = (c = t.renderIcon) == null ? void 0 : c.call(t, {
|
|
660
|
+
tool: (l = e.tool) != null ? l : "polygon",
|
|
661
|
+
groupId: e.groupId,
|
|
662
|
+
button: i
|
|
663
|
+
});
|
|
664
|
+
if (n instanceof HTMLElement || typeof SVGElement != "undefined" && n instanceof SVGElement)
|
|
665
|
+
a.appendChild(n);
|
|
666
|
+
else if (typeof n == "string" && n.trim())
|
|
667
|
+
a.innerHTML = n;
|
|
668
|
+
else if (t.iconHtml)
|
|
669
|
+
a.innerHTML = t.iconHtml;
|
|
670
|
+
else if (t.iconUrl) {
|
|
671
|
+
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"), a.appendChild(d);
|
|
673
|
+
}
|
|
674
|
+
i.appendChild(a);
|
|
675
|
+
}
|
|
676
|
+
function wt(i) {
|
|
677
|
+
const t = i == null ? void 0 : i[0], e = i == null ? void 0 : i[1];
|
|
678
|
+
return typeof t == "number" && Number.isFinite(t) && t > 0 && typeof e == "number" && Number.isFinite(e) && e > 0 ? [t, e] : [18, 18];
|
|
679
|
+
}
|
|
680
|
+
function Ce(i, t, e) {
|
|
681
|
+
const r = (o) => {
|
|
682
|
+
var s;
|
|
683
|
+
const a = vt(i), n = xt(i);
|
|
684
|
+
a != null && a.popover ? Mt(i, t, a, {
|
|
685
|
+
container: n,
|
|
686
|
+
groupId: e.groupId
|
|
687
|
+
}) : R(n), (s = e.onTrigger) == null || s.call(e, t, {
|
|
688
|
+
source: e.source,
|
|
689
|
+
groupId: e.groupId,
|
|
690
|
+
activate: e.activate
|
|
691
|
+
}), e.activate && (o.preventDefault(), o.stopPropagation());
|
|
692
|
+
};
|
|
693
|
+
i.addEventListener("click", r), X.set(i, r);
|
|
694
|
+
}
|
|
695
|
+
function vt(i) {
|
|
696
|
+
const t = i.__geokitToolButtonConfig;
|
|
697
|
+
if (t) return t;
|
|
698
|
+
const e = i.dataset.geokitToolButtonConfig;
|
|
699
|
+
if (!e) return null;
|
|
700
|
+
try {
|
|
701
|
+
return JSON.parse(e);
|
|
702
|
+
} catch {
|
|
703
|
+
return null;
|
|
525
704
|
}
|
|
526
705
|
}
|
|
527
|
-
|
|
528
|
-
|
|
706
|
+
function xt(i) {
|
|
707
|
+
var e;
|
|
708
|
+
const t = i.closest("[data-geokit-map-container]");
|
|
709
|
+
return (e = t != null ? t : i.parentElement) != null ? e : i;
|
|
710
|
+
}
|
|
711
|
+
function kt(i, t, e) {
|
|
529
712
|
var o;
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
713
|
+
i.setAttribute("data-geokit-map-container", "true"), i.querySelectorAll(pt).forEach((a) => a.remove()), ((o = e.toolbarGroups) != null ? o : []).forEach((a) => {
|
|
714
|
+
var l;
|
|
715
|
+
if (!(a != null && a.id) || !Array.isArray(a.tools) || a.tools.length === 0)
|
|
716
|
+
return;
|
|
717
|
+
const n = document.createElement("div");
|
|
718
|
+
n.dataset.geokitManagedToolbar = "true", n.dataset.geokitToolbarGroup = a.id, n.className = "leaflet-geokit-toolbar-group leaflet-bar", n.setAttribute("role", "toolbar"), n.setAttribute("aria-label", (l = a.ariaLabel) != null ? l : a.id), Lt(n, a.position, a.offset);
|
|
719
|
+
const s = J(a.className);
|
|
720
|
+
s.length > 0 && n.classList.add(...s), a.tools.forEach((c, d) => {
|
|
721
|
+
const h = Et(c, a, d, t == null ? void 0 : t[c]);
|
|
722
|
+
Ce(h, c, {
|
|
723
|
+
source: "toolbar",
|
|
724
|
+
activate: !0,
|
|
725
|
+
groupId: a.id,
|
|
726
|
+
onTrigger: e.onTrigger
|
|
727
|
+
}), n.appendChild(h);
|
|
728
|
+
}), i.appendChild(n);
|
|
729
|
+
});
|
|
730
|
+
}
|
|
731
|
+
function Et(i, t, e, r) {
|
|
732
|
+
var s, l, c, d, h;
|
|
733
|
+
const o = document.createElement("button");
|
|
734
|
+
o.type = "button", o.dataset.geokitTool = (l = (s = V[i]) == null ? void 0 : s.dataTool) != null ? l : i, o.dataset.geokitToolbarGroup = t.id, o.dataset.geokitToolbarPosition = (c = t.position) != null ? c : "topright", o.dataset.geokitToolInstance = _t(
|
|
735
|
+
t.id,
|
|
736
|
+
i,
|
|
737
|
+
e
|
|
738
|
+
), 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 a = (d = r == null ? void 0 : r.title) != null ? d : Ie(i);
|
|
740
|
+
o.title = a, o.setAttribute("aria-label", (h = r == null ? void 0 : r.ariaLabel) != null ? h : a);
|
|
741
|
+
const n = J(r == null ? void 0 : r.className);
|
|
742
|
+
if (n.length > 0 && o.classList.add(...n), r && (o.__geokitToolButtonConfig = r, ee(o, r, { tool: i, groupId: t.id })), !o.querySelector(`.${Le}`)) {
|
|
743
|
+
const p = document.createElement("span");
|
|
744
|
+
p.textContent = Bt(i), p.setAttribute("aria-hidden", "true"), p.style.setProperty("display", "grid", "important"), p.style.setProperty("place-items", "center", "important"), p.style.setProperty("height", "100%", "important"), p.style.setProperty("font", "600 14px system-ui", "important"), o.appendChild(p);
|
|
745
|
+
}
|
|
746
|
+
return o;
|
|
747
|
+
}
|
|
748
|
+
function Lt(i, t = "topright", e) {
|
|
749
|
+
const [r, o] = St(e);
|
|
750
|
+
i.style.setProperty("position", "absolute", "important"), i.style.setProperty("z-index", "1000", "important"), i.style.setProperty("background", "#fff", "important"), i.style.setProperty(
|
|
751
|
+
"box-shadow",
|
|
752
|
+
"0 1px 5px rgba(0,0,0,0.35)",
|
|
753
|
+
"important"
|
|
754
|
+
);
|
|
755
|
+
const [a, n] = t.startsWith("bottom") ? ["bottom", t.endsWith("right") ? "right" : "left"] : ["top", t.endsWith("right") ? "right" : "left"];
|
|
756
|
+
i.style.setProperty(a, `${o}px`, "important"), i.style.setProperty(n, `${r}px`, "important");
|
|
757
|
+
}
|
|
758
|
+
function Mt(i, t, e, r) {
|
|
759
|
+
var s, l, c, d, h, p, g, m;
|
|
760
|
+
if (!e.popover) return;
|
|
761
|
+
R(r.container);
|
|
762
|
+
const o = document.createElement("div");
|
|
763
|
+
if (o.dataset.geokitToolPopover = "true", o.dataset.geokitTool = (l = (s = V[t]) == null ? void 0 : s.dataTool) != null ? l : t, i.dataset.geokitToolInstance && (o.dataset.geokitToolInstance = i.dataset.geokitToolInstance), r.groupId && (o.dataset.geokitToolbarGroup = r.groupId), o.setAttribute("role", "dialog"), o.setAttribute(
|
|
764
|
+
"aria-label",
|
|
765
|
+
(d = (c = e.popover.ariaLabel) != null ? c : e.popover.title) != null ? d : Ie(t)
|
|
766
|
+
), 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
|
+
"border",
|
|
768
|
+
"1px solid rgba(0,0,0,0.22)",
|
|
769
|
+
"important"
|
|
770
|
+
), o.style.setProperty("border-radius", "8px", "important"), o.style.setProperty("background", "#fff", "important"), o.style.setProperty(
|
|
771
|
+
"box-shadow",
|
|
772
|
+
"0 8px 24px rgba(0,0,0,0.24)",
|
|
773
|
+
"important"
|
|
774
|
+
), o.style.setProperty("font", "13px system-ui, sans-serif", "important"), o.style.setProperty("line-height", "1.35", "important"), e.popover.title) {
|
|
775
|
+
const f = document.createElement("strong");
|
|
776
|
+
f.textContent = e.popover.title, f.style.setProperty("display", "block", "important"), f.style.setProperty("margin-bottom", "4px", "important"), o.appendChild(f);
|
|
777
|
+
}
|
|
778
|
+
if (e.popover.body) {
|
|
779
|
+
const f = document.createElement("div");
|
|
780
|
+
f.textContent = e.popover.body, o.appendChild(f);
|
|
781
|
+
}
|
|
782
|
+
if (e.popover.html) {
|
|
783
|
+
const f = document.createElement("div");
|
|
784
|
+
f.innerHTML = e.popover.html, o.appendChild(f);
|
|
785
|
+
}
|
|
786
|
+
const a = (p = (h = e.popover).render) == null ? void 0 : p.call(h, {
|
|
787
|
+
tool: t,
|
|
788
|
+
groupId: r.groupId,
|
|
789
|
+
button: i,
|
|
790
|
+
popover: o
|
|
791
|
+
}), n = typeof DocumentFragment != "undefined" && a instanceof DocumentFragment;
|
|
792
|
+
if (a instanceof HTMLElement || n)
|
|
793
|
+
o.appendChild(a);
|
|
794
|
+
else if (typeof a == "string" && a.trim()) {
|
|
795
|
+
const f = document.createElement("div");
|
|
796
|
+
f.innerHTML = a, o.appendChild(f);
|
|
797
|
+
}
|
|
798
|
+
r.container.appendChild(o), Ct(r.container, i, o), i.setAttribute("aria-expanded", "true"), $.set(o, {
|
|
799
|
+
tool: t,
|
|
800
|
+
groupId: r.groupId,
|
|
801
|
+
button: i,
|
|
802
|
+
config: e
|
|
803
|
+
}), It(r.container, i, o), (m = (g = e.popover).onOpen) == null || m.call(g, {
|
|
804
|
+
tool: t,
|
|
805
|
+
groupId: r.groupId,
|
|
806
|
+
button: i,
|
|
807
|
+
popover: o
|
|
808
|
+
});
|
|
809
|
+
}
|
|
810
|
+
function Ct(i, t, e) {
|
|
811
|
+
const r = i.getBoundingClientRect(), o = t.getBoundingClientRect(), a = Math.max(
|
|
812
|
+
8,
|
|
813
|
+
Math.min(
|
|
814
|
+
o.left - r.left,
|
|
815
|
+
r.width - e.offsetWidth - 8
|
|
816
|
+
)
|
|
817
|
+
), n = Math.max(
|
|
818
|
+
8,
|
|
819
|
+
Math.min(
|
|
820
|
+
o.bottom - r.top + 8,
|
|
821
|
+
r.height - e.offsetHeight - 8
|
|
822
|
+
)
|
|
823
|
+
);
|
|
824
|
+
e.style.setProperty("left", `${a}px`, "important"), e.style.setProperty("top", `${n}px`, "important");
|
|
825
|
+
}
|
|
826
|
+
function It(i, t, e) {
|
|
827
|
+
const r = (n) => {
|
|
828
|
+
n.key === "Escape" && R(i);
|
|
829
|
+
}, o = (n) => {
|
|
830
|
+
const s = n.target;
|
|
831
|
+
s instanceof Node && (e.contains(s) || t.contains(s) || R(i));
|
|
832
|
+
};
|
|
833
|
+
document.addEventListener("keydown", r, !0);
|
|
834
|
+
const a = window.setTimeout(() => {
|
|
835
|
+
e.isConnected && document.addEventListener("pointerdown", o, !0);
|
|
836
|
+
}, 0);
|
|
837
|
+
W.set(e, {
|
|
838
|
+
keydown: r,
|
|
839
|
+
pointerdown: o,
|
|
840
|
+
pointerdownTimer: a
|
|
841
|
+
});
|
|
842
|
+
}
|
|
843
|
+
function R(i) {
|
|
844
|
+
i.querySelectorAll(ft).forEach((t) => {
|
|
845
|
+
var o, a, n;
|
|
846
|
+
const e = $.get(t);
|
|
847
|
+
e == null || e.button.removeAttribute("aria-expanded"), e || (o = Tt(i, t)) == null || o.removeAttribute(
|
|
848
|
+
"aria-expanded"
|
|
849
|
+
);
|
|
850
|
+
const r = W.get(t);
|
|
851
|
+
r && (window.clearTimeout(r.pointerdownTimer), document.removeEventListener("keydown", r.keydown, !0), document.removeEventListener(
|
|
852
|
+
"pointerdown",
|
|
853
|
+
r.pointerdown,
|
|
854
|
+
!0
|
|
855
|
+
), W.delete(t)), t.remove(), e && ((n = (a = e.config.popover) == null ? void 0 : a.onClose) == null || n.call(a, {
|
|
856
|
+
tool: e.tool,
|
|
857
|
+
groupId: e.groupId,
|
|
858
|
+
button: e.button,
|
|
859
|
+
popover: t
|
|
860
|
+
}), $.delete(t));
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
function Tt(i, t) {
|
|
864
|
+
const e = i.querySelectorAll(
|
|
865
|
+
gt
|
|
866
|
+
);
|
|
867
|
+
for (const r of e)
|
|
868
|
+
if (t.dataset.geokitToolInstance && r.dataset.geokitToolInstance === t.dataset.geokitToolInstance || r.dataset.geokitTool === t.dataset.geokitTool && r.dataset.geokitToolbarGroup === t.dataset.geokitToolbarGroup)
|
|
869
|
+
return r;
|
|
870
|
+
return null;
|
|
871
|
+
}
|
|
872
|
+
function _t(i, t, e) {
|
|
873
|
+
return `${i}:${t}:${e}`;
|
|
874
|
+
}
|
|
875
|
+
function Ie(i) {
|
|
876
|
+
return {
|
|
877
|
+
polygon: "Draw polygon",
|
|
878
|
+
polyline: "Draw line",
|
|
879
|
+
rectangle: "Draw rectangle",
|
|
880
|
+
circle: "Draw circle",
|
|
881
|
+
marker: "Place marker",
|
|
882
|
+
layerCake: "Draw layer cake",
|
|
883
|
+
move: "Move feature",
|
|
884
|
+
select: "Select feature",
|
|
885
|
+
edit: "Edit features",
|
|
886
|
+
delete: "Delete features",
|
|
887
|
+
ruler: "Measure distance",
|
|
888
|
+
measurementSettings: "Measurement settings",
|
|
889
|
+
layerStyle: "Layer style"
|
|
890
|
+
}[i];
|
|
891
|
+
}
|
|
892
|
+
function Bt(i) {
|
|
893
|
+
return {
|
|
894
|
+
polygon: "P",
|
|
895
|
+
polyline: "L",
|
|
896
|
+
rectangle: "R",
|
|
897
|
+
circle: "C",
|
|
898
|
+
marker: "M",
|
|
899
|
+
layerCake: "Z",
|
|
900
|
+
move: "Mv",
|
|
901
|
+
select: "S",
|
|
902
|
+
edit: "E",
|
|
903
|
+
delete: "D",
|
|
904
|
+
ruler: "m",
|
|
905
|
+
measurementSettings: "Ms",
|
|
906
|
+
layerStyle: "A"
|
|
907
|
+
}[i];
|
|
908
|
+
}
|
|
909
|
+
function St(i) {
|
|
910
|
+
const t = i == null ? void 0 : i[0], e = i == null ? void 0 : i[1];
|
|
911
|
+
return typeof t == "number" && Number.isFinite(t) && t >= 0 && typeof e == "number" && Number.isFinite(e) && e >= 0 ? [t, e] : [10, 10];
|
|
912
|
+
}
|
|
913
|
+
const me = /* @__PURE__ */ new WeakSet();
|
|
914
|
+
function Ot(i = x) {
|
|
915
|
+
var r;
|
|
916
|
+
if (me.has(i)) return;
|
|
917
|
+
const t = i.DrawToolbar;
|
|
918
|
+
if (!((r = t == null ? void 0 : t.prototype) != null && r.getModeHandlers)) return;
|
|
533
919
|
const e = t.prototype.getModeHandlers;
|
|
534
|
-
t.prototype.getModeHandlers = function(
|
|
535
|
-
var
|
|
536
|
-
const a = e.call(this,
|
|
537
|
-
if ((
|
|
538
|
-
const d = (
|
|
920
|
+
t.prototype.getModeHandlers = function(o) {
|
|
921
|
+
var n, s, l, c;
|
|
922
|
+
const a = e.call(this, o);
|
|
923
|
+
if ((n = this.options) != null && n.cake) {
|
|
924
|
+
const d = (s = i.Draw) == null ? void 0 : s.Cake;
|
|
539
925
|
if (!d) return a;
|
|
540
926
|
a.push({
|
|
541
927
|
enabled: !0,
|
|
542
|
-
handler: new d(
|
|
928
|
+
handler: new d(o, this.options.cake),
|
|
543
929
|
title: "Draw Layer Cake (Subtractive Zones)"
|
|
544
930
|
});
|
|
545
931
|
}
|
|
546
932
|
if ((l = this.options) != null && l.move) {
|
|
547
|
-
const d = (c =
|
|
933
|
+
const d = (c = i.Draw) == null ? void 0 : c.Move;
|
|
548
934
|
if (!d) return a;
|
|
549
935
|
a.push({
|
|
550
936
|
enabled: !0,
|
|
551
|
-
handler: new d(
|
|
937
|
+
handler: new d(o, this.options.move),
|
|
552
938
|
title: "Move/Translate Features"
|
|
553
939
|
});
|
|
554
940
|
}
|
|
555
941
|
return a;
|
|
556
|
-
},
|
|
942
|
+
}, me.add(i);
|
|
557
943
|
}
|
|
558
|
-
const
|
|
944
|
+
const H = class H extends x.Draw.Circle {
|
|
559
945
|
constructor(t, e) {
|
|
560
|
-
super(t, e), this.type =
|
|
946
|
+
super(t, e), this.type = H.TYPE;
|
|
561
947
|
}
|
|
562
948
|
addHooks() {
|
|
563
949
|
super.addHooks();
|
|
@@ -568,15 +954,15 @@ const T = class T extends v.Draw.Circle {
|
|
|
568
954
|
});
|
|
569
955
|
}
|
|
570
956
|
};
|
|
571
|
-
|
|
572
|
-
let D =
|
|
573
|
-
|
|
574
|
-
function
|
|
575
|
-
const t =
|
|
957
|
+
u(H, "TYPE", "cake");
|
|
958
|
+
let D = H;
|
|
959
|
+
x.Draw.Cake = D;
|
|
960
|
+
function Pt(i) {
|
|
961
|
+
const t = i.Draw;
|
|
576
962
|
if (!t || t.Cake) return;
|
|
577
|
-
const
|
|
578
|
-
constructor(a,
|
|
579
|
-
super(a,
|
|
963
|
+
const r = class r extends t.Circle {
|
|
964
|
+
constructor(a, n) {
|
|
965
|
+
super(a, n), this.type = r.TYPE;
|
|
580
966
|
}
|
|
581
967
|
addHooks() {
|
|
582
968
|
super.addHooks();
|
|
@@ -587,20 +973,20 @@ function je(s) {
|
|
|
587
973
|
});
|
|
588
974
|
}
|
|
589
975
|
};
|
|
590
|
-
|
|
591
|
-
let e =
|
|
976
|
+
u(r, "TYPE", "cake");
|
|
977
|
+
let e = r;
|
|
592
978
|
t.Cake = e;
|
|
593
979
|
}
|
|
594
|
-
const
|
|
595
|
-
constructor(e,
|
|
596
|
-
super(e,
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
this.type =
|
|
980
|
+
const F = class F extends x.Draw.Feature {
|
|
981
|
+
constructor(e, r) {
|
|
982
|
+
super(e, r);
|
|
983
|
+
u(this, "_featureGroup");
|
|
984
|
+
u(this, "_selectedLayer", null);
|
|
985
|
+
u(this, "_originalLatLngs", null);
|
|
986
|
+
u(this, "_dragStartLatLng", null);
|
|
987
|
+
u(this, "_isDragging", !1);
|
|
988
|
+
u(this, "_pendingMove", null);
|
|
989
|
+
this.type = F.TYPE, this._featureGroup = (r == null ? void 0 : r.featureGroup) || new x.FeatureGroup();
|
|
604
990
|
}
|
|
605
991
|
enable() {
|
|
606
992
|
this._enabled || super.enable();
|
|
@@ -611,19 +997,19 @@ const P = class P extends v.Draw.Feature {
|
|
|
611
997
|
addHooks() {
|
|
612
998
|
const e = this._map;
|
|
613
999
|
if (!e) return;
|
|
614
|
-
|
|
615
|
-
this._enableLayerHover(
|
|
1000
|
+
x.DomUtil.addClass(e.getContainer(), "leaflet-draw-move-mode"), this._featureGroup.eachLayer((o) => {
|
|
1001
|
+
this._enableLayerHover(o);
|
|
616
1002
|
});
|
|
617
|
-
const
|
|
618
|
-
|
|
1003
|
+
const r = this._tooltip;
|
|
1004
|
+
r != null && r.updateContent && r.updateContent({
|
|
619
1005
|
text: "Click and drag a feature to move it",
|
|
620
1006
|
subtext: ""
|
|
621
1007
|
});
|
|
622
1008
|
}
|
|
623
1009
|
removeHooks() {
|
|
624
1010
|
const e = this._map;
|
|
625
|
-
e && (
|
|
626
|
-
this._disableLayerHover(
|
|
1011
|
+
e && (x.DomUtil.removeClass(e.getContainer(), "leaflet-draw-move-mode"), this._featureGroup.eachLayer((r) => {
|
|
1012
|
+
this._disableLayerHover(r);
|
|
627
1013
|
}), this._cleanupDragging());
|
|
628
1014
|
}
|
|
629
1015
|
_enableLayerHover(e) {
|
|
@@ -634,34 +1020,34 @@ const P = class P extends v.Draw.Feature {
|
|
|
634
1020
|
}
|
|
635
1021
|
_onLayerMouseOver(e) {
|
|
636
1022
|
if (this._isDragging) return;
|
|
637
|
-
const
|
|
638
|
-
if (
|
|
639
|
-
const
|
|
640
|
-
|
|
641
|
-
} else
|
|
1023
|
+
const r = e.target;
|
|
1024
|
+
if (r.getElement) {
|
|
1025
|
+
const o = r.getElement();
|
|
1026
|
+
o && (o.style.cursor = "grab");
|
|
1027
|
+
} else r._path && (r._path.style.cursor = "grab");
|
|
642
1028
|
}
|
|
643
1029
|
_onLayerMouseOut(e) {
|
|
644
1030
|
if (this._isDragging) return;
|
|
645
|
-
const
|
|
646
|
-
if (
|
|
647
|
-
const
|
|
648
|
-
|
|
649
|
-
} else
|
|
1031
|
+
const r = e.target;
|
|
1032
|
+
if (r.getElement) {
|
|
1033
|
+
const o = r.getElement();
|
|
1034
|
+
o && (o.style.cursor = "");
|
|
1035
|
+
} else r._path && (r._path.style.cursor = "");
|
|
650
1036
|
}
|
|
651
1037
|
_onLayerMouseDown(e) {
|
|
652
1038
|
if (this._isDragging) return;
|
|
653
|
-
|
|
654
|
-
const
|
|
655
|
-
if (this._selectedLayer =
|
|
656
|
-
const a =
|
|
1039
|
+
x.DomEvent.stopPropagation(e.originalEvent), x.DomEvent.preventDefault(e.originalEvent);
|
|
1040
|
+
const r = e.target;
|
|
1041
|
+
if (this._selectedLayer = r, this._isDragging = !0, this._dragStartLatLng = e.latlng, this._storeOriginalLatLngs(r), r.getElement) {
|
|
1042
|
+
const a = r.getElement();
|
|
657
1043
|
a && (a.style.cursor = "grabbing");
|
|
658
|
-
} else
|
|
1044
|
+
} else r._path && (r._path.style.cursor = "grabbing");
|
|
659
1045
|
this._map.on("mousemove", this._onMouseMove, this), this._map.on("mouseup", this._onMouseUp, this);
|
|
660
|
-
const
|
|
1046
|
+
const o = r.toGeoJSON();
|
|
661
1047
|
this._pendingMove = {
|
|
662
|
-
layer:
|
|
663
|
-
originalGeoJSON:
|
|
664
|
-
newGeoJSON:
|
|
1048
|
+
layer: r,
|
|
1049
|
+
originalGeoJSON: o,
|
|
1050
|
+
newGeoJSON: o
|
|
665
1051
|
// Will be updated on mouseup
|
|
666
1052
|
};
|
|
667
1053
|
}
|
|
@@ -673,36 +1059,36 @@ const P = class P extends v.Draw.Feature {
|
|
|
673
1059
|
_onMouseMove(e) {
|
|
674
1060
|
if (!this._isDragging || !this._selectedLayer || !this._dragStartLatLng)
|
|
675
1061
|
return;
|
|
676
|
-
const
|
|
1062
|
+
const r = this._selectedLayer, o = {
|
|
677
1063
|
lat: e.latlng.lat - this._dragStartLatLng.lat,
|
|
678
1064
|
lng: e.latlng.lng - this._dragStartLatLng.lng
|
|
679
1065
|
};
|
|
680
|
-
if (
|
|
681
|
-
const a =
|
|
682
|
-
this._originalLatLngs.lat +
|
|
683
|
-
this._originalLatLngs.lng +
|
|
1066
|
+
if (r.setLatLng) {
|
|
1067
|
+
const a = x.latLng(
|
|
1068
|
+
this._originalLatLngs.lat + o.lat,
|
|
1069
|
+
this._originalLatLngs.lng + o.lng
|
|
684
1070
|
);
|
|
685
|
-
|
|
686
|
-
} else if (
|
|
687
|
-
const a = this._offsetLatLngs(this._originalLatLngs,
|
|
688
|
-
|
|
1071
|
+
r.setLatLng(a);
|
|
1072
|
+
} else if (r.setLatLngs) {
|
|
1073
|
+
const a = this._offsetLatLngs(this._originalLatLngs, o);
|
|
1074
|
+
r.setLatLngs(a);
|
|
689
1075
|
}
|
|
690
1076
|
}
|
|
691
|
-
_offsetLatLngs(e,
|
|
692
|
-
return e instanceof
|
|
1077
|
+
_offsetLatLngs(e, r) {
|
|
1078
|
+
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;
|
|
693
1079
|
}
|
|
694
1080
|
_onMouseUp(e) {
|
|
695
|
-
var
|
|
1081
|
+
var o, a;
|
|
696
1082
|
if (!this._isDragging || !this._selectedLayer) return;
|
|
697
1083
|
this._pendingMove && (this._pendingMove.newGeoJSON = this._selectedLayer.toGeoJSON());
|
|
698
|
-
const
|
|
699
|
-
if (
|
|
700
|
-
const
|
|
701
|
-
|
|
702
|
-
} else
|
|
1084
|
+
const r = this._selectedLayer;
|
|
1085
|
+
if (r.getElement) {
|
|
1086
|
+
const n = r.getElement();
|
|
1087
|
+
n && (n.style.cursor = "grab");
|
|
1088
|
+
} else r._path && (r._path.style.cursor = "grab");
|
|
703
1089
|
this._map.fire("draw:moveend", {
|
|
704
1090
|
layer: this._selectedLayer,
|
|
705
|
-
originalGeoJSON: (
|
|
1091
|
+
originalGeoJSON: (o = this._pendingMove) == null ? void 0 : o.originalGeoJSON,
|
|
706
1092
|
newGeoJSON: (a = this._pendingMove) == null ? void 0 : a.newGeoJSON
|
|
707
1093
|
}), this._map.off("mousemove", this._onMouseMove, this), this._map.off("mouseup", this._onMouseUp, this), this._isDragging = !1;
|
|
708
1094
|
}
|
|
@@ -710,8 +1096,8 @@ const P = class P extends v.Draw.Feature {
|
|
|
710
1096
|
if (this._selectedLayer) {
|
|
711
1097
|
const e = this._selectedLayer;
|
|
712
1098
|
if (e.getElement) {
|
|
713
|
-
const
|
|
714
|
-
|
|
1099
|
+
const r = e.getElement();
|
|
1100
|
+
r && (r.style.cursor = "");
|
|
715
1101
|
} else e._path && (e._path.style.cursor = "");
|
|
716
1102
|
}
|
|
717
1103
|
this._map.off("mousemove", this._onMouseMove, this), this._map.off("mouseup", this._onMouseUp, this), this._selectedLayer = null, this._originalLatLngs = null, this._dragStartLatLng = null, this._isDragging = !1, this._pendingMove = null;
|
|
@@ -741,22 +1127,22 @@ const P = class P extends v.Draw.Feature {
|
|
|
741
1127
|
return this._pendingMove !== null;
|
|
742
1128
|
}
|
|
743
1129
|
};
|
|
744
|
-
|
|
745
|
-
let
|
|
746
|
-
|
|
747
|
-
function
|
|
748
|
-
const t =
|
|
1130
|
+
u(F, "TYPE", "move");
|
|
1131
|
+
let te = F;
|
|
1132
|
+
x.Draw.Move = te;
|
|
1133
|
+
function zt(i) {
|
|
1134
|
+
const t = i.Draw;
|
|
749
1135
|
if (!t || t.Move) return;
|
|
750
|
-
const
|
|
751
|
-
constructor(
|
|
752
|
-
super(
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
this.type =
|
|
1136
|
+
const r = class r extends t.Feature {
|
|
1137
|
+
constructor(n, s) {
|
|
1138
|
+
super(n, s);
|
|
1139
|
+
u(this, "_featureGroup");
|
|
1140
|
+
u(this, "_selectedLayer", null);
|
|
1141
|
+
u(this, "_originalLatLngs", null);
|
|
1142
|
+
u(this, "_dragStartLatLng", null);
|
|
1143
|
+
u(this, "_isDragging", !1);
|
|
1144
|
+
u(this, "_pendingMove", null);
|
|
1145
|
+
this.type = r.TYPE, this._featureGroup = (s == null ? void 0 : s.featureGroup) || new x.FeatureGroup();
|
|
760
1146
|
}
|
|
761
1147
|
enable() {
|
|
762
1148
|
this._enabled || super.enable();
|
|
@@ -765,96 +1151,96 @@ function qe(s) {
|
|
|
765
1151
|
this._enabled && (this._cleanupDragging(), super.disable());
|
|
766
1152
|
}
|
|
767
1153
|
addHooks() {
|
|
768
|
-
const
|
|
769
|
-
if (!
|
|
770
|
-
|
|
1154
|
+
const n = this._map;
|
|
1155
|
+
if (!n) return;
|
|
1156
|
+
i.DomUtil.addClass(n.getContainer(), "leaflet-draw-move-mode"), this._featureGroup.eachLayer((l) => {
|
|
771
1157
|
this._enableLayerHover(l);
|
|
772
1158
|
});
|
|
773
|
-
const
|
|
774
|
-
|
|
1159
|
+
const s = this._tooltip;
|
|
1160
|
+
s != null && s.updateContent && s.updateContent({
|
|
775
1161
|
text: "Click and drag a feature to move it",
|
|
776
1162
|
subtext: ""
|
|
777
1163
|
});
|
|
778
1164
|
}
|
|
779
1165
|
removeHooks() {
|
|
780
|
-
const
|
|
781
|
-
|
|
782
|
-
this._disableLayerHover(
|
|
1166
|
+
const n = this._map;
|
|
1167
|
+
n && (i.DomUtil.removeClass(n.getContainer(), "leaflet-draw-move-mode"), this._featureGroup.eachLayer((s) => {
|
|
1168
|
+
this._disableLayerHover(s);
|
|
783
1169
|
}), this._cleanupDragging());
|
|
784
1170
|
}
|
|
785
|
-
_enableLayerHover(
|
|
786
|
-
|
|
1171
|
+
_enableLayerHover(n) {
|
|
1172
|
+
n.on && (n.on("mouseover", this._onLayerMouseOver, this), n.on("mouseout", this._onLayerMouseOut, this), n.on("mousedown", this._onLayerMouseDown, this));
|
|
787
1173
|
}
|
|
788
|
-
_disableLayerHover(
|
|
789
|
-
|
|
1174
|
+
_disableLayerHover(n) {
|
|
1175
|
+
n.off && (n.off("mouseover", this._onLayerMouseOver, this), n.off("mouseout", this._onLayerMouseOut, this), n.off("mousedown", this._onLayerMouseDown, this));
|
|
790
1176
|
}
|
|
791
|
-
_onLayerMouseOver(
|
|
1177
|
+
_onLayerMouseOver(n) {
|
|
792
1178
|
if (this._isDragging) return;
|
|
793
|
-
const
|
|
794
|
-
if (
|
|
795
|
-
const l =
|
|
1179
|
+
const s = n.target;
|
|
1180
|
+
if (s.getElement) {
|
|
1181
|
+
const l = s.getElement();
|
|
796
1182
|
l && (l.style.cursor = "grab");
|
|
797
|
-
} else
|
|
1183
|
+
} else s._path && (s._path.style.cursor = "grab");
|
|
798
1184
|
}
|
|
799
|
-
_onLayerMouseOut(
|
|
1185
|
+
_onLayerMouseOut(n) {
|
|
800
1186
|
if (this._isDragging) return;
|
|
801
|
-
const
|
|
802
|
-
if (
|
|
803
|
-
const l =
|
|
1187
|
+
const s = n.target;
|
|
1188
|
+
if (s.getElement) {
|
|
1189
|
+
const l = s.getElement();
|
|
804
1190
|
l && (l.style.cursor = "");
|
|
805
|
-
} else
|
|
1191
|
+
} else s._path && (s._path.style.cursor = "");
|
|
806
1192
|
}
|
|
807
|
-
_onLayerMouseDown(
|
|
1193
|
+
_onLayerMouseDown(n) {
|
|
808
1194
|
if (this._isDragging) return;
|
|
809
|
-
|
|
810
|
-
const
|
|
811
|
-
if (this._selectedLayer =
|
|
812
|
-
const c =
|
|
1195
|
+
i.DomEvent.stopPropagation(n.originalEvent), i.DomEvent.preventDefault(n.originalEvent);
|
|
1196
|
+
const s = n.target;
|
|
1197
|
+
if (this._selectedLayer = s, this._isDragging = !0, this._dragStartLatLng = n.latlng, this._storeOriginalLatLngs(s), s.getElement) {
|
|
1198
|
+
const c = s.getElement();
|
|
813
1199
|
c && (c.style.cursor = "grabbing");
|
|
814
|
-
} else
|
|
1200
|
+
} else s._path && (s._path.style.cursor = "grabbing");
|
|
815
1201
|
this._map.on("mousemove", this._onMouseMove, this), this._map.on("mouseup", this._onMouseUp, this);
|
|
816
|
-
const l =
|
|
1202
|
+
const l = s.toGeoJSON();
|
|
817
1203
|
this._pendingMove = {
|
|
818
|
-
layer:
|
|
1204
|
+
layer: s,
|
|
819
1205
|
originalGeoJSON: l,
|
|
820
1206
|
newGeoJSON: l
|
|
821
1207
|
};
|
|
822
1208
|
}
|
|
823
|
-
_storeOriginalLatLngs(
|
|
824
|
-
|
|
825
|
-
JSON.stringify(
|
|
1209
|
+
_storeOriginalLatLngs(n) {
|
|
1210
|
+
n.getLatLng ? this._originalLatLngs = n.getLatLng() : n.getLatLngs && (this._originalLatLngs = JSON.parse(
|
|
1211
|
+
JSON.stringify(n.getLatLngs())
|
|
826
1212
|
));
|
|
827
1213
|
}
|
|
828
|
-
_onMouseMove(
|
|
1214
|
+
_onMouseMove(n) {
|
|
829
1215
|
if (!this._isDragging || !this._selectedLayer || !this._dragStartLatLng)
|
|
830
1216
|
return;
|
|
831
|
-
const
|
|
832
|
-
lat:
|
|
833
|
-
lng:
|
|
1217
|
+
const s = this._selectedLayer, l = {
|
|
1218
|
+
lat: n.latlng.lat - this._dragStartLatLng.lat,
|
|
1219
|
+
lng: n.latlng.lng - this._dragStartLatLng.lng
|
|
834
1220
|
};
|
|
835
|
-
if (
|
|
836
|
-
const c =
|
|
1221
|
+
if (s.setLatLng) {
|
|
1222
|
+
const c = i.latLng(
|
|
837
1223
|
this._originalLatLngs.lat + l.lat,
|
|
838
1224
|
this._originalLatLngs.lng + l.lng
|
|
839
1225
|
);
|
|
840
|
-
|
|
841
|
-
} else if (
|
|
1226
|
+
s.setLatLng(c);
|
|
1227
|
+
} else if (s.setLatLngs) {
|
|
842
1228
|
const c = this._offsetLatLngs(this._originalLatLngs, l);
|
|
843
|
-
|
|
1229
|
+
s.setLatLngs(c);
|
|
844
1230
|
}
|
|
845
1231
|
}
|
|
846
|
-
_offsetLatLngs(
|
|
847
|
-
return
|
|
1232
|
+
_offsetLatLngs(n, s) {
|
|
1233
|
+
return n instanceof i.LatLng || n.lat !== void 0 && n.lng !== void 0 ? i.latLng(n.lat + s.lat, n.lng + s.lng) : Array.isArray(n) ? n.map((l) => this._offsetLatLngs(l, s)) : n;
|
|
848
1234
|
}
|
|
849
|
-
_onMouseUp(
|
|
1235
|
+
_onMouseUp(n) {
|
|
850
1236
|
var l, c;
|
|
851
1237
|
if (!this._isDragging || !this._selectedLayer) return;
|
|
852
1238
|
this._pendingMove && (this._pendingMove.newGeoJSON = this._selectedLayer.toGeoJSON());
|
|
853
|
-
const
|
|
854
|
-
if (
|
|
855
|
-
const d =
|
|
1239
|
+
const s = this._selectedLayer;
|
|
1240
|
+
if (s.getElement) {
|
|
1241
|
+
const d = s.getElement();
|
|
856
1242
|
d && (d.style.cursor = "grab");
|
|
857
|
-
} else
|
|
1243
|
+
} else s._path && (s._path.style.cursor = "grab");
|
|
858
1244
|
this._map.fire("draw:moveend", {
|
|
859
1245
|
layer: this._selectedLayer,
|
|
860
1246
|
originalGeoJSON: (l = this._pendingMove) == null ? void 0 : l.originalGeoJSON,
|
|
@@ -863,11 +1249,11 @@ function qe(s) {
|
|
|
863
1249
|
}
|
|
864
1250
|
_cleanupDragging() {
|
|
865
1251
|
if (this._selectedLayer) {
|
|
866
|
-
const
|
|
867
|
-
if (
|
|
868
|
-
const
|
|
869
|
-
|
|
870
|
-
} else
|
|
1252
|
+
const n = this._selectedLayer;
|
|
1253
|
+
if (n.getElement) {
|
|
1254
|
+
const s = n.getElement();
|
|
1255
|
+
s && (s.style.cursor = "");
|
|
1256
|
+
} else n._path && (n._path.style.cursor = "");
|
|
871
1257
|
}
|
|
872
1258
|
this._map.off("mousemove", this._onMouseMove, this), this._map.off("mouseup", this._onMouseUp, this), this._selectedLayer = null, this._originalLatLngs = null, this._dragStartLatLng = null, this._isDragging = !1, this._pendingMove = null;
|
|
873
1259
|
}
|
|
@@ -880,86 +1266,86 @@ function qe(s) {
|
|
|
880
1266
|
}
|
|
881
1267
|
cancelMove() {
|
|
882
1268
|
if (!this._pendingMove) return;
|
|
883
|
-
const
|
|
884
|
-
|
|
1269
|
+
const n = this._pendingMove.layer;
|
|
1270
|
+
n.setLatLng && this._originalLatLngs ? n.setLatLng(this._originalLatLngs) : n.setLatLngs && this._originalLatLngs && n.setLatLngs(this._originalLatLngs), this._cleanupDragging();
|
|
885
1271
|
}
|
|
886
1272
|
hasPendingMove() {
|
|
887
1273
|
return this._pendingMove !== null;
|
|
888
1274
|
}
|
|
889
1275
|
};
|
|
890
|
-
|
|
891
|
-
let e =
|
|
1276
|
+
u(r, "TYPE", "move");
|
|
1277
|
+
let e = r;
|
|
892
1278
|
t.Move = e;
|
|
893
1279
|
}
|
|
894
|
-
const
|
|
895
|
-
function
|
|
896
|
-
return
|
|
1280
|
+
const Rt = 63710088e-1;
|
|
1281
|
+
function Y(i) {
|
|
1282
|
+
return i * Math.PI / 180;
|
|
897
1283
|
}
|
|
898
|
-
function
|
|
899
|
-
return
|
|
1284
|
+
function ye(i) {
|
|
1285
|
+
return i * 180 / Math.PI;
|
|
900
1286
|
}
|
|
901
|
-
function
|
|
902
|
-
const
|
|
903
|
-
return { lat:
|
|
1287
|
+
function Ut(i, t, e) {
|
|
1288
|
+
const r = t / Rt, o = Y(e), a = Y(i.lat), n = Y(i.lng), s = Math.sin(a), l = Math.cos(a), c = Math.sin(r), d = Math.cos(r), h = s * d + l * c * Math.cos(o), p = Math.asin(h), g = Math.sin(o) * c * l, m = d - s * h, f = n + Math.atan2(g, m);
|
|
1289
|
+
return { lat: ye(p), lng: ye(f) };
|
|
904
1290
|
}
|
|
905
|
-
function
|
|
1291
|
+
function Dt(i) {
|
|
906
1292
|
let t = 0;
|
|
907
|
-
for (let e = 0; e <
|
|
908
|
-
const [
|
|
909
|
-
t +=
|
|
1293
|
+
for (let e = 0; e < i.length - 1; e++) {
|
|
1294
|
+
const [r, o] = i[e], [a, n] = i[e + 1];
|
|
1295
|
+
t += r * n - a * o;
|
|
910
1296
|
}
|
|
911
1297
|
return t / 2;
|
|
912
1298
|
}
|
|
913
|
-
function
|
|
914
|
-
const t =
|
|
915
|
-
return !t || !e || t[0] === e[0] && t[1] === e[1] ?
|
|
1299
|
+
function re(i) {
|
|
1300
|
+
const t = i[0], e = i.at(-1);
|
|
1301
|
+
return !t || !e || t[0] === e[0] && t[1] === e[1] ? i : [...i, t];
|
|
916
1302
|
}
|
|
917
|
-
function
|
|
918
|
-
const e =
|
|
919
|
-
if (
|
|
1303
|
+
function oe(i, t) {
|
|
1304
|
+
const e = re(i);
|
|
1305
|
+
if (Dt(e) < 0 === t) return e;
|
|
920
1306
|
const a = [...e].reverse();
|
|
921
|
-
return
|
|
1307
|
+
return re(a);
|
|
922
1308
|
}
|
|
923
|
-
function
|
|
1309
|
+
function ie(i, t, e) {
|
|
924
1310
|
if (e < 4) throw new Error("steps must be >= 4");
|
|
925
|
-
const
|
|
926
|
-
for (let
|
|
927
|
-
const a =
|
|
928
|
-
|
|
1311
|
+
const r = [];
|
|
1312
|
+
for (let o = 0; o < e; o++) {
|
|
1313
|
+
const a = o / e * 360, n = Ut(i, t, a);
|
|
1314
|
+
r.push([n.lng, n.lat]);
|
|
929
1315
|
}
|
|
930
|
-
return
|
|
1316
|
+
return re(r);
|
|
931
1317
|
}
|
|
932
|
-
function
|
|
933
|
-
const { id: t, center: e, radiusMeters:
|
|
1318
|
+
function Nt(i) {
|
|
1319
|
+
const { id: t, center: e, radiusMeters: r, layerIndex: o, steps: a } = i, n = oe(ie(e, r, a), !1);
|
|
934
1320
|
return {
|
|
935
1321
|
type: "Feature",
|
|
936
1322
|
properties: {
|
|
937
1323
|
id: t,
|
|
938
|
-
layer_index:
|
|
939
|
-
radius_outer:
|
|
1324
|
+
layer_index: o,
|
|
1325
|
+
radius_outer: r,
|
|
940
1326
|
type: "core",
|
|
941
1327
|
_meta: {
|
|
942
1328
|
lat: e.lat,
|
|
943
1329
|
lng: e.lng,
|
|
944
|
-
radius:
|
|
1330
|
+
radius: r
|
|
945
1331
|
}
|
|
946
1332
|
},
|
|
947
|
-
geometry: { type: "Polygon", coordinates: [
|
|
1333
|
+
geometry: { type: "Polygon", coordinates: [n] }
|
|
948
1334
|
};
|
|
949
1335
|
}
|
|
950
|
-
function
|
|
1336
|
+
function Ht(i) {
|
|
951
1337
|
const {
|
|
952
1338
|
id: t,
|
|
953
1339
|
center: e,
|
|
954
|
-
radiusOuterMeters:
|
|
955
|
-
radiusInnerMeters:
|
|
1340
|
+
radiusOuterMeters: r,
|
|
1341
|
+
radiusInnerMeters: o,
|
|
956
1342
|
layerIndex: a,
|
|
957
|
-
steps:
|
|
958
|
-
} =
|
|
959
|
-
|
|
1343
|
+
steps: n
|
|
1344
|
+
} = i, s = oe(
|
|
1345
|
+
ie(e, r, n),
|
|
960
1346
|
!1
|
|
961
|
-
), l =
|
|
962
|
-
|
|
1347
|
+
), l = oe(
|
|
1348
|
+
ie(e, o, n),
|
|
963
1349
|
!0
|
|
964
1350
|
);
|
|
965
1351
|
return {
|
|
@@ -967,110 +1353,110 @@ function $e(s) {
|
|
|
967
1353
|
properties: {
|
|
968
1354
|
id: t,
|
|
969
1355
|
layer_index: a,
|
|
970
|
-
radius_outer:
|
|
1356
|
+
radius_outer: r,
|
|
971
1357
|
type: "ring",
|
|
972
1358
|
_meta: {
|
|
973
1359
|
lat: e.lat,
|
|
974
1360
|
lng: e.lng,
|
|
975
|
-
radius:
|
|
1361
|
+
radius: r
|
|
976
1362
|
}
|
|
977
1363
|
},
|
|
978
|
-
geometry: { type: "Polygon", coordinates: [
|
|
1364
|
+
geometry: { type: "Polygon", coordinates: [s, l] }
|
|
979
1365
|
};
|
|
980
1366
|
}
|
|
981
|
-
function
|
|
982
|
-
const { circles: t, steps: e = 64 } =
|
|
983
|
-
return
|
|
984
|
-
const
|
|
985
|
-
if (
|
|
986
|
-
|
|
987
|
-
|
|
1367
|
+
function Ft(i) {
|
|
1368
|
+
const { circles: t, steps: e = 64 } = i, r = [...t].sort((a, n) => a.getRadius() - n.getRadius()), o = [];
|
|
1369
|
+
return r.forEach((a, n) => {
|
|
1370
|
+
const s = a.getLatLng(), l = a.getRadius(), c = ne();
|
|
1371
|
+
if (n === 0) {
|
|
1372
|
+
o.push(
|
|
1373
|
+
Nt({ id: c, center: s, radiusMeters: l, layerIndex: n, steps: e })
|
|
988
1374
|
);
|
|
989
1375
|
return;
|
|
990
1376
|
}
|
|
991
|
-
const
|
|
992
|
-
|
|
993
|
-
|
|
1377
|
+
const h = r[n - 1].getRadius();
|
|
1378
|
+
o.push(
|
|
1379
|
+
Ht({
|
|
994
1380
|
id: c,
|
|
995
|
-
center:
|
|
1381
|
+
center: s,
|
|
996
1382
|
radiusOuterMeters: l,
|
|
997
|
-
radiusInnerMeters:
|
|
998
|
-
layerIndex:
|
|
1383
|
+
radiusInnerMeters: h,
|
|
1384
|
+
layerIndex: n,
|
|
999
1385
|
steps: e
|
|
1000
1386
|
})
|
|
1001
1387
|
);
|
|
1002
|
-
}), { type: "FeatureCollection", features:
|
|
1388
|
+
}), { type: "FeatureCollection", features: o };
|
|
1003
1389
|
}
|
|
1004
|
-
function
|
|
1005
|
-
|
|
1390
|
+
function P(i) {
|
|
1391
|
+
i.preventDefault(), i.stopPropagation();
|
|
1006
1392
|
}
|
|
1007
|
-
function
|
|
1393
|
+
function Gt(i) {
|
|
1008
1394
|
var c, d;
|
|
1009
|
-
const { root: t, addButtonId: e, saveButtonId:
|
|
1010
|
-
if (!
|
|
1395
|
+
const { root: t, addButtonId: e, saveButtonId: r, onAddRing: o, onSave: a } = i, n = (c = t.querySelector) == null ? void 0 : c.call(t, `#${e}`), s = (d = t.querySelector) == null ? void 0 : d.call(t, `#${r}`);
|
|
1396
|
+
if (!n || !s) return;
|
|
1011
1397
|
const l = "data-cake-controls-bound";
|
|
1012
|
-
if (!(
|
|
1013
|
-
|
|
1014
|
-
for (const
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
}),
|
|
1019
|
-
|
|
1398
|
+
if (!(n.hasAttribute(l) || s.hasAttribute(l))) {
|
|
1399
|
+
n.setAttribute(l, "true"), s.setAttribute(l, "true");
|
|
1400
|
+
for (const h of [n, s])
|
|
1401
|
+
h.addEventListener("pointerdown", P), h.addEventListener("mousedown", P), h.addEventListener("touchstart", P);
|
|
1402
|
+
n.addEventListener("click", (h) => {
|
|
1403
|
+
P(h), o();
|
|
1404
|
+
}), s.addEventListener("click", (h) => {
|
|
1405
|
+
P(h), a();
|
|
1020
1406
|
});
|
|
1021
1407
|
}
|
|
1022
1408
|
}
|
|
1023
|
-
function
|
|
1409
|
+
function Vt(i) {
|
|
1024
1410
|
var e;
|
|
1025
|
-
const t = (e =
|
|
1411
|
+
const t = (e = i.options) != null ? e : {};
|
|
1026
1412
|
t.original || (t.original = { ...t }), t.editing || (t.editing = { ...t });
|
|
1027
1413
|
}
|
|
1028
|
-
function
|
|
1414
|
+
function z(i, t) {
|
|
1029
1415
|
if (t === "imperial") {
|
|
1030
|
-
const e =
|
|
1416
|
+
const e = i * 3.28084;
|
|
1031
1417
|
return e >= 5280 ? `${(e / 5280).toFixed(2)} mi` : `${Math.round(e)} ft`;
|
|
1032
1418
|
}
|
|
1033
|
-
return
|
|
1034
|
-
}
|
|
1035
|
-
class
|
|
1036
|
-
constructor(t, e,
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
this.map = t, this.onSave =
|
|
1419
|
+
return i >= 1e3 ? `${(i / 1e3).toFixed(2)} km` : `${Math.round(i)} m`;
|
|
1420
|
+
}
|
|
1421
|
+
class Jt {
|
|
1422
|
+
constructor(t, e, r, o = "metric") {
|
|
1423
|
+
u(this, "map");
|
|
1424
|
+
u(this, "layers", []);
|
|
1425
|
+
u(this, "controlsGroup");
|
|
1426
|
+
u(this, "onSave");
|
|
1427
|
+
u(this, "sessionId", ne().slice(0, 8));
|
|
1428
|
+
u(this, "baseCircleOptions");
|
|
1429
|
+
u(this, "detachMapListeners", []);
|
|
1430
|
+
u(this, "renderScheduled", !1);
|
|
1431
|
+
u(this, "measurementSystem");
|
|
1432
|
+
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();
|
|
1047
1433
|
}
|
|
1048
1434
|
installEditEventBridges() {
|
|
1049
|
-
var d,
|
|
1050
|
-
const t =
|
|
1051
|
-
if (!e || !
|
|
1052
|
-
const
|
|
1053
|
-
const
|
|
1054
|
-
|
|
1055
|
-
},
|
|
1056
|
-
const
|
|
1057
|
-
|
|
1058
|
-
}, l = (
|
|
1435
|
+
var d, h, p, g, m, f, A, w;
|
|
1436
|
+
const t = x, e = (h = (d = t == null ? void 0 : t.Draw) == null ? void 0 : d.Event) == null ? void 0 : h.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, a = (w = (A = t == null ? void 0 : t.Draw) == null ? void 0 : A.Event) == null ? void 0 : w.EDITSTOP;
|
|
1437
|
+
if (!e || !r) return;
|
|
1438
|
+
const n = (y) => {
|
|
1439
|
+
const b = y == null ? void 0 : y.layer;
|
|
1440
|
+
b && this.layers.includes(b) && this.syncCenters(b);
|
|
1441
|
+
}, s = (y) => {
|
|
1442
|
+
const b = y == null ? void 0 : y.layer;
|
|
1443
|
+
b && this.layers.includes(b) && (this.updateLabels(b), this.requestRenderControls());
|
|
1444
|
+
}, l = (y) => {
|
|
1059
1445
|
var k;
|
|
1060
|
-
const
|
|
1061
|
-
if (!
|
|
1062
|
-
const
|
|
1063
|
-
((k =
|
|
1446
|
+
const b = y == null ? void 0 : y.layer;
|
|
1447
|
+
if (!b || !this.layers.includes(b)) return;
|
|
1448
|
+
const v = b;
|
|
1449
|
+
((k = v.getTooltip) == null ? void 0 : k.call(v)) && this.updateLabels(v);
|
|
1064
1450
|
}, c = () => {
|
|
1065
|
-
this.layers.forEach((
|
|
1066
|
-
var
|
|
1067
|
-
const
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
),
|
|
1451
|
+
this.layers.forEach((y) => {
|
|
1452
|
+
var v;
|
|
1453
|
+
const b = (v = y.getTooltip) == null ? void 0 : v.call(y);
|
|
1454
|
+
b && (y.setTooltipContent(
|
|
1455
|
+
z(y.getRadius(), this.measurementSystem)
|
|
1456
|
+
), b.options.offset = [10, 0], b.options.direction = "right", y.closeTooltip(), y.openTooltip());
|
|
1071
1457
|
});
|
|
1072
1458
|
};
|
|
1073
|
-
this.map.on(e,
|
|
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))), a && (this.map.on(a, c), this.detachMapListeners.push(() => this.map.off(a, c))), this.detachMapListeners.push(() => this.map.off(e, n)), this.detachMapListeners.push(() => this.map.off(r, s));
|
|
1074
1460
|
}
|
|
1075
1461
|
requestRenderControls() {
|
|
1076
1462
|
if (this.renderScheduled) return;
|
|
@@ -1080,7 +1466,7 @@ class rt {
|
|
|
1080
1466
|
}
|
|
1081
1467
|
addLayer(t) {
|
|
1082
1468
|
this.layers.push(t), t.addTo(this.map), t.bindTooltip(
|
|
1083
|
-
|
|
1469
|
+
z(t.getRadius(), this.measurementSystem),
|
|
1084
1470
|
{
|
|
1085
1471
|
permanent: !0,
|
|
1086
1472
|
direction: "right",
|
|
@@ -1090,13 +1476,13 @@ class rt {
|
|
|
1090
1476
|
);
|
|
1091
1477
|
const e = t.editing;
|
|
1092
1478
|
setTimeout(() => {
|
|
1093
|
-
var
|
|
1479
|
+
var r, o, a, n, s;
|
|
1094
1480
|
try {
|
|
1095
|
-
if ((
|
|
1481
|
+
if ((r = t.redraw) == null || r.call(t), Vt(t), (o = e == null ? void 0 : e.enabled) != null && o.call(e)) {
|
|
1096
1482
|
(a = e.updateMarkers) == null || a.call(e), this.requestRenderControls();
|
|
1097
1483
|
return;
|
|
1098
1484
|
}
|
|
1099
|
-
(
|
|
1485
|
+
(n = e == null ? void 0 : e.enable) == null || n.call(e), (s = e == null ? void 0 : e.updateMarkers) == null || s.call(e), this.requestRenderControls();
|
|
1100
1486
|
} catch {
|
|
1101
1487
|
}
|
|
1102
1488
|
}, 0);
|
|
@@ -1105,14 +1491,14 @@ class rt {
|
|
|
1105
1491
|
if (this.layers.length >= 10) return;
|
|
1106
1492
|
const t = this.getLargestCircle();
|
|
1107
1493
|
if (!t) return;
|
|
1108
|
-
const e = t.getRadius() * 1.5,
|
|
1494
|
+
const e = t.getRadius() * 1.5, r = x.circle(t.getLatLng(), {
|
|
1109
1495
|
...this.baseCircleOptions,
|
|
1110
1496
|
radius: e
|
|
1111
1497
|
});
|
|
1112
|
-
this.addLayer(
|
|
1498
|
+
this.addLayer(r), this.renderControls();
|
|
1113
1499
|
}
|
|
1114
1500
|
save() {
|
|
1115
|
-
const t =
|
|
1501
|
+
const t = Ft({ circles: this.layers });
|
|
1116
1502
|
this.onSave(t), this.destroy();
|
|
1117
1503
|
}
|
|
1118
1504
|
getLargestCircle() {
|
|
@@ -1122,9 +1508,9 @@ class rt {
|
|
|
1122
1508
|
}
|
|
1123
1509
|
syncCenters(t) {
|
|
1124
1510
|
const e = t.getLatLng();
|
|
1125
|
-
this.layers.forEach((
|
|
1126
|
-
var
|
|
1127
|
-
|
|
1511
|
+
this.layers.forEach((r) => {
|
|
1512
|
+
var o, a, n;
|
|
1513
|
+
r !== t && (r.setLatLng(e), (o = r.redraw) == null || o.call(r), (n = (a = r.editing) == null ? void 0 : a.updateMarkers) == null || n.call(a));
|
|
1128
1514
|
}), this.requestRenderControls();
|
|
1129
1515
|
}
|
|
1130
1516
|
/**
|
|
@@ -1133,21 +1519,21 @@ class rt {
|
|
|
1133
1519
|
* Positions the tooltip on the left side to avoid toolbar interference.
|
|
1134
1520
|
*/
|
|
1135
1521
|
updateLabels(t) {
|
|
1136
|
-
var
|
|
1522
|
+
var n;
|
|
1137
1523
|
const e = t.getRadius();
|
|
1138
|
-
let
|
|
1139
|
-
const
|
|
1140
|
-
(
|
|
1524
|
+
let r = z(e, this.measurementSystem);
|
|
1525
|
+
const o = this.layers.filter(
|
|
1526
|
+
(s) => s !== t && s.getRadius() < e
|
|
1141
1527
|
);
|
|
1142
|
-
if (
|
|
1143
|
-
const
|
|
1144
|
-
(d,
|
|
1145
|
-
), l = e -
|
|
1146
|
-
|
|
1528
|
+
if (o.length > 0) {
|
|
1529
|
+
const s = o.reduce(
|
|
1530
|
+
(d, h) => d.getRadius() > h.getRadius() ? d : h
|
|
1531
|
+
), l = e - s.getRadius(), c = z(l, this.measurementSystem);
|
|
1532
|
+
r = `${z(e, this.measurementSystem)} (+${c})`;
|
|
1147
1533
|
}
|
|
1148
|
-
const a = (
|
|
1534
|
+
const a = (n = t.getTooltip) == null ? void 0 : n.call(t);
|
|
1149
1535
|
if (a) {
|
|
1150
|
-
t.setTooltipContent(
|
|
1536
|
+
t.setTooltipContent(r);
|
|
1151
1537
|
const l = t.getBounds().getSouthWest();
|
|
1152
1538
|
l.lat = t.getLatLng().lat, a.options.direction = "left", a.options.offset = [-10, 0], a.setLatLng(l), t.closeTooltip(), t.openTooltip();
|
|
1153
1539
|
}
|
|
@@ -1156,27 +1542,27 @@ class rt {
|
|
|
1156
1542
|
this.controlsGroup.clearLayers();
|
|
1157
1543
|
const t = this.getLargestCircle();
|
|
1158
1544
|
if (!t) return;
|
|
1159
|
-
const
|
|
1545
|
+
const r = t.getBounds().getNorthEast(), o = `cake-add-${this.sessionId}`, a = `cake-save-${this.sessionId}`, n = x.divIcon({
|
|
1160
1546
|
className: "layer-cake-controls",
|
|
1161
1547
|
html: `
|
|
1162
1548
|
<div class="layer-cake-controls__container">
|
|
1163
|
-
<button id="${
|
|
1549
|
+
<button id="${o}" type="button">➕ Ring</button>
|
|
1164
1550
|
<button id="${a}" type="button" class="layer-cake-controls__save">💾 Save</button>
|
|
1165
1551
|
</div>
|
|
1166
1552
|
`,
|
|
1167
1553
|
iconSize: [140, 40],
|
|
1168
1554
|
iconAnchor: [-10, 20]
|
|
1169
1555
|
});
|
|
1170
|
-
|
|
1171
|
-
icon:
|
|
1556
|
+
x.marker(r, {
|
|
1557
|
+
icon: n,
|
|
1172
1558
|
interactive: !0,
|
|
1173
1559
|
keyboard: !1,
|
|
1174
1560
|
bubblingMouseEvents: !1
|
|
1175
1561
|
}).addTo(this.controlsGroup), setTimeout(() => {
|
|
1176
|
-
const
|
|
1177
|
-
|
|
1178
|
-
root:
|
|
1179
|
-
addButtonId:
|
|
1562
|
+
const s = this.map.getContainer();
|
|
1563
|
+
Gt({
|
|
1564
|
+
root: s,
|
|
1565
|
+
addButtonId: o,
|
|
1180
1566
|
saveButtonId: a,
|
|
1181
1567
|
onAddRing: () => this.addRing(),
|
|
1182
1568
|
onSave: () => this.save()
|
|
@@ -1192,7 +1578,7 @@ class rt {
|
|
|
1192
1578
|
}), this.detachMapListeners = [], this.layers.forEach((t) => this.map.removeLayer(t)), this.layers = [], this.controlsGroup.clearLayers(), this.map.removeLayer(this.controlsGroup);
|
|
1193
1579
|
}
|
|
1194
1580
|
}
|
|
1195
|
-
const
|
|
1581
|
+
const Zt = `<?xml version="1.0" encoding="utf-8"?>
|
|
1196
1582
|
\r<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
1197
1583
|
<svg width="800px" height="800px" viewBox="0 -1.67 47.336 47.336" xmlns="http://www.w3.org/2000/svg">\r
|
|
1198
1584
|
<g id="Group_42" data-name="Group 42" transform="translate(-172.455 -364.36)">\r
|
|
@@ -1203,7 +1589,7 @@ const it = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
1203
1589
|
<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
|
|
1204
1590
|
</g>\r
|
|
1205
1591
|
</g>\r
|
|
1206
|
-
</svg>`,
|
|
1592
|
+
</svg>`, jt = `<?xml version="1.0" encoding="utf-8"?>
|
|
1207
1593
|
<!-- Four-way directional arrow icon for move tool -->
|
|
1208
1594
|
<svg width="800px" height="800px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
1209
1595
|
<g fill="none" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
@@ -1223,92 +1609,92 @@ const it = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
1223
1609
|
<path d="M22 12 L19 15"/>
|
|
1224
1610
|
</g>
|
|
1225
1611
|
</svg>
|
|
1226
|
-
`,
|
|
1227
|
-
function
|
|
1228
|
-
const t = BigInt(Math.round(
|
|
1229
|
-
return Number(t) /
|
|
1612
|
+
`, Te = 6378137, _ = 6356752314245e-6, T = 1 / 298.257223563, Yt = Math.PI / 180, qt = 180 / Math.PI, N = 1e9;
|
|
1613
|
+
function Kt(i) {
|
|
1614
|
+
const t = BigInt(Math.round(i * N));
|
|
1615
|
+
return Number(t) / N;
|
|
1230
1616
|
}
|
|
1231
|
-
function
|
|
1232
|
-
return
|
|
1617
|
+
function B(i) {
|
|
1618
|
+
return Kt(i) * Yt;
|
|
1233
1619
|
}
|
|
1234
|
-
function
|
|
1235
|
-
const t =
|
|
1620
|
+
function be(i) {
|
|
1621
|
+
const t = i * qt % 360;
|
|
1236
1622
|
return t < 0 ? t + 360 : t;
|
|
1237
1623
|
}
|
|
1238
|
-
function
|
|
1239
|
-
const t = BigInt(Math.round(
|
|
1240
|
-
return Number(t) /
|
|
1624
|
+
function ae(i) {
|
|
1625
|
+
const t = BigInt(Math.round(i * N));
|
|
1626
|
+
return Number(t) / N;
|
|
1241
1627
|
}
|
|
1242
|
-
function
|
|
1243
|
-
const
|
|
1244
|
-
if (
|
|
1628
|
+
function Qt(i, t, e, r) {
|
|
1629
|
+
const o = Xt(i, t, e, r);
|
|
1630
|
+
if (o.converged)
|
|
1245
1631
|
return {
|
|
1246
|
-
meters:
|
|
1247
|
-
bearingDegrees:
|
|
1632
|
+
meters: ae(o.distanceMeters),
|
|
1633
|
+
bearingDegrees: be(o.bearingRad),
|
|
1248
1634
|
algorithm: "vincenty",
|
|
1249
|
-
iterations:
|
|
1635
|
+
iterations: o.iterations
|
|
1250
1636
|
};
|
|
1251
|
-
const a =
|
|
1637
|
+
const a = Wt(i, t, e, r);
|
|
1252
1638
|
return {
|
|
1253
|
-
meters:
|
|
1254
|
-
bearingDegrees:
|
|
1639
|
+
meters: ae(a.distanceMeters),
|
|
1640
|
+
bearingDegrees: be(a.bearingRad),
|
|
1255
1641
|
algorithm: "karney",
|
|
1256
|
-
iterations:
|
|
1642
|
+
iterations: o.iterations
|
|
1257
1643
|
};
|
|
1258
1644
|
}
|
|
1259
|
-
function
|
|
1260
|
-
const
|
|
1261
|
-
let
|
|
1262
|
-
const
|
|
1263
|
-
let
|
|
1264
|
-
for (; Math.abs(
|
|
1265
|
-
const
|
|
1266
|
-
if (
|
|
1267
|
-
(p *
|
|
1268
|
-
),
|
|
1645
|
+
function Xt(i, t, e, r) {
|
|
1646
|
+
const o = B(i), a = B(e), n = B(r - t), s = Math.atan((1 - T) * Math.tan(o)), l = Math.atan((1 - T) * Math.tan(a)), c = Math.sin(s), d = Math.cos(s), h = Math.sin(l), p = Math.cos(l);
|
|
1647
|
+
let g = n, m = 0, f = 0;
|
|
1648
|
+
const A = 200;
|
|
1649
|
+
let w = 0, y = 0, b = 0, v = 0, E = 0;
|
|
1650
|
+
for (; Math.abs(g - m) > 1e-12 && f < A; ) {
|
|
1651
|
+
const le = Math.sin(g), ce = Math.cos(g);
|
|
1652
|
+
if (w = Math.sqrt(
|
|
1653
|
+
(p * le) ** 2 + (d * h - c * p * ce) ** 2
|
|
1654
|
+
), w === 0)
|
|
1269
1655
|
return {
|
|
1270
1656
|
distanceMeters: 0,
|
|
1271
1657
|
bearingRad: 0,
|
|
1272
|
-
iterations:
|
|
1658
|
+
iterations: f,
|
|
1273
1659
|
converged: !0
|
|
1274
1660
|
};
|
|
1275
|
-
|
|
1276
|
-
const
|
|
1277
|
-
|
|
1278
|
-
const
|
|
1279
|
-
|
|
1661
|
+
y = c * h + d * p * ce, b = Math.atan2(w, y);
|
|
1662
|
+
const de = d * p * le / w;
|
|
1663
|
+
v = 1 - de ** 2, E = v === 0 ? 0 : y - 2 * c * h / v;
|
|
1664
|
+
const Z = T / 16 * v * (4 + T * (4 - 3 * v));
|
|
1665
|
+
m = g, g = n + (1 - Z) * T * de * (b + Z * w * (E + Z * y * (-1 + 2 * E ** 2))), f += 1;
|
|
1280
1666
|
}
|
|
1281
|
-
if (
|
|
1667
|
+
if (f >= A)
|
|
1282
1668
|
return {
|
|
1283
1669
|
distanceMeters: Number.NaN,
|
|
1284
1670
|
bearingRad: 0,
|
|
1285
|
-
iterations:
|
|
1671
|
+
iterations: f,
|
|
1286
1672
|
converged: !1
|
|
1287
1673
|
};
|
|
1288
|
-
const k = (
|
|
1289
|
-
p * Math.sin(
|
|
1290
|
-
d *
|
|
1674
|
+
const k = (Te ** 2 - _ ** 2) / _ ** 2 * v, M = 1 + k / 16384 * (4096 + k * (-768 + k * (320 - 175 * k))), C = k / 1024 * (256 + k * (-128 + k * (74 - 47 * k))), O = C * w * (E + C / 4 * (y * (-1 + 2 * E ** 2) - C / 6 * E * (-3 + 4 * w ** 2) * (-3 + 4 * E ** 2))), Re = _ * M * (b - O), Ue = Math.atan2(
|
|
1675
|
+
p * Math.sin(g),
|
|
1676
|
+
d * h - c * p * Math.cos(g)
|
|
1291
1677
|
);
|
|
1292
1678
|
return {
|
|
1293
|
-
distanceMeters:
|
|
1294
|
-
bearingRad:
|
|
1295
|
-
iterations:
|
|
1679
|
+
distanceMeters: Re,
|
|
1680
|
+
bearingRad: Ue,
|
|
1681
|
+
iterations: f,
|
|
1296
1682
|
converged: !0
|
|
1297
1683
|
};
|
|
1298
1684
|
}
|
|
1299
|
-
function
|
|
1300
|
-
const
|
|
1301
|
-
(p * Math.sin(
|
|
1302
|
-
),
|
|
1303
|
-
if (
|
|
1685
|
+
function Wt(i, t, e, r) {
|
|
1686
|
+
const o = B(i), a = B(e), n = B(r - t), s = Math.atan((1 - T) * Math.tan(o)), l = Math.atan((1 - T) * Math.tan(a)), c = Math.sin(s), d = Math.cos(s), h = Math.sin(l), p = Math.cos(l), g = Math.sqrt(
|
|
1687
|
+
(p * Math.sin(n)) ** 2 + (d * h - c * p * Math.cos(n)) ** 2
|
|
1688
|
+
), m = c * h + d * p * Math.cos(n), f = Math.atan2(g, m);
|
|
1689
|
+
if (f === 0)
|
|
1304
1690
|
return { distanceMeters: 0, bearingRad: 0 };
|
|
1305
|
-
const
|
|
1306
|
-
p * Math.sin(
|
|
1307
|
-
d *
|
|
1691
|
+
const w = 1 - (d * p * Math.sin(n) / Math.sin(f)) ** 2, y = w === 0 ? 0 : m - 2 * c * h / w, b = (Te ** 2 - _ ** 2) / _ ** 2 * w, v = 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))), M = _ * v * (f - k), C = Math.atan2(
|
|
1692
|
+
p * Math.sin(n),
|
|
1693
|
+
d * h - c * p * Math.cos(n)
|
|
1308
1694
|
);
|
|
1309
|
-
return { distanceMeters:
|
|
1695
|
+
return { distanceMeters: M, bearingRad: C };
|
|
1310
1696
|
}
|
|
1311
|
-
const
|
|
1697
|
+
const $t = {
|
|
1312
1698
|
position: "topleft",
|
|
1313
1699
|
circleMarker: {
|
|
1314
1700
|
color: "red",
|
|
@@ -1324,145 +1710,283 @@ const ut = {
|
|
|
1324
1710
|
factor: null,
|
|
1325
1711
|
label: "Bearing:"
|
|
1326
1712
|
}
|
|
1327
|
-
},
|
|
1713
|
+
}, er = {
|
|
1328
1714
|
display: "km",
|
|
1329
1715
|
decimal: 2,
|
|
1330
1716
|
factor: null,
|
|
1331
1717
|
label: "Distance (km):"
|
|
1332
|
-
},
|
|
1718
|
+
}, tr = {
|
|
1333
1719
|
display: "mi",
|
|
1334
1720
|
decimal: 2,
|
|
1335
1721
|
factor: 0.621371,
|
|
1336
1722
|
label: "Distance (mi):"
|
|
1337
1723
|
};
|
|
1338
|
-
function
|
|
1339
|
-
const t =
|
|
1724
|
+
function rr(i) {
|
|
1725
|
+
const t = i === "imperial" ? { ...tr } : { ...er };
|
|
1340
1726
|
return {
|
|
1341
|
-
|
|
1727
|
+
...$t,
|
|
1342
1728
|
lengthUnit: t
|
|
1343
1729
|
};
|
|
1344
1730
|
}
|
|
1345
|
-
const
|
|
1731
|
+
const or = {
|
|
1346
1732
|
metric: "Meters / Kilometers",
|
|
1347
1733
|
imperial: "Feet / Miles"
|
|
1348
1734
|
};
|
|
1349
|
-
function
|
|
1350
|
-
var a,
|
|
1351
|
-
const e = !!((a =
|
|
1352
|
-
return
|
|
1735
|
+
function q(i, t = {}) {
|
|
1736
|
+
var a, n;
|
|
1737
|
+
const e = !!((a = i == null ? void 0 : i.Control) != null && a.Draw), r = !!i.draw, o = e && r;
|
|
1738
|
+
return o || (n = t.onError) == null || n.call(
|
|
1353
1739
|
t,
|
|
1354
1740
|
"Leaflet.draw is not available on the provided Leaflet instance"
|
|
1355
|
-
),
|
|
1356
|
-
}
|
|
1357
|
-
let
|
|
1358
|
-
|
|
1741
|
+
), o;
|
|
1742
|
+
}
|
|
1743
|
+
let Ae = !1;
|
|
1744
|
+
const ir = {
|
|
1745
|
+
polygon: "tool:polygon:created",
|
|
1746
|
+
polyline: "tool:polyline:created",
|
|
1747
|
+
rectangle: "tool:rectangle:created",
|
|
1748
|
+
circle: "tool:circle:created",
|
|
1749
|
+
marker: "tool:marker:created"
|
|
1750
|
+
};
|
|
1751
|
+
class ar {
|
|
1359
1752
|
constructor(t) {
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1753
|
+
u(this, "container");
|
|
1754
|
+
u(this, "logger");
|
|
1755
|
+
u(this, "options");
|
|
1363
1756
|
// Active Leaflet namespace (injected or bundled fallback)
|
|
1364
|
-
|
|
1757
|
+
u(this, "L");
|
|
1365
1758
|
// Data store (id-centric)
|
|
1366
|
-
|
|
1759
|
+
u(this, "store");
|
|
1367
1760
|
// Leaflet entities
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1761
|
+
u(this, "map", null);
|
|
1762
|
+
u(this, "tileLayer", null);
|
|
1763
|
+
u(this, "drawnItems", null);
|
|
1371
1764
|
// Keep 'any' here to avoid type friction across different @types/leaflet-draw versions
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1765
|
+
u(this, "drawControl", null);
|
|
1766
|
+
u(this, "rulerControl", null);
|
|
1767
|
+
u(this, "measurementControl", null);
|
|
1768
|
+
u(this, "measurementSystem", "metric");
|
|
1769
|
+
u(this, "measurementModalOverlay", null);
|
|
1770
|
+
u(this, "measurementModalDialog", null);
|
|
1771
|
+
u(this, "measurementModalRadios", {});
|
|
1772
|
+
u(this, "measurementModalKeydownHandler", null);
|
|
1380
1773
|
// Detacher for our polygon close-on-first-vertex patch
|
|
1381
|
-
|
|
1774
|
+
u(this, "detachPolygonFinishPatch", null);
|
|
1382
1775
|
// Context menu for vertex deletion
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1776
|
+
u(this, "vertexMenuEl", null);
|
|
1777
|
+
u(this, "vertexMenuCleanup", null);
|
|
1778
|
+
u(this, "vertexEditSurfaceCleanup", null);
|
|
1779
|
+
u(this, "activeCakeSession", null);
|
|
1386
1780
|
// Move tool UI elements
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
this
|
|
1781
|
+
u(this, "moveConfirmationUI", null);
|
|
1782
|
+
u(this, "activeMoveHandler", null);
|
|
1783
|
+
u(this, "markerIconConfig", null);
|
|
1784
|
+
u(this, "markerIcon", null);
|
|
1785
|
+
u(this, "toolButtonConfig", null);
|
|
1786
|
+
u(this, "toolbarGroups", null);
|
|
1787
|
+
var e, r, o, a;
|
|
1788
|
+
this.options = t, this.container = t.container, this.logger = ((e = t.logger) != null ? e : G("controller", "debug")).child(
|
|
1391
1789
|
"map"
|
|
1392
|
-
), this.L = this.resolveLeaflet(t), this.store = new
|
|
1790
|
+
), this.L = this.resolveLeaflet(t), this.store = new ut(this.logger.child("store")), this.setMarkerIconConfig((r = t.markerIconConfig) != null ? r : null, {
|
|
1791
|
+
reapplyExistingLayers: !1,
|
|
1792
|
+
syncDrawControl: !1
|
|
1793
|
+
}), this.toolButtonConfig = (o = t.toolButtonConfig) != null ? o : null, this.toolbarGroups = (a = t.toolbarGroups) != null ? a : null, this.logger.debug("ctor", {
|
|
1393
1794
|
config: t.map,
|
|
1394
1795
|
controls: t.controls,
|
|
1395
1796
|
readOnly: t.readOnly,
|
|
1396
1797
|
useExternalLeaflet: t.useExternalLeaflet
|
|
1397
|
-
}),
|
|
1798
|
+
}), Pt(this.L), zt(this.L), Ot(this.L);
|
|
1799
|
+
}
|
|
1800
|
+
emitToolEvent(t, e) {
|
|
1801
|
+
var o, a;
|
|
1802
|
+
try {
|
|
1803
|
+
(a = (o = this.options.toolHooks) == null ? void 0 : o[t]) == null || a.call(o, e);
|
|
1804
|
+
} catch (n) {
|
|
1805
|
+
this._error(`tool hook failed: ${t}`, n);
|
|
1806
|
+
}
|
|
1807
|
+
const r = this.options.toolEventEmitter;
|
|
1808
|
+
if (r)
|
|
1809
|
+
try {
|
|
1810
|
+
if (typeof r.emit == "function") {
|
|
1811
|
+
r.emit(t, e);
|
|
1812
|
+
return;
|
|
1813
|
+
}
|
|
1814
|
+
typeof r.dispatchEvent == "function" && r.dispatchEvent(
|
|
1815
|
+
new CustomEvent(t, {
|
|
1816
|
+
detail: e
|
|
1817
|
+
})
|
|
1818
|
+
);
|
|
1819
|
+
} catch (n) {
|
|
1820
|
+
this._error(`tool emitter failed: ${t}`, n);
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
setToolObservers(t) {
|
|
1824
|
+
this.options.toolHooks = t.toolHooks, this.options.toolEventEmitter = t.toolEventEmitter;
|
|
1825
|
+
}
|
|
1826
|
+
setMarkerIconConfig(t, e = {}) {
|
|
1827
|
+
const { reapplyExistingLayers: r = !0, syncDrawControl: o = !0 } = e;
|
|
1828
|
+
this.options.markerIconConfig = t, this.markerIconConfig = t, this.markerIcon = this.createMarkerIcon(t), o && this.syncDrawMarkerOptions(), r && this.reapplyMarkerIconsToExistingLayers();
|
|
1829
|
+
}
|
|
1830
|
+
setToolButtonConfig(t) {
|
|
1831
|
+
this.options.toolButtonConfig = t != null ? t : null, this.toolButtonConfig = t != null ? t : null, this.applyToolButtonCustomizations();
|
|
1832
|
+
}
|
|
1833
|
+
setToolbarGroups(t) {
|
|
1834
|
+
this.options.toolbarGroups = t != null ? t : null, this.toolbarGroups = t != null ? t : null, this.applyToolButtonCustomizations();
|
|
1835
|
+
}
|
|
1836
|
+
activateTool(t, e = {}) {
|
|
1837
|
+
var o;
|
|
1838
|
+
const r = (o = e.source) != null ? o : "api";
|
|
1839
|
+
try {
|
|
1840
|
+
if (t === "select")
|
|
1841
|
+
return this.deactivateTool({ source: r, groupId: e.groupId });
|
|
1842
|
+
if (t === "layerStyle")
|
|
1843
|
+
return this.emitToolTrigger({
|
|
1844
|
+
tool: t,
|
|
1845
|
+
source: r,
|
|
1846
|
+
groupId: e.groupId,
|
|
1847
|
+
handled: !0
|
|
1848
|
+
}), !0;
|
|
1849
|
+
if (t === "measurementSettings")
|
|
1850
|
+
return this.toggleMeasurementModal(!0), this.emitToolTrigger({
|
|
1851
|
+
tool: t,
|
|
1852
|
+
source: r,
|
|
1853
|
+
groupId: e.groupId,
|
|
1854
|
+
handled: !0
|
|
1855
|
+
}), !0;
|
|
1856
|
+
if (t === "ruler") {
|
|
1857
|
+
const n = this.triggerRulerTool();
|
|
1858
|
+
return this.emitToolTrigger({
|
|
1859
|
+
tool: t,
|
|
1860
|
+
source: r,
|
|
1861
|
+
groupId: e.groupId,
|
|
1862
|
+
handled: n,
|
|
1863
|
+
error: n ? void 0 : "Ruler control is not available"
|
|
1864
|
+
}), n;
|
|
1865
|
+
}
|
|
1866
|
+
const a = this.findLeafletDrawHandler(t);
|
|
1867
|
+
return !a || typeof a.enable != "function" ? (this.emitToolTrigger({
|
|
1868
|
+
tool: t,
|
|
1869
|
+
source: r,
|
|
1870
|
+
groupId: e.groupId,
|
|
1871
|
+
handled: !1,
|
|
1872
|
+
error: `Tool "${t}" is not available on this map`
|
|
1873
|
+
}), !1) : (a.enable(), this.emitToolTrigger({
|
|
1874
|
+
tool: t,
|
|
1875
|
+
source: r,
|
|
1876
|
+
groupId: e.groupId,
|
|
1877
|
+
handled: !0
|
|
1878
|
+
}), !0);
|
|
1879
|
+
} catch (a) {
|
|
1880
|
+
const n = `Failed to activate tool "${t}"`;
|
|
1881
|
+
return this._error(n, a), this.emitToolTrigger({
|
|
1882
|
+
tool: t,
|
|
1883
|
+
source: r,
|
|
1884
|
+
groupId: e.groupId,
|
|
1885
|
+
handled: !1,
|
|
1886
|
+
error: a instanceof Error ? a.message : n
|
|
1887
|
+
}), !1;
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
triggerTool(t, e = {}) {
|
|
1891
|
+
return this.activateTool(t, e);
|
|
1892
|
+
}
|
|
1893
|
+
deactivateTool(t = {}) {
|
|
1894
|
+
var r;
|
|
1895
|
+
const e = (r = t.source) != null ? r : "api";
|
|
1896
|
+
try {
|
|
1897
|
+
return this.disableActiveToolHandlers(), this.toggleMeasurementModal(!1), this.emitToolTrigger({
|
|
1898
|
+
tool: "select",
|
|
1899
|
+
source: e,
|
|
1900
|
+
groupId: t.groupId,
|
|
1901
|
+
handled: !0
|
|
1902
|
+
}), !0;
|
|
1903
|
+
} catch (o) {
|
|
1904
|
+
const a = "Failed to deactivate active map tools";
|
|
1905
|
+
return this._error(a, o), this.emitToolTrigger({
|
|
1906
|
+
tool: "select",
|
|
1907
|
+
source: e,
|
|
1908
|
+
groupId: t.groupId,
|
|
1909
|
+
handled: !1,
|
|
1910
|
+
error: o instanceof Error ? o.message : a
|
|
1911
|
+
}), !1;
|
|
1912
|
+
}
|
|
1398
1913
|
}
|
|
1399
1914
|
resolveLeaflet(t) {
|
|
1400
1915
|
if (!t.useExternalLeaflet)
|
|
1401
|
-
return
|
|
1402
|
-
if (t.leaflet &&
|
|
1916
|
+
return x;
|
|
1917
|
+
if (t.leaflet && q(t.leaflet))
|
|
1403
1918
|
return this.logger.debug("leaflet-runtime:external-injected"), t.leaflet;
|
|
1404
|
-
const
|
|
1405
|
-
return
|
|
1919
|
+
const r = globalThis.L;
|
|
1920
|
+
return r && q(r) ? (this.logger.debug("leaflet-runtime:external-global"), r) : (this.logger.warn("leaflet-runtime:external-fallback-bundled", {
|
|
1406
1921
|
message: "External Leaflet requested but Draw APIs were missing; falling back to bundled Leaflet/Draw"
|
|
1407
|
-
}),
|
|
1922
|
+
}), x);
|
|
1408
1923
|
}
|
|
1409
1924
|
// ---------------- Lifecycle ----------------
|
|
1410
1925
|
async init() {
|
|
1411
|
-
var e,
|
|
1412
|
-
const t = (
|
|
1926
|
+
var e, r, o, a, n, s;
|
|
1927
|
+
const t = (r = (e = performance.now) == null ? void 0 : e.call(performance)) != null ? r : Date.now();
|
|
1413
1928
|
try {
|
|
1414
1929
|
await this.destroy();
|
|
1415
1930
|
const {
|
|
1416
1931
|
latitude: l,
|
|
1417
1932
|
longitude: c,
|
|
1418
1933
|
zoom: d,
|
|
1419
|
-
minZoom:
|
|
1934
|
+
minZoom: h,
|
|
1420
1935
|
maxZoom: p,
|
|
1421
|
-
tileUrl:
|
|
1422
|
-
tileAttribution:
|
|
1423
|
-
preferCanvas:
|
|
1936
|
+
tileUrl: g,
|
|
1937
|
+
tileAttribution: m,
|
|
1938
|
+
preferCanvas: f = !0,
|
|
1424
1939
|
// Default to Canvas rendering for better performance
|
|
1425
|
-
useExternalLeaflet:
|
|
1426
|
-
} = this.options.map,
|
|
1427
|
-
|
|
1428
|
-
onError: (
|
|
1429
|
-
}), this.map =
|
|
1940
|
+
useExternalLeaflet: A
|
|
1941
|
+
} = this.options.map, w = [l, c], y = this.L;
|
|
1942
|
+
A && q(y, {
|
|
1943
|
+
onError: (M) => this.logger.warn("external-leaflet-missing-draw", { message: M })
|
|
1944
|
+
}), this.map = y.map(this.container, {
|
|
1430
1945
|
zoomControl: !0,
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1946
|
+
minZoom: h,
|
|
1947
|
+
preferCanvas: f
|
|
1948
|
+
}).setView(w, d), this.setTileLayer(
|
|
1949
|
+
{
|
|
1950
|
+
urlTemplate: g,
|
|
1951
|
+
attribution: m != null ? m : "",
|
|
1952
|
+
maxZoom: p
|
|
1953
|
+
},
|
|
1954
|
+
{
|
|
1955
|
+
onTileError: (M) => {
|
|
1956
|
+
var C, O;
|
|
1957
|
+
(O = (C = this.options.callbacks) == null ? void 0 : C.onTileError) == null || O.call(C, M);
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
), this.drawnItems = y.featureGroup().addTo(this.map);
|
|
1961
|
+
const b = this.buildDrawOptions(
|
|
1438
1962
|
this.options.controls,
|
|
1439
1963
|
!!this.options.readOnly
|
|
1440
|
-
),
|
|
1441
|
-
this.drawControl = new
|
|
1442
|
-
available: typeof
|
|
1443
|
-
}), typeof
|
|
1964
|
+
), v = y.Control.Draw;
|
|
1965
|
+
this.drawControl = new v(b), this.map.addControl(this.drawControl), this.applyLayerCakeToolbarIcon(), this.applyMoveToolbarIcon(), this.restoreVisibleLayersFromStore(), this.options.controls.ruler && (this.logger.debug("init:ruler", {
|
|
1966
|
+
available: typeof y.control.ruler == "function"
|
|
1967
|
+
}), typeof y.control.ruler == "function" ? (this.addRulerControl(), this.installMeasurementSettingsControl()) : this.logger.warn("init:ruler:missing", {
|
|
1444
1968
|
msg: "L.control.ruler is not defined"
|
|
1445
|
-
})), this.patchLeafletDrawBugs(), this.installPolygonFinishPatch(), this.map.invalidateSize(), setTimeout(() => {
|
|
1446
|
-
var
|
|
1969
|
+
})), this.applyToolButtonCustomizations(), this.patchLeafletDrawBugs(), this.installPolygonFinishPatch(), this.installVertexEditSurfaceMenu(), this.map.invalidateSize(), setTimeout(() => {
|
|
1970
|
+
var M;
|
|
1447
1971
|
try {
|
|
1448
|
-
(
|
|
1972
|
+
(M = this.map) == null || M.invalidateSize();
|
|
1449
1973
|
} catch {
|
|
1450
1974
|
}
|
|
1451
1975
|
}, 0), this.bindDrawEvents();
|
|
1452
|
-
const
|
|
1453
|
-
this.logger.debug("init:ready", { elapsedMs: Math.round(
|
|
1976
|
+
const E = ((a = (o = performance.now) == null ? void 0 : o.call(performance)) != null ? a : Date.now()) - t;
|
|
1977
|
+
this.logger.debug("init:ready", { elapsedMs: Math.round(E) });
|
|
1454
1978
|
const k = this.store.bounds();
|
|
1455
|
-
(
|
|
1979
|
+
(s = (n = this.options.callbacks) == null ? void 0 : n.onReady) == null || s.call(n, k ? { bounds: k } : {});
|
|
1456
1980
|
} catch (l) {
|
|
1457
1981
|
this._error("Failed to initialize Leaflet map", l);
|
|
1458
1982
|
}
|
|
1459
1983
|
}
|
|
1460
1984
|
async destroy() {
|
|
1461
|
-
var t, e, o;
|
|
1985
|
+
var t, e, r, o;
|
|
1462
1986
|
try {
|
|
1463
|
-
this.map && (this.map.off(), this.map.remove());
|
|
1464
|
-
} catch (
|
|
1465
|
-
this._error("Failed to remove Leaflet map",
|
|
1987
|
+
j(this.container, null, { toolbarGroups: null }), this.map && (this.map.off(), this.map.remove());
|
|
1988
|
+
} catch (a) {
|
|
1989
|
+
this._error("Failed to remove Leaflet map", a);
|
|
1466
1990
|
}
|
|
1467
1991
|
try {
|
|
1468
1992
|
(t = this.detachPolygonFinishPatch) == null || t.call(this);
|
|
@@ -1474,6 +1998,11 @@ class yt {
|
|
|
1474
1998
|
} catch {
|
|
1475
1999
|
}
|
|
1476
2000
|
this.vertexMenuEl = null, this.vertexMenuCleanup = null;
|
|
2001
|
+
try {
|
|
2002
|
+
(r = this.vertexEditSurfaceCleanup) == null || r.call(this);
|
|
2003
|
+
} catch {
|
|
2004
|
+
}
|
|
2005
|
+
this.vertexEditSurfaceCleanup = null;
|
|
1477
2006
|
try {
|
|
1478
2007
|
this.hideMoveConfirmationUI();
|
|
1479
2008
|
} catch {
|
|
@@ -1492,14 +2021,10 @@ class yt {
|
|
|
1492
2021
|
async loadGeoJSON(t, e = !1) {
|
|
1493
2022
|
if (!this.map || !this.drawnItems) return;
|
|
1494
2023
|
await this.clearLayers();
|
|
1495
|
-
const
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
n._fid = (l = r[i]) != null ? l : r[r.length - 1], this.drawnItems.addLayer(n), this.installVertexContextMenu(n), i++;
|
|
1500
|
-
}), this.logger.debug("loadGeoJSON", {
|
|
1501
|
-
count: o.features.length,
|
|
1502
|
-
ids: r
|
|
2024
|
+
const r = pe(t), o = this.store.add(r), a = this.createGeoJSONLayers(r);
|
|
2025
|
+
this.addGeoJSONLayersToDrawnItems(a), this.logger.debug("loadGeoJSON", {
|
|
2026
|
+
count: r.features.length,
|
|
2027
|
+
ids: o
|
|
1503
2028
|
}), e && await this.fitBoundsToData();
|
|
1504
2029
|
}
|
|
1505
2030
|
async clearLayers() {
|
|
@@ -1507,15 +2032,23 @@ class yt {
|
|
|
1507
2032
|
}
|
|
1508
2033
|
async addFeatures(t) {
|
|
1509
2034
|
if (!this.map || !this.drawnItems) return [];
|
|
1510
|
-
const e =
|
|
1511
|
-
|
|
1512
|
-
return r.eachLayer((i) => {
|
|
1513
|
-
var n;
|
|
1514
|
-
i._fid = (n = o[a]) != null ? n : o[o.length - 1], this.drawnItems.addLayer(i), this.installVertexContextMenu(i), a++;
|
|
1515
|
-
}), o;
|
|
2035
|
+
const e = pe(t), r = this.store.add(e), o = this.createGeoJSONLayers(e);
|
|
2036
|
+
return this.addGeoJSONLayersToDrawnItems(o), r;
|
|
1516
2037
|
}
|
|
1517
2038
|
async updateFeature(t, e) {
|
|
1518
|
-
this.store.
|
|
2039
|
+
if (!this.store.has(t)) {
|
|
2040
|
+
this.logger.warn("updateFeature:missing", { id: t });
|
|
2041
|
+
return;
|
|
2042
|
+
}
|
|
2043
|
+
if (this.store.update(t, e), !this.drawnItems) return;
|
|
2044
|
+
this.drawnItems.eachLayer((o) => {
|
|
2045
|
+
o._fid === t && this.drawnItems.removeLayer(o);
|
|
2046
|
+
}), this.createGeoJSONLayers({
|
|
2047
|
+
type: "FeatureCollection",
|
|
2048
|
+
features: [{ ...e, id: t }]
|
|
2049
|
+
}).eachLayer((o) => {
|
|
2050
|
+
o._fid = t, this.drawnItems.addLayer(o), this.installVertexContextMenu(o);
|
|
2051
|
+
});
|
|
1519
2052
|
}
|
|
1520
2053
|
async removeFeature(t) {
|
|
1521
2054
|
this.drawnItems && this.drawnItems.eachLayer((e) => {
|
|
@@ -1527,30 +2060,30 @@ class yt {
|
|
|
1527
2060
|
if (!this.map) return;
|
|
1528
2061
|
const e = this.store.bounds();
|
|
1529
2062
|
if (!e) return;
|
|
1530
|
-
const
|
|
2063
|
+
const r = e, o = this.L.latLngBounds(r);
|
|
1531
2064
|
if (t > 0) {
|
|
1532
|
-
const a =
|
|
1533
|
-
this.L.latLng(a.lat -
|
|
1534
|
-
this.L.latLng(
|
|
2065
|
+
const a = o.getSouthWest(), n = o.getNorthEast(), s = (n.lat - a.lat) * t, l = (n.lng - a.lng) * t, c = this.L.latLngBounds(
|
|
2066
|
+
this.L.latLng(a.lat - s, a.lng - l),
|
|
2067
|
+
this.L.latLng(n.lat + s, n.lng + l)
|
|
1535
2068
|
);
|
|
1536
2069
|
this.map.fitBounds(c);
|
|
1537
2070
|
} else
|
|
1538
|
-
this.map.fitBounds(
|
|
2071
|
+
this.map.fitBounds(o);
|
|
1539
2072
|
}
|
|
1540
2073
|
async fitBounds(t, e = 0.05) {
|
|
1541
2074
|
if (!this.map) return;
|
|
1542
|
-
const
|
|
2075
|
+
const r = this.L.latLngBounds(t);
|
|
1543
2076
|
if (e > 0) {
|
|
1544
|
-
const
|
|
1545
|
-
this.L.latLng(
|
|
1546
|
-
this.L.latLng(a.lat +
|
|
2077
|
+
const o = r.getSouthWest(), a = r.getNorthEast(), n = (a.lat - o.lat) * e, s = (a.lng - o.lng) * e, l = this.L.latLngBounds(
|
|
2078
|
+
this.L.latLng(o.lat - n, o.lng - s),
|
|
2079
|
+
this.L.latLng(a.lat + n, a.lng + s)
|
|
1547
2080
|
);
|
|
1548
2081
|
this.map.fitBounds(l);
|
|
1549
2082
|
} else
|
|
1550
|
-
this.map.fitBounds(
|
|
2083
|
+
this.map.fitBounds(r);
|
|
1551
2084
|
}
|
|
1552
|
-
async setView(t, e,
|
|
1553
|
-
this.map && this.map.setView([t, e],
|
|
2085
|
+
async setView(t, e, r) {
|
|
2086
|
+
this.map && this.map.setView([t, e], r != null ? r : this.map.getZoom());
|
|
1554
2087
|
}
|
|
1555
2088
|
setTileLayer(t, e) {
|
|
1556
2089
|
if (!this.map) {
|
|
@@ -1565,21 +2098,21 @@ class yt {
|
|
|
1565
2098
|
maxZoom: t.maxZoom,
|
|
1566
2099
|
subdomains: t.subdomains
|
|
1567
2100
|
}), this.tileLayer && (this.map.removeLayer(this.tileLayer), this.tileLayer = null);
|
|
1568
|
-
const
|
|
2101
|
+
const r = {
|
|
1569
2102
|
attribution: t.attribution,
|
|
1570
2103
|
minZoom: this.options.map.minZoom,
|
|
1571
2104
|
maxZoom: t.maxZoom
|
|
1572
2105
|
};
|
|
1573
|
-
t.subdomains !== void 0 ?
|
|
1574
|
-
const
|
|
2106
|
+
t.subdomains !== void 0 ? r.subdomains = t.subdomains : t.urlTemplate.includes("{s}") && (r.subdomains = ["a", "b", "c"]);
|
|
2107
|
+
const o = this.L.tileLayer(
|
|
1575
2108
|
t.urlTemplate,
|
|
1576
|
-
|
|
2109
|
+
r
|
|
1577
2110
|
);
|
|
1578
2111
|
let a = !1;
|
|
1579
|
-
|
|
1580
|
-
var
|
|
1581
|
-
this.logger.error("tile-layer:error", { error:
|
|
1582
|
-
}),
|
|
2112
|
+
o.on("tileerror", (n) => {
|
|
2113
|
+
var s;
|
|
2114
|
+
this.logger.error("tile-layer:error", { error: n }), a || (a = !0, (s = e == null ? void 0 : e.onTileError) == null || s.call(e, n));
|
|
2115
|
+
}), o.addTo(this.map), this.tileLayer = o;
|
|
1583
2116
|
}
|
|
1584
2117
|
/**
|
|
1585
2118
|
* Merge all visible polygon features into a single polygon feature.
|
|
@@ -1590,39 +2123,44 @@ class yt {
|
|
|
1590
2123
|
*/
|
|
1591
2124
|
async mergeVisiblePolygons(t) {
|
|
1592
2125
|
if (!this.map || !this.drawnItems) return null;
|
|
1593
|
-
const
|
|
1594
|
-
const l =
|
|
1595
|
-
return l && (
|
|
2126
|
+
const r = (await this.getGeoJSON()).features.filter((s) => {
|
|
2127
|
+
const l = s.geometry;
|
|
2128
|
+
return l && (ke(l) || Ee(l));
|
|
1596
2129
|
});
|
|
1597
|
-
if (
|
|
1598
|
-
if (
|
|
1599
|
-
const
|
|
1600
|
-
return
|
|
2130
|
+
if (r.length <= 1) {
|
|
2131
|
+
if (r.length === 1) {
|
|
2132
|
+
const s = r[0].id;
|
|
2133
|
+
return s ? String(s) : null;
|
|
1601
2134
|
}
|
|
1602
2135
|
return null;
|
|
1603
2136
|
}
|
|
1604
|
-
const
|
|
1605
|
-
if (!
|
|
2137
|
+
const o = dt(r, t == null ? void 0 : t.properties);
|
|
2138
|
+
if (!o) return null;
|
|
1606
2139
|
const a = [];
|
|
1607
|
-
for (const
|
|
1608
|
-
const l =
|
|
2140
|
+
for (const s of r) {
|
|
2141
|
+
const l = s.id;
|
|
1609
2142
|
l && a.push(String(l));
|
|
1610
2143
|
}
|
|
1611
|
-
for (const
|
|
1612
|
-
await this.removeFeature(
|
|
1613
|
-
const [
|
|
2144
|
+
for (const s of a)
|
|
2145
|
+
await this.removeFeature(s);
|
|
2146
|
+
const [n] = await this.addFeatures({
|
|
1614
2147
|
type: "FeatureCollection",
|
|
1615
|
-
features: [
|
|
2148
|
+
features: [o]
|
|
1616
2149
|
});
|
|
1617
|
-
return
|
|
2150
|
+
return n || null;
|
|
1618
2151
|
}
|
|
1619
2152
|
setRulerUnits(t) {
|
|
1620
|
-
|
|
2153
|
+
if (this.measurementSystem === t) return;
|
|
2154
|
+
const e = this.measurementSystem;
|
|
2155
|
+
this.measurementSystem = t, this.logger.debug("ruler:units", { system: t }), this.emitToolEvent("tool:ruler:units-changed", {
|
|
2156
|
+
previous: e,
|
|
2157
|
+
current: t
|
|
2158
|
+
}), this.syncMeasurementModalState(), this.rebuildRulerControl();
|
|
1621
2159
|
}
|
|
1622
2160
|
// ---------------- Internals ----------------
|
|
1623
2161
|
buildDrawOptions(t, e) {
|
|
1624
2162
|
var a;
|
|
1625
|
-
const
|
|
2163
|
+
const r = {
|
|
1626
2164
|
polygon: t.polygon ? {
|
|
1627
2165
|
allowIntersection: (a = this.options.map.polygonAllowIntersection) != null ? a : !1,
|
|
1628
2166
|
// Disallow self-intersections by default
|
|
@@ -1655,18 +2193,164 @@ class yt {
|
|
|
1655
2193
|
fillOpacity: 0.2
|
|
1656
2194
|
}
|
|
1657
2195
|
} : !1,
|
|
1658
|
-
marker: t.marker ?
|
|
2196
|
+
marker: t.marker ? this.buildMarkerDrawOptions() : !1,
|
|
1659
2197
|
move: t.move ? {
|
|
1660
2198
|
featureGroup: this.drawnItems
|
|
1661
2199
|
} : !1
|
|
1662
2200
|
};
|
|
1663
|
-
let
|
|
2201
|
+
let o = {
|
|
1664
2202
|
featureGroup: this.drawnItems
|
|
1665
2203
|
};
|
|
1666
|
-
return t.edit ? t.delete === !1 && (
|
|
2204
|
+
return t.edit ? t.delete === !1 && (o.remove = !1) : o = !1, e ? {
|
|
1667
2205
|
draw: !1,
|
|
1668
2206
|
edit: !1
|
|
1669
|
-
} : { draw:
|
|
2207
|
+
} : { draw: r, edit: o };
|
|
2208
|
+
}
|
|
2209
|
+
buildMarkerDrawOptions() {
|
|
2210
|
+
return this.markerIcon ? { icon: this.markerIcon } : {};
|
|
2211
|
+
}
|
|
2212
|
+
createMarkerIcon(t) {
|
|
2213
|
+
return t ? this.L.icon({
|
|
2214
|
+
iconUrl: t.iconUrl,
|
|
2215
|
+
iconRetinaUrl: t.iconRetinaUrl,
|
|
2216
|
+
shadowUrl: t.shadowUrl,
|
|
2217
|
+
iconSize: t.iconSize,
|
|
2218
|
+
iconAnchor: t.iconAnchor,
|
|
2219
|
+
popupAnchor: t.popupAnchor
|
|
2220
|
+
}) : null;
|
|
2221
|
+
}
|
|
2222
|
+
createDefaultMarkerIcon() {
|
|
2223
|
+
var e;
|
|
2224
|
+
const t = (e = this.L.Icon) == null ? void 0 : e.Default;
|
|
2225
|
+
return t ? new t() : null;
|
|
2226
|
+
}
|
|
2227
|
+
createGeoJSONLayers(t) {
|
|
2228
|
+
return this.L.geoJSON(t, {
|
|
2229
|
+
pointToLayer: (e, r) => this.markerIcon ? this.L.marker(r, { icon: this.markerIcon }) : this.L.marker(r),
|
|
2230
|
+
onEachFeature: (e, r) => {
|
|
2231
|
+
const o = se(e);
|
|
2232
|
+
o && (r._fid = o);
|
|
2233
|
+
}
|
|
2234
|
+
});
|
|
2235
|
+
}
|
|
2236
|
+
addGeoJSONLayersToDrawnItems(t) {
|
|
2237
|
+
this.drawnItems && t.eachLayer((e) => {
|
|
2238
|
+
this.drawnItems.addLayer(e), this.installVertexContextMenu(e);
|
|
2239
|
+
});
|
|
2240
|
+
}
|
|
2241
|
+
restoreVisibleLayersFromStore() {
|
|
2242
|
+
if (!this.drawnItems)
|
|
2243
|
+
return;
|
|
2244
|
+
const t = this.store.toFeatureCollection();
|
|
2245
|
+
if (t.features.length === 0)
|
|
2246
|
+
return;
|
|
2247
|
+
const e = this.createGeoJSONLayers(t);
|
|
2248
|
+
this.addGeoJSONLayersToDrawnItems(e);
|
|
2249
|
+
}
|
|
2250
|
+
syncDrawMarkerOptions() {
|
|
2251
|
+
var r, o, a, n;
|
|
2252
|
+
const t = this.drawControl;
|
|
2253
|
+
if (!t)
|
|
2254
|
+
return;
|
|
2255
|
+
const e = this.buildMarkerDrawOptions();
|
|
2256
|
+
(r = t.options) != null || (t.options = {}), (a = (o = t.options).draw) != null || (o.draw = {}), t.options.draw.marker = e, (n = t.setDrawingOptions) == null || n.call(t, { marker: e });
|
|
2257
|
+
}
|
|
2258
|
+
reapplyMarkerIconsToExistingLayers() {
|
|
2259
|
+
if (!this.drawnItems)
|
|
2260
|
+
return;
|
|
2261
|
+
const t = this.markerIcon ? null : this.createDefaultMarkerIcon();
|
|
2262
|
+
this.drawnItems.eachLayer((e) => {
|
|
2263
|
+
if (!(typeof (e == null ? void 0 : e.setIcon) != "function" || typeof (e == null ? void 0 : e.getLatLng) != "function")) {
|
|
2264
|
+
if (this.markerIcon) {
|
|
2265
|
+
e.setIcon(this.markerIcon);
|
|
2266
|
+
return;
|
|
2267
|
+
}
|
|
2268
|
+
t && e.setIcon(t);
|
|
2269
|
+
}
|
|
2270
|
+
});
|
|
2271
|
+
}
|
|
2272
|
+
applyToolButtonCustomizations() {
|
|
2273
|
+
j(this.container, this.toolButtonConfig, {
|
|
2274
|
+
toolbarGroups: this.toolbarGroups,
|
|
2275
|
+
onTrigger: (t, e) => {
|
|
2276
|
+
if (e.activate) {
|
|
2277
|
+
this.activateTool(t, {
|
|
2278
|
+
source: e.source,
|
|
2279
|
+
groupId: e.groupId
|
|
2280
|
+
});
|
|
2281
|
+
return;
|
|
2282
|
+
}
|
|
2283
|
+
this.emitToolTrigger({
|
|
2284
|
+
tool: t,
|
|
2285
|
+
source: e.source,
|
|
2286
|
+
groupId: e.groupId,
|
|
2287
|
+
handled: !0
|
|
2288
|
+
});
|
|
2289
|
+
}
|
|
2290
|
+
}), setTimeout(() => {
|
|
2291
|
+
j(this.container, this.toolButtonConfig, {
|
|
2292
|
+
toolbarGroups: this.toolbarGroups,
|
|
2293
|
+
onTrigger: (t, e) => {
|
|
2294
|
+
if (e.activate) {
|
|
2295
|
+
this.activateTool(t, {
|
|
2296
|
+
source: e.source,
|
|
2297
|
+
groupId: e.groupId
|
|
2298
|
+
});
|
|
2299
|
+
return;
|
|
2300
|
+
}
|
|
2301
|
+
this.emitToolTrigger({
|
|
2302
|
+
tool: t,
|
|
2303
|
+
source: e.source,
|
|
2304
|
+
groupId: e.groupId,
|
|
2305
|
+
handled: !0
|
|
2306
|
+
});
|
|
2307
|
+
}
|
|
2308
|
+
});
|
|
2309
|
+
}, 0);
|
|
2310
|
+
}
|
|
2311
|
+
emitToolTrigger(t) {
|
|
2312
|
+
var e, r;
|
|
2313
|
+
(r = (e = this.options.callbacks) == null ? void 0 : e.onToolTrigger) == null || r.call(e, {
|
|
2314
|
+
...t,
|
|
2315
|
+
timestamp: Date.now()
|
|
2316
|
+
});
|
|
2317
|
+
}
|
|
2318
|
+
findLeafletDrawHandler(t) {
|
|
2319
|
+
var n, s, l, c, d, h, p, g, m, f;
|
|
2320
|
+
const e = {
|
|
2321
|
+
polygon: "polygon",
|
|
2322
|
+
polyline: "polyline",
|
|
2323
|
+
rectangle: "rectangle",
|
|
2324
|
+
circle: "circle",
|
|
2325
|
+
marker: "marker",
|
|
2326
|
+
layerCake: "cake",
|
|
2327
|
+
move: "move"
|
|
2328
|
+
}, r = {
|
|
2329
|
+
edit: "edit",
|
|
2330
|
+
delete: "remove"
|
|
2331
|
+
}, o = e[t];
|
|
2332
|
+
if (o)
|
|
2333
|
+
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 a = r[t];
|
|
2335
|
+
return a ? (f = (m = (g = (p = (h = this.drawControl) == null ? void 0 : h._toolbars) == null ? void 0 : p.edit) == null ? void 0 : g._modes) == null ? void 0 : m[a]) == null ? void 0 : f.handler : null;
|
|
2336
|
+
}
|
|
2337
|
+
disableActiveToolHandlers() {
|
|
2338
|
+
var e;
|
|
2339
|
+
const t = (e = this.drawControl) == null ? void 0 : e._toolbars;
|
|
2340
|
+
t && Object.values(t).forEach((r) => {
|
|
2341
|
+
var o;
|
|
2342
|
+
Object.values((o = r == null ? void 0 : r._modes) != null ? o : {}).forEach((a) => {
|
|
2343
|
+
const n = a == null ? void 0 : a.handler;
|
|
2344
|
+
n && typeof n.disable == "function" && n.disable();
|
|
2345
|
+
});
|
|
2346
|
+
});
|
|
2347
|
+
}
|
|
2348
|
+
triggerRulerTool() {
|
|
2349
|
+
const t = this.rulerControl;
|
|
2350
|
+
if (typeof (t == null ? void 0 : t._toggleMeasure) == "function")
|
|
2351
|
+
return t._toggleMeasure(), !0;
|
|
2352
|
+
const e = this.container.querySelector(".leaflet-ruler");
|
|
2353
|
+
return e ? (e.click(), !0) : !1;
|
|
1670
2354
|
}
|
|
1671
2355
|
applyLayerCakeToolbarIcon() {
|
|
1672
2356
|
if (!this.container) return;
|
|
@@ -1676,12 +2360,12 @@ class yt {
|
|
|
1676
2360
|
);
|
|
1677
2361
|
if (!e) return;
|
|
1678
2362
|
e.style.setProperty("background-image", "none", "important"), e.style.setProperty("background-color", "#fff", "important"), e.style.setProperty("position", "relative", "important");
|
|
1679
|
-
let
|
|
2363
|
+
let r = e.querySelector(
|
|
1680
2364
|
".leaflet-geokit-cake-icon"
|
|
1681
2365
|
);
|
|
1682
|
-
|
|
1683
|
-
const
|
|
1684
|
-
|
|
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 = Zt);
|
|
2367
|
+
const o = r.firstElementChild;
|
|
2368
|
+
o && (o.style.setProperty("width", "100%", "important"), o.style.setProperty("height", "100%", "important"), o.style.setProperty("display", "block", "important"));
|
|
1685
2369
|
};
|
|
1686
2370
|
t(), setTimeout(t, 0);
|
|
1687
2371
|
}
|
|
@@ -1693,12 +2377,12 @@ class yt {
|
|
|
1693
2377
|
);
|
|
1694
2378
|
if (!e) return;
|
|
1695
2379
|
e.style.setProperty("background-image", "none", "important"), e.style.setProperty("background-color", "#fff", "important"), e.style.setProperty("position", "relative", "important");
|
|
1696
|
-
let
|
|
2380
|
+
let r = e.querySelector(
|
|
1697
2381
|
".leaflet-geokit-move-icon"
|
|
1698
2382
|
);
|
|
1699
|
-
|
|
1700
|
-
const
|
|
1701
|
-
|
|
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 = jt);
|
|
2384
|
+
const o = r.firstElementChild;
|
|
2385
|
+
o && (o.style.setProperty("width", "100%", "important"), o.style.setProperty("height", "100%", "important"), o.style.setProperty("display", "block", "important"));
|
|
1702
2386
|
};
|
|
1703
2387
|
t(), setTimeout(t, 0);
|
|
1704
2388
|
}
|
|
@@ -1706,33 +2390,33 @@ class yt {
|
|
|
1706
2390
|
addRulerControl() {
|
|
1707
2391
|
if (!this.map) return;
|
|
1708
2392
|
this.installRulerPrecisionPatch();
|
|
1709
|
-
const t =
|
|
2393
|
+
const t = rr(this.measurementSystem);
|
|
1710
2394
|
this.rulerControl = this.L.control.ruler(t), this.map.addControl(this.rulerControl);
|
|
1711
2395
|
}
|
|
1712
2396
|
installRulerPrecisionPatch() {
|
|
1713
|
-
if (
|
|
2397
|
+
if (Ae) return;
|
|
1714
2398
|
const t = this.L.Control.Ruler;
|
|
1715
2399
|
if (!t || typeof t != "function") return;
|
|
1716
|
-
const e = t.prototype,
|
|
1717
|
-
if (typeof
|
|
1718
|
-
const
|
|
2400
|
+
const e = t.prototype, r = e._calculateBearingAndDistance;
|
|
2401
|
+
if (typeof r != "function") return;
|
|
2402
|
+
const o = this.logger;
|
|
1719
2403
|
e._calculateBearingAndDistance = function() {
|
|
1720
|
-
var
|
|
1721
|
-
|
|
2404
|
+
var n, s, l;
|
|
2405
|
+
r.call(this);
|
|
1722
2406
|
try {
|
|
1723
|
-
const c = this._clickedLatLong, d = (
|
|
2407
|
+
const c = this._clickedLatLong, d = (n = this._movingLatLong) != null ? n : this._clickedLatLong;
|
|
1724
2408
|
if (!c || !d) return;
|
|
1725
|
-
const { meters:
|
|
2409
|
+
const { meters: h, bearingDegrees: p } = Qt(
|
|
1726
2410
|
c.lat,
|
|
1727
2411
|
c.lng,
|
|
1728
2412
|
d.lat,
|
|
1729
2413
|
d.lng
|
|
1730
|
-
),
|
|
1731
|
-
this._result = this._result || {}, this._result.Distance =
|
|
2414
|
+
), g = h / 1e3, m = typeof ((l = (s = this.options) == null ? void 0 : s.lengthUnit) == null ? void 0 : l.factor) == "number" ? this.options.lengthUnit.factor : 1, f = ae(g * m);
|
|
2415
|
+
this._result = this._result || {}, this._result.Distance = f, this._result.Bearing = p, this._result.meters = h;
|
|
1732
2416
|
} catch (c) {
|
|
1733
|
-
|
|
2417
|
+
o == null || o.warn("ruler:precision-patch", c);
|
|
1734
2418
|
}
|
|
1735
|
-
},
|
|
2419
|
+
}, Ae = !0;
|
|
1736
2420
|
}
|
|
1737
2421
|
rebuildRulerControl() {
|
|
1738
2422
|
if (!(!this.map || !this.options.controls.ruler)) {
|
|
@@ -1753,17 +2437,17 @@ class yt {
|
|
|
1753
2437
|
const t = this, e = this.L.Control.extend({
|
|
1754
2438
|
options: { position: "topleft" },
|
|
1755
2439
|
onAdd() {
|
|
1756
|
-
const
|
|
2440
|
+
const r = t.L.DomUtil.create(
|
|
1757
2441
|
"div",
|
|
1758
2442
|
"leaflet-bar leaflet-ruler-settings-control"
|
|
1759
|
-
),
|
|
2443
|
+
), o = t.L.DomUtil.create(
|
|
1760
2444
|
"button",
|
|
1761
2445
|
"leaflet-ruler-settings-button",
|
|
1762
|
-
|
|
2446
|
+
r
|
|
1763
2447
|
);
|
|
1764
|
-
return
|
|
2448
|
+
return o.type = "button", o.title = "Measurement settings", o.setAttribute("aria-label", "Measurement settings"), o.addEventListener("click", (a) => {
|
|
1765
2449
|
a.preventDefault(), a.stopPropagation(), t.toggleMeasurementModal(!0);
|
|
1766
|
-
}), t.L.DomEvent.disableClickPropagation(
|
|
2450
|
+
}), t.L.DomEvent.disableClickPropagation(r), t.L.DomEvent.disableScrollPropagation(r), r;
|
|
1767
2451
|
}
|
|
1768
2452
|
});
|
|
1769
2453
|
this.measurementControl = new e(), this.map.addControl(this.measurementControl);
|
|
@@ -1779,10 +2463,10 @@ class yt {
|
|
|
1779
2463
|
e.className = "leaflet-ruler-modal", e.setAttribute("role", "dialog"), e.setAttribute("aria-modal", "true"), e.tabIndex = -1, t.addEventListener("click", (l) => {
|
|
1780
2464
|
l.target === t && this.toggleMeasurementModal(!1);
|
|
1781
2465
|
});
|
|
1782
|
-
const
|
|
1783
|
-
|
|
1784
|
-
const
|
|
1785
|
-
|
|
2466
|
+
const r = document.createElement("h2");
|
|
2467
|
+
r.className = "leaflet-ruler-modal-title", r.textContent = "Measurement Units", e.appendChild(r);
|
|
2468
|
+
const o = document.createElement("p");
|
|
2469
|
+
o.className = "leaflet-ruler-modal-description", o.textContent = "Choose how the measurement tool reports distances.", e.appendChild(o);
|
|
1786
2470
|
const a = document.createElement("div");
|
|
1787
2471
|
a.className = "leaflet-ruler-modal-options", e.appendChild(a), ["metric", "imperial"].forEach((l) => {
|
|
1788
2472
|
const c = document.createElement("label");
|
|
@@ -1791,23 +2475,23 @@ class yt {
|
|
|
1791
2475
|
d.type = "radio", d.name = "leaflet-ruler-units", d.value = l, d.addEventListener("change", () => {
|
|
1792
2476
|
d.checked && this.setRulerUnits(l);
|
|
1793
2477
|
});
|
|
1794
|
-
const
|
|
1795
|
-
|
|
2478
|
+
const h = document.createElement("span");
|
|
2479
|
+
h.textContent = or[l], c.appendChild(d), c.appendChild(h), a.appendChild(c), this.measurementModalRadios[l] = d;
|
|
1796
2480
|
});
|
|
1797
|
-
const
|
|
1798
|
-
|
|
1799
|
-
const
|
|
1800
|
-
return
|
|
2481
|
+
const n = document.createElement("div");
|
|
2482
|
+
n.className = "leaflet-ruler-modal-actions";
|
|
2483
|
+
const s = document.createElement("button");
|
|
2484
|
+
return s.type = "button", s.className = "leaflet-ruler-modal-close", s.textContent = "Close", s.addEventListener("click", () => this.toggleMeasurementModal(!1)), n.appendChild(s), e.appendChild(n), t.appendChild(e), this.container.appendChild(t), this.measurementModalOverlay = t, this.measurementModalDialog = e, this.syncMeasurementModalState(), t;
|
|
1801
2485
|
}
|
|
1802
2486
|
/* c8 ignore next */
|
|
1803
2487
|
toggleMeasurementModal(t) {
|
|
1804
|
-
var
|
|
2488
|
+
var r;
|
|
1805
2489
|
if (!t) {
|
|
1806
2490
|
this.measurementModalOverlay && (this.measurementModalOverlay.classList.remove("is-open"), this.measurementModalOverlay.setAttribute("aria-hidden", "true")), this.detachMeasurementModalKeydown();
|
|
1807
2491
|
return;
|
|
1808
2492
|
}
|
|
1809
2493
|
const e = this.ensureMeasurementModal();
|
|
1810
|
-
e.classList.add("is-open"), e.setAttribute("aria-hidden", "false"), this.syncMeasurementModalState(), this.attachMeasurementModalKeydown(), (
|
|
2494
|
+
e.classList.add("is-open"), e.setAttribute("aria-hidden", "false"), this.syncMeasurementModalState(), this.attachMeasurementModalKeydown(), (r = this.measurementModalDialog) == null || r.focus();
|
|
1811
2495
|
}
|
|
1812
2496
|
syncMeasurementModalState() {
|
|
1813
2497
|
for (const [t, e] of Object.entries(this.measurementModalRadios))
|
|
@@ -1838,28 +2522,28 @@ class yt {
|
|
|
1838
2522
|
* if the click is within a small pixel radius of the first vertex, it triggers finishShape().
|
|
1839
2523
|
*/
|
|
1840
2524
|
installPolygonFinishPatch() {
|
|
1841
|
-
var
|
|
2525
|
+
var n, s, l, c, d;
|
|
1842
2526
|
if (!this.map || !this.drawControl) return;
|
|
1843
2527
|
try {
|
|
1844
|
-
(
|
|
2528
|
+
(n = this.detachPolygonFinishPatch) == null || n.call(this);
|
|
1845
2529
|
} catch {
|
|
1846
2530
|
}
|
|
1847
2531
|
this.detachPolygonFinishPatch = null;
|
|
1848
|
-
const t = this.map, e = (l = (
|
|
2532
|
+
const t = this.map, e = (l = (s = this.drawControl) == null ? void 0 : s._toolbars) == null ? void 0 : l.draw;
|
|
1849
2533
|
if (!e || !!!((d = (c = e._modes) == null ? void 0 : c.polygon) != null && d.handler)) return;
|
|
1850
|
-
const
|
|
1851
|
-
var p,
|
|
2534
|
+
const o = 10, a = (h) => {
|
|
2535
|
+
var p, g, m, f, A, w, y, b;
|
|
1852
2536
|
try {
|
|
1853
|
-
const
|
|
1854
|
-
if (!
|
|
1855
|
-
const
|
|
1856
|
-
if (!Array.isArray(
|
|
1857
|
-
const k = (
|
|
2537
|
+
const v = (g = (p = e._modes) == null ? void 0 : p.polygon) == null ? void 0 : g.handler;
|
|
2538
|
+
if (!v || !v._enabled) return;
|
|
2539
|
+
const E = v._markers;
|
|
2540
|
+
if (!Array.isArray(E) || E.length < 3) return;
|
|
2541
|
+
const k = (f = (m = E[0]) == null ? void 0 : m.getLatLng) == null ? void 0 : f.call(m);
|
|
1858
2542
|
if (!k) return;
|
|
1859
|
-
const
|
|
1860
|
-
Math.hypot(
|
|
1861
|
-
} catch (
|
|
1862
|
-
this._error("polygon-finish-patch",
|
|
2543
|
+
const M = t.latLngToContainerPoint(k), C = t.latLngToContainerPoint(h.latlng);
|
|
2544
|
+
Math.hypot(M.x - C.x, M.y - C.y) <= o && typeof v._finishShape == "function" && ((w = (A = h.originalEvent) == null ? void 0 : A.preventDefault) == null || w.call(A), (b = (y = h.originalEvent) == null ? void 0 : y.stopPropagation) == null || b.call(y), v._finishShape());
|
|
2545
|
+
} catch (v) {
|
|
2546
|
+
this._error("polygon-finish-patch", v);
|
|
1863
2547
|
}
|
|
1864
2548
|
};
|
|
1865
2549
|
t.on("click", a), this.detachPolygonFinishPatch = () => {
|
|
@@ -1870,10 +2554,10 @@ class yt {
|
|
|
1870
2554
|
};
|
|
1871
2555
|
}
|
|
1872
2556
|
patchLeafletDrawBugs() {
|
|
1873
|
-
var t, e,
|
|
2557
|
+
var t, e, r, o, a;
|
|
1874
2558
|
try {
|
|
1875
|
-
const
|
|
1876
|
-
if (!
|
|
2559
|
+
const n = this.L, s = n.GeometryUtil;
|
|
2560
|
+
if (!s) return;
|
|
1877
2561
|
const l = {
|
|
1878
2562
|
km: 2,
|
|
1879
2563
|
ha: 2,
|
|
@@ -1883,34 +2567,34 @@ class yt {
|
|
|
1883
2567
|
yd: 0,
|
|
1884
2568
|
ft: 0,
|
|
1885
2569
|
nm: 2
|
|
1886
|
-
}, c = (e = (t =
|
|
1887
|
-
|
|
1888
|
-
var
|
|
1889
|
-
const
|
|
1890
|
-
let
|
|
1891
|
-
if (
|
|
1892
|
-
let
|
|
1893
|
-
const
|
|
1894
|
-
|
|
2570
|
+
}, c = (e = (t = s.formattedNumber) == null ? void 0 : t.bind(s)) != null ? e : ((d, h) => Number(d).toFixed(h));
|
|
2571
|
+
s.readableArea = (d, h, p) => {
|
|
2572
|
+
var f;
|
|
2573
|
+
const g = (f = n.Util) != null && f.extend ? n.Util.extend({}, l, p || {}) : { ...l, ...p || {} };
|
|
2574
|
+
let m;
|
|
2575
|
+
if (h) {
|
|
2576
|
+
let A = ["ha", "m"];
|
|
2577
|
+
const w = typeof h;
|
|
2578
|
+
w === "string" ? A = [h] : w !== "boolean" && (A = Array.isArray(h) ? h : 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²`;
|
|
1895
2579
|
} else
|
|
1896
|
-
d = d / 0.836127, d >= 3097600 ?
|
|
1897
|
-
return
|
|
2580
|
+
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
|
+
return m;
|
|
1898
2582
|
};
|
|
1899
|
-
} catch (
|
|
1900
|
-
this.logger.warn("leaflet-draw-patch:readableArea",
|
|
2583
|
+
} catch (n) {
|
|
2584
|
+
this.logger.warn("leaflet-draw-patch:readableArea", n);
|
|
1901
2585
|
}
|
|
1902
2586
|
try {
|
|
1903
|
-
const
|
|
1904
|
-
if (!((a =
|
|
1905
|
-
|
|
1906
|
-
var
|
|
1907
|
-
const p = this._moveMarker.getLatLng(),
|
|
1908
|
-
this._shape.setRadius(
|
|
2587
|
+
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 (!((a = s == null ? void 0 : s.prototype) != null && a._resize) || !l || !c) return;
|
|
2589
|
+
s.prototype._resize = function(h) {
|
|
2590
|
+
var m, f, A;
|
|
2591
|
+
const p = this._moveMarker.getLatLng(), g = c.isVersion07x() ? p.distanceTo(h) : this._map.distance(p, h);
|
|
2592
|
+
this._shape.setRadius(g);
|
|
1909
2593
|
try {
|
|
1910
|
-
(
|
|
1911
|
-
text:
|
|
1912
|
-
subtext:
|
|
1913
|
-
|
|
2594
|
+
(m = this._map) != null && m.editTooltip && ((A = (f = this._map) == null ? void 0 : f._editTooltip) != null && A.updateContent) && this._map._editTooltip.updateContent({
|
|
2595
|
+
text: n.drawLocal.edit.handlers.edit.tooltip.subtext + "<br />" + n.drawLocal.edit.handlers.edit.tooltip.text,
|
|
2596
|
+
subtext: n.drawLocal.draw.handlers.circle.radius + ": " + c.readableDistance(
|
|
2597
|
+
g,
|
|
1914
2598
|
!0,
|
|
1915
2599
|
this.options.feet,
|
|
1916
2600
|
this.options.nautic
|
|
@@ -1920,252 +2604,327 @@ class yt {
|
|
|
1920
2604
|
}
|
|
1921
2605
|
this._map.fire(l.EDITRESIZE, { layer: this._shape });
|
|
1922
2606
|
};
|
|
1923
|
-
} catch (
|
|
1924
|
-
this.logger.warn("leaflet-draw-patch:circle-resize",
|
|
2607
|
+
} catch (n) {
|
|
2608
|
+
this.logger.warn("leaflet-draw-patch:circle-resize", n);
|
|
1925
2609
|
}
|
|
1926
2610
|
}
|
|
1927
2611
|
bindDrawEvents() {
|
|
1928
2612
|
!this.map || !this.drawnItems || (this.map.on(this.L.Draw.Event.CREATED, (t) => {
|
|
1929
|
-
var e,
|
|
2613
|
+
var e, r, o;
|
|
1930
2614
|
try {
|
|
1931
|
-
const { layer: a, layerType:
|
|
1932
|
-
if (
|
|
2615
|
+
const { layer: a, layerType: n } = t;
|
|
2616
|
+
if (n === D.TYPE) {
|
|
1933
2617
|
try {
|
|
1934
2618
|
(e = this.activeCakeSession) == null || e.destroy();
|
|
1935
2619
|
} catch {
|
|
1936
2620
|
}
|
|
1937
|
-
this.activeCakeSession = new
|
|
2621
|
+
this.activeCakeSession = new Jt(
|
|
1938
2622
|
this.map,
|
|
1939
2623
|
a,
|
|
1940
|
-
(
|
|
2624
|
+
(h) => {
|
|
1941
2625
|
if (!this.drawnItems) return;
|
|
1942
|
-
const
|
|
1943
|
-
let
|
|
1944
|
-
|
|
1945
|
-
var w,
|
|
1946
|
-
const
|
|
1947
|
-
|
|
1948
|
-
id:
|
|
2626
|
+
const p = this.store.add(h), g = this.L.geoJSON(h);
|
|
2627
|
+
let m = 0;
|
|
2628
|
+
g.eachLayer((f) => {
|
|
2629
|
+
var w, y, b;
|
|
2630
|
+
const A = (w = p[m]) != null ? w : p[p.length - 1];
|
|
2631
|
+
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
|
+
id: A,
|
|
1949
2633
|
layerType: "polygon",
|
|
1950
|
-
geoJSON:
|
|
1951
|
-
}),
|
|
1952
|
-
}), this.activeCakeSession = null
|
|
2634
|
+
geoJSON: f.toGeoJSON()
|
|
2635
|
+
}), m++;
|
|
2636
|
+
}), this.activeCakeSession = null, this.emitToolEvent("tool:layer-cake:saved", {
|
|
2637
|
+
featureCollection: h
|
|
2638
|
+
});
|
|
1953
2639
|
},
|
|
1954
2640
|
this.measurementSystem
|
|
1955
|
-
)
|
|
2641
|
+
), this.emitToolEvent("tool:layer-cake:session-started", {
|
|
2642
|
+
center: a.getLatLng(),
|
|
2643
|
+
radius: a.getRadius()
|
|
2644
|
+
});
|
|
1956
2645
|
return;
|
|
1957
2646
|
}
|
|
1958
2647
|
this.drawnItems.addLayer(a);
|
|
1959
|
-
const
|
|
2648
|
+
const s = a.toGeoJSON(), c = this.store.add({
|
|
1960
2649
|
type: "FeatureCollection",
|
|
1961
|
-
features: [
|
|
2650
|
+
features: [s]
|
|
1962
2651
|
})[0];
|
|
1963
|
-
a._fid = c, this.installVertexContextMenu(a), (
|
|
2652
|
+
a._fid = c, this.installVertexContextMenu(a), (o = (r = this.options.callbacks) == null ? void 0 : r.onCreated) == null || o.call(r, { id: c, layerType: n, geoJSON: s });
|
|
2653
|
+
const d = ir[n];
|
|
2654
|
+
d && this.emitToolEvent(d, {
|
|
2655
|
+
id: c,
|
|
2656
|
+
geoJSON: s
|
|
2657
|
+
});
|
|
1964
2658
|
} catch (a) {
|
|
1965
2659
|
this._error("onCreated handler failed", a);
|
|
1966
2660
|
}
|
|
1967
2661
|
}), this.map.on(this.L.Draw.Event.EDITED, (t) => {
|
|
1968
|
-
var e,
|
|
2662
|
+
var e, r;
|
|
1969
2663
|
try {
|
|
1970
|
-
const
|
|
1971
|
-
t.layers.eachLayer((
|
|
1972
|
-
const
|
|
1973
|
-
if (
|
|
1974
|
-
this.store.update(
|
|
2664
|
+
const o = [];
|
|
2665
|
+
t.layers.eachLayer((s) => {
|
|
2666
|
+
const l = s.toGeoJSON(), c = s._fid;
|
|
2667
|
+
if (c)
|
|
2668
|
+
this.store.update(c, l), o.push(c);
|
|
1975
2669
|
else {
|
|
1976
|
-
const
|
|
2670
|
+
const d = this.store.add({
|
|
1977
2671
|
type: "FeatureCollection",
|
|
1978
|
-
features: [
|
|
2672
|
+
features: [l]
|
|
1979
2673
|
})[0];
|
|
1980
|
-
|
|
2674
|
+
s._fid = d, o.push(d);
|
|
1981
2675
|
}
|
|
1982
|
-
}), (o = (e = this.options.callbacks) == null ? void 0 : e.onEdited) == null || o.call(e, {
|
|
1983
|
-
ids: r,
|
|
1984
|
-
geoJSON: this.store.toFeatureCollection()
|
|
1985
2676
|
});
|
|
1986
|
-
|
|
1987
|
-
this.
|
|
2677
|
+
const n = this.store.toFeatureCollection();
|
|
2678
|
+
(r = (e = this.options.callbacks) == null ? void 0 : e.onEdited) == null || r.call(e, {
|
|
2679
|
+
ids: o,
|
|
2680
|
+
geoJSON: n
|
|
2681
|
+
}), this.emitToolEvent("tool:edit:applied", {
|
|
2682
|
+
ids: o,
|
|
2683
|
+
geoJSON: n
|
|
2684
|
+
});
|
|
2685
|
+
} catch (o) {
|
|
2686
|
+
this._error("onEdited handler failed", o);
|
|
1988
2687
|
}
|
|
1989
2688
|
}), this.map.on(this.L.Draw.Event.DELETED, (t) => {
|
|
1990
|
-
var e,
|
|
2689
|
+
var e, r;
|
|
1991
2690
|
try {
|
|
1992
|
-
const
|
|
1993
|
-
t.layers.eachLayer((
|
|
1994
|
-
const
|
|
1995
|
-
|
|
1996
|
-
}), (o = (e = this.options.callbacks) == null ? void 0 : e.onDeleted) == null || o.call(e, {
|
|
1997
|
-
ids: r,
|
|
1998
|
-
geoJSON: this.store.toFeatureCollection()
|
|
2691
|
+
const o = [];
|
|
2692
|
+
t.layers.eachLayer((s) => {
|
|
2693
|
+
const l = s._fid;
|
|
2694
|
+
l && (o.push(l), this.store.remove(l));
|
|
1999
2695
|
});
|
|
2000
|
-
|
|
2001
|
-
this.
|
|
2696
|
+
const n = this.store.toFeatureCollection();
|
|
2697
|
+
(r = (e = this.options.callbacks) == null ? void 0 : e.onDeleted) == null || r.call(e, {
|
|
2698
|
+
ids: o,
|
|
2699
|
+
geoJSON: n
|
|
2700
|
+
}), this.emitToolEvent("tool:delete:applied", {
|
|
2701
|
+
ids: o,
|
|
2702
|
+
geoJSON: n
|
|
2703
|
+
});
|
|
2704
|
+
} catch (o) {
|
|
2705
|
+
this._error("onDeleted handler failed", o);
|
|
2002
2706
|
}
|
|
2003
2707
|
}), this.map.on("draw:moveend", (t) => {
|
|
2708
|
+
var e;
|
|
2004
2709
|
try {
|
|
2005
|
-
this.
|
|
2006
|
-
|
|
2007
|
-
|
|
2710
|
+
this.emitToolEvent("tool:move:pending", {
|
|
2711
|
+
layerId: (e = t == null ? void 0 : t.layer) == null ? void 0 : e._fid,
|
|
2712
|
+
originalGeoJSON: t == null ? void 0 : t.originalGeoJSON,
|
|
2713
|
+
newGeoJSON: t == null ? void 0 : t.newGeoJSON
|
|
2714
|
+
}), this.showMoveConfirmationUI(t.layer);
|
|
2715
|
+
} catch (r) {
|
|
2716
|
+
this._error("draw:moveend handler failed", r);
|
|
2008
2717
|
}
|
|
2009
2718
|
}), this.map.on("draw:moveconfirmed", (t) => {
|
|
2010
|
-
var e, o;
|
|
2719
|
+
var e, r, o;
|
|
2011
2720
|
try {
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2721
|
+
this.emitToolEvent("tool:move:confirmed", {
|
|
2722
|
+
layerId: (e = t == null ? void 0 : t.layer) == null ? void 0 : e._fid,
|
|
2723
|
+
originalGeoJSON: t == null ? void 0 : t.originalGeoJSON,
|
|
2724
|
+
newGeoJSON: t == null ? void 0 : t.newGeoJSON
|
|
2725
|
+
});
|
|
2726
|
+
const a = t.layer, n = a._fid;
|
|
2727
|
+
if (n) {
|
|
2728
|
+
const s = a.toGeoJSON();
|
|
2729
|
+
this.store.update(n, s), (o = (r = this.options.callbacks) == null ? void 0 : r.onEdited) == null || o.call(r, {
|
|
2730
|
+
ids: [n],
|
|
2017
2731
|
geoJSON: this.store.toFeatureCollection()
|
|
2018
2732
|
});
|
|
2019
2733
|
}
|
|
2020
2734
|
this.hideMoveConfirmationUI();
|
|
2021
|
-
} catch (
|
|
2022
|
-
this._error("draw:moveconfirmed handler failed",
|
|
2735
|
+
} catch (a) {
|
|
2736
|
+
this._error("draw:moveconfirmed handler failed", a);
|
|
2023
2737
|
}
|
|
2024
2738
|
}));
|
|
2025
2739
|
}
|
|
2026
2740
|
_error(t, e) {
|
|
2027
|
-
var
|
|
2028
|
-
this.logger.error("error", { message: t, cause: e }), (
|
|
2741
|
+
var r, o;
|
|
2742
|
+
this.logger.error("error", { message: t, cause: e }), (o = (r = this.options.callbacks) == null ? void 0 : r.onError) == null || o.call(r, { message: t, cause: e });
|
|
2029
2743
|
}
|
|
2030
2744
|
// -------- Vertex deletion context menu --------
|
|
2745
|
+
installVertexEditSurfaceMenu() {
|
|
2746
|
+
var o;
|
|
2747
|
+
if (!this.map) return;
|
|
2748
|
+
try {
|
|
2749
|
+
(o = this.vertexEditSurfaceCleanup) == null || o.call(this);
|
|
2750
|
+
} catch {
|
|
2751
|
+
}
|
|
2752
|
+
const t = this.map.getContainer(), e = (a) => {
|
|
2753
|
+
this.openNearestEditableVertexMenuFromDomEvent(a);
|
|
2754
|
+
}, r = (a) => {
|
|
2755
|
+
(a.ctrlKey || a.metaKey) && this.openNearestEditableVertexMenuFromDomEvent(a);
|
|
2756
|
+
};
|
|
2757
|
+
t.addEventListener("contextmenu", e, {
|
|
2758
|
+
capture: !0
|
|
2759
|
+
}), t.addEventListener("click", r, { capture: !0 }), this.vertexEditSurfaceCleanup = () => {
|
|
2760
|
+
t.removeEventListener("contextmenu", e, {
|
|
2761
|
+
capture: !0
|
|
2762
|
+
}), t.removeEventListener("click", r, { capture: !0 });
|
|
2763
|
+
};
|
|
2764
|
+
}
|
|
2765
|
+
openNearestEditableVertexMenuFromDomEvent(t) {
|
|
2766
|
+
try {
|
|
2767
|
+
if (!this.map || !this.drawnItems) return;
|
|
2768
|
+
const e = this.map.mouseEventToContainerPoint(t), r = this.map.containerPointToLatLng(e);
|
|
2769
|
+
let o = null;
|
|
2770
|
+
if (this.drawnItems.eachLayer((a) => {
|
|
2771
|
+
if (o) return;
|
|
2772
|
+
const n = a.editing;
|
|
2773
|
+
if (!(n && typeof n.enabled == "function" && n.enabled())) return;
|
|
2774
|
+
const l = this.findNearestVertex(a, r, 16);
|
|
2775
|
+
l && (o = { layer: a, ...l });
|
|
2776
|
+
}), !o) return;
|
|
2777
|
+
t.preventDefault(), t.stopPropagation(), this.showVertexMenu(e, async () => {
|
|
2778
|
+
await this.deleteVertex(
|
|
2779
|
+
o.layer,
|
|
2780
|
+
o.pathIndex,
|
|
2781
|
+
o.vertexIndex
|
|
2782
|
+
);
|
|
2783
|
+
});
|
|
2784
|
+
} catch (e) {
|
|
2785
|
+
this._error("openNearestEditableVertexMenuFromDomEvent", e);
|
|
2786
|
+
}
|
|
2787
|
+
}
|
|
2031
2788
|
installVertexContextMenu(t) {
|
|
2032
2789
|
if (!t || typeof t.on != "function") return;
|
|
2033
|
-
const e = (
|
|
2034
|
-
var a,
|
|
2790
|
+
const e = (o) => {
|
|
2791
|
+
var a, n, s, l;
|
|
2035
2792
|
try {
|
|
2036
|
-
(
|
|
2793
|
+
(n = (a = o == null ? void 0 : o.originalEvent) == null ? void 0 : a.preventDefault) == null || n.call(a), (l = (s = o == null ? void 0 : o.originalEvent) == null ? void 0 : s.stopPropagation) == null || l.call(s);
|
|
2037
2794
|
} catch {
|
|
2038
2795
|
}
|
|
2039
|
-
this.openVertexMenu(t,
|
|
2040
|
-
},
|
|
2041
|
-
const a =
|
|
2042
|
-
a && (a.ctrlKey || a.metaKey) && this.openVertexMenu(t,
|
|
2796
|
+
this.openVertexMenu(t, o);
|
|
2797
|
+
}, r = (o) => {
|
|
2798
|
+
const a = o == null ? void 0 : o.originalEvent;
|
|
2799
|
+
a && (a.ctrlKey || a.metaKey) && this.openVertexMenu(t, o);
|
|
2043
2800
|
};
|
|
2044
2801
|
try {
|
|
2045
|
-
t.on("contextmenu", e), t.on("click",
|
|
2802
|
+
t.on("contextmenu", e), t.on("click", r);
|
|
2046
2803
|
} catch {
|
|
2047
2804
|
}
|
|
2048
2805
|
}
|
|
2049
2806
|
openVertexMenu(t, e) {
|
|
2050
2807
|
try {
|
|
2051
2808
|
if (!this.map || !(typeof t.getLatLngs == "function" && (t instanceof this.L.Polygon || t instanceof this.L.Polyline))) return;
|
|
2052
|
-
const
|
|
2053
|
-
if (!
|
|
2809
|
+
const o = t.editing;
|
|
2810
|
+
if (!o || typeof o.enabled != "function" || !o.enabled())
|
|
2054
2811
|
return;
|
|
2055
|
-
const a = e == null ? void 0 : e.latlng,
|
|
2056
|
-
if (!
|
|
2057
|
-
this.showVertexMenu(
|
|
2058
|
-
await this.deleteVertex(t,
|
|
2812
|
+
const a = e == null ? void 0 : e.latlng, n = this.map.latLngToContainerPoint(a), s = this.findNearestVertex(t, a, 12);
|
|
2813
|
+
if (!s) return;
|
|
2814
|
+
this.showVertexMenu(n, async () => {
|
|
2815
|
+
await this.deleteVertex(t, s.pathIndex, s.vertexIndex);
|
|
2059
2816
|
});
|
|
2060
|
-
} catch (
|
|
2061
|
-
this._error("openVertexMenu",
|
|
2817
|
+
} catch (r) {
|
|
2818
|
+
this._error("openVertexMenu", r);
|
|
2062
2819
|
}
|
|
2063
2820
|
}
|
|
2064
2821
|
showVertexMenu(t, e) {
|
|
2065
|
-
var
|
|
2822
|
+
var r;
|
|
2066
2823
|
try {
|
|
2067
2824
|
try {
|
|
2068
|
-
(
|
|
2825
|
+
(r = this.vertexMenuCleanup) == null || r.call(this);
|
|
2069
2826
|
} catch {
|
|
2070
2827
|
}
|
|
2071
2828
|
if (this.vertexMenuCleanup = null, !this.container) return;
|
|
2072
|
-
const
|
|
2073
|
-
|
|
2829
|
+
const o = document.createElement("div");
|
|
2830
|
+
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";
|
|
2074
2831
|
const a = document.createElement("button");
|
|
2075
2832
|
a.textContent = "Delete vertex", a.style.padding = "6px 10px", a.style.border = "none", a.style.background = "#da1e28", a.style.color = "#fff", a.style.borderRadius = "4px", a.style.cursor = "pointer", a.addEventListener("click", (l) => {
|
|
2076
2833
|
l.stopPropagation(), l.preventDefault();
|
|
2077
2834
|
try {
|
|
2078
2835
|
e();
|
|
2079
2836
|
} finally {
|
|
2080
|
-
|
|
2837
|
+
n();
|
|
2081
2838
|
}
|
|
2082
|
-
}),
|
|
2083
|
-
const
|
|
2839
|
+
}), o.appendChild(a);
|
|
2840
|
+
const n = () => {
|
|
2084
2841
|
try {
|
|
2085
|
-
window.removeEventListener("pointerdown",
|
|
2842
|
+
window.removeEventListener("pointerdown", s), this.container.removeEventListener("scroll", n, !0), o.remove();
|
|
2086
2843
|
} catch {
|
|
2087
2844
|
}
|
|
2088
2845
|
this.vertexMenuEl = null, this.vertexMenuCleanup = null;
|
|
2089
|
-
},
|
|
2090
|
-
|
|
2846
|
+
}, s = (l) => {
|
|
2847
|
+
!(typeof l.composedPath == "function" ? l.composedPath() : []).includes(o) && !o.contains(l.target) && n();
|
|
2091
2848
|
};
|
|
2092
|
-
window.addEventListener("pointerdown",
|
|
2093
|
-
} catch (
|
|
2094
|
-
this._error("showVertexMenu",
|
|
2849
|
+
window.addEventListener("pointerdown", s, { capture: !0 }), this.container.addEventListener("scroll", n, !0), this.container.appendChild(o), this.vertexMenuEl = o, this.vertexMenuCleanup = n;
|
|
2850
|
+
} catch (o) {
|
|
2851
|
+
this._error("showVertexMenu", o);
|
|
2095
2852
|
}
|
|
2096
2853
|
}
|
|
2097
|
-
findNearestVertex(t, e,
|
|
2854
|
+
findNearestVertex(t, e, r) {
|
|
2098
2855
|
if (!this.map) return null;
|
|
2099
|
-
const
|
|
2100
|
-
let
|
|
2856
|
+
const o = (p) => this.map.latLngToContainerPoint(p), a = (p, g) => Math.hypot(p.x - g.x, p.y - g.y), n = o(e);
|
|
2857
|
+
let s = 1 / 0, l = -1, c = -1;
|
|
2101
2858
|
const d = t.getLatLngs();
|
|
2102
|
-
return (Array.isArray(d[0]) ? d : [d]).forEach((p,
|
|
2103
|
-
p.forEach((
|
|
2104
|
-
const
|
|
2105
|
-
|
|
2859
|
+
return (Array.isArray(d[0]) ? d : [d]).forEach((p, g) => {
|
|
2860
|
+
p.forEach((m, f) => {
|
|
2861
|
+
const A = o(m), w = a(A, n);
|
|
2862
|
+
w < s && (s = w, l = g, c = f);
|
|
2106
2863
|
});
|
|
2107
|
-
}), l === -1 ||
|
|
2864
|
+
}), l === -1 || s > r ? null : { pathIndex: l, vertexIndex: c };
|
|
2108
2865
|
}
|
|
2109
|
-
async deleteVertex(t, e,
|
|
2110
|
-
var
|
|
2866
|
+
async deleteVertex(t, e, r) {
|
|
2867
|
+
var o, a, n;
|
|
2111
2868
|
try {
|
|
2112
2869
|
if (!(typeof t.getLatLngs == "function" && (t instanceof this.L.Polygon || t instanceof this.L.Polyline))) return;
|
|
2113
2870
|
const l = t.getLatLngs(), c = Array.isArray(l[0]) ? l : [l], d = c[e];
|
|
2114
2871
|
if (!d) return;
|
|
2115
2872
|
const p = t instanceof this.L.Polygon ? 3 : 2;
|
|
2116
2873
|
if (d.length <= p) return;
|
|
2117
|
-
if (d.splice(
|
|
2874
|
+
if (d.splice(r, 1), c.length === 1)
|
|
2118
2875
|
t.setLatLngs(d);
|
|
2119
2876
|
else {
|
|
2120
|
-
const
|
|
2121
|
-
t.setLatLngs(
|
|
2877
|
+
const m = c.map((f, A) => A === e ? d : f);
|
|
2878
|
+
t.setLatLngs(m);
|
|
2122
2879
|
}
|
|
2123
|
-
(
|
|
2124
|
-
const
|
|
2125
|
-
if (
|
|
2126
|
-
const
|
|
2127
|
-
this.store.update(
|
|
2128
|
-
ids: [
|
|
2880
|
+
(o = t.redraw) == null || o.call(t);
|
|
2881
|
+
const g = t._fid;
|
|
2882
|
+
if (g) {
|
|
2883
|
+
const m = t.toGeoJSON();
|
|
2884
|
+
this.store.update(g, m), (n = (a = this.options.callbacks) == null ? void 0 : a.onEdited) == null || n.call(a, {
|
|
2885
|
+
ids: [g],
|
|
2129
2886
|
geoJSON: this.store.toFeatureCollection()
|
|
2130
2887
|
});
|
|
2131
2888
|
}
|
|
2132
|
-
} catch (
|
|
2133
|
-
this._error("deleteVertex",
|
|
2889
|
+
} catch (s) {
|
|
2890
|
+
this._error("deleteVertex", s);
|
|
2134
2891
|
}
|
|
2135
2892
|
}
|
|
2136
2893
|
// -------- Move tool Save/Cancel UI --------
|
|
2137
|
-
showMoveConfirmationUI(t
|
|
2138
|
-
var
|
|
2894
|
+
showMoveConfirmationUI(t) {
|
|
2895
|
+
var e, r;
|
|
2139
2896
|
try {
|
|
2140
2897
|
if (this.hideMoveConfirmationUI(), !this.container || !this.map) return;
|
|
2141
|
-
const
|
|
2142
|
-
if (!
|
|
2143
|
-
const
|
|
2144
|
-
if (!
|
|
2145
|
-
const
|
|
2146
|
-
let
|
|
2147
|
-
for (const
|
|
2148
|
-
const
|
|
2149
|
-
if (((
|
|
2150
|
-
|
|
2898
|
+
const o = this.drawControl;
|
|
2899
|
+
if (!o) return;
|
|
2900
|
+
const a = (e = o == null ? void 0 : o._toolbars) == null ? void 0 : e.draw;
|
|
2901
|
+
if (!a) return;
|
|
2902
|
+
const n = a._modes || {};
|
|
2903
|
+
let s = null;
|
|
2904
|
+
for (const h in n) {
|
|
2905
|
+
const p = n[h];
|
|
2906
|
+
if (((r = p == null ? void 0 : p.handler) == null ? void 0 : r.type) === "move") {
|
|
2907
|
+
s = p.handler;
|
|
2151
2908
|
break;
|
|
2152
2909
|
}
|
|
2153
2910
|
}
|
|
2154
|
-
this.activeMoveHandler =
|
|
2155
|
-
const
|
|
2156
|
-
|
|
2157
|
-
const
|
|
2158
|
-
|
|
2159
|
-
|
|
2911
|
+
this.activeMoveHandler = s;
|
|
2912
|
+
const l = document.createElement("div");
|
|
2913
|
+
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
|
+
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", (h) => {
|
|
2916
|
+
h.stopPropagation(), h.preventDefault(), s != null && s.confirmMove && s.confirmMove();
|
|
2160
2917
|
});
|
|
2161
|
-
const
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2918
|
+
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", (h) => {
|
|
2920
|
+
h.stopPropagation(), h.preventDefault(), this.emitToolEvent("tool:move:cancelled", {
|
|
2921
|
+
layerId: t == null ? void 0 : t._fid
|
|
2922
|
+
}), s != null && s.cancelMove && s.cancelMove(), this.hideMoveConfirmationUI();
|
|
2923
|
+
}), l.appendChild(c), l.appendChild(d), this.container.appendChild(l), this.moveConfirmationUI = l, this.logger.debug("showMoveConfirmationUI", {
|
|
2165
2924
|
layerId: t._fid
|
|
2166
2925
|
});
|
|
2167
|
-
} catch (
|
|
2168
|
-
this._error("showMoveConfirmationUI",
|
|
2926
|
+
} catch (o) {
|
|
2927
|
+
this._error("showMoveConfirmationUI", o);
|
|
2169
2928
|
}
|
|
2170
2929
|
}
|
|
2171
2930
|
hideMoveConfirmationUI() {
|
|
@@ -2176,6 +2935,156 @@ class yt {
|
|
|
2176
2935
|
}
|
|
2177
2936
|
}
|
|
2178
2937
|
}
|
|
2938
|
+
const _e = [25, 41], Be = [12, 41], Se = [1, -34];
|
|
2939
|
+
function S(i, t) {
|
|
2940
|
+
var r, o, a, n;
|
|
2941
|
+
if (i == null)
|
|
2942
|
+
return null;
|
|
2943
|
+
const e = typeof i == "string" ? i.trim() : "";
|
|
2944
|
+
if (!e)
|
|
2945
|
+
return (r = t.reportError) == null || r.call(t, t.errorMessage, t.cause), null;
|
|
2946
|
+
try {
|
|
2947
|
+
return new URL(e, (o = t.baseUrl) != null ? o : document.baseURI).toString();
|
|
2948
|
+
} catch (s) {
|
|
2949
|
+
return (n = t.reportError) == null || n.call(t, t.errorMessage, (a = t.cause) != null ? a : s), null;
|
|
2950
|
+
}
|
|
2951
|
+
}
|
|
2952
|
+
function K(i, t, e) {
|
|
2953
|
+
var l, c;
|
|
2954
|
+
if (i == null)
|
|
2955
|
+
return [...t];
|
|
2956
|
+
if (!Array.isArray(i) || i.length !== 2)
|
|
2957
|
+
return (l = e.reportError) == null || l.call(e, e.errorMessage, e.cause), [...t];
|
|
2958
|
+
const [r, o] = i, a = Number(r), n = Number(o);
|
|
2959
|
+
return Number.isFinite(a) && Number.isFinite(n) && (!e.positiveOnly || a > 0 && n > 0) ? [a, n] : ((c = e.reportError) == null || c.call(e, e.errorMessage, e.cause), [...t]);
|
|
2960
|
+
}
|
|
2961
|
+
function Q(i, t, e) {
|
|
2962
|
+
var l, c, d, h, p;
|
|
2963
|
+
if (i == null)
|
|
2964
|
+
return [...t];
|
|
2965
|
+
const r = typeof i == "string" ? i.trim() : "";
|
|
2966
|
+
if (!r)
|
|
2967
|
+
return (l = e.reportError) == null || l.call(e, e.errorMessage, e.cause), [...t];
|
|
2968
|
+
const o = r.split(",");
|
|
2969
|
+
if (o.length !== 2)
|
|
2970
|
+
return (c = e.reportError) == null || c.call(e, e.errorMessage, e.cause), [...t];
|
|
2971
|
+
const a = Number((d = o[0]) == null ? void 0 : d.trim()), n = Number((h = o[1]) == null ? void 0 : h.trim());
|
|
2972
|
+
return Number.isFinite(a) && Number.isFinite(n) && (!e.positiveOnly || a > 0 && n > 0) ? [a, n] : ((p = e.reportError) == null || p.call(e, e.errorMessage, e.cause), [...t]);
|
|
2973
|
+
}
|
|
2974
|
+
function nr(i, t = {}) {
|
|
2975
|
+
var a, n;
|
|
2976
|
+
if (!i || typeof i != "object")
|
|
2977
|
+
return null;
|
|
2978
|
+
const e = S(i.iconUrl, {
|
|
2979
|
+
...t,
|
|
2980
|
+
errorMessage: "Invalid marker icon config: iconUrl must be a valid URL",
|
|
2981
|
+
cause: { field: "iconUrl", value: i.iconUrl }
|
|
2982
|
+
});
|
|
2983
|
+
if (!e)
|
|
2984
|
+
return null;
|
|
2985
|
+
const r = (a = S(i.iconRetinaUrl, {
|
|
2986
|
+
...t,
|
|
2987
|
+
errorMessage: "Invalid marker icon config: iconRetinaUrl must be a valid URL",
|
|
2988
|
+
cause: { field: "iconRetinaUrl", value: i.iconRetinaUrl }
|
|
2989
|
+
})) != null ? a : e, o = (n = S(i.shadowUrl, {
|
|
2990
|
+
...t,
|
|
2991
|
+
errorMessage: "Invalid marker icon config: shadowUrl must be a valid URL",
|
|
2992
|
+
cause: { field: "shadowUrl", value: i.shadowUrl }
|
|
2993
|
+
})) != null ? n : void 0;
|
|
2994
|
+
return {
|
|
2995
|
+
iconUrl: e,
|
|
2996
|
+
iconRetinaUrl: r,
|
|
2997
|
+
shadowUrl: o,
|
|
2998
|
+
iconSize: K(i.iconSize, _e, {
|
|
2999
|
+
...t,
|
|
3000
|
+
positiveOnly: !0,
|
|
3001
|
+
errorMessage: "Invalid marker icon config: iconSize must be a [width, height] tuple of positive finite numbers",
|
|
3002
|
+
cause: { field: "iconSize", value: i.iconSize }
|
|
3003
|
+
}),
|
|
3004
|
+
iconAnchor: K(
|
|
3005
|
+
i.iconAnchor,
|
|
3006
|
+
Be,
|
|
3007
|
+
{
|
|
3008
|
+
...t,
|
|
3009
|
+
errorMessage: "Invalid marker icon config: iconAnchor must be a [x, y] tuple of finite numbers",
|
|
3010
|
+
cause: { field: "iconAnchor", value: i.iconAnchor }
|
|
3011
|
+
}
|
|
3012
|
+
),
|
|
3013
|
+
popupAnchor: K(
|
|
3014
|
+
i.popupAnchor,
|
|
3015
|
+
Se,
|
|
3016
|
+
{
|
|
3017
|
+
...t,
|
|
3018
|
+
errorMessage: "Invalid marker icon config: popupAnchor must be a [x, y] tuple of finite numbers",
|
|
3019
|
+
cause: { field: "popupAnchor", value: i.popupAnchor }
|
|
3020
|
+
}
|
|
3021
|
+
)
|
|
3022
|
+
};
|
|
3023
|
+
}
|
|
3024
|
+
function sr(i, t = {}) {
|
|
3025
|
+
var a, n;
|
|
3026
|
+
const e = S(i.iconUrl, {
|
|
3027
|
+
...t,
|
|
3028
|
+
errorMessage: 'Invalid "marker-icon-url" attribute; falling back to default markers',
|
|
3029
|
+
cause: { attribute: "marker-icon-url", value: i.iconUrl }
|
|
3030
|
+
});
|
|
3031
|
+
if (!e)
|
|
3032
|
+
return null;
|
|
3033
|
+
const r = (a = S(i.iconRetinaUrl, {
|
|
3034
|
+
...t,
|
|
3035
|
+
errorMessage: 'Invalid "marker-icon-retina-url" attribute; using "marker-icon-url" instead',
|
|
3036
|
+
cause: {
|
|
3037
|
+
attribute: "marker-icon-retina-url",
|
|
3038
|
+
value: i.iconRetinaUrl
|
|
3039
|
+
}
|
|
3040
|
+
})) != null ? a : e, o = (n = S(i.shadowUrl, {
|
|
3041
|
+
...t,
|
|
3042
|
+
errorMessage: 'Invalid "marker-shadow-url" attribute; dropping the custom marker shadow',
|
|
3043
|
+
cause: { attribute: "marker-shadow-url", value: i.shadowUrl }
|
|
3044
|
+
})) != null ? n : void 0;
|
|
3045
|
+
return {
|
|
3046
|
+
iconUrl: e,
|
|
3047
|
+
iconRetinaUrl: r,
|
|
3048
|
+
shadowUrl: o,
|
|
3049
|
+
iconSize: Q(
|
|
3050
|
+
i.iconSize,
|
|
3051
|
+
_e,
|
|
3052
|
+
{
|
|
3053
|
+
...t,
|
|
3054
|
+
positiveOnly: !0,
|
|
3055
|
+
errorMessage: 'Invalid "marker-icon-size" attribute; using the default marker size',
|
|
3056
|
+
cause: {
|
|
3057
|
+
attribute: "marker-icon-size",
|
|
3058
|
+
value: i.iconSize
|
|
3059
|
+
}
|
|
3060
|
+
}
|
|
3061
|
+
),
|
|
3062
|
+
iconAnchor: Q(
|
|
3063
|
+
i.iconAnchor,
|
|
3064
|
+
Be,
|
|
3065
|
+
{
|
|
3066
|
+
...t,
|
|
3067
|
+
errorMessage: 'Invalid "marker-icon-anchor" attribute; using the default marker anchor',
|
|
3068
|
+
cause: {
|
|
3069
|
+
attribute: "marker-icon-anchor",
|
|
3070
|
+
value: i.iconAnchor
|
|
3071
|
+
}
|
|
3072
|
+
}
|
|
3073
|
+
),
|
|
3074
|
+
popupAnchor: Q(
|
|
3075
|
+
i.popupAnchor,
|
|
3076
|
+
Se,
|
|
3077
|
+
{
|
|
3078
|
+
...t,
|
|
3079
|
+
errorMessage: 'Invalid "marker-popup-anchor" attribute; using the default popup anchor',
|
|
3080
|
+
cause: {
|
|
3081
|
+
attribute: "marker-popup-anchor",
|
|
3082
|
+
value: i.popupAnchor
|
|
3083
|
+
}
|
|
3084
|
+
}
|
|
3085
|
+
)
|
|
3086
|
+
};
|
|
3087
|
+
}
|
|
2179
3088
|
const I = {
|
|
2180
3089
|
osm: {
|
|
2181
3090
|
urlTemplate: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
|
@@ -2194,17 +3103,17 @@ const I = {
|
|
|
2194
3103
|
maxZoom: 20
|
|
2195
3104
|
}
|
|
2196
3105
|
};
|
|
2197
|
-
function
|
|
2198
|
-
return typeof
|
|
3106
|
+
function Oe(i) {
|
|
3107
|
+
return typeof i == "string" ? i.trim().toLowerCase() : "";
|
|
2199
3108
|
}
|
|
2200
|
-
function
|
|
2201
|
-
if (typeof
|
|
2202
|
-
const t =
|
|
3109
|
+
function Pe(i) {
|
|
3110
|
+
if (typeof i != "string") return;
|
|
3111
|
+
const t = i.trim();
|
|
2203
3112
|
return t.length > 0 ? t : void 0;
|
|
2204
3113
|
}
|
|
2205
|
-
function
|
|
2206
|
-
const { style: t, attribution: e } =
|
|
2207
|
-
switch (
|
|
3114
|
+
function lr(i) {
|
|
3115
|
+
const { style: t, attribution: e } = i, r = Oe(i.provider), o = Pe(i.apiKey);
|
|
3116
|
+
switch (r) {
|
|
2208
3117
|
case "osm":
|
|
2209
3118
|
return {
|
|
2210
3119
|
urlTemplate: I.osm.urlTemplate,
|
|
@@ -2213,61 +3122,89 @@ function At(s) {
|
|
|
2213
3122
|
subdomains: [...I.osm.subdomains]
|
|
2214
3123
|
};
|
|
2215
3124
|
case "here": {
|
|
2216
|
-
if (!
|
|
3125
|
+
if (!o)
|
|
2217
3126
|
throw new Error("HERE Maps requires an API key");
|
|
2218
|
-
const a = typeof t == "string" ? t.trim() : "",
|
|
3127
|
+
const a = typeof t == "string" ? t.trim() : "", n = a && a in I.here.styles ? a : I.here.defaultStyle;
|
|
2219
3128
|
return {
|
|
2220
|
-
urlTemplate: `https://maps.hereapi.com/v3/base/mc/{z}/{x}/{y}/png8?style=${encodeURIComponent(
|
|
3129
|
+
urlTemplate: `https://maps.hereapi.com/v3/base/mc/{z}/{x}/{y}/png8?style=${encodeURIComponent(n)}&apiKey=${encodeURIComponent(o)}`,
|
|
2221
3130
|
attribution: e || I.here.attribution,
|
|
2222
3131
|
maxZoom: I.here.maxZoom,
|
|
2223
3132
|
subdomains: void 0
|
|
2224
3133
|
};
|
|
2225
3134
|
}
|
|
2226
3135
|
default:
|
|
2227
|
-
throw new Error(`Unknown tile provider: ${
|
|
3136
|
+
throw new Error(`Unknown tile provider: ${i.provider}`);
|
|
2228
3137
|
}
|
|
2229
3138
|
}
|
|
2230
|
-
function
|
|
2231
|
-
const t =
|
|
3139
|
+
function cr(i) {
|
|
3140
|
+
const t = Oe(i.provider), e = Pe(i.apiKey);
|
|
2232
3141
|
return t ? t === "here" && !e ? { valid: !1, error: "HERE Maps requires an API key" } : { valid: !0 } : { valid: !1, error: "Provider is required" };
|
|
2233
3142
|
}
|
|
2234
|
-
class
|
|
3143
|
+
class ze extends HTMLElement {
|
|
2235
3144
|
constructor() {
|
|
2236
3145
|
super();
|
|
2237
3146
|
// Shadow DOM and container references
|
|
2238
|
-
|
|
2239
|
-
|
|
3147
|
+
u(this, "_root");
|
|
3148
|
+
u(this, "_container");
|
|
2240
3149
|
// Logging
|
|
2241
|
-
|
|
3150
|
+
u(this, "_logger", G("component:leaflet-geokit", "debug"));
|
|
2242
3151
|
// Internal state mirrors for attributes/properties
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
3152
|
+
u(this, "_latitude", 0);
|
|
3153
|
+
u(this, "_longitude", 0);
|
|
3154
|
+
u(this, "_zoom", 2);
|
|
3155
|
+
u(this, "_minZoom");
|
|
3156
|
+
u(this, "_maxZoom");
|
|
3157
|
+
u(this, "_tileUrl", "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png");
|
|
3158
|
+
u(this, "_tileAttribution");
|
|
3159
|
+
u(this, "_tileProvider");
|
|
3160
|
+
u(this, "_tileStyle");
|
|
3161
|
+
u(this, "_apiKey");
|
|
3162
|
+
u(this, "_activeTileProvider", "tile-url");
|
|
3163
|
+
u(this, "_readOnly", !1);
|
|
3164
|
+
u(this, "_logLevel", "debug");
|
|
3165
|
+
u(this, "_devOverlay", !1);
|
|
3166
|
+
u(this, "_polygonAllowIntersection", !1);
|
|
3167
|
+
u(this, "_preferCanvas", !0);
|
|
2259
3168
|
// Default to Canvas for performance
|
|
2260
3169
|
// Theming
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
3170
|
+
u(this, "_themeUrl");
|
|
3171
|
+
u(this, "_themeCss", "");
|
|
3172
|
+
u(this, "_themeLinkEl", null);
|
|
3173
|
+
u(this, "_themeStyleEl", null);
|
|
2265
3174
|
// Controller
|
|
2266
|
-
|
|
3175
|
+
u(this, "_controller", null);
|
|
2267
3176
|
// External Leaflet configuration
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
3177
|
+
u(this, "_useExternalLeaflet", !1);
|
|
3178
|
+
u(this, "_skipLeafletStyles", !1);
|
|
3179
|
+
u(this, "_leafletInstance");
|
|
3180
|
+
u(this, "_toolHooks");
|
|
3181
|
+
u(this, "_toolEventEmitter");
|
|
3182
|
+
u(this, "_markerIconConfig");
|
|
3183
|
+
u(this, "_toolButtonConfig");
|
|
3184
|
+
u(this, "_toolbarGroups");
|
|
3185
|
+
u(this, "_externalToolTriggerListener", (e) => {
|
|
3186
|
+
var o, a;
|
|
3187
|
+
const r = e.detail;
|
|
3188
|
+
if ((r == null ? void 0 : r.action) === "deactivate" || (r == null ? void 0 : r.active) === !1) {
|
|
3189
|
+
this.deactivateTool({
|
|
3190
|
+
source: (o = r.source) != null ? o : "event",
|
|
3191
|
+
groupId: r.groupId
|
|
3192
|
+
});
|
|
3193
|
+
return;
|
|
3194
|
+
}
|
|
3195
|
+
r != null && r.tool && this.activateTool(r.tool, {
|
|
3196
|
+
source: (a = r.source) != null ? a : "event",
|
|
3197
|
+
groupId: r.groupId
|
|
3198
|
+
});
|
|
3199
|
+
});
|
|
3200
|
+
u(this, "_externalToolDeactivateListener", (e) => {
|
|
3201
|
+
var o;
|
|
3202
|
+
const r = e.detail;
|
|
3203
|
+
this.deactivateTool({
|
|
3204
|
+
source: (o = r == null ? void 0 : r.source) != null ? o : "event",
|
|
3205
|
+
groupId: r == null ? void 0 : r.groupId
|
|
3206
|
+
});
|
|
3207
|
+
});
|
|
2271
3208
|
this._root = this.attachShadow({ mode: "open" }), this._root.innerHTML = `
|
|
2272
3209
|
<style>
|
|
2273
3210
|
:host {
|
|
@@ -2286,8 +3223,8 @@ class fe extends HTMLElement {
|
|
|
2286
3223
|
if (!(e instanceof HTMLDivElement))
|
|
2287
3224
|
throw new Error("Failed to initialize map container");
|
|
2288
3225
|
this._container = e;
|
|
2289
|
-
const
|
|
2290
|
-
|
|
3226
|
+
const r = this.getAttribute("log-level");
|
|
3227
|
+
r && (this._logLevel = r, this._logger.setLevel(r));
|
|
2291
3228
|
}
|
|
2292
3229
|
// Build DrawControlsConfig from boolean attributes
|
|
2293
3230
|
_controlsFromAttributes() {
|
|
@@ -2326,44 +3263,80 @@ class fe extends HTMLElement {
|
|
|
2326
3263
|
// Lifecycle
|
|
2327
3264
|
async connectedCallback() {
|
|
2328
3265
|
var e;
|
|
2329
|
-
this._logger.debug("connectedCallback", this._currentConfig()),
|
|
3266
|
+
this._logger.debug("connectedCallback", this._currentConfig()), et({
|
|
2330
3267
|
root: this._root,
|
|
2331
3268
|
skipStyles: this._skipLeafletStyles
|
|
2332
|
-
}), this._applyThemeStyles(), this._controller = new
|
|
3269
|
+
}), this._applyThemeStyles(), this._controller = new ar({
|
|
2333
3270
|
container: this._container,
|
|
2334
3271
|
map: this._mapConfig(),
|
|
2335
3272
|
controls: this._controlsFromAttributes(),
|
|
2336
3273
|
readOnly: this._readOnly,
|
|
2337
3274
|
logger: this._logger.child("controller"),
|
|
2338
3275
|
callbacks: {
|
|
2339
|
-
onReady: (
|
|
2340
|
-
this.dispatchEvent(new CustomEvent("leaflet-draw:ready", { detail:
|
|
3276
|
+
onReady: (r) => {
|
|
3277
|
+
this.dispatchEvent(new CustomEvent("leaflet-draw:ready", { detail: r }));
|
|
2341
3278
|
},
|
|
2342
|
-
onCreated: (
|
|
3279
|
+
onCreated: (r) => {
|
|
2343
3280
|
this.dispatchEvent(
|
|
2344
|
-
new CustomEvent("leaflet-draw:created", { detail:
|
|
3281
|
+
new CustomEvent("leaflet-draw:created", { detail: r })
|
|
2345
3282
|
);
|
|
2346
3283
|
},
|
|
2347
|
-
onEdited: (
|
|
3284
|
+
onEdited: (r) => {
|
|
2348
3285
|
this.dispatchEvent(
|
|
2349
|
-
new CustomEvent("leaflet-draw:edited", { detail:
|
|
3286
|
+
new CustomEvent("leaflet-draw:edited", { detail: r })
|
|
2350
3287
|
);
|
|
2351
3288
|
},
|
|
2352
|
-
onDeleted: (
|
|
3289
|
+
onDeleted: (r) => {
|
|
2353
3290
|
this.dispatchEvent(
|
|
2354
|
-
new CustomEvent("leaflet-draw:deleted", { detail:
|
|
3291
|
+
new CustomEvent("leaflet-draw:deleted", { detail: r })
|
|
2355
3292
|
);
|
|
2356
3293
|
},
|
|
2357
|
-
onError: (
|
|
2358
|
-
this.dispatchEvent(new CustomEvent("leaflet-draw:error", { detail:
|
|
3294
|
+
onError: (r) => {
|
|
3295
|
+
this.dispatchEvent(new CustomEvent("leaflet-draw:error", { detail: r }));
|
|
3296
|
+
},
|
|
3297
|
+
onTileError: (r) => {
|
|
3298
|
+
if (this._tileProvider)
|
|
3299
|
+
return;
|
|
3300
|
+
const o = this._describeTileLayerError(r, "tile-url");
|
|
3301
|
+
this._handleTileProviderError(
|
|
3302
|
+
"tile_load_failed",
|
|
3303
|
+
o,
|
|
3304
|
+
"tile-url"
|
|
3305
|
+
);
|
|
3306
|
+
},
|
|
3307
|
+
onToolTrigger: (r) => {
|
|
3308
|
+
this._emitToolTriggerResult(r);
|
|
2359
3309
|
}
|
|
2360
3310
|
},
|
|
2361
3311
|
leaflet: (e = this._leafletInstance) != null ? e : void 0,
|
|
2362
|
-
useExternalLeaflet: this._useExternalLeaflet
|
|
2363
|
-
|
|
3312
|
+
useExternalLeaflet: this._useExternalLeaflet,
|
|
3313
|
+
toolHooks: this._toolHooks,
|
|
3314
|
+
toolEventEmitter: this._toolEventEmitter,
|
|
3315
|
+
markerIconConfig: this._effectiveMarkerIconConfig(),
|
|
3316
|
+
toolButtonConfig: this._effectiveToolButtonConfig(),
|
|
3317
|
+
toolbarGroups: this._effectiveToolbarGroups()
|
|
3318
|
+
}), this.addEventListener(
|
|
3319
|
+
"leaflet-geokit:trigger-tool",
|
|
3320
|
+
this._externalToolTriggerListener
|
|
3321
|
+
), this.addEventListener(
|
|
3322
|
+
"leaflet-geokit:activate-tool",
|
|
3323
|
+
this._externalToolTriggerListener
|
|
3324
|
+
), this.addEventListener(
|
|
3325
|
+
"leaflet-geokit:deactivate-tool",
|
|
3326
|
+
this._externalToolDeactivateListener
|
|
3327
|
+
), await this._controller.init(), this._tileProvider && this._updateTileLayer();
|
|
2364
3328
|
}
|
|
2365
3329
|
async disconnectedCallback() {
|
|
2366
|
-
this._logger.debug("disconnectedCallback"), this._controller && (await this._controller.destroy(), this._controller = null)
|
|
3330
|
+
this._logger.debug("disconnectedCallback"), this._controller && (await this._controller.destroy(), this._controller = null), this.removeEventListener(
|
|
3331
|
+
"leaflet-geokit:trigger-tool",
|
|
3332
|
+
this._externalToolTriggerListener
|
|
3333
|
+
), this.removeEventListener(
|
|
3334
|
+
"leaflet-geokit:activate-tool",
|
|
3335
|
+
this._externalToolTriggerListener
|
|
3336
|
+
), this.removeEventListener(
|
|
3337
|
+
"leaflet-geokit:deactivate-tool",
|
|
3338
|
+
this._externalToolDeactivateListener
|
|
3339
|
+
);
|
|
2367
3340
|
}
|
|
2368
3341
|
// Observed attributes and reflection
|
|
2369
3342
|
static get observedAttributes() {
|
|
@@ -2385,6 +3358,14 @@ class fe extends HTMLElement {
|
|
|
2385
3358
|
"prefer-canvas",
|
|
2386
3359
|
"use-external-leaflet",
|
|
2387
3360
|
"skip-leaflet-styles",
|
|
3361
|
+
"marker-icon-url",
|
|
3362
|
+
"marker-icon-retina-url",
|
|
3363
|
+
"marker-shadow-url",
|
|
3364
|
+
"marker-icon-size",
|
|
3365
|
+
"marker-icon-anchor",
|
|
3366
|
+
"marker-popup-anchor",
|
|
3367
|
+
"tool-button-config",
|
|
3368
|
+
"toolbar-groups",
|
|
2388
3369
|
"theme-url",
|
|
2389
3370
|
// draw controls
|
|
2390
3371
|
"draw-polygon",
|
|
@@ -2400,74 +3381,74 @@ class fe extends HTMLElement {
|
|
|
2400
3381
|
"polygon-allow-intersection"
|
|
2401
3382
|
];
|
|
2402
3383
|
}
|
|
2403
|
-
attributeChangedCallback(e,
|
|
2404
|
-
switch (this._logger.debug("attributeChanged", { name: e, value:
|
|
3384
|
+
attributeChangedCallback(e, r, o) {
|
|
3385
|
+
switch (this._logger.debug("attributeChanged", { name: e, value: o }), e) {
|
|
2405
3386
|
case "latitude":
|
|
2406
|
-
this._latitude = this._coerceNumber(
|
|
3387
|
+
this._latitude = this._coerceNumber(o, 0);
|
|
2407
3388
|
break;
|
|
2408
3389
|
case "longitude":
|
|
2409
|
-
this._longitude = this._coerceNumber(
|
|
3390
|
+
this._longitude = this._coerceNumber(o, 0);
|
|
2410
3391
|
break;
|
|
2411
3392
|
case "zoom":
|
|
2412
|
-
this._zoom = this._coerceNumber(
|
|
3393
|
+
this._zoom = this._coerceNumber(o, 2);
|
|
2413
3394
|
break;
|
|
2414
3395
|
case "min-zoom":
|
|
2415
|
-
this._minZoom =
|
|
3396
|
+
this._minZoom = o != null ? this._coerceNumber(o) : void 0;
|
|
2416
3397
|
break;
|
|
2417
3398
|
case "max-zoom":
|
|
2418
|
-
this._maxZoom =
|
|
3399
|
+
this._maxZoom = o != null ? this._coerceNumber(o) : void 0;
|
|
2419
3400
|
break;
|
|
2420
3401
|
case "tile-url":
|
|
2421
|
-
this._tileUrl =
|
|
3402
|
+
this._tileUrl = o != null ? o : "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", this._controller && this._updateTileLayer();
|
|
2422
3403
|
break;
|
|
2423
3404
|
case "tile-attribution":
|
|
2424
|
-
this._tileAttribution =
|
|
3405
|
+
this._tileAttribution = o != null ? o : void 0, this._controller && this._updateTileLayer();
|
|
2425
3406
|
break;
|
|
2426
3407
|
case "tile-provider":
|
|
2427
|
-
this._tileProvider = this._normalizeText(
|
|
3408
|
+
this._tileProvider = this._normalizeText(o, {
|
|
2428
3409
|
lowercase: !0
|
|
2429
3410
|
}), this._controller && this._updateTileLayer();
|
|
2430
3411
|
break;
|
|
2431
3412
|
case "tile-style":
|
|
2432
|
-
this._tileStyle = this._normalizeText(
|
|
3413
|
+
this._tileStyle = this._normalizeText(o), this._controller && this._updateTileLayer();
|
|
2433
3414
|
break;
|
|
2434
3415
|
case "api-key":
|
|
2435
3416
|
case "here-api-key":
|
|
2436
3417
|
this._syncApiKeyFromAttributes(), this._controller && this._updateTileLayer();
|
|
2437
3418
|
break;
|
|
2438
3419
|
case "theme-url":
|
|
2439
|
-
this._themeUrl =
|
|
3420
|
+
this._themeUrl = o != null ? o : void 0, this.isConnected && this._applyThemeStyles();
|
|
2440
3421
|
break;
|
|
2441
3422
|
case "read-only":
|
|
2442
|
-
this._readOnly =
|
|
3423
|
+
this._readOnly = o !== null;
|
|
2443
3424
|
break;
|
|
2444
3425
|
case "log-level":
|
|
2445
|
-
this._logLevel =
|
|
3426
|
+
this._logLevel = o != null ? o : this._logLevel, this._logger.setLevel(this._logLevel);
|
|
2446
3427
|
break;
|
|
2447
3428
|
case "dev-overlay":
|
|
2448
|
-
this._devOverlay =
|
|
3429
|
+
this._devOverlay = o !== null;
|
|
2449
3430
|
break;
|
|
2450
3431
|
case "polygon-allow-intersection":
|
|
2451
|
-
this._polygonAllowIntersection =
|
|
3432
|
+
this._polygonAllowIntersection = o !== null;
|
|
2452
3433
|
break;
|
|
2453
3434
|
case "prefer-canvas":
|
|
2454
|
-
this._preferCanvas =
|
|
3435
|
+
this._preferCanvas = o !== null;
|
|
2455
3436
|
break;
|
|
2456
3437
|
case "use-external-leaflet":
|
|
2457
|
-
this._useExternalLeaflet =
|
|
3438
|
+
this._useExternalLeaflet = o !== null;
|
|
2458
3439
|
break;
|
|
2459
3440
|
case "skip-leaflet-styles":
|
|
2460
|
-
this._skipLeafletStyles =
|
|
3441
|
+
this._skipLeafletStyles = o !== null;
|
|
2461
3442
|
break;
|
|
2462
3443
|
}
|
|
2463
3444
|
this._controller && (e === "latitude" || e === "longitude" || e === "zoom" ? this._controller.setView(
|
|
2464
3445
|
this._latitude,
|
|
2465
3446
|
this._longitude,
|
|
2466
3447
|
this._zoom
|
|
2467
|
-
) : (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()));
|
|
3448
|
+
) : 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()));
|
|
2468
3449
|
}
|
|
2469
3450
|
_updateTileLayer() {
|
|
2470
|
-
var
|
|
3451
|
+
var r, o, a, n;
|
|
2471
3452
|
if (!this._controller)
|
|
2472
3453
|
return;
|
|
2473
3454
|
const e = this._controller;
|
|
@@ -2477,58 +3458,70 @@ class fe extends HTMLElement {
|
|
|
2477
3458
|
}
|
|
2478
3459
|
try {
|
|
2479
3460
|
if (this._tileProvider) {
|
|
2480
|
-
const
|
|
2481
|
-
provider:
|
|
3461
|
+
const s = this._tileProvider, l = {
|
|
3462
|
+
provider: s,
|
|
2482
3463
|
style: this._tileStyle,
|
|
2483
3464
|
apiKey: this._apiKey,
|
|
2484
3465
|
attribution: this._tileAttribution
|
|
2485
|
-
}, c =
|
|
3466
|
+
}, c = cr(l);
|
|
2486
3467
|
if (!c.valid) {
|
|
2487
|
-
const p = (
|
|
3468
|
+
const p = (r = c.error) != null && r.toLowerCase().includes("api key") ? "missing_api_key" : "tile_load_failed";
|
|
2488
3469
|
this._handleTileProviderError(
|
|
2489
3470
|
p,
|
|
2490
|
-
(
|
|
2491
|
-
|
|
3471
|
+
(o = c.error) != null ? o : "Invalid tile provider configuration",
|
|
3472
|
+
s
|
|
2492
3473
|
);
|
|
2493
3474
|
return;
|
|
2494
3475
|
}
|
|
2495
|
-
const d =
|
|
3476
|
+
const d = lr(l), h = this._activeTileProvider;
|
|
2496
3477
|
e.setTileLayer(d, {
|
|
2497
3478
|
onTileError: (p) => {
|
|
2498
|
-
if (this._tileProvider !==
|
|
2499
|
-
const
|
|
2500
|
-
this._handleTileProviderError(
|
|
3479
|
+
if (this._tileProvider !== s) return;
|
|
3480
|
+
const g = this._describeTileLayerError(p, s), m = s === "here" ? this._resolveHereTileLayerErrorCode(g) : "tile_load_failed";
|
|
3481
|
+
this._handleTileProviderError(m, g, s);
|
|
2501
3482
|
}
|
|
2502
|
-
}), this._activeTileProvider =
|
|
2503
|
-
|
|
3483
|
+
}), this._activeTileProvider = s, this._emitTileProviderChanged(
|
|
3484
|
+
s,
|
|
2504
3485
|
this._tileStyle,
|
|
2505
|
-
|
|
3486
|
+
h
|
|
2506
3487
|
);
|
|
2507
3488
|
return;
|
|
2508
3489
|
}
|
|
2509
|
-
e.setTileLayer(
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
3490
|
+
e.setTileLayer(
|
|
3491
|
+
{
|
|
3492
|
+
urlTemplate: this._tileUrl,
|
|
3493
|
+
attribution: (a = this._tileAttribution) != null ? a : "",
|
|
3494
|
+
maxZoom: this._maxZoom,
|
|
3495
|
+
subdomains: ["a", "b", "c"]
|
|
3496
|
+
},
|
|
3497
|
+
{
|
|
3498
|
+
onTileError: (s) => {
|
|
3499
|
+
const l = this._describeTileLayerError(s, "tile-url");
|
|
3500
|
+
this._handleTileProviderError(
|
|
3501
|
+
"tile_load_failed",
|
|
3502
|
+
l,
|
|
3503
|
+
"tile-url"
|
|
3504
|
+
);
|
|
3505
|
+
}
|
|
3506
|
+
}
|
|
3507
|
+
), this._activeTileProvider = "tile-url";
|
|
3508
|
+
} catch (s) {
|
|
3509
|
+
const l = this._resolveTileProviderErrorCode(s);
|
|
3510
|
+
this._logger.error("Failed to update tile layer", { error: s, code: l }), this._handleTileProviderError(
|
|
2518
3511
|
l,
|
|
2519
|
-
|
|
2520
|
-
(
|
|
3512
|
+
s instanceof Error ? s.message : "Unknown tile layer error",
|
|
3513
|
+
(n = this._tileProvider) != null ? n : "unknown"
|
|
2521
3514
|
);
|
|
2522
3515
|
}
|
|
2523
3516
|
}
|
|
2524
|
-
_handleTileProviderError(e,
|
|
2525
|
-
this._logger.error(`Tile provider error (${e}): ${
|
|
3517
|
+
_handleTileProviderError(e, r, o) {
|
|
3518
|
+
this._logger.error(`Tile provider error (${e}): ${r}`), this.dispatchEvent(
|
|
2526
3519
|
new CustomEvent("tile-provider-error", {
|
|
2527
3520
|
bubbles: !0,
|
|
2528
3521
|
detail: {
|
|
2529
3522
|
code: e,
|
|
2530
|
-
message:
|
|
2531
|
-
provider:
|
|
3523
|
+
message: r,
|
|
3524
|
+
provider: o,
|
|
2532
3525
|
timestamp: Date.now()
|
|
2533
3526
|
}
|
|
2534
3527
|
})
|
|
@@ -2541,19 +3534,103 @@ class fe extends HTMLElement {
|
|
|
2541
3534
|
subdomains: ["a", "b", "c"]
|
|
2542
3535
|
}), this._activeTileProvider = "osm");
|
|
2543
3536
|
}
|
|
2544
|
-
_emitTileProviderChanged(e,
|
|
3537
|
+
_emitTileProviderChanged(e, r, o) {
|
|
2545
3538
|
this.dispatchEvent(
|
|
2546
3539
|
new CustomEvent("tile-provider-changed", {
|
|
2547
3540
|
bubbles: !0,
|
|
2548
3541
|
detail: {
|
|
2549
3542
|
provider: e,
|
|
2550
|
-
style:
|
|
2551
|
-
previousProvider:
|
|
3543
|
+
style: r,
|
|
3544
|
+
previousProvider: o,
|
|
2552
3545
|
timestamp: Date.now()
|
|
2553
3546
|
}
|
|
2554
3547
|
})
|
|
2555
3548
|
);
|
|
2556
3549
|
}
|
|
3550
|
+
_isMarkerIconAttribute(e) {
|
|
3551
|
+
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
|
+
}
|
|
3553
|
+
_effectiveMarkerIconConfig() {
|
|
3554
|
+
const e = (o, a) => {
|
|
3555
|
+
this.dispatchEvent(
|
|
3556
|
+
new CustomEvent("leaflet-draw:error", {
|
|
3557
|
+
detail: { message: o, cause: a }
|
|
3558
|
+
})
|
|
3559
|
+
);
|
|
3560
|
+
};
|
|
3561
|
+
if (this._markerIconConfig === null)
|
|
3562
|
+
return null;
|
|
3563
|
+
if (this._markerIconConfig !== void 0)
|
|
3564
|
+
return nr(this._markerIconConfig, { reportError: e });
|
|
3565
|
+
const r = this.getAttribute("marker-icon-url");
|
|
3566
|
+
return r == null ? null : sr(
|
|
3567
|
+
{
|
|
3568
|
+
iconUrl: r,
|
|
3569
|
+
iconRetinaUrl: this.getAttribute("marker-icon-retina-url"),
|
|
3570
|
+
shadowUrl: this.getAttribute("marker-shadow-url"),
|
|
3571
|
+
iconSize: this.getAttribute("marker-icon-size"),
|
|
3572
|
+
iconAnchor: this.getAttribute("marker-icon-anchor"),
|
|
3573
|
+
popupAnchor: this.getAttribute("marker-popup-anchor")
|
|
3574
|
+
},
|
|
3575
|
+
{ reportError: e }
|
|
3576
|
+
);
|
|
3577
|
+
}
|
|
3578
|
+
_syncMarkerIconConfig() {
|
|
3579
|
+
const e = this._controller;
|
|
3580
|
+
typeof (e == null ? void 0 : e.setMarkerIconConfig) == "function" && e.setMarkerIconConfig(this._effectiveMarkerIconConfig());
|
|
3581
|
+
}
|
|
3582
|
+
_effectiveToolButtonConfig() {
|
|
3583
|
+
if (this._toolButtonConfig !== void 0)
|
|
3584
|
+
return this._toolButtonConfig;
|
|
3585
|
+
const e = this.getAttribute("tool-button-config");
|
|
3586
|
+
if (e == null || e.trim() === "")
|
|
3587
|
+
return null;
|
|
3588
|
+
try {
|
|
3589
|
+
const r = JSON.parse(e);
|
|
3590
|
+
if (!r || typeof r != "object" || Array.isArray(r))
|
|
3591
|
+
throw new Error("tool-button-config must be a JSON object");
|
|
3592
|
+
return r;
|
|
3593
|
+
} catch (r) {
|
|
3594
|
+
return this.dispatchEvent(
|
|
3595
|
+
new CustomEvent("leaflet-draw:error", {
|
|
3596
|
+
detail: {
|
|
3597
|
+
message: "Failed to parse tool-button-config",
|
|
3598
|
+
cause: r
|
|
3599
|
+
}
|
|
3600
|
+
})
|
|
3601
|
+
), null;
|
|
3602
|
+
}
|
|
3603
|
+
}
|
|
3604
|
+
_syncToolButtonConfig() {
|
|
3605
|
+
const e = this._controller;
|
|
3606
|
+
typeof (e == null ? void 0 : e.setToolButtonConfig) == "function" && e.setToolButtonConfig(this._effectiveToolButtonConfig());
|
|
3607
|
+
}
|
|
3608
|
+
_effectiveToolbarGroups() {
|
|
3609
|
+
if (this._toolbarGroups !== void 0)
|
|
3610
|
+
return this._toolbarGroups;
|
|
3611
|
+
const e = this.getAttribute("toolbar-groups");
|
|
3612
|
+
if (e == null || e.trim() === "")
|
|
3613
|
+
return null;
|
|
3614
|
+
try {
|
|
3615
|
+
const r = JSON.parse(e);
|
|
3616
|
+
if (!Array.isArray(r))
|
|
3617
|
+
throw new Error("toolbar-groups must be a JSON array");
|
|
3618
|
+
return r;
|
|
3619
|
+
} catch (r) {
|
|
3620
|
+
return this.dispatchEvent(
|
|
3621
|
+
new CustomEvent("leaflet-draw:error", {
|
|
3622
|
+
detail: {
|
|
3623
|
+
message: "Failed to parse toolbar-groups",
|
|
3624
|
+
cause: r
|
|
3625
|
+
}
|
|
3626
|
+
})
|
|
3627
|
+
), null;
|
|
3628
|
+
}
|
|
3629
|
+
}
|
|
3630
|
+
_syncToolbarGroups() {
|
|
3631
|
+
const e = this._controller;
|
|
3632
|
+
typeof (e == null ? void 0 : e.setToolbarGroups) == "function" && e.setToolbarGroups(this._effectiveToolbarGroups());
|
|
3633
|
+
}
|
|
2557
3634
|
// Properties (reflect attributes)
|
|
2558
3635
|
get latitude() {
|
|
2559
3636
|
return this._latitude;
|
|
@@ -2595,24 +3672,24 @@ class fe extends HTMLElement {
|
|
|
2595
3672
|
return this._tileProvider;
|
|
2596
3673
|
}
|
|
2597
3674
|
set tileProvider(e) {
|
|
2598
|
-
var
|
|
3675
|
+
var r;
|
|
2599
3676
|
this._tileProvider = this._normalizeText(e != null ? e : null, {
|
|
2600
3677
|
lowercase: !0
|
|
2601
|
-
}), this._reflect("tile-provider", (
|
|
3678
|
+
}), this._reflect("tile-provider", (r = this._tileProvider) != null ? r : null), this._controller && this._updateTileLayer();
|
|
2602
3679
|
}
|
|
2603
3680
|
get tileStyle() {
|
|
2604
3681
|
return this._tileStyle;
|
|
2605
3682
|
}
|
|
2606
3683
|
set tileStyle(e) {
|
|
2607
|
-
var
|
|
2608
|
-
this._tileStyle = this._normalizeText(e != null ? e : null), this._reflect("tile-style", (
|
|
3684
|
+
var r;
|
|
3685
|
+
this._tileStyle = this._normalizeText(e != null ? e : null), this._reflect("tile-style", (r = this._tileStyle) != null ? r : null), this._controller && this._updateTileLayer();
|
|
2609
3686
|
}
|
|
2610
3687
|
get apiKey() {
|
|
2611
3688
|
return this._apiKey;
|
|
2612
3689
|
}
|
|
2613
3690
|
set apiKey(e) {
|
|
2614
|
-
var
|
|
2615
|
-
this._apiKey = this._normalizeText(e != null ? e : null), this._reflect("api-key", (
|
|
3691
|
+
var r;
|
|
3692
|
+
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();
|
|
2616
3693
|
}
|
|
2617
3694
|
get tileAttribution() {
|
|
2618
3695
|
return this._tileAttribution;
|
|
@@ -2656,12 +3733,52 @@ class fe extends HTMLElement {
|
|
|
2656
3733
|
set skipLeafletStyles(e) {
|
|
2657
3734
|
this._skipLeafletStyles = !!e, this._booleanReflect("skip-leaflet-styles", this._skipLeafletStyles);
|
|
2658
3735
|
}
|
|
3736
|
+
get markerIconConfig() {
|
|
3737
|
+
return this._markerIconConfig;
|
|
3738
|
+
}
|
|
3739
|
+
set markerIconConfig(e) {
|
|
3740
|
+
this._markerIconConfig = e, this._syncMarkerIconConfig();
|
|
3741
|
+
}
|
|
3742
|
+
get toolButtonConfig() {
|
|
3743
|
+
return this._toolButtonConfig;
|
|
3744
|
+
}
|
|
3745
|
+
set toolButtonConfig(e) {
|
|
3746
|
+
this._toolButtonConfig = e, this._syncToolButtonConfig();
|
|
3747
|
+
}
|
|
3748
|
+
get toolbarGroups() {
|
|
3749
|
+
return this._toolbarGroups;
|
|
3750
|
+
}
|
|
3751
|
+
set toolbarGroups(e) {
|
|
3752
|
+
this._toolbarGroups = e, this._syncToolbarGroups();
|
|
3753
|
+
}
|
|
2659
3754
|
get leafletInstance() {
|
|
2660
3755
|
return this._leafletInstance;
|
|
2661
3756
|
}
|
|
2662
3757
|
set leafletInstance(e) {
|
|
2663
3758
|
this._leafletInstance = e;
|
|
2664
3759
|
}
|
|
3760
|
+
get toolHooks() {
|
|
3761
|
+
return this._toolHooks;
|
|
3762
|
+
}
|
|
3763
|
+
set toolHooks(e) {
|
|
3764
|
+
this._toolHooks = e;
|
|
3765
|
+
const r = this._controller;
|
|
3766
|
+
typeof (r == null ? void 0 : r.setToolObservers) == "function" && r.setToolObservers({
|
|
3767
|
+
toolHooks: this._toolHooks,
|
|
3768
|
+
toolEventEmitter: this._toolEventEmitter
|
|
3769
|
+
});
|
|
3770
|
+
}
|
|
3771
|
+
get toolEventEmitter() {
|
|
3772
|
+
return this._toolEventEmitter;
|
|
3773
|
+
}
|
|
3774
|
+
set toolEventEmitter(e) {
|
|
3775
|
+
this._toolEventEmitter = e;
|
|
3776
|
+
const r = this._controller;
|
|
3777
|
+
typeof (r == null ? void 0 : r.setToolObservers) == "function" && r.setToolObservers({
|
|
3778
|
+
toolHooks: this._toolHooks,
|
|
3779
|
+
toolEventEmitter: this._toolEventEmitter
|
|
3780
|
+
});
|
|
3781
|
+
}
|
|
2665
3782
|
get themeCss() {
|
|
2666
3783
|
return this._themeCss;
|
|
2667
3784
|
}
|
|
@@ -2673,26 +3790,26 @@ class fe extends HTMLElement {
|
|
|
2673
3790
|
return this._logger.debug("getGeoJSON"), this._controller ? this._controller.getGeoJSON() : { type: "FeatureCollection", features: [] };
|
|
2674
3791
|
}
|
|
2675
3792
|
async loadGeoJSON(e) {
|
|
2676
|
-
var a,
|
|
2677
|
-
if (this._logger.debug("loadGeoJSON", { features: (
|
|
2678
|
-
const
|
|
2679
|
-
this.dispatchEvent(new CustomEvent("leaflet-draw:ingest", { detail:
|
|
2680
|
-
const
|
|
2681
|
-
await this._controller.loadGeoJSON(
|
|
3793
|
+
var a, n;
|
|
3794
|
+
if (this._logger.debug("loadGeoJSON", { features: (n = (a = e == null ? void 0 : e.features) == null ? void 0 : a.length) != null ? n : 0 }), !this._controller) return;
|
|
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);
|
|
2682
3799
|
}
|
|
2683
3800
|
async clearLayers() {
|
|
2684
3801
|
this._logger.debug("clearLayers"), this._controller && await this._controller.clearLayers();
|
|
2685
3802
|
}
|
|
2686
3803
|
async addFeatures(e) {
|
|
2687
|
-
var a,
|
|
2688
|
-
if (this._logger.debug("addFeatures", { count: (
|
|
2689
|
-
const
|
|
2690
|
-
this.dispatchEvent(new CustomEvent("leaflet-draw:ingest", { detail:
|
|
2691
|
-
const
|
|
2692
|
-
return this._controller.addFeatures(
|
|
3804
|
+
var a, n;
|
|
3805
|
+
if (this._logger.debug("addFeatures", { count: (n = (a = e == null ? void 0 : e.features) == null ? void 0 : a.length) != null ? n : 0 }), !this._controller) return [];
|
|
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);
|
|
2693
3810
|
}
|
|
2694
|
-
async updateFeature(e,
|
|
2695
|
-
this._logger.debug("updateFeature", { id: e }), this._controller && await this._controller.updateFeature(e,
|
|
3811
|
+
async updateFeature(e, r) {
|
|
3812
|
+
this._logger.debug("updateFeature", { id: e }), this._controller && await this._controller.updateFeature(e, r);
|
|
2696
3813
|
}
|
|
2697
3814
|
async removeFeature(e) {
|
|
2698
3815
|
this._logger.debug("removeFeature", { id: e }), this._controller && await this._controller.removeFeature(e);
|
|
@@ -2702,19 +3819,19 @@ class fe extends HTMLElement {
|
|
|
2702
3819
|
typeof e == "number" ? e : 0.05
|
|
2703
3820
|
);
|
|
2704
3821
|
}
|
|
2705
|
-
async fitBounds(e,
|
|
2706
|
-
this._logger.debug("fitBounds", { bounds: e, padding:
|
|
3822
|
+
async fitBounds(e, r) {
|
|
3823
|
+
this._logger.debug("fitBounds", { bounds: e, padding: r }), this._controller && await this._controller.fitBounds(
|
|
2707
3824
|
e,
|
|
2708
|
-
typeof
|
|
3825
|
+
typeof r == "number" ? r : 0.05
|
|
2709
3826
|
);
|
|
2710
3827
|
}
|
|
2711
|
-
async setView(e,
|
|
2712
|
-
this._logger.debug("setView", { lat: e, lng:
|
|
3828
|
+
async setView(e, r, o) {
|
|
3829
|
+
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);
|
|
2713
3830
|
}
|
|
2714
3831
|
async exportGeoJSON() {
|
|
2715
3832
|
if (this._logger.debug("exportGeoJSON"), !this._controller) return { type: "FeatureCollection", features: [] };
|
|
2716
|
-
const e = await this._controller.getGeoJSON(),
|
|
2717
|
-
return this.dispatchEvent(new CustomEvent("leaflet-draw:export", { detail:
|
|
3833
|
+
const e = await this._controller.getGeoJSON(), r = { geoJSON: e, featureCount: e.features.length };
|
|
3834
|
+
return this.dispatchEvent(new CustomEvent("leaflet-draw:export", { detail: r })), e;
|
|
2718
3835
|
}
|
|
2719
3836
|
/**
|
|
2720
3837
|
* Merge all visible polygon layers into a single polygon.
|
|
@@ -2725,55 +3842,138 @@ class fe extends HTMLElement {
|
|
|
2725
3842
|
*/
|
|
2726
3843
|
async mergePolygons(e) {
|
|
2727
3844
|
if (this._logger.debug("mergePolygons"), !this._controller) return null;
|
|
2728
|
-
const
|
|
3845
|
+
const o = (await this._controller.getGeoJSON()).features.length, a = await this._controller.mergeVisiblePolygons(e);
|
|
2729
3846
|
if (a) {
|
|
2730
|
-
const
|
|
3847
|
+
const n = await this._controller.getGeoJSON(), s = {
|
|
2731
3848
|
id: a,
|
|
2732
|
-
mergedFeatureCount:
|
|
2733
|
-
geoJSON:
|
|
3849
|
+
mergedFeatureCount: o - n.features.length + 1,
|
|
3850
|
+
geoJSON: n
|
|
2734
3851
|
};
|
|
2735
|
-
this.dispatchEvent(new CustomEvent("leaflet-draw:merged", { detail:
|
|
3852
|
+
this.dispatchEvent(new CustomEvent("leaflet-draw:merged", { detail: s }));
|
|
2736
3853
|
}
|
|
2737
3854
|
return a;
|
|
2738
3855
|
}
|
|
2739
3856
|
async setMeasurementUnits(e) {
|
|
2740
3857
|
this._logger.debug("setMeasurementUnits", { system: e }), this._controller && this._controller.setRulerUnits(e);
|
|
2741
3858
|
}
|
|
3859
|
+
async activateTool(e, r = {}) {
|
|
3860
|
+
var s, l;
|
|
3861
|
+
const o = (s = r.source) != null ? s : "api";
|
|
3862
|
+
if (this.dispatchEvent(
|
|
3863
|
+
new CustomEvent("leaflet-geokit:tool-trigger-requested", {
|
|
3864
|
+
bubbles: !0,
|
|
3865
|
+
composed: !0,
|
|
3866
|
+
detail: {
|
|
3867
|
+
tool: e,
|
|
3868
|
+
source: o,
|
|
3869
|
+
groupId: r.groupId,
|
|
3870
|
+
handled: !1,
|
|
3871
|
+
timestamp: Date.now()
|
|
3872
|
+
}
|
|
3873
|
+
})
|
|
3874
|
+
), !this._controller)
|
|
3875
|
+
return this._emitToolTriggerResult({
|
|
3876
|
+
tool: e,
|
|
3877
|
+
source: o,
|
|
3878
|
+
groupId: r.groupId,
|
|
3879
|
+
handled: !1,
|
|
3880
|
+
timestamp: Date.now(),
|
|
3881
|
+
error: "Map controller is not initialized"
|
|
3882
|
+
}), !1;
|
|
3883
|
+
const a = this._controller, n = typeof a.activateTool == "function" ? a.activateTool.bind(a) : (l = a.triggerTool) == null ? void 0 : l.bind(a);
|
|
3884
|
+
return n ? n(e, {
|
|
3885
|
+
source: o,
|
|
3886
|
+
groupId: r.groupId
|
|
3887
|
+
}) : (this._emitToolTriggerResult({
|
|
3888
|
+
tool: e,
|
|
3889
|
+
source: o,
|
|
3890
|
+
groupId: r.groupId,
|
|
3891
|
+
handled: !1,
|
|
3892
|
+
timestamp: Date.now(),
|
|
3893
|
+
error: "Map controller cannot activate tools"
|
|
3894
|
+
}), !1);
|
|
3895
|
+
}
|
|
3896
|
+
async triggerTool(e, r = {}) {
|
|
3897
|
+
return this.activateTool(e, r);
|
|
3898
|
+
}
|
|
3899
|
+
async deactivateTool(e = {}) {
|
|
3900
|
+
var n, s;
|
|
3901
|
+
const r = (n = e.source) != null ? n : "api";
|
|
3902
|
+
if (this.dispatchEvent(
|
|
3903
|
+
new CustomEvent("leaflet-geokit:tool-trigger-requested", {
|
|
3904
|
+
bubbles: !0,
|
|
3905
|
+
composed: !0,
|
|
3906
|
+
detail: {
|
|
3907
|
+
tool: "select",
|
|
3908
|
+
source: r,
|
|
3909
|
+
groupId: e.groupId,
|
|
3910
|
+
handled: !1,
|
|
3911
|
+
timestamp: Date.now()
|
|
3912
|
+
}
|
|
3913
|
+
})
|
|
3914
|
+
), !this._controller)
|
|
3915
|
+
return this._emitToolTriggerResult({
|
|
3916
|
+
tool: "select",
|
|
3917
|
+
source: r,
|
|
3918
|
+
groupId: e.groupId,
|
|
3919
|
+
handled: !1,
|
|
3920
|
+
timestamp: Date.now(),
|
|
3921
|
+
error: "Map controller is not initialized"
|
|
3922
|
+
}), !1;
|
|
3923
|
+
const o = this._controller;
|
|
3924
|
+
if (typeof o.deactivateTool == "function")
|
|
3925
|
+
return o.deactivateTool({
|
|
3926
|
+
source: r,
|
|
3927
|
+
groupId: e.groupId
|
|
3928
|
+
});
|
|
3929
|
+
const a = typeof o.activateTool == "function" ? o.activateTool.bind(o) : (s = o.triggerTool) == null ? void 0 : s.bind(o);
|
|
3930
|
+
return a ? a("select", {
|
|
3931
|
+
source: r,
|
|
3932
|
+
groupId: e.groupId
|
|
3933
|
+
}) : (this._emitToolTriggerResult({
|
|
3934
|
+
tool: "select",
|
|
3935
|
+
source: r,
|
|
3936
|
+
groupId: e.groupId,
|
|
3937
|
+
handled: !1,
|
|
3938
|
+
timestamp: Date.now(),
|
|
3939
|
+
error: "Map controller cannot deactivate tools"
|
|
3940
|
+
}), !1);
|
|
3941
|
+
}
|
|
2742
3942
|
async loadGeoJSONFromUrl(e) {
|
|
2743
3943
|
if (this._logger.debug("loadGeoJSONFromUrl", { url: e }), !this._controller) return;
|
|
2744
|
-
const
|
|
2745
|
-
if (!
|
|
2746
|
-
const
|
|
2747
|
-
`Failed to fetch GeoJSON from ${e}: ${
|
|
3944
|
+
const r = await fetch(e, { headers: { Accept: "application/json" } });
|
|
3945
|
+
if (!r.ok) {
|
|
3946
|
+
const s = new Error(
|
|
3947
|
+
`Failed to fetch GeoJSON from ${e}: ${r.status} ${r.statusText}`
|
|
2748
3948
|
);
|
|
2749
3949
|
throw this.dispatchEvent(
|
|
2750
3950
|
new CustomEvent("leaflet-draw:error", {
|
|
2751
|
-
detail: { message:
|
|
3951
|
+
detail: { message: s.message, cause: s }
|
|
2752
3952
|
})
|
|
2753
|
-
),
|
|
3953
|
+
), s;
|
|
2754
3954
|
}
|
|
2755
|
-
const
|
|
3955
|
+
const o = await r.json(), a = { fc: o, mode: "load" };
|
|
2756
3956
|
this.dispatchEvent(new CustomEvent("leaflet-draw:ingest", { detail: a }));
|
|
2757
|
-
const
|
|
2758
|
-
await this._controller.loadGeoJSON(
|
|
3957
|
+
const n = a.fc && a.fc.type === "FeatureCollection" ? a.fc : o;
|
|
3958
|
+
await this._controller.loadGeoJSON(n, !0);
|
|
2759
3959
|
}
|
|
2760
3960
|
async loadGeoJSONFromText(e) {
|
|
2761
|
-
var
|
|
2762
|
-
if (this._logger.debug("loadGeoJSONFromText", { length: (
|
|
2763
|
-
let
|
|
3961
|
+
var n;
|
|
3962
|
+
if (this._logger.debug("loadGeoJSONFromText", { length: (n = e == null ? void 0 : e.length) != null ? n : 0 }), !this._controller) return;
|
|
3963
|
+
let r;
|
|
2764
3964
|
try {
|
|
2765
|
-
|
|
2766
|
-
} catch (
|
|
3965
|
+
r = JSON.parse(e);
|
|
3966
|
+
} catch (s) {
|
|
2767
3967
|
const l = new Error("Failed to parse GeoJSON text");
|
|
2768
3968
|
throw this.dispatchEvent(
|
|
2769
3969
|
new CustomEvent("leaflet-draw:error", {
|
|
2770
|
-
detail: { message: l.message, cause:
|
|
3970
|
+
detail: { message: l.message, cause: s }
|
|
2771
3971
|
})
|
|
2772
3972
|
), l;
|
|
2773
3973
|
}
|
|
2774
|
-
const
|
|
2775
|
-
this.dispatchEvent(new CustomEvent("leaflet-draw:ingest", { detail:
|
|
2776
|
-
const a =
|
|
3974
|
+
const o = { fc: r, mode: "load" };
|
|
3975
|
+
this.dispatchEvent(new CustomEvent("leaflet-draw:ingest", { detail: o }));
|
|
3976
|
+
const a = o.fc && o.fc.type === "FeatureCollection" ? o.fc : r;
|
|
2777
3977
|
await this._controller.loadGeoJSON(a, !0);
|
|
2778
3978
|
}
|
|
2779
3979
|
// Helpers
|
|
@@ -2797,8 +3997,8 @@ class fe extends HTMLElement {
|
|
|
2797
3997
|
};
|
|
2798
3998
|
}
|
|
2799
3999
|
_applyThemeStyles() {
|
|
2800
|
-
var
|
|
2801
|
-
const e = (
|
|
4000
|
+
var o;
|
|
4001
|
+
const e = (o = this._themeUrl) == null ? void 0 : o.trim();
|
|
2802
4002
|
if (e) {
|
|
2803
4003
|
if (!this._themeLinkEl) {
|
|
2804
4004
|
const a = document.createElement("link");
|
|
@@ -2806,65 +4006,77 @@ class fe extends HTMLElement {
|
|
|
2806
4006
|
}
|
|
2807
4007
|
this._themeLinkEl.getAttribute("href") !== e && this._themeLinkEl.setAttribute("href", e);
|
|
2808
4008
|
} else this._themeLinkEl && (this._themeLinkEl.remove(), this._themeLinkEl = null);
|
|
2809
|
-
const
|
|
2810
|
-
if (
|
|
4009
|
+
const r = this._themeCss;
|
|
4010
|
+
if (r.trim().length > 0) {
|
|
2811
4011
|
if (!this._themeStyleEl) {
|
|
2812
4012
|
const a = document.createElement("style");
|
|
2813
4013
|
a.setAttribute("data-geokit-theme-css", "true"), this._root.appendChild(a), this._themeStyleEl = a;
|
|
2814
4014
|
}
|
|
2815
|
-
this._themeStyleEl.textContent !==
|
|
4015
|
+
this._themeStyleEl.textContent !== r && (this._themeStyleEl.textContent = r);
|
|
2816
4016
|
} else this._themeStyleEl && (this._themeStyleEl.remove(), this._themeStyleEl = null);
|
|
2817
4017
|
}
|
|
4018
|
+
_emitToolTriggerResult(e) {
|
|
4019
|
+
this.dispatchEvent(
|
|
4020
|
+
new CustomEvent(
|
|
4021
|
+
e.handled ? "leaflet-geokit:tool-triggered" : "leaflet-geokit:tool-trigger-failed",
|
|
4022
|
+
{
|
|
4023
|
+
bubbles: !0,
|
|
4024
|
+
composed: !0,
|
|
4025
|
+
detail: e
|
|
4026
|
+
}
|
|
4027
|
+
)
|
|
4028
|
+
);
|
|
4029
|
+
}
|
|
2818
4030
|
_syncApiKeyFromAttributes() {
|
|
2819
|
-
const e = this._normalizeText(this.getAttribute("api-key")),
|
|
2820
|
-
this._apiKey = e != null ? e :
|
|
4031
|
+
const e = this._normalizeText(this.getAttribute("api-key")), r = this._normalizeText(this.getAttribute("here-api-key"));
|
|
4032
|
+
this._apiKey = e != null ? e : r;
|
|
2821
4033
|
}
|
|
2822
|
-
_normalizeText(e,
|
|
4034
|
+
_normalizeText(e, r) {
|
|
2823
4035
|
if (typeof e != "string") return;
|
|
2824
|
-
const
|
|
2825
|
-
if (
|
|
2826
|
-
return
|
|
4036
|
+
const o = e.trim();
|
|
4037
|
+
if (o)
|
|
4038
|
+
return r != null && r.lowercase ? o.toLowerCase() : o;
|
|
2827
4039
|
}
|
|
2828
4040
|
_resolveTileProviderErrorCode(e) {
|
|
2829
4041
|
return e instanceof Error && e.message.toLowerCase().includes("unknown tile provider") ? "unknown_provider" : "tile_load_failed";
|
|
2830
4042
|
}
|
|
2831
4043
|
_resolveHereTileLayerErrorCode(e) {
|
|
2832
|
-
const
|
|
2833
|
-
return
|
|
4044
|
+
const r = e.toLowerCase();
|
|
4045
|
+
return r.includes("permission") || r.includes("forbidden") || r.includes("403") || r.includes("unauthorized") || r.includes("not authorized") || r.includes("not authorised") || r.includes("access denied") ? "permission_denied" : "invalid_api_key";
|
|
2834
4046
|
}
|
|
2835
|
-
_describeTileLayerError(e,
|
|
4047
|
+
_describeTileLayerError(e, r) {
|
|
2836
4048
|
if (e && typeof e == "object" && "error" in e && e.error instanceof Error)
|
|
2837
4049
|
return e.error.message;
|
|
2838
4050
|
if (e instanceof Error && e.message)
|
|
2839
4051
|
return e.message;
|
|
2840
4052
|
if (e && typeof e == "object" && "message" in e && typeof e.message == "string") {
|
|
2841
|
-
const
|
|
2842
|
-
if (
|
|
2843
|
-
return
|
|
4053
|
+
const o = e.message.trim();
|
|
4054
|
+
if (o.length > 0)
|
|
4055
|
+
return o;
|
|
2844
4056
|
}
|
|
2845
|
-
return
|
|
4057
|
+
return r === "here" ? `Failed to load HERE tiles; verify API key, project permissions, and allowed localhost origin/referrer.${this._tileStyle === "satellite.day" ? " If satellite.day fails, try lite.day." : ""}` : "Failed to load tile layer";
|
|
2846
4058
|
}
|
|
2847
|
-
_reflect(e,
|
|
2848
|
-
|
|
4059
|
+
_reflect(e, r) {
|
|
4060
|
+
r === null ? this.removeAttribute(e) : this.getAttribute(e) !== r && this.setAttribute(e, r);
|
|
2849
4061
|
}
|
|
2850
|
-
_booleanReflect(e,
|
|
2851
|
-
|
|
4062
|
+
_booleanReflect(e, r) {
|
|
4063
|
+
r ? this.hasAttribute(e) || this.setAttribute(e, "") : this.hasAttribute(e) && this.removeAttribute(e);
|
|
2852
4064
|
}
|
|
2853
|
-
_coerceNumber(e,
|
|
2854
|
-
if (e == null) return
|
|
2855
|
-
const
|
|
2856
|
-
return Number.isFinite(
|
|
4065
|
+
_coerceNumber(e, r) {
|
|
4066
|
+
if (e == null) return r != null ? r : NaN;
|
|
4067
|
+
const o = Number(e);
|
|
4068
|
+
return Number.isFinite(o) ? o : r != null ? r : NaN;
|
|
2857
4069
|
}
|
|
2858
4070
|
}
|
|
2859
|
-
const
|
|
2860
|
-
customElements.get(
|
|
2861
|
-
const
|
|
2862
|
-
if (!customElements.get(
|
|
2863
|
-
class
|
|
4071
|
+
const we = "leaflet-geokit";
|
|
4072
|
+
customElements.get(we) || customElements.define(we, ze);
|
|
4073
|
+
const ve = "leaflet-draw-map";
|
|
4074
|
+
if (!customElements.get(ve)) {
|
|
4075
|
+
class i extends ze {
|
|
2864
4076
|
}
|
|
2865
|
-
customElements.define(
|
|
4077
|
+
customElements.define(ve, i);
|
|
2866
4078
|
}
|
|
2867
4079
|
export {
|
|
2868
|
-
|
|
4080
|
+
ze as LeafletDrawMapElement
|
|
2869
4081
|
};
|
|
2870
|
-
//# sourceMappingURL=index-
|
|
4082
|
+
//# sourceMappingURL=index-x8CrGR_z.js.map
|