@nextgis/ngw-leaflet 1.9.6 → 1.11.2
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/lib/ngw-leaflet.esm-browser.js +99 -26
- package/lib/ngw-leaflet.esm-browser.js.map +1 -1
- package/lib/ngw-leaflet.esm-browser.prod.js +2 -2
- package/lib/ngw-leaflet.esm-browser.prod.js.map +1 -1
- package/lib/ngw-leaflet.esm-bundler.js +1 -1
- package/lib/ngw-leaflet.global.js +143 -66
- package/lib/ngw-leaflet.global.js.map +1 -1
- package/lib/ngw-leaflet.global.prod.js +2 -2
- package/lib/ngw-leaflet.global.prod.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/ngw-leaflet; version: 1.
|
|
1
|
+
/** Bundle of @nextgis/ngw-leaflet; version: 1.11.2; author: NextGIS */
|
|
2
2
|
var NgwLeaflet = (function () {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -106,10 +106,14 @@ var NgwLeaflet = (function () {
|
|
|
106
106
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
function __spreadArray(to, from) {
|
|
110
|
-
for (var i = 0,
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
function __spreadArray(to, from, pack) {
|
|
110
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
111
|
+
if (ar || !(i in from)) {
|
|
112
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
113
|
+
ar[i] = from[i];
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
113
117
|
}
|
|
114
118
|
|
|
115
119
|
function __asyncValues(o) {
|
|
@@ -147,7 +151,7 @@ var NgwLeaflet = (function () {
|
|
|
147
151
|
}
|
|
148
152
|
}
|
|
149
153
|
|
|
150
|
-
var css_248z$1 = ".leaflet-image-layer,.leaflet-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane,.leaflet-pane>canvas,.leaflet-pane>svg,.leaflet-tile,.leaflet-tile-container,.leaflet-zoom-box{left:0;position:absolute;top:0}.leaflet-container{overflow:hidden}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile{-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{height:1600px;-webkit-transform-origin:0 0;width:1600px}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-overlay-pane svg,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer{max-height:none!important;max-width:none!important}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{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{box-sizing:border-box;height:0;width:0;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{height:1px;width:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{pointer-events:visiblePainted;pointer-events:auto;position:relative;z-index:800}.leaflet-bottom,.leaflet-top{pointer-events:none;position:absolute;z-index:1000}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{clear:both;float:left}.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-tile{will-change:opacity}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1);will-change:transform}.leaflet-pan-anim .leaflet-tile,.leaflet-zoom-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-control,.leaflet-popup-pane{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:grabbing}.leaflet-image-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-image-layer.leaflet-interactive,.leaflet-marker-icon.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:0}.leaflet-container a{color:#0078a8}.leaflet-container a.leaflet-active{outline:2px solid orange}.leaflet-zoom-box{background:rgba(255,255,255,.5);border:2px dotted #38f}.leaflet-container{font:12px/1.5 Helvetica Neue,Arial,Helvetica,sans-serif}.leaflet-bar{border-radius:4px;box-shadow:0 1px 5px rgba(0,0,0,.65)}.leaflet-bar a,.leaflet-bar a:hover{background-color:#fff;border-bottom:1px solid #ccc;color:#000;display:block;height:26px;line-height:26px;text-align:center;text-decoration:none;width:26px}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover{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:none;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.leaflet-bar a.leaflet-disabled{background-color:#f4f4f4;color:#bbb;cursor:default}.leaflet-touch .leaflet-bar a{height:30px;line-height:30px;width: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{background:#fff;border-radius:5px;box-shadow:0 1px 5px rgba(0,0,0,.4)}.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);height:36px;width: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/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJ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hsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{height:44px;width:44px}.leaflet-control-layers-expanded .leaflet-control-layers-toggle,.leaflet-control-layers .leaflet-control-layers-list{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{background:#fff;color:#333;padding:6px 10px 6px 6px}.leaflet-control-layers-scrollbar{overflow-x:hidden;overflow-y:scroll;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block}.leaflet-control-layers-separator{border-top:1px solid #ddd;height:0;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/uDivd3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cGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:hsla(0,0%,100%,.7);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{color:#333;padding:0 5px}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover{text-decoration:underline}.leaflet-container .leaflet-control-attribution,.leaflet-container .leaflet-control-scale{font-size:11px}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{background:#fff;background:hsla(0,0%,100%,.5);border:2px solid #777;border-top:none;box-sizing:border-box;font-size:11px;line-height:1.1;overflow:hidden;padding:2px 5px 1px;white-space:nowrap}.leaflet-control-scale-line:not(:first-child){border-bottom:none;border-top:2px solid #777;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers{box-shadow:none}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-layers{background-clip:padding-box;border:2px solid rgba(0,0,0,.2)}.leaflet-popup{margin-bottom:20px;position:absolute;text-align:center}.leaflet-popup-content-wrapper{border-radius:12px;padding:1px;text-align:left}.leaflet-popup-content{line-height:1.4;margin:13px 19px}.leaflet-popup-content p{margin:18px 0}.leaflet-popup-tip-container{height:20px;left:50%;margin-left:-20px;overflow:hidden;pointer-events:none;position:absolute;width:40px}.leaflet-popup-tip{height:17px;margin:-10px auto 0;padding:1px;transform:rotate(45deg);width:17px}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;box-shadow:0 3px 14px rgba(0,0,0,.4);color:#333}.leaflet-container a.leaflet-popup-close-button{background:transparent;border:none;color:#c3c3c3;font:16px/14px Tahoma,Verdana,sans-serif;font-weight:700;height:14px;padding:4px 4px 0 0;position:absolute;right:0;text-align:center;text-decoration:none;top:0;width:18px}.leaflet-container a.leaflet-popup-close-button:hover{color:#999}.leaflet-popup-scrolled{border-bottom:1px solid #ddd;border-top:1px solid #ddd;overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{-ms-filter:\"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)\";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678,M12=0.70710678,M21=-0.70710678,M22=0.70710678);margin:0 auto;width:24px}.leaflet-oldie .leaflet-popup-tip-container{margin-top:-1px}.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-control-zoom,.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{background-color:#fff;border:1px solid #fff;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.4);color:#222;padding:6px;pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.leaflet-tooltip.leaflet-clickable{cursor:pointer;pointer-events:auto}.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before,.leaflet-tooltip-top:before{background:transparent;border:6px solid transparent;content:\"\";pointer-events:none;position:absolute}.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{border-top-color:#fff;bottom:0;margin-bottom:-12px}.leaflet-tooltip-bottom:before{border-bottom-color:#fff;margin-left:-6px;margin-top:-12px;top:0}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{margin-top:-6px;top:50%}.leaflet-tooltip-left:before{border-left-color:#fff;margin-right:-12px;right:0}.leaflet-tooltip-right:before{border-right-color:#fff;left:0;margin-left:-12px}";
|
|
154
|
+
var css_248z$1 = ".leaflet-image-layer,.leaflet-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane,.leaflet-pane>canvas,.leaflet-pane>svg,.leaflet-tile,.leaflet-tile-container,.leaflet-zoom-box{left:0;position:absolute;top:0}.leaflet-container{overflow:hidden}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile{-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{height:1600px;-webkit-transform-origin:0 0;width:1600px}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-overlay-pane svg,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer{max-height:none!important;max-width:none!important}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{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{box-sizing:border-box;height:0;width:0;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{height:1px;width:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{pointer-events:visiblePainted;pointer-events:auto;position:relative;z-index:800}.leaflet-bottom,.leaflet-top{pointer-events:none;position:absolute;z-index:1000}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{clear:both;float:left}.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-tile{will-change:opacity}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1);will-change:transform}.leaflet-pan-anim .leaflet-tile,.leaflet-zoom-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-control,.leaflet-popup-pane{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:grabbing}.leaflet-image-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-image-layer.leaflet-interactive,.leaflet-marker-icon.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:0}.leaflet-container a{color:#0078a8}.leaflet-container a.leaflet-active{outline:2px solid orange}.leaflet-zoom-box{background:hsla(0,0%,100%,.5);border:2px dotted #38f}.leaflet-container{font:12px/1.5 Helvetica Neue,Arial,Helvetica,sans-serif}.leaflet-bar{border-radius:4px;box-shadow:0 1px 5px rgba(0,0,0,.65)}.leaflet-bar a,.leaflet-bar a:hover{background-color:#fff;border-bottom:1px solid #ccc;color:#000;display:block;height:26px;line-height:26px;text-align:center;text-decoration:none;width:26px}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover{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:none;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.leaflet-bar a.leaflet-disabled{background-color:#f4f4f4;color:#bbb;cursor:default}.leaflet-touch .leaflet-bar a{height:30px;line-height:30px;width: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{background:#fff;border-radius:5px;box-shadow:0 1px 5px rgba(0,0,0,.4)}.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);height:36px;width: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{height:44px;width:44px}.leaflet-control-layers-expanded .leaflet-control-layers-toggle,.leaflet-control-layers .leaflet-control-layers-list{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{background:#fff;color:#333;padding:6px 10px 6px 6px}.leaflet-control-layers-scrollbar{overflow-x:hidden;overflow-y:scroll;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block}.leaflet-control-layers-separator{border-top:1px solid #ddd;height:0;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/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2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ut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:hsla(0,0%,100%,.7);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{color:#333;padding:0 5px}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover{text-decoration:underline}.leaflet-container .leaflet-control-attribution,.leaflet-container .leaflet-control-scale{font-size:11px}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{background:#fff;background:hsla(0,0%,100%,.5);border:2px solid #777;border-top:none;box-sizing:border-box;font-size:11px;line-height:1.1;overflow:hidden;padding:2px 5px 1px;white-space:nowrap}.leaflet-control-scale-line:not(:first-child){border-bottom:none;border-top:2px solid #777;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers{box-shadow:none}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-layers{background-clip:padding-box;border:2px solid rgba(0,0,0,.2)}.leaflet-popup{margin-bottom:20px;position:absolute;text-align:center}.leaflet-popup-content-wrapper{border-radius:12px;padding:1px;text-align:left}.leaflet-popup-content{line-height:1.4;margin:13px 19px}.leaflet-popup-content p{margin:18px 0}.leaflet-popup-tip-container{height:20px;left:50%;margin-left:-20px;overflow:hidden;pointer-events:none;position:absolute;width:40px}.leaflet-popup-tip{height:17px;margin:-10px auto 0;padding:1px;transform:rotate(45deg);width:17px}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;box-shadow:0 3px 14px rgba(0,0,0,.4);color:#333}.leaflet-container a.leaflet-popup-close-button{background:transparent;border:none;color:#c3c3c3;font:16px/14px Tahoma,Verdana,sans-serif;font-weight:700;height:14px;padding:4px 4px 0 0;position:absolute;right:0;text-align:center;text-decoration:none;top:0;width:18px}.leaflet-container a.leaflet-popup-close-button:hover{color:#999}.leaflet-popup-scrolled{border-bottom:1px solid #ddd;border-top:1px solid #ddd;overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{-ms-filter:\"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)\";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678,M12=0.70710678,M21=-0.70710678,M22=0.70710678);margin:0 auto;width:24px}.leaflet-oldie .leaflet-popup-tip-container{margin-top:-1px}.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-control-zoom,.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{background-color:#fff;border:1px solid #fff;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.4);color:#222;padding:6px;pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.leaflet-tooltip.leaflet-clickable{cursor:pointer;pointer-events:auto}.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before,.leaflet-tooltip-top:before{background:transparent;border:6px solid transparent;content:\"\";pointer-events:none;position:absolute}.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{border-top-color:#fff;bottom:0;margin-bottom:-12px}.leaflet-tooltip-bottom:before{border-bottom-color:#fff;margin-left:-6px;margin-top:-12px;top:0}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{margin-top:-6px;top:50%}.leaflet-tooltip-left:before{border-left-color:#fff;margin-right:-12px;right:0}.leaflet-tooltip-right:before{border-right-color:#fff;left:0;margin-left:-12px}";
|
|
151
155
|
styleInject(css_248z$1);
|
|
152
156
|
|
|
153
157
|
var css_248z = ".ngw-map-container.leaflet-container{background:#fff}.leaflet-pane .leaflet-popup-pane{z-index:9999999999}";
|
|
@@ -15204,7 +15208,7 @@ var NgwLeaflet = (function () {
|
|
|
15204
15208
|
|
|
15205
15209
|
/** @internal */
|
|
15206
15210
|
function deprecatedWarn(message) {
|
|
15207
|
-
console.warn("DEPRECATED WARN: "
|
|
15211
|
+
console.warn("DEPRECATED WARN: ".concat(message));
|
|
15208
15212
|
}
|
|
15209
15213
|
|
|
15210
15214
|
// based on https://github.com/bvaughn/debounce-decorator
|
|
@@ -15500,7 +15504,7 @@ var NgwLeaflet = (function () {
|
|
|
15500
15504
|
return true;
|
|
15501
15505
|
if (iLike && a.toUpperCase() === b.toUpperCase())
|
|
15502
15506
|
return true;
|
|
15503
|
-
var re =
|
|
15507
|
+
var re = "^".concat(reEscape(a), "$").replace(/%/g, '.*').replace('_', '.');
|
|
15504
15508
|
return new RegExp(re, iLike ? 'i' : '').exec(b) !== null;
|
|
15505
15509
|
}
|
|
15506
15510
|
var operationsAliases = {
|
|
@@ -15950,7 +15954,7 @@ var NgwLeaflet = (function () {
|
|
|
15950
15954
|
minZoom: 0,
|
|
15951
15955
|
maxZoom: 20,
|
|
15952
15956
|
paint: {
|
|
15953
|
-
color: '
|
|
15957
|
+
color: '#0000ff',
|
|
15954
15958
|
opacity: 0.4,
|
|
15955
15959
|
strokeOpacity: 1,
|
|
15956
15960
|
stroke: true,
|
|
@@ -15958,7 +15962,7 @@ var NgwLeaflet = (function () {
|
|
|
15958
15962
|
weight: 1,
|
|
15959
15963
|
},
|
|
15960
15964
|
selectedPaint: {
|
|
15961
|
-
color: '
|
|
15965
|
+
color: '#00008b',
|
|
15962
15966
|
opacity: 0.4,
|
|
15963
15967
|
strokeOpacity: 1,
|
|
15964
15968
|
stroke: true,
|
|
@@ -16740,7 +16744,7 @@ var NgwLeaflet = (function () {
|
|
|
16740
16744
|
}
|
|
16741
16745
|
layerId = String(_adapter.id);
|
|
16742
16746
|
if (this._layers[layerId]) {
|
|
16743
|
-
throw Error("layer with id '"
|
|
16747
|
+
throw Error("layer with id '".concat(layerId, "' already exist"));
|
|
16744
16748
|
}
|
|
16745
16749
|
if (!layerId) return [3 /*break*/, 8];
|
|
16746
16750
|
this._layers[layerId] = _adapter;
|
|
@@ -17234,6 +17238,30 @@ var NgwLeaflet = (function () {
|
|
|
17234
17238
|
adapter.clearLayer(cb);
|
|
17235
17239
|
}
|
|
17236
17240
|
};
|
|
17241
|
+
WebMapLayers.prototype.setLayerPaint = function (layerDef, paint) {
|
|
17242
|
+
var layer = this.getLayer(layerDef);
|
|
17243
|
+
if (paint && layer && layer.setPaint) {
|
|
17244
|
+
layer.setPaint(paint);
|
|
17245
|
+
}
|
|
17246
|
+
};
|
|
17247
|
+
WebMapLayers.prototype.setLayerSelectedPaint = function (layerDef, paint) {
|
|
17248
|
+
var layer = this.getLayer(layerDef);
|
|
17249
|
+
if (paint && layer && layer.setSelectedPaint) {
|
|
17250
|
+
layer.setSelectedPaint(paint);
|
|
17251
|
+
}
|
|
17252
|
+
};
|
|
17253
|
+
WebMapLayers.prototype.updateLayerPaint = function (layerDef, paint) {
|
|
17254
|
+
var layer = this.getLayer(layerDef);
|
|
17255
|
+
if (paint && layer && layer.updatePaint) {
|
|
17256
|
+
layer.updatePaint(paint);
|
|
17257
|
+
}
|
|
17258
|
+
};
|
|
17259
|
+
WebMapLayers.prototype.updateLayerSelectedPaint = function (layerDef, paint) {
|
|
17260
|
+
var layer = this.getLayer(layerDef);
|
|
17261
|
+
if (paint && layer && layer.updateSelectedPaint) {
|
|
17262
|
+
layer.updateSelectedPaint(paint);
|
|
17263
|
+
}
|
|
17264
|
+
};
|
|
17237
17265
|
WebMapLayers.prototype.getAttributions = function (options) {
|
|
17238
17266
|
var attributions = [];
|
|
17239
17267
|
for (var l in this._layers) {
|
|
@@ -18099,12 +18127,16 @@ var NgwLeaflet = (function () {
|
|
|
18099
18127
|
var _this = _super.call(this) || this;
|
|
18100
18128
|
_this.name = 'NetworkError';
|
|
18101
18129
|
Object.setPrototypeOf(_this, NetworkError.prototype);
|
|
18102
|
-
_this.message = "Unable to request "
|
|
18130
|
+
_this.message = "Unable to request ".concat(url, ".\n Possibly invalid NGW URL entered or CORS not configured to get request from ").concat(location.origin); // /control-panel/cors
|
|
18103
18131
|
return _this;
|
|
18104
18132
|
}
|
|
18105
18133
|
return NetworkError;
|
|
18106
18134
|
}(Error));
|
|
18107
18135
|
|
|
18136
|
+
function isObject(val) {
|
|
18137
|
+
return Object.prototype.toString.call(val) === '[object Object]';
|
|
18138
|
+
}
|
|
18139
|
+
|
|
18108
18140
|
var loadData;
|
|
18109
18141
|
// @ts-ignore
|
|
18110
18142
|
{
|
|
@@ -18140,7 +18172,7 @@ var NgwLeaflet = (function () {
|
|
|
18140
18172
|
}
|
|
18141
18173
|
};
|
|
18142
18174
|
xhr.onload = function () {
|
|
18143
|
-
if ([401, 403, 404, 500].indexOf(xhr.status) !== -1) {
|
|
18175
|
+
if ([401, 403, 404, 422, 500].indexOf(xhr.status) !== -1) {
|
|
18144
18176
|
error(new NgwError(getResponseText()));
|
|
18145
18177
|
}
|
|
18146
18178
|
processingResponse();
|
|
@@ -18195,7 +18227,7 @@ var NgwLeaflet = (function () {
|
|
|
18195
18227
|
data = new FormData();
|
|
18196
18228
|
data.append('file', options.file);
|
|
18197
18229
|
if (options.data) {
|
|
18198
|
-
for (var d in data) {
|
|
18230
|
+
for (var d in options.data) {
|
|
18199
18231
|
data.append(d, data[d]);
|
|
18200
18232
|
}
|
|
18201
18233
|
}
|
|
@@ -18287,10 +18319,6 @@ var NgwLeaflet = (function () {
|
|
|
18287
18319
|
}
|
|
18288
18320
|
}
|
|
18289
18321
|
|
|
18290
|
-
function isObject(val) {
|
|
18291
|
-
return Object.prototype.toString.call(val) === '[object Object]';
|
|
18292
|
-
}
|
|
18293
|
-
|
|
18294
18322
|
var exclude = ['description'];
|
|
18295
18323
|
/**
|
|
18296
18324
|
* @remarks
|
|
@@ -18541,7 +18569,7 @@ var NgwLeaflet = (function () {
|
|
|
18541
18569
|
ResourcesControl.prototype._fetchResourceById = function (id, requestOptions) {
|
|
18542
18570
|
var _this = this;
|
|
18543
18571
|
var promise = function () {
|
|
18544
|
-
return _this.connector.get('resource.item', requestOptions, { id: id })
|
|
18572
|
+
return _this.connector.get('resource.item', requestOptions, { id: id });
|
|
18545
18573
|
};
|
|
18546
18574
|
return this.cache
|
|
18547
18575
|
.add('resource.item', promise, {
|
|
@@ -18588,7 +18616,7 @@ var NgwLeaflet = (function () {
|
|
|
18588
18616
|
.then(function (apiItems) {
|
|
18589
18617
|
var apiItem = apiItems && apiItems[opt.name];
|
|
18590
18618
|
if (apiItem) {
|
|
18591
|
-
apiItem = __spreadArray([], apiItem);
|
|
18619
|
+
apiItem = __spreadArray([], apiItem, true);
|
|
18592
18620
|
var url = apiItem.shift();
|
|
18593
18621
|
if (apiItem.length) {
|
|
18594
18622
|
var replaceParams = {};
|
|
@@ -18610,12 +18638,12 @@ var NgwLeaflet = (function () {
|
|
|
18610
18638
|
if (Array.isArray(paramList)) {
|
|
18611
18639
|
delete params.paramList;
|
|
18612
18640
|
paramList.forEach(function (x) {
|
|
18613
|
-
paramArray_1.push(x[0]
|
|
18641
|
+
paramArray_1.push("".concat(x[0], "=").concat(x[1]));
|
|
18614
18642
|
});
|
|
18615
18643
|
}
|
|
18616
18644
|
for (var p in params) {
|
|
18617
18645
|
if (apiItem.indexOf(p) === -1) {
|
|
18618
|
-
paramArray_1.push(p
|
|
18646
|
+
paramArray_1.push("".concat(p, "=").concat(params[p]));
|
|
18619
18647
|
}
|
|
18620
18648
|
}
|
|
18621
18649
|
if (paramArray_1.length) {
|
|
@@ -18749,7 +18777,7 @@ var NgwLeaflet = (function () {
|
|
|
18749
18777
|
headers: this.getAuthorizationHeaders(credentials),
|
|
18750
18778
|
// withCredentials: true
|
|
18751
18779
|
};
|
|
18752
|
-
// Do not use
|
|
18780
|
+
// Do not use apiRequest('auth.current_user') to avoid circular-references
|
|
18753
18781
|
return this.makeQuery('/api/component/auth/current_user', {}, options)
|
|
18754
18782
|
.then(function (data) {
|
|
18755
18783
|
_this.user = data;
|
|
@@ -18776,7 +18804,7 @@ var NgwLeaflet = (function () {
|
|
|
18776
18804
|
credentials = credentials || this.options.auth;
|
|
18777
18805
|
if (credentials) {
|
|
18778
18806
|
var login = credentials.login, password = credentials.password;
|
|
18779
|
-
var str = unescape(encodeURIComponent(login
|
|
18807
|
+
var str = unescape(encodeURIComponent("".concat(login, ":").concat(password)));
|
|
18780
18808
|
// @ts-ignore
|
|
18781
18809
|
{
|
|
18782
18810
|
return window.btoa(str);
|
|
@@ -19049,7 +19077,7 @@ var NgwLeaflet = (function () {
|
|
|
19049
19077
|
if (value) {
|
|
19050
19078
|
var propElem = document.createElement('div');
|
|
19051
19079
|
element_1.appendChild(propElem);
|
|
19052
|
-
propElem.innerHTML = "<span>"
|
|
19080
|
+
propElem.innerHTML = "<span>".concat(x.display_name, "</span>: ").concat(value, "<span></span>");
|
|
19053
19081
|
}
|
|
19054
19082
|
}
|
|
19055
19083
|
});
|
|
@@ -19058,7 +19086,7 @@ var NgwLeaflet = (function () {
|
|
|
19058
19086
|
for (var p in feature.properties) {
|
|
19059
19087
|
var propElem = document.createElement('div');
|
|
19060
19088
|
element_1.appendChild(propElem);
|
|
19061
|
-
propElem.innerHTML = "<span>"
|
|
19089
|
+
propElem.innerHTML = "<span>".concat(p, "</span>: ").concat(feature.properties[p], "<span></span>");
|
|
19062
19090
|
}
|
|
19063
19091
|
}
|
|
19064
19092
|
return element_1;
|
|
@@ -19241,15 +19269,15 @@ var NgwLeaflet = (function () {
|
|
|
19241
19269
|
return b;
|
|
19242
19270
|
});
|
|
19243
19271
|
var v = vStart + value + vEnd;
|
|
19244
|
-
return [""
|
|
19272
|
+
return ["".concat(isFldStr).concat(field_, "__").concat(operation), v];
|
|
19245
19273
|
};
|
|
19246
19274
|
if (logic === 'any') {
|
|
19247
19275
|
filters_.forEach(function (f) {
|
|
19248
19276
|
if (isPropertyFilter(f)) {
|
|
19249
|
-
_queries.push(fetchNgwLayerItemsRequest(__assign(__assign({}, opt), { paramList: __spreadArray(__spreadArray([], _parentAllParams, true), [createParam(f)]) })));
|
|
19277
|
+
_queries.push(fetchNgwLayerItemsRequest(__assign(__assign({}, opt), { paramList: __spreadArray(__spreadArray([], _parentAllParams, true), [createParam(f)], false) })));
|
|
19250
19278
|
}
|
|
19251
19279
|
else {
|
|
19252
|
-
createFeatureFieldFilterQueries(__assign(__assign({}, opt), { filters: f }), _queries, __spreadArray([], _parentAllParams));
|
|
19280
|
+
createFeatureFieldFilterQueries(__assign(__assign({}, opt), { filters: f }), _queries, __spreadArray([], _parentAllParams, true));
|
|
19253
19281
|
}
|
|
19254
19282
|
});
|
|
19255
19283
|
}
|
|
@@ -19268,11 +19296,11 @@ var NgwLeaflet = (function () {
|
|
|
19268
19296
|
if (propertiesFilterList.length) {
|
|
19269
19297
|
for (var _a = 0, propertiesFilterList_1 = propertiesFilterList; _a < propertiesFilterList_1.length; _a++) {
|
|
19270
19298
|
var x = propertiesFilterList_1[_a];
|
|
19271
|
-
createFeatureFieldFilterQueries(__assign(__assign({}, opt), { filters: x }), _queries, __spreadArray(__spreadArray([], _parentAllParams, true), filters_2));
|
|
19299
|
+
createFeatureFieldFilterQueries(__assign(__assign({}, opt), { filters: x }), _queries, __spreadArray(__spreadArray([], _parentAllParams, true), filters_2, true));
|
|
19272
19300
|
}
|
|
19273
19301
|
}
|
|
19274
19302
|
else {
|
|
19275
|
-
_queries.push(fetchNgwLayerItemsRequest(__assign(__assign({}, opt), { paramList: __spreadArray(__spreadArray([], _parentAllParams, true), filters_2) })));
|
|
19303
|
+
_queries.push(fetchNgwLayerItemsRequest(__assign(__assign({}, opt), { paramList: __spreadArray(__spreadArray([], _parentAllParams, true), filters_2, true) })));
|
|
19276
19304
|
}
|
|
19277
19305
|
}
|
|
19278
19306
|
return CancelablePromise.all(_queries).then(function (itemsParts) {
|
|
@@ -19291,7 +19319,7 @@ var NgwLeaflet = (function () {
|
|
|
19291
19319
|
var _b = degrees2meters(lng, lat), x = _b[0], y = _b[1];
|
|
19292
19320
|
return x + ' ' + y;
|
|
19293
19321
|
});
|
|
19294
|
-
return "POLYGON(("
|
|
19322
|
+
return "POLYGON((".concat(polygon.join(', '), "))");
|
|
19295
19323
|
}
|
|
19296
19324
|
function fetchNgwLayerItemsRequest(options) {
|
|
19297
19325
|
var params = __assign({}, FEATURE_REQUEST_PARAMS);
|
|
@@ -19346,7 +19374,7 @@ var NgwLeaflet = (function () {
|
|
|
19346
19374
|
dt_1.push(x);
|
|
19347
19375
|
});
|
|
19348
19376
|
}
|
|
19349
|
-
fields[f] = new (Date.bind.apply(Date, __spreadArray([void 0], dt_1)))().toISOString();
|
|
19377
|
+
fields[f] = new (Date.bind.apply(Date, __spreadArray([void 0], dt_1, false)))().toISOString();
|
|
19350
19378
|
}
|
|
19351
19379
|
}
|
|
19352
19380
|
};
|
|
@@ -19751,7 +19779,7 @@ var NgwLeaflet = (function () {
|
|
|
19751
19779
|
}
|
|
19752
19780
|
}
|
|
19753
19781
|
if (adapter === 'WMS') {
|
|
19754
|
-
url = baseUrl
|
|
19782
|
+
url = "".concat(baseUrl, "/api/resource/").concat(resourceId, "/wms");
|
|
19755
19783
|
var adapterOptions = options.adapterOptions;
|
|
19756
19784
|
return {
|
|
19757
19785
|
url: url,
|
|
@@ -19775,12 +19803,12 @@ var NgwLeaflet = (function () {
|
|
|
19775
19803
|
};
|
|
19776
19804
|
}
|
|
19777
19805
|
if (adapter === 'TERRAIN') {
|
|
19778
|
-
url = baseUrl +
|
|
19806
|
+
url = baseUrl + "/api/resource/".concat(resourceId, "/terrain_provider");
|
|
19779
19807
|
// `/api/resource/${resourceId}/terrain_provider/{z}/{x}/{y}.terrain`;
|
|
19780
19808
|
return { url: url, adapter: adapter };
|
|
19781
19809
|
}
|
|
19782
19810
|
if (adapter === 'MODEL_3D') {
|
|
19783
|
-
url = baseUrl +
|
|
19811
|
+
url = baseUrl + "/api/component/model_3d/".concat(resourceId, "/data.glb");
|
|
19784
19812
|
return { url: url };
|
|
19785
19813
|
}
|
|
19786
19814
|
if (adapter === 'TILE') {
|
|
@@ -20066,7 +20094,7 @@ var NgwLeaflet = (function () {
|
|
|
20066
20094
|
});
|
|
20067
20095
|
};
|
|
20068
20096
|
TreeHelper.prototype.getChildren = function () {
|
|
20069
|
-
return __spreadArray([], this._children);
|
|
20097
|
+
return __spreadArray([], this._children, true);
|
|
20070
20098
|
};
|
|
20071
20099
|
return TreeHelper;
|
|
20072
20100
|
}());
|
|
@@ -20588,7 +20616,7 @@ var NgwLeaflet = (function () {
|
|
|
20588
20616
|
return options;
|
|
20589
20617
|
};
|
|
20590
20618
|
NgwWebmapItem.prototype.getChildren = function (item) {
|
|
20591
|
-
return __spreadArray([], item.children).reverse();
|
|
20619
|
+
return __spreadArray([], item.children, true).reverse();
|
|
20592
20620
|
};
|
|
20593
20621
|
NgwWebmapItem.prototype._mapScaleToZoomLevel = function (scale) {
|
|
20594
20622
|
return setScaleRatio(scale);
|
|
@@ -20908,16 +20936,25 @@ var NgwLeaflet = (function () {
|
|
|
20908
20936
|
}
|
|
20909
20937
|
}
|
|
20910
20938
|
NgwWebmapLayerAdapter.prototype.addLayer = function (options) {
|
|
20939
|
+
var _a, _b;
|
|
20911
20940
|
return __awaiter(this, void 0, void 0, function () {
|
|
20912
|
-
var
|
|
20913
|
-
return __generator(this, function (
|
|
20914
|
-
switch (
|
|
20941
|
+
var _c, extentConstrained;
|
|
20942
|
+
return __generator(this, function (_d) {
|
|
20943
|
+
switch (_d.label) {
|
|
20915
20944
|
case 0:
|
|
20916
20945
|
this.options = __assign(__assign({}, this.options), options);
|
|
20917
|
-
|
|
20946
|
+
_c = this;
|
|
20918
20947
|
return [4 /*yield*/, this._getWebMapLayerItem()];
|
|
20919
20948
|
case 1:
|
|
20920
|
-
|
|
20949
|
+
_c.layer = _d.sent();
|
|
20950
|
+
extentConstrained = (_b = (_a = this.response) === null || _a === void 0 ? void 0 : _a.webmap) === null || _b === void 0 ? void 0 : _b.extent_constrained;
|
|
20951
|
+
if (this.options.useExtentConstrained &&
|
|
20952
|
+
this._extent &&
|
|
20953
|
+
extentConstrained) {
|
|
20954
|
+
this.options.webMap.setView({ maxBounds: this._extent });
|
|
20955
|
+
// @ts-ignore
|
|
20956
|
+
window.webmap = this.options.webMap;
|
|
20957
|
+
}
|
|
20921
20958
|
return [2 /*return*/, this.layer];
|
|
20922
20959
|
}
|
|
20923
20960
|
});
|
|
@@ -20940,6 +20977,9 @@ var NgwLeaflet = (function () {
|
|
|
20940
20977
|
this.options.webMap.showLayer(this._lastActiveBaselayer);
|
|
20941
20978
|
}
|
|
20942
20979
|
}
|
|
20980
|
+
if (this.options.useExtentConstrained && this._extent) {
|
|
20981
|
+
this.options.webMap.setView({ maxBounds: null });
|
|
20982
|
+
}
|
|
20943
20983
|
delete this.layer;
|
|
20944
20984
|
delete this.response;
|
|
20945
20985
|
delete this._webmapLayersIds;
|
|
@@ -21098,7 +21138,7 @@ var NgwLeaflet = (function () {
|
|
|
21098
21138
|
};
|
|
21099
21139
|
NgwWebmapLayerAdapter.prototype.getWebMapConfig = function (id) {
|
|
21100
21140
|
return __awaiter(this, void 0, void 0, function () {
|
|
21101
|
-
var data, webmap
|
|
21141
|
+
var data, webmap;
|
|
21102
21142
|
return __generator(this, function (_a) {
|
|
21103
21143
|
switch (_a.label) {
|
|
21104
21144
|
case 0: return [4 /*yield*/, this.options.connector.getResource(id)];
|
|
@@ -21107,20 +21147,7 @@ var NgwLeaflet = (function () {
|
|
|
21107
21147
|
if (data) {
|
|
21108
21148
|
this.response = data;
|
|
21109
21149
|
webmap = data[this.webmapClassName];
|
|
21110
|
-
|
|
21111
|
-
if (data.basemap_webmap && data.basemap_webmap.basemaps.length) {
|
|
21112
|
-
activeBaselayer = webMap.getActiveBaseLayer();
|
|
21113
|
-
this._lastActiveBaselayer = activeBaselayer
|
|
21114
|
-
? activeBaselayer.id
|
|
21115
|
-
: undefined;
|
|
21116
|
-
this._setBasemaps(data.basemap_webmap);
|
|
21117
|
-
}
|
|
21118
|
-
else if (this.options.defaultBasemap) {
|
|
21119
|
-
webMap.addBaseLayer('OSM', {
|
|
21120
|
-
id: 'webmap-default-baselayer',
|
|
21121
|
-
name: 'OpenStreetMap',
|
|
21122
|
-
});
|
|
21123
|
-
}
|
|
21150
|
+
this._setupBaselayers(data);
|
|
21124
21151
|
if (webmap) {
|
|
21125
21152
|
this._extent = [
|
|
21126
21153
|
webmap.extent_left,
|
|
@@ -21137,6 +21164,26 @@ var NgwLeaflet = (function () {
|
|
|
21137
21164
|
});
|
|
21138
21165
|
});
|
|
21139
21166
|
};
|
|
21167
|
+
NgwWebmapLayerAdapter.prototype._setupBaselayers = function (data) {
|
|
21168
|
+
var _a;
|
|
21169
|
+
var webMap = this.options.webMap;
|
|
21170
|
+
var basemap = (_a = this.options.useBasemap) !== null && _a !== void 0 ? _a : true;
|
|
21171
|
+
if (basemap) {
|
|
21172
|
+
if (data.basemap_webmap && data.basemap_webmap.basemaps.length) {
|
|
21173
|
+
var activeBaselayer = webMap.getActiveBaseLayer();
|
|
21174
|
+
this._lastActiveBaselayer = activeBaselayer
|
|
21175
|
+
? activeBaselayer.id
|
|
21176
|
+
: undefined;
|
|
21177
|
+
this._setBasemaps(data.basemap_webmap);
|
|
21178
|
+
}
|
|
21179
|
+
else if (this.options.defaultBasemap) {
|
|
21180
|
+
webMap.addBaseLayer('OSM', {
|
|
21181
|
+
id: 'webmap-default-baselayer',
|
|
21182
|
+
name: 'OpenStreetMap',
|
|
21183
|
+
});
|
|
21184
|
+
}
|
|
21185
|
+
}
|
|
21186
|
+
};
|
|
21140
21187
|
NgwWebmapLayerAdapter.prototype._setBasemaps = function (baseWebmap) {
|
|
21141
21188
|
var _this = this;
|
|
21142
21189
|
var webMap = this.options.webMap;
|
|
@@ -21615,7 +21662,7 @@ var NgwLeaflet = (function () {
|
|
|
21615
21662
|
}
|
|
21616
21663
|
}
|
|
21617
21664
|
else {
|
|
21618
|
-
throw "Resource class '"
|
|
21665
|
+
throw "Resource class '".concat(cls, "' not yet supported.");
|
|
21619
21666
|
}
|
|
21620
21667
|
_a.label = 13;
|
|
21621
21668
|
case 13: return [3 /*break*/, 15];
|
|
@@ -21976,7 +22023,7 @@ var NgwLeaflet = (function () {
|
|
|
21976
22023
|
var _b = degrees2meters(lng, lat), x = _b[0], y = _b[1];
|
|
21977
22024
|
polygon.push(x + ' ' + y);
|
|
21978
22025
|
});
|
|
21979
|
-
var wkt = "POLYGON(("
|
|
22026
|
+
var wkt = "POLYGON((".concat(polygon.join(', '), "))");
|
|
21980
22027
|
var layers = options.layers;
|
|
21981
22028
|
var data = {
|
|
21982
22029
|
geom: wkt,
|
|
@@ -22066,7 +22113,7 @@ var NgwLeaflet = (function () {
|
|
|
22066
22113
|
function insertSvg(width, height, stroke, content) {
|
|
22067
22114
|
if (stroke === void 0) { stroke = 0; }
|
|
22068
22115
|
var s = stroke / 2;
|
|
22069
|
-
var svg = "<svg\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\""
|
|
22116
|
+
var svg = "<svg\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"".concat(width, "\"\n height=\"").concat(height, "\"\n viewBox=\"-").concat(s, " -").concat(s, " ").concat(width + stroke, " ").concat(height + stroke, "\"\n >").concat(content, "</svg>");
|
|
22070
22117
|
var oParser = new DOMParser();
|
|
22071
22118
|
var oDOM = oParser.parseFromString(svg, 'image/svg+xml');
|
|
22072
22119
|
return oDOM.documentElement;
|
|
@@ -22086,7 +22133,7 @@ var NgwLeaflet = (function () {
|
|
|
22086
22133
|
var path = typeof pathAlias === 'string' ? pathAlias : pathAlias(opt);
|
|
22087
22134
|
var svg = insertSvg(size, size, stroke * scale, path);
|
|
22088
22135
|
var fistChild = svg.firstChild;
|
|
22089
|
-
var transform = "scale("
|
|
22136
|
+
var transform = "scale(".concat(scale, ")");
|
|
22090
22137
|
fistChild.setAttribute('fill', color);
|
|
22091
22138
|
if (stroke) {
|
|
22092
22139
|
fistChild.setAttribute('stroke', strokeColor);
|
|
@@ -22307,7 +22354,7 @@ var NgwLeaflet = (function () {
|
|
|
22307
22354
|
resId = isObject$1(resource) && 'id' in resource
|
|
22308
22355
|
? resource.id
|
|
22309
22356
|
: keyname || resourceId || resource;
|
|
22310
|
-
console.error("Can't add NGW layer "
|
|
22357
|
+
console.error("Can't add NGW layer ".concat(resId, "."), er_1);
|
|
22311
22358
|
return [3 /*break*/, 5];
|
|
22312
22359
|
case 5: return [2 /*return*/];
|
|
22313
22360
|
}
|
|
@@ -22701,7 +22748,7 @@ var NgwLeaflet = (function () {
|
|
|
22701
22748
|
var identifyFeature = {
|
|
22702
22749
|
id: Number(featureId),
|
|
22703
22750
|
fields: feature.properties || {},
|
|
22704
|
-
label: "#"
|
|
22751
|
+
label: "#".concat(id),
|
|
22705
22752
|
layerId: Number(id),
|
|
22706
22753
|
parent: '',
|
|
22707
22754
|
geom: feature.geometry,
|
|
@@ -22840,6 +22887,9 @@ var NgwLeaflet = (function () {
|
|
|
22840
22887
|
if (options.bar) {
|
|
22841
22888
|
element.classList.add('leaflet-bar');
|
|
22842
22889
|
}
|
|
22890
|
+
if (options.addClass) {
|
|
22891
|
+
element.classList.add(options.addClass);
|
|
22892
|
+
}
|
|
22843
22893
|
if (!options.margin && !options.bar) {
|
|
22844
22894
|
element.style.marginBottom = '0px';
|
|
22845
22895
|
element.style.marginTop = '0px';
|
|
@@ -23986,7 +24036,7 @@ var NgwLeaflet = (function () {
|
|
|
23986
24036
|
a[_i] = arguments[_i];
|
|
23987
24037
|
}
|
|
23988
24038
|
// @ts-ignore
|
|
23989
|
-
(_a = leafletSrc.exports.GridLayer.prototype._update).call.apply(_a, __spreadArray([_this], a));
|
|
24039
|
+
(_a = leafletSrc.exports.GridLayer.prototype._update).call.apply(_a, __spreadArray([_this], a, false));
|
|
23990
24040
|
}, _this.options.setViewDelay);
|
|
23991
24041
|
}
|
|
23992
24042
|
return _this;
|
|
@@ -24163,6 +24213,7 @@ var NgwLeaflet = (function () {
|
|
|
24163
24213
|
if (this.map) {
|
|
24164
24214
|
this.map.remove();
|
|
24165
24215
|
}
|
|
24216
|
+
this._stopWatchSizeChangeToUpdateMinZoom();
|
|
24166
24217
|
};
|
|
24167
24218
|
LeafletMapAdapter.prototype.getContainer = function () {
|
|
24168
24219
|
return this.map && this.map.getContainer();
|
|
@@ -24213,17 +24264,22 @@ var NgwLeaflet = (function () {
|
|
|
24213
24264
|
}
|
|
24214
24265
|
if (maxBounds !== undefined) {
|
|
24215
24266
|
if (maxBounds) {
|
|
24216
|
-
|
|
24267
|
+
var b = arrayToBoundsExpression(maxBounds);
|
|
24268
|
+
map.setMaxBounds(b);
|
|
24269
|
+
map.setMinZoom(map.getBoundsZoom(b));
|
|
24270
|
+
this._watchSizeChangeToUpdateMinZoom(b);
|
|
24217
24271
|
}
|
|
24218
24272
|
else {
|
|
24219
24273
|
// @ts-ignore `null` works for unset maxBounds, but not in typing
|
|
24220
24274
|
map.setMaxBounds(null);
|
|
24275
|
+
this._stopWatchSizeChangeToUpdateMinZoom();
|
|
24221
24276
|
}
|
|
24222
24277
|
}
|
|
24223
24278
|
if (maxZoom !== undefined) {
|
|
24224
24279
|
map.setMaxZoom(maxZoom);
|
|
24225
24280
|
}
|
|
24226
24281
|
if (minZoom !== undefined) {
|
|
24282
|
+
this._stopWatchSizeChangeToUpdateMinZoom();
|
|
24227
24283
|
map.setMinZoom(minZoom);
|
|
24228
24284
|
}
|
|
24229
24285
|
}
|
|
@@ -24360,6 +24416,27 @@ var NgwLeaflet = (function () {
|
|
|
24360
24416
|
this._unselectCb.length = 0;
|
|
24361
24417
|
this._unselectCb.push(cb);
|
|
24362
24418
|
};
|
|
24419
|
+
LeafletMapAdapter.prototype._watchSizeChangeToUpdateMinZoom = function (bounds) {
|
|
24420
|
+
this._stopWatchSizeChangeToUpdateMinZoom();
|
|
24421
|
+
var container = this.getContainer();
|
|
24422
|
+
var map = this.map;
|
|
24423
|
+
if (container && map && window.ResizeObserver) {
|
|
24424
|
+
this._resizeObserver = new ResizeObserver(function () {
|
|
24425
|
+
map.setMinZoom(map.getBoundsZoom(bounds));
|
|
24426
|
+
});
|
|
24427
|
+
this._resizeObserver.observe(container);
|
|
24428
|
+
}
|
|
24429
|
+
};
|
|
24430
|
+
LeafletMapAdapter.prototype._stopWatchSizeChangeToUpdateMinZoom = function () {
|
|
24431
|
+
var map = this.map;
|
|
24432
|
+
if (map) {
|
|
24433
|
+
map.setMinZoom(0);
|
|
24434
|
+
}
|
|
24435
|
+
if (this._resizeObserver) {
|
|
24436
|
+
this._resizeObserver.disconnect();
|
|
24437
|
+
this._resizeObserver = undefined;
|
|
24438
|
+
}
|
|
24439
|
+
};
|
|
24363
24440
|
LeafletMapAdapter.prototype._addMapListeners = function () {
|
|
24364
24441
|
var _this = this;
|
|
24365
24442
|
var map = this.map;
|