gis-leaflet-helper 1.0.9 → 2.0.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.
@@ -1,34 +1,18 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
- var __hasOwnProp = Object.prototype.hasOwnProperty;
4
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __spreadValues = (a, b) => {
7
- for (var prop in b || (b = {}))
8
- if (__hasOwnProp.call(b, prop))
9
- __defNormalProp(a, prop, b[prop]);
10
- if (__getOwnPropSymbols)
11
- for (var prop of __getOwnPropSymbols(b)) {
12
- if (__propIsEnum.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
14
- }
15
- return a;
16
- };
17
- const import_meta = {};
1
+ (function(){ try {var elementStyle = document.createElement('style'); elementStyle.appendChild(document.createTextNode("@charset \"UTF-8\";.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.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:rgba(255,255,255,.5)}.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:rgba(255,255,255,.8);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;overflow:hidden;-moz-box-sizing:border-box;box-sizing:border-box;background:#fff;background:rgba(255,255,255,.5)}.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:white;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}}*{margin:0;padding:0;list-style-type:none;box-sizing:border-box;outline:none}html{margin:0;padding:0;font-size:14px;height:100%}body{font-family:Arial,Helvetica,sans-serif;line-height:1.4em;margin:0;padding:0;height:100%}body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,fieldset,lengend,button,input,textarea,th,td{margin:0;padding:0;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-khtml-user-select:none;user-select:none;list-style:none}a{text-decoration:none;cursor:pointer}i{font-style:normal}::-webkit-scrollbar{width:4px;height:3px}::-webkit-scrollbar-track{background:#fcfcfc;width:2px;border-radius:8px}::-webkit-scrollbar-thumb{background:#c1c4c7;border-radius:2px}::-webkit-scrollbar-thumb:hover{background:#a8abad}::-webkit-scrollbar-corner{background:#dadfe3}.hidden{visibility:hidden}.visible{visibility:visible}.fwb{font-weight:700}.w1,.wh1{width:100%}.h1,.wh1{height:100%}.flex,.flex-c{display:flex}.flex-c{flex-direction:column}.clearfix:after{content:\"\";display:table;height:0;line-height:0;visibility:hidden;clear:both}.nowrap{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.text-a{color:#666}.bg-a{background-color:#666}.text-w{color:#fff}.bg-w{background-color:#fff}.text-d{color:#000}.bg-d{background-color:#000}.text-r{color:red}.bg-r{background-color:red}.text-p{color:#f0f}.bg-p{background-color:#f0f}.text-y{color:#ff0}.bg-y{background-color:#ff0}.text-b{color:#00f}.bg-b{background-color:#00f}.text-g{color:#0f0}.bg-g{background-color:#0f0}.text-t{color:#0ff}.bg-t{background-color:#0ff}.tr{text-align:right}.fr{float:right}.tc{text-align:center}.fc{float:center}.tl{text-align:left}.fl{float:left}.jc-start{justify-content:flex-start}.jc-end{justify-content:flex-end}.jc-center{justify-content:center}.jc-between{justify-content:space-between}.jc-around{justify-content:space-around}.jc-evenly{justify-content:space-evenly}.ai-start{align-items:flex-start}.ai-end{align-items:flex-end}.ai-center{align-items:center}.ai-stretch{align-items:stretch}.fs-xxs{font-size:1rem}.fs-xs{font-size:1.2rem}.fs-s{font-size:1.4rem}.fs-m{font-size:1.6rem}.fs-l{font-size:1.8rem}.fs-xl{font-size:2rem}.fs-xxl{font-size:2.2rem}.fs-xxxl{font-size:2.4rem}.flex-0{flex:0}.flex-1{flex:.1}.flex-2{flex:.2}.flex-3{flex:.3}.flex-4{flex:.4}.flex-5{flex:.5}.flex-6{flex:.6}.flex-7{flex:.7}.flex-8{flex:.8}.flex-9{flex:.9}.flex-10{flex:1}.m-0{margin:0rem}.m-1{margin:.1rem}.m-2{margin:.2rem}.m-3{margin:.3rem}.m-4{margin:.4rem}.m-5{margin:.5rem}.m-6{margin:.6rem}.m-7{margin:.7rem}.m-8{margin:.8rem}.m-9{margin:.9rem}.m-10{margin:1rem}.mx-0{margin-left:0rem;margin-right:0rem}.my-0{margin-top:0rem;margin-bottom:0rem}.mx-1{margin-left:.1rem;margin-right:.1rem}.my-1{margin-top:.1rem;margin-bottom:.1rem}.mx-2{margin-left:.2rem;margin-right:.2rem}.my-2{margin-top:.2rem;margin-bottom:.2rem}.mx-3{margin-left:.3rem;margin-right:.3rem}.my-3{margin-top:.3rem;margin-bottom:.3rem}.mx-4{margin-left:.4rem;margin-right:.4rem}.my-4{margin-top:.4rem;margin-bottom:.4rem}.mx-5{margin-left:.5rem;margin-right:.5rem}.my-5{margin-top:.5rem;margin-bottom:.5rem}.mx-6{margin-left:.6rem;margin-right:.6rem}.my-6{margin-top:.6rem;margin-bottom:.6rem}.mx-7{margin-left:.7rem;margin-right:.7rem}.my-7{margin-top:.7rem;margin-bottom:.7rem}.mx-8{margin-left:.8rem;margin-right:.8rem}.my-8{margin-top:.8rem;margin-bottom:.8rem}.mx-9{margin-left:.9rem;margin-right:.9rem}.my-9{margin-top:.9rem;margin-bottom:.9rem}.mx-10{margin-left:1rem;margin-right:1rem}.my-10{margin-top:1rem;margin-bottom:1rem}.mt-0{margin-top:0rem}.mt-1{margin-top:.1rem}.mt-2{margin-top:.2rem}.mt-3{margin-top:.3rem}.mt-4{margin-top:.4rem}.mt-5{margin-top:.5rem}.mt-6{margin-top:.6rem}.mt-7{margin-top:.7rem}.mt-8{margin-top:.8rem}.mt-9{margin-top:.9rem}.mt-10{margin-top:1rem}.mr-0{margin-right:0rem}.mr-1{margin-right:.1rem}.mr-2{margin-right:.2rem}.mr-3{margin-right:.3rem}.mr-4{margin-right:.4rem}.mr-5{margin-right:.5rem}.mr-6{margin-right:.6rem}.mr-7{margin-right:.7rem}.mr-8{margin-right:.8rem}.mr-9{margin-right:.9rem}.mr-10{margin-right:1rem}.mb-0{margin-bottom:0rem}.mb-1{margin-bottom:.1rem}.mb-2{margin-bottom:.2rem}.mb-3{margin-bottom:.3rem}.mb-4{margin-bottom:.4rem}.mb-5{margin-bottom:.5rem}.mb-6{margin-bottom:.6rem}.mb-7{margin-bottom:.7rem}.mb-8{margin-bottom:.8rem}.mb-9{margin-bottom:.9rem}.mb-10{margin-bottom:1rem}.ml-0{margin-left:0rem}.ml-1{margin-left:.1rem}.ml-2{margin-left:.2rem}.ml-3{margin-left:.3rem}.ml-4{margin-left:.4rem}.ml-5{margin-left:.5rem}.ml-6{margin-left:.6rem}.ml-7{margin-left:.7rem}.ml-8{margin-left:.8rem}.ml-9{margin-left:.9rem}.ml-10{margin-left:1rem}.m{margin:0}.p-0{padding:0rem}.p-1{padding:.1rem}.p-2{padding:.2rem}.p-3{padding:.3rem}.p-4{padding:.4rem}.p-5{padding:.5rem}.p-6{padding:.6rem}.p-7{padding:.7rem}.p-8{padding:.8rem}.p-9{padding:.9rem}.p-10{padding:1rem}.px-0{padding-left:0rem;padding-right:0rem}.py-0{padding-top:0rem;padding-bottom:0rem}.px-1{padding-left:.1rem;padding-right:.1rem}.py-1{padding-top:.1rem;padding-bottom:.1rem}.px-2{padding-left:.2rem;padding-right:.2rem}.py-2{padding-top:.2rem;padding-bottom:.2rem}.px-3{padding-left:.3rem;padding-right:.3rem}.py-3{padding-top:.3rem;padding-bottom:.3rem}.px-4{padding-left:.4rem;padding-right:.4rem}.py-4{padding-top:.4rem;padding-bottom:.4rem}.px-5{padding-left:.5rem;padding-right:.5rem}.py-5{padding-top:.5rem;padding-bottom:.5rem}.px-6{padding-left:.6rem;padding-right:.6rem}.py-6{padding-top:.6rem;padding-bottom:.6rem}.px-7{padding-left:.7rem;padding-right:.7rem}.py-7{padding-top:.7rem;padding-bottom:.7rem}.px-8{padding-left:.8rem;padding-right:.8rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.px-9{padding-left:.9rem;padding-right:.9rem}.py-9{padding-top:.9rem;padding-bottom:.9rem}.px-10{padding-left:1rem;padding-right:1rem}.py-10{padding-top:1rem;padding-bottom:1rem}.pt-0{padding-top:0rem}.pt-1{padding-top:.1rem}.pt-2{padding-top:.2rem}.pt-3{padding-top:.3rem}.pt-4{padding-top:.4rem}.pt-5{padding-top:.5rem}.pt-6{padding-top:.6rem}.pt-7{padding-top:.7rem}.pt-8{padding-top:.8rem}.pt-9{padding-top:.9rem}.pt-10{padding-top:1rem}.pr-0{padding-right:0rem}.pr-1{padding-right:.1rem}.pr-2{padding-right:.2rem}.pr-3{padding-right:.3rem}.pr-4{padding-right:.4rem}.pr-5{padding-right:.5rem}.pr-6{padding-right:.6rem}.pr-7{padding-right:.7rem}.pr-8{padding-right:.8rem}.pr-9{padding-right:.9rem}.pr-10{padding-right:1rem}.pb-0{padding-bottom:0rem}.pb-1{padding-bottom:.1rem}.pb-2{padding-bottom:.2rem}.pb-3{padding-bottom:.3rem}.pb-4{padding-bottom:.4rem}.pb-5{padding-bottom:.5rem}.pb-6{padding-bottom:.6rem}.pb-7{padding-bottom:.7rem}.pb-8{padding-bottom:.8rem}.pb-9{padding-bottom:.9rem}.pb-10{padding-bottom:1rem}.pl-0{padding-left:0rem}.pl-1{padding-left:.1rem}.pl-2{padding-left:.2rem}.pl-3{padding-left:.3rem}.pl-4{padding-left:.4rem}.pl-5{padding-left:.5rem}.pl-6{padding-left:.6rem}.pl-7{padding-left:.7rem}.pl-8{padding-left:.8rem}.pl-9{padding-left:.9rem}.pl-10{padding-left:1rem}.p{padding:0}.gis-toolbar{position:absolute;display:flex;align-items:center;z-index:1000;background-color:#212121cc;border-radius:4px}.gis-toolbar-item{display:inline-block;color:#eee;text-align:center;width:32px;height:28px;margin:4px 0;cursor:pointer}.gis-toolbar-item+.gis-toolbar-item{border-left:1px solid rgba(110,110,110,.9);margin-left:1px}.gis-toolbar-item:hover{filter:invert(40%)}.gis-statusbar{display:inline-block;background:rgba(33,33,33,.8);color:#fff;font-size:12px;height:27px;padding:0 10px;line-height:27px;margin:0;letter-spacing:1px}.topleft{left:10px;top:10px}.topright{right:10px;top:10px}.bottomleft{left:10px;bottom:10px}.bottomright{right:10px;bottom:10px}.leaflet-control-scale{float:none;margin-bottom:10px;padding:4.5px 8px;display:inline-block;background:rgba(33,33,33,.8)}.leaflet-control-scale-line{border:2px solid #ccc;border-top:none;line-height:1.1;padding:2px 5px 1px;font-size:11px;white-space:nowrap;overflow:hidden;box-sizing:border-box;background:transparent;color:#fff}.gis-map,.gis-container{width:100%;height:100%;user-select:none;overflow:hidden;position:relative}.gis-map:focus:after{content:\"\";box-sizing:border-box;position:absolute;z-index:999;top:0;left:0;height:100%;width:100%;outline:auto 2px Highlight;outline:auto 5px -webkit-focus-ring-color;outline-offset:-3px;pointer-events:none;overflow:hidden}")); document.head.appendChild(elementStyle);} catch(e) {console.error('vite-plugin-css-injected-by-js', e);} })();const import_meta = {};
18
2
  import * as Gis from "gis-common";
19
3
  import { openBlock, createElementBlock, withModifiers, createElementVNode, renderSlot } from "vue";
20
4
  var leaflet = "";
21
5
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
22
6
  var leafletSrc = { exports: {} };
23
7
  /* @preserve
24
- * Leaflet 1.8.0, a JS library for interactive maps. https://leafletjs.com
8
+ * Leaflet 1.9.2, a JS library for interactive maps. https://leafletjs.com
25
9
  * (c) 2010-2022 Vladimir Agafonkin, (c) 2010-2011 CloudMade
26
10
  */
27
11
  (function(module, exports) {
28
12
  (function(global2, factory) {
29
13
  factory(exports);
30
14
  })(commonjsGlobal, function(exports2) {
31
- var version = "1.8.0";
15
+ var version = "1.9.2";
32
16
  function extend(dest) {
33
17
  var i, j, len, src;
34
18
  for (j = 1, len = arguments.length; j < len; j++) {
@@ -310,27 +294,24 @@ var leafletSrc = { exports: {} };
310
294
  }
311
295
  return this;
312
296
  },
313
- _on: function(type, fn, context) {
297
+ _on: function(type, fn, context, _once) {
314
298
  if (typeof fn !== "function") {
315
299
  console.warn("wrong listener type: " + typeof fn);
316
300
  return;
317
301
  }
318
- this._events = this._events || {};
319
- var typeListeners = this._events[type];
320
- if (!typeListeners) {
321
- typeListeners = [];
322
- this._events[type] = typeListeners;
302
+ if (this._listens(type, fn, context) !== false) {
303
+ return;
323
304
  }
324
305
  if (context === this) {
325
306
  context = void 0;
326
307
  }
327
- var newListener = { fn, ctx: context }, listeners = typeListeners;
328
- for (var i = 0, len = listeners.length; i < len; i++) {
329
- if (listeners[i].fn === fn && listeners[i].ctx === context) {
330
- return;
331
- }
308
+ var newListener = { fn, ctx: context };
309
+ if (_once) {
310
+ newListener.once = true;
332
311
  }
333
- listeners.push(newListener);
312
+ this._events = this._events || {};
313
+ this._events[type] = this._events[type] || [];
314
+ this._events[type].push(newListener);
334
315
  },
335
316
  _off: function(type, fn, context) {
336
317
  var listeners, i, len;
@@ -350,28 +331,19 @@ var leafletSrc = { exports: {} };
350
331
  delete this._events[type];
351
332
  return;
352
333
  }
353
- if (context === this) {
354
- context = void 0;
355
- }
356
334
  if (typeof fn !== "function") {
357
335
  console.warn("wrong listener type: " + typeof fn);
358
336
  return;
359
337
  }
360
- for (i = 0, len = listeners.length; i < len; i++) {
361
- var l = listeners[i];
362
- if (l.ctx !== context) {
363
- continue;
364
- }
365
- if (l.fn === fn) {
366
- if (this._firingCount) {
367
- l.fn = falseFn;
368
- this._events[type] = listeners = listeners.slice();
369
- }
370
- listeners.splice(i, 1);
371
- return;
338
+ var index3 = this._listens(type, fn, context);
339
+ if (index3 !== false) {
340
+ var listener = listeners[index3];
341
+ if (this._firingCount) {
342
+ listener.fn = falseFn;
343
+ this._events[type] = listeners = listeners.slice();
372
344
  }
345
+ listeners.splice(index3, 1);
373
346
  }
374
- console.warn("listener not found");
375
347
  },
376
348
  fire: function(type, data, propagate) {
377
349
  if (!this.listens(type, propagate)) {
@@ -388,7 +360,11 @@ var leafletSrc = { exports: {} };
388
360
  this._firingCount = this._firingCount + 1 || 1;
389
361
  for (var i = 0, len = listeners.length; i < len; i++) {
390
362
  var l = listeners[i];
391
- l.fn.call(l.ctx || this, event);
363
+ var fn = l.fn;
364
+ if (l.once) {
365
+ this.off(type, fn, l.ctx);
366
+ }
367
+ fn.call(l.ctx || this, event);
392
368
  }
393
369
  this._firingCount--;
394
370
  }
@@ -398,34 +374,61 @@ var leafletSrc = { exports: {} };
398
374
  }
399
375
  return this;
400
376
  },
401
- listens: function(type, propagate) {
377
+ listens: function(type, fn, context, propagate) {
402
378
  if (typeof type !== "string") {
403
379
  console.warn('"string" type argument expected');
404
380
  }
381
+ var _fn = fn;
382
+ if (typeof fn !== "function") {
383
+ propagate = !!fn;
384
+ _fn = void 0;
385
+ context = void 0;
386
+ }
405
387
  var listeners = this._events && this._events[type];
406
388
  if (listeners && listeners.length) {
407
- return true;
389
+ if (this._listens(type, _fn, context) !== false) {
390
+ return true;
391
+ }
408
392
  }
409
393
  if (propagate) {
410
394
  for (var id in this._eventParents) {
411
- if (this._eventParents[id].listens(type, propagate)) {
395
+ if (this._eventParents[id].listens(type, fn, context, propagate)) {
412
396
  return true;
413
397
  }
414
398
  }
415
399
  }
416
400
  return false;
417
401
  },
402
+ _listens: function(type, fn, context) {
403
+ if (!this._events) {
404
+ return false;
405
+ }
406
+ var listeners = this._events[type] || [];
407
+ if (!fn) {
408
+ return !!listeners.length;
409
+ }
410
+ if (context === this) {
411
+ context = void 0;
412
+ }
413
+ for (var i = 0, len = listeners.length; i < len; i++) {
414
+ if (listeners[i].fn === fn && listeners[i].ctx === context) {
415
+ return i;
416
+ }
417
+ }
418
+ return false;
419
+ },
418
420
  once: function(types, fn, context) {
419
421
  if (typeof types === "object") {
420
422
  for (var type in types) {
421
- this.once(type, types[type], fn);
423
+ this._on(type, types[type], fn, true);
424
+ }
425
+ } else {
426
+ types = splitWords(types);
427
+ for (var i = 0, len = types.length; i < len; i++) {
428
+ this._on(types[i], fn, context, true);
422
429
  }
423
- return this;
424
430
  }
425
- var handler = bind(function() {
426
- this.off(types, fn, context).off(types, handler, context);
427
- }, this);
428
- return this.on(types, fn, context).on(types, handler, context);
431
+ return this;
429
432
  },
430
433
  addEventParent: function(obj) {
431
434
  this._eventParents = this._eventParents || {};
@@ -576,27 +579,44 @@ var leafletSrc = { exports: {} };
576
579
  }
577
580
  }
578
581
  Bounds.prototype = {
579
- extend: function(point) {
580
- point = toPoint(point);
582
+ extend: function(obj) {
583
+ var min2, max2;
584
+ if (!obj) {
585
+ return this;
586
+ }
587
+ if (obj instanceof Point || typeof obj[0] === "number" || "x" in obj) {
588
+ min2 = max2 = toPoint(obj);
589
+ } else {
590
+ obj = toBounds(obj);
591
+ min2 = obj.min;
592
+ max2 = obj.max;
593
+ if (!min2 || !max2) {
594
+ return this;
595
+ }
596
+ }
581
597
  if (!this.min && !this.max) {
582
- this.min = point.clone();
583
- this.max = point.clone();
598
+ this.min = min2.clone();
599
+ this.max = max2.clone();
584
600
  } else {
585
- this.min.x = Math.min(point.x, this.min.x);
586
- this.max.x = Math.max(point.x, this.max.x);
587
- this.min.y = Math.min(point.y, this.min.y);
588
- this.max.y = Math.max(point.y, this.max.y);
601
+ this.min.x = Math.min(min2.x, this.min.x);
602
+ this.max.x = Math.max(max2.x, this.max.x);
603
+ this.min.y = Math.min(min2.y, this.min.y);
604
+ this.max.y = Math.max(max2.y, this.max.y);
589
605
  }
590
606
  return this;
591
607
  },
592
608
  getCenter: function(round) {
593
- return new Point((this.min.x + this.max.x) / 2, (this.min.y + this.max.y) / 2, round);
609
+ return toPoint(
610
+ (this.min.x + this.max.x) / 2,
611
+ (this.min.y + this.max.y) / 2,
612
+ round
613
+ );
594
614
  },
595
615
  getBottomLeft: function() {
596
- return new Point(this.min.x, this.max.y);
616
+ return toPoint(this.min.x, this.max.y);
597
617
  },
598
618
  getTopRight: function() {
599
- return new Point(this.max.x, this.min.y);
619
+ return toPoint(this.max.x, this.min.y);
600
620
  },
601
621
  getTopLeft: function() {
602
622
  return this.min;
@@ -634,6 +654,20 @@ var leafletSrc = { exports: {} };
634
654
  },
635
655
  isValid: function() {
636
656
  return !!(this.min && this.max);
657
+ },
658
+ pad: function(bufferRatio) {
659
+ var min = this.min, max = this.max, heightBuffer = Math.abs(min.x - max.x) * bufferRatio, widthBuffer = Math.abs(min.y - max.y) * bufferRatio;
660
+ return toBounds(
661
+ toPoint(min.x - heightBuffer, min.y - widthBuffer),
662
+ toPoint(max.x + heightBuffer, max.y + widthBuffer)
663
+ );
664
+ },
665
+ equals: function(bounds) {
666
+ if (!bounds) {
667
+ return false;
668
+ }
669
+ bounds = toBounds(bounds);
670
+ return this.min.equals(bounds.getTopLeft()) && this.max.equals(bounds.getBottomRight());
637
671
  }
638
672
  };
639
673
  function toBounds(a, b) {
@@ -679,10 +713,16 @@ var leafletSrc = { exports: {} };
679
713
  },
680
714
  pad: function(bufferRatio) {
681
715
  var sw = this._southWest, ne = this._northEast, heightBuffer = Math.abs(sw.lat - ne.lat) * bufferRatio, widthBuffer = Math.abs(sw.lng - ne.lng) * bufferRatio;
682
- return new LatLngBounds(new LatLng(sw.lat - heightBuffer, sw.lng - widthBuffer), new LatLng(ne.lat + heightBuffer, ne.lng + widthBuffer));
716
+ return new LatLngBounds(
717
+ new LatLng(sw.lat - heightBuffer, sw.lng - widthBuffer),
718
+ new LatLng(ne.lat + heightBuffer, ne.lng + widthBuffer)
719
+ );
683
720
  },
684
721
  getCenter: function() {
685
- return new LatLng((this._southWest.lat + this._northEast.lat) / 2, (this._southWest.lng + this._northEast.lng) / 2);
722
+ return new LatLng(
723
+ (this._southWest.lat + this._northEast.lat) / 2,
724
+ (this._southWest.lng + this._northEast.lng) / 2
725
+ );
686
726
  },
687
727
  getSouthWest: function() {
688
728
  return this._southWest;
@@ -769,7 +809,10 @@ var leafletSrc = { exports: {} };
769
809
  return false;
770
810
  }
771
811
  obj = toLatLng(obj);
772
- var margin = Math.max(Math.abs(this.lat - obj.lat), Math.abs(this.lng - obj.lng));
812
+ var margin = Math.max(
813
+ Math.abs(this.lat - obj.lat),
814
+ Math.abs(this.lng - obj.lng)
815
+ );
773
816
  return margin <= (maxMargin === void 0 ? 1e-9 : maxMargin);
774
817
  },
775
818
  toString: function(precision) {
@@ -783,7 +826,10 @@ var leafletSrc = { exports: {} };
783
826
  },
784
827
  toBounds: function(sizeInMeters) {
785
828
  var latAccuracy = 180 * sizeInMeters / 40075017, lngAccuracy = latAccuracy / Math.cos(Math.PI / 180 * this.lat);
786
- return toLatLngBounds([this.lat - latAccuracy, this.lng - lngAccuracy], [this.lat + latAccuracy, this.lng + lngAccuracy]);
829
+ return toLatLngBounds(
830
+ [this.lat - latAccuracy, this.lng - lngAccuracy],
831
+ [this.lat + latAccuracy, this.lng + lngAccuracy]
832
+ );
787
833
  },
788
834
  clone: function() {
789
835
  return new LatLng(this.lat, this.lng, this.alt);
@@ -869,11 +915,17 @@ var leafletSrc = { exports: {} };
869
915
  MAX_LATITUDE: 85.0511287798,
870
916
  project: function(latlng) {
871
917
  var d = Math.PI / 180, max = this.MAX_LATITUDE, lat = Math.max(Math.min(max, latlng.lat), -max), sin = Math.sin(lat * d);
872
- return new Point(this.R * latlng.lng * d, this.R * Math.log((1 + sin) / (1 - sin)) / 2);
918
+ return new Point(
919
+ this.R * latlng.lng * d,
920
+ this.R * Math.log((1 + sin) / (1 - sin)) / 2
921
+ );
873
922
  },
874
923
  unproject: function(point) {
875
924
  var d = 180 / Math.PI;
876
- return new LatLng((2 * Math.atan(Math.exp(point.y / this.R)) - Math.PI / 2) * d, point.x * d / this.R);
925
+ return new LatLng(
926
+ (2 * Math.atan(Math.exp(point.y / this.R)) - Math.PI / 2) * d,
927
+ point.x * d / this.R
928
+ );
877
929
  },
878
930
  bounds: function() {
879
931
  var d = earthRadius * Math.PI;
@@ -905,7 +957,10 @@ var leafletSrc = { exports: {} };
905
957
  },
906
958
  untransform: function(point, scale2) {
907
959
  scale2 = scale2 || 1;
908
- return new Point((point.x / scale2 - this._b) / this._a, (point.y / scale2 - this._d) / this._c);
960
+ return new Point(
961
+ (point.x / scale2 - this._b) / this._a,
962
+ (point.y / scale2 - this._d) / this._c
963
+ );
909
964
  }
910
965
  };
911
966
  function toTransformation(a, b, c, d) {
@@ -1001,6 +1056,8 @@ var leafletSrc = { exports: {} };
1001
1056
  return false;
1002
1057
  }
1003
1058
  }();
1059
+ var mac = navigator.platform.indexOf("Mac") === 0;
1060
+ var linux = navigator.platform.indexOf("Linux") === 0;
1004
1061
  function userAgentContains(str) {
1005
1062
  return navigator.userAgent.toLowerCase().indexOf(str) >= 0;
1006
1063
  }
@@ -1037,7 +1094,9 @@ var leafletSrc = { exports: {} };
1037
1094
  canvas: canvas$1,
1038
1095
  svg: svg$1,
1039
1096
  vml,
1040
- inlineSvg
1097
+ inlineSvg,
1098
+ mac,
1099
+ linux
1041
1100
  };
1042
1101
  var POINTER_DOWN = Browser.msPointer ? "MSPointerDown" : "pointerdown";
1043
1102
  var POINTER_MOVE = Browser.msPointer ? "MSPointerMove" : "pointermove";
@@ -1138,6 +1197,14 @@ var leafletSrc = { exports: {} };
1138
1197
  if (e.pointerType === "mouse" || e.sourceCapabilities && !e.sourceCapabilities.firesTouchEvents) {
1139
1198
  return;
1140
1199
  }
1200
+ var path = getPropagationPath(e);
1201
+ if (path.some(function(el) {
1202
+ return el instanceof HTMLLabelElement && el.attributes.for;
1203
+ }) && !path.some(function(el) {
1204
+ return el instanceof HTMLInputElement || el instanceof HTMLSelectElement;
1205
+ })) {
1206
+ return;
1207
+ }
1141
1208
  var now = Date.now();
1142
1209
  if (now - last <= delay) {
1143
1210
  detail++;
@@ -1159,8 +1226,12 @@ var leafletSrc = { exports: {} };
1159
1226
  obj.removeEventListener("dblclick", handlers.dblclick);
1160
1227
  obj.removeEventListener("click", handlers.simDblclick);
1161
1228
  }
1162
- var TRANSFORM = testProp(["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]);
1163
- var TRANSITION = testProp(["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]);
1229
+ var TRANSFORM = testProp(
1230
+ ["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]
1231
+ );
1232
+ var TRANSITION = testProp(
1233
+ ["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]
1234
+ );
1164
1235
  var TRANSITION_END = TRANSITION === "webkitTransition" || TRANSITION === "OTransition" ? TRANSITION + "End" : "transitionend";
1165
1236
  function get(id) {
1166
1237
  return typeof id === "string" ? document.getElementById(id) : id;
@@ -1302,7 +1373,9 @@ var leafletSrc = { exports: {} };
1302
1373
  off(window, "selectstart", preventDefault);
1303
1374
  };
1304
1375
  } else {
1305
- var userSelectProperty = testProp(["userSelect", "WebkitUserSelect", "OUserSelect", "MozUserSelect", "msUserSelect"]);
1376
+ var userSelectProperty = testProp(
1377
+ ["userSelect", "WebkitUserSelect", "OUserSelect", "MozUserSelect", "msUserSelect"]
1378
+ );
1306
1379
  disableTextSelection = function() {
1307
1380
  if (userSelectProperty) {
1308
1381
  var style2 = document.documentElement.style;
@@ -1526,14 +1599,29 @@ var leafletSrc = { exports: {} };
1526
1599
  stopPropagation(e);
1527
1600
  return this;
1528
1601
  }
1602
+ function getPropagationPath(ev) {
1603
+ if (ev.composedPath) {
1604
+ return ev.composedPath();
1605
+ }
1606
+ var path = [];
1607
+ var el = ev.target;
1608
+ while (el) {
1609
+ path.push(el);
1610
+ el = el.parentNode;
1611
+ }
1612
+ return path;
1613
+ }
1529
1614
  function getMousePosition(e, container) {
1530
1615
  if (!container) {
1531
1616
  return new Point(e.clientX, e.clientY);
1532
1617
  }
1533
1618
  var scale2 = getScale(container), offset = scale2.boundingClientRect;
1534
- return new Point((e.clientX - offset.left) / scale2.x - container.clientLeft, (e.clientY - offset.top) / scale2.y - container.clientTop);
1619
+ return new Point(
1620
+ (e.clientX - offset.left) / scale2.x - container.clientLeft,
1621
+ (e.clientY - offset.top) / scale2.y - container.clientTop
1622
+ );
1535
1623
  }
1536
- var wheelPxFactor = Browser.win && Browser.chrome ? 2 * window.devicePixelRatio : Browser.gecko ? window.devicePixelRatio : 1;
1624
+ var wheelPxFactor = Browser.linux && Browser.chrome ? window.devicePixelRatio : Browser.mac ? window.devicePixelRatio * 3 : window.devicePixelRatio > 0 ? 2 * window.devicePixelRatio : 1;
1537
1625
  function getWheelDelta(e) {
1538
1626
  return Browser.edge ? e.wheelDeltaY / 2 : e.deltaY && e.deltaMode === 0 ? -e.deltaY / wheelPxFactor : e.deltaY && e.deltaMode === 1 ? -e.deltaY * 20 : e.deltaY && e.deltaMode === 2 ? -e.deltaY * 60 : e.deltaX || e.deltaZ ? 0 : e.wheelDelta ? (e.wheelDeltaY || e.wheelDelta) / 2 : e.detail && Math.abs(e.detail) < 32765 ? -e.detail * 20 : e.detail ? e.detail / -32765 * 60 : 0;
1539
1627
  }
@@ -1560,6 +1648,7 @@ var leafletSrc = { exports: {} };
1560
1648
  disableClickPropagation,
1561
1649
  preventDefault,
1562
1650
  stop,
1651
+ getPropagationPath,
1563
1652
  getMousePosition,
1564
1653
  getWheelDelta,
1565
1654
  isExternalTarget,
@@ -1678,7 +1767,7 @@ var leafletSrc = { exports: {} };
1678
1767
  return this;
1679
1768
  }
1680
1769
  }
1681
- this._resetView(center, zoom2);
1770
+ this._resetView(center, zoom2, options.pan && options.pan.noMoveStart);
1682
1771
  return this;
1683
1772
  },
1684
1773
  setZoom: function(zoom2, options) {
@@ -1800,7 +1889,11 @@ var leafletSrc = { exports: {} };
1800
1889
  var t = (Date.now() - start) / duration, s = easeOut(t) * S;
1801
1890
  if (t <= 1) {
1802
1891
  this._flyToFrame = requestAnimFrame(frame, this);
1803
- this._move(this.unproject(from.add(to.subtract(from).multiplyBy(u(s) / u1)), startZoom), this.getScaleZoom(w0 / w(s), startZoom), { flyTo: true });
1892
+ this._move(
1893
+ this.unproject(from.add(to.subtract(from).multiplyBy(u(s) / u1)), startZoom),
1894
+ this.getScaleZoom(w0 / w(s), startZoom),
1895
+ { flyTo: true }
1896
+ );
1804
1897
  } else {
1805
1898
  this._move(targetCenter, targetZoom)._moveEnd(true);
1806
1899
  }
@@ -1815,11 +1908,12 @@ var leafletSrc = { exports: {} };
1815
1908
  },
1816
1909
  setMaxBounds: function(bounds) {
1817
1910
  bounds = toLatLngBounds(bounds);
1911
+ if (this.listens("moveend", this._panInsideMaxBounds)) {
1912
+ this.off("moveend", this._panInsideMaxBounds);
1913
+ }
1818
1914
  if (!bounds.isValid()) {
1819
1915
  this.options.maxBounds = null;
1820
- return this.off("moveend", this._panInsideMaxBounds);
1821
- } else if (this.options.maxBounds) {
1822
- this.off("moveend", this._panInsideMaxBounds);
1916
+ return this;
1823
1917
  }
1824
1918
  this.options.maxBounds = bounds;
1825
1919
  if (this._loaded) {
@@ -2041,7 +2135,7 @@ var leafletSrc = { exports: {} };
2041
2135
  getCenter: function() {
2042
2136
  this._checkIfLoaded();
2043
2137
  if (this._lastCenter && !this._moved()) {
2044
- return this._lastCenter;
2138
+ return this._lastCenter.clone();
2045
2139
  }
2046
2140
  return this.layerPointToLatLng(this._getCenterLayerPoint());
2047
2141
  },
@@ -2071,7 +2165,10 @@ var leafletSrc = { exports: {} };
2071
2165
  },
2072
2166
  getSize: function() {
2073
2167
  if (!this._size || this._sizeChanged) {
2074
- this._size = new Point(this._container.clientWidth || 0, this._container.clientHeight || 0);
2168
+ this._size = new Point(
2169
+ this._container.clientWidth || 0,
2170
+ this._container.clientHeight || 0
2171
+ );
2075
2172
  this._sizeChanged = false;
2076
2173
  }
2077
2174
  return this._size.clone();
@@ -2193,14 +2290,14 @@ var leafletSrc = { exports: {} };
2193
2290
  addClass(panes.shadowPane, "leaflet-zoom-hide");
2194
2291
  }
2195
2292
  },
2196
- _resetView: function(center, zoom2) {
2293
+ _resetView: function(center, zoom2, noMoveStart) {
2197
2294
  setPosition(this._mapPane, new Point(0, 0));
2198
2295
  var loading = !this._loaded;
2199
2296
  this._loaded = true;
2200
2297
  zoom2 = this._limitZoom(zoom2);
2201
2298
  this.fire("viewprereset");
2202
2299
  var zoomChanged = this._zoom !== zoom2;
2203
- this._moveStart(zoomChanged, false)._move(center, zoom2)._moveEnd(zoomChanged);
2300
+ this._moveStart(zoomChanged, noMoveStart)._move(center, zoom2)._moveEnd(zoomChanged);
2204
2301
  this.fire("viewreset");
2205
2302
  if (loading) {
2206
2303
  this.fire("load");
@@ -2276,9 +2373,12 @@ var leafletSrc = { exports: {} };
2276
2373
  },
2277
2374
  _onResize: function() {
2278
2375
  cancelAnimFrame(this._resizeRequest);
2279
- this._resizeRequest = requestAnimFrame(function() {
2280
- this.invalidateSize({ debounceMoveend: true });
2281
- }, this);
2376
+ this._resizeRequest = requestAnimFrame(
2377
+ function() {
2378
+ this.invalidateSize({ debounceMoveend: true });
2379
+ },
2380
+ this
2381
+ );
2282
2382
  },
2283
2383
  _onScroll: function() {
2284
2384
  this._container.scrollTop = 0;
@@ -2318,7 +2418,7 @@ var leafletSrc = { exports: {} };
2318
2418
  return targets;
2319
2419
  },
2320
2420
  _isClickDisabled: function(el) {
2321
- while (el !== this._container) {
2421
+ while (el && el !== this._container) {
2322
2422
  if (el["_leaflet_disable_click"]) {
2323
2423
  return true;
2324
2424
  }
@@ -2445,7 +2545,10 @@ var leafletSrc = { exports: {} };
2445
2545
  return offset.add(this._getBoundsOffset(newBounds, bounds));
2446
2546
  },
2447
2547
  _getBoundsOffset: function(pxBounds, maxBounds, zoom2) {
2448
- var projectedMaxBounds = toBounds(this.project(maxBounds.getNorthEast(), zoom2), this.project(maxBounds.getSouthWest(), zoom2)), minOffset = projectedMaxBounds.min.subtract(pxBounds.min), maxOffset = projectedMaxBounds.max.subtract(pxBounds.max), dx = this._rebound(minOffset.x, -maxOffset.x), dy = this._rebound(minOffset.y, -maxOffset.y);
2548
+ var projectedMaxBounds = toBounds(
2549
+ this.project(maxBounds.getNorthEast(), zoom2),
2550
+ this.project(maxBounds.getSouthWest(), zoom2)
2551
+ ), minOffset = projectedMaxBounds.min.subtract(pxBounds.min), maxOffset = projectedMaxBounds.max.subtract(pxBounds.max), dx = this._rebound(minOffset.x, -maxOffset.x), dy = this._rebound(minOffset.y, -maxOffset.y);
2449
2552
  return new Point(dx, dy);
2450
2553
  },
2451
2554
  _rebound: function(left, right) {
@@ -2901,8 +3004,20 @@ var leafletSrc = { exports: {} };
2901
3004
  },
2902
3005
  onAdd: function(map) {
2903
3006
  var zoomName = "leaflet-control-zoom", container = create$1("div", zoomName + " leaflet-bar"), options = this.options;
2904
- this._zoomInButton = this._createButton(options.zoomInText, options.zoomInTitle, zoomName + "-in", container, this._zoomIn);
2905
- this._zoomOutButton = this._createButton(options.zoomOutText, options.zoomOutTitle, zoomName + "-out", container, this._zoomOut);
3007
+ this._zoomInButton = this._createButton(
3008
+ options.zoomInText,
3009
+ options.zoomInTitle,
3010
+ zoomName + "-in",
3011
+ container,
3012
+ this._zoomIn
3013
+ );
3014
+ this._zoomOutButton = this._createButton(
3015
+ options.zoomOutText,
3016
+ options.zoomOutTitle,
3017
+ zoomName + "-out",
3018
+ container,
3019
+ this._zoomOut
3020
+ );
2906
3021
  this._updateDisabled();
2907
3022
  map.on("zoomend zoomlevelschange", this._updateDisabled, this);
2908
3023
  return container;
@@ -2998,7 +3113,10 @@ var leafletSrc = { exports: {} };
2998
3113
  },
2999
3114
  _update: function() {
3000
3115
  var map = this._map, y = map.getSize().y / 2;
3001
- var maxMeters = map.distance(map.containerPointToLatLng([0, y]), map.containerPointToLatLng([this.options.maxWidth, y]));
3116
+ var maxMeters = map.distance(
3117
+ map.containerPointToLatLng([0, y]),
3118
+ map.containerPointToLatLng([this.options.maxWidth, y])
3119
+ );
3002
3120
  this._updateScales(maxMeters);
3003
3121
  },
3004
3122
  _updateScales: function(maxMeters) {
@@ -3037,7 +3155,7 @@ var leafletSrc = { exports: {} };
3037
3155
  var scale = function(options) {
3038
3156
  return new Scale(options);
3039
3157
  };
3040
- var ukrainianFlag = '<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>';
3158
+ var ukrainianFlag = '<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>';
3041
3159
  var Attribution = Control.extend({
3042
3160
  options: {
3043
3161
  position: "bottomright",
@@ -3430,6 +3548,43 @@ var leafletSrc = { exports: {} };
3430
3548
  console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead.");
3431
3549
  return isFlat(latlngs);
3432
3550
  }
3551
+ function polylineCenter(latlngs, crs) {
3552
+ var i, halfDist, segDist, dist, p1, p2, ratio, center;
3553
+ if (!latlngs || latlngs.length === 0) {
3554
+ throw new Error("latlngs not passed");
3555
+ }
3556
+ if (!isFlat(latlngs)) {
3557
+ console.warn("latlngs are not flat! Only the first ring will be used");
3558
+ latlngs = latlngs[0];
3559
+ }
3560
+ var points = [];
3561
+ for (var j in latlngs) {
3562
+ points.push(crs.project(toLatLng(latlngs[j])));
3563
+ }
3564
+ var len = points.length;
3565
+ for (i = 0, halfDist = 0; i < len - 1; i++) {
3566
+ halfDist += points[i].distanceTo(points[i + 1]) / 2;
3567
+ }
3568
+ if (halfDist === 0) {
3569
+ center = points[0];
3570
+ } else {
3571
+ for (i = 0, dist = 0; i < len - 1; i++) {
3572
+ p1 = points[i];
3573
+ p2 = points[i + 1];
3574
+ segDist = p1.distanceTo(p2);
3575
+ dist += segDist;
3576
+ if (dist > halfDist) {
3577
+ ratio = (dist - halfDist) / segDist;
3578
+ center = [
3579
+ p2.x - ratio * (p2.x - p1.x),
3580
+ p2.y - ratio * (p2.y - p1.y)
3581
+ ];
3582
+ break;
3583
+ }
3584
+ }
3585
+ }
3586
+ return crs.unproject(toPoint(center));
3587
+ }
3433
3588
  var LineUtil = {
3434
3589
  __proto__: null,
3435
3590
  simplify,
@@ -3440,7 +3595,8 @@ var leafletSrc = { exports: {} };
3440
3595
  _getBitCode,
3441
3596
  _sqClosestPointOnSegment,
3442
3597
  isFlat,
3443
- _flat
3598
+ _flat,
3599
+ polylineCenter
3444
3600
  };
3445
3601
  function clipPolygon(points, bounds, round) {
3446
3602
  var clippedPoints, edges = [1, 4, 2, 8], i, j, k, a, b, len, edge2, p;
@@ -3470,9 +3626,40 @@ var leafletSrc = { exports: {} };
3470
3626
  }
3471
3627
  return points;
3472
3628
  }
3629
+ function polygonCenter(latlngs, crs) {
3630
+ var i, j, p1, p2, f, area, x, y, center;
3631
+ if (!latlngs || latlngs.length === 0) {
3632
+ throw new Error("latlngs not passed");
3633
+ }
3634
+ if (!isFlat(latlngs)) {
3635
+ console.warn("latlngs are not flat! Only the first ring will be used");
3636
+ latlngs = latlngs[0];
3637
+ }
3638
+ var points = [];
3639
+ for (var k in latlngs) {
3640
+ points.push(crs.project(toLatLng(latlngs[k])));
3641
+ }
3642
+ var len = points.length;
3643
+ area = x = y = 0;
3644
+ for (i = 0, j = len - 1; i < len; j = i++) {
3645
+ p1 = points[i];
3646
+ p2 = points[j];
3647
+ f = p1.y * p2.x - p2.y * p1.x;
3648
+ x += (p1.x + p2.x) * f;
3649
+ y += (p1.y + p2.y) * f;
3650
+ area += f * 3;
3651
+ }
3652
+ if (area === 0) {
3653
+ center = points[0];
3654
+ } else {
3655
+ center = [x / area, y / area];
3656
+ }
3657
+ return crs.unproject(toPoint(center));
3658
+ }
3473
3659
  var PolyUtil = {
3474
3660
  __proto__: null,
3475
- clipPolygon
3661
+ clipPolygon,
3662
+ polygonCenter
3476
3663
  };
3477
3664
  var LonLat = {
3478
3665
  project: function(latlng) {
@@ -3924,9 +4111,15 @@ var leafletSrc = { exports: {} };
3924
4111
  },
3925
4112
  _adjustPan: function(e) {
3926
4113
  var marker2 = this._marker, map = marker2._map, speed = this._marker.options.autoPanSpeed, padding = this._marker.options.autoPanPadding, iconPos = getPosition(marker2._icon), bounds = map.getPixelBounds(), origin = map.getPixelOrigin();
3927
- var panBounds = toBounds(bounds.min._subtract(origin).add(padding), bounds.max._subtract(origin).subtract(padding));
4114
+ var panBounds = toBounds(
4115
+ bounds.min._subtract(origin).add(padding),
4116
+ bounds.max._subtract(origin).subtract(padding)
4117
+ );
3928
4118
  if (!panBounds.contains(iconPos)) {
3929
- var movement = toPoint((Math.max(panBounds.max.x, iconPos.x) - panBounds.max.x) / (bounds.max.x - panBounds.max.x) - (Math.min(panBounds.min.x, iconPos.x) - panBounds.min.x) / (bounds.min.x - panBounds.min.x), (Math.max(panBounds.max.y, iconPos.y) - panBounds.max.y) / (bounds.max.y - panBounds.max.y) - (Math.min(panBounds.min.y, iconPos.y) - panBounds.min.y) / (bounds.min.y - panBounds.min.y)).multiplyBy(speed);
4119
+ var movement = toPoint(
4120
+ (Math.max(panBounds.max.x, iconPos.x) - panBounds.max.x) / (bounds.max.x - panBounds.max.x) - (Math.min(panBounds.min.x, iconPos.x) - panBounds.min.x) / (bounds.min.x - panBounds.min.x),
4121
+ (Math.max(panBounds.max.y, iconPos.y) - panBounds.max.y) / (bounds.max.y - panBounds.max.y) - (Math.min(panBounds.min.y, iconPos.y) - panBounds.min.y) / (bounds.min.y - panBounds.min.y)
4122
+ ).multiplyBy(speed);
3930
4123
  map.panBy(movement, { animate: false });
3931
4124
  this._draggable._newPos._add(movement);
3932
4125
  this._draggable._startPos._add(movement);
@@ -4348,7 +4541,10 @@ var leafletSrc = { exports: {} };
4348
4541
  },
4349
4542
  getBounds: function() {
4350
4543
  var half = [this._radius, this._radiusY || this._radius];
4351
- return new LatLngBounds(this._map.layerPointToLatLng(this._point.subtract(half)), this._map.layerPointToLatLng(this._point.add(half)));
4544
+ return new LatLngBounds(
4545
+ this._map.layerPointToLatLng(this._point.subtract(half)),
4546
+ this._map.layerPointToLatLng(this._point.add(half))
4547
+ );
4352
4548
  },
4353
4549
  setStyle: Path.prototype.setStyle,
4354
4550
  _project: function() {
@@ -4414,29 +4610,7 @@ var leafletSrc = { exports: {} };
4414
4610
  if (!this._map) {
4415
4611
  throw new Error("Must add layer to map before using getCenter()");
4416
4612
  }
4417
- var i, halfDist, segDist, dist, p1, p2, ratio, points = this._rings[0], len = points.length;
4418
- if (!len) {
4419
- return null;
4420
- }
4421
- for (i = 0, halfDist = 0; i < len - 1; i++) {
4422
- halfDist += points[i].distanceTo(points[i + 1]) / 2;
4423
- }
4424
- if (halfDist === 0) {
4425
- return this._map.layerPointToLatLng(points[0]);
4426
- }
4427
- for (i = 0, dist = 0; i < len - 1; i++) {
4428
- p1 = points[i];
4429
- p2 = points[i + 1];
4430
- segDist = p1.distanceTo(p2);
4431
- dist += segDist;
4432
- if (dist > halfDist) {
4433
- ratio = (dist - halfDist) / segDist;
4434
- return this._map.layerPointToLatLng([
4435
- p2.x - ratio * (p2.x - p1.x),
4436
- p2.y - ratio * (p2.y - p1.y)
4437
- ]);
4438
- }
4439
- }
4613
+ return polylineCenter(this._defaultShape(), this._map.options.crs);
4440
4614
  },
4441
4615
  getBounds: function() {
4442
4616
  return this._bounds;
@@ -4579,25 +4753,7 @@ var leafletSrc = { exports: {} };
4579
4753
  if (!this._map) {
4580
4754
  throw new Error("Must add layer to map before using getCenter()");
4581
4755
  }
4582
- var i, j, p1, p2, f, area, x, y, center, points = this._rings[0], len = points.length;
4583
- if (!len) {
4584
- return null;
4585
- }
4586
- area = x = y = 0;
4587
- for (i = 0, j = len - 1; i < len; j = i++) {
4588
- p1 = points[i];
4589
- p2 = points[j];
4590
- f = p1.y * p2.x - p2.y * p1.x;
4591
- x += (p1.x + p2.x) * f;
4592
- y += (p1.y + p2.y) * f;
4593
- area += f * 3;
4594
- }
4595
- if (area === 0) {
4596
- center = points[0];
4597
- } else {
4598
- center = [x / area, y / area];
4599
- }
4600
- return this._map.layerPointToLatLng(center);
4756
+ return polygonCenter(this._defaultShape(), this._map.options.crs);
4601
4757
  },
4602
4758
  _convertLatLngs: function(latlngs) {
4603
4759
  var result = Polyline.prototype._convertLatLngs.call(this, latlngs), len = result.length;
@@ -4739,13 +4895,21 @@ var leafletSrc = { exports: {} };
4739
4895
  return new Polygon(latlngs, options);
4740
4896
  case "GeometryCollection":
4741
4897
  for (i = 0, len = geometry.geometries.length; i < len; i++) {
4742
- var layer = geometryToLayer({
4898
+ var geoLayer = geometryToLayer({
4743
4899
  geometry: geometry.geometries[i],
4744
4900
  type: "Feature",
4745
4901
  properties: geojson.properties
4746
4902
  }, options);
4747
- if (layer) {
4748
- layers2.push(layer);
4903
+ if (geoLayer) {
4904
+ layers2.push(geoLayer);
4905
+ }
4906
+ }
4907
+ return new FeatureGroup(layers2);
4908
+ case "FeatureCollection":
4909
+ for (i = 0, len = geometry.features.length; i < len; i++) {
4910
+ var featureLayer = geometryToLayer(geometry.features[i], options);
4911
+ if (featureLayer) {
4912
+ layers2.push(featureLayer);
4749
4913
  }
4750
4914
  }
4751
4915
  return new FeatureGroup(layers2);
@@ -4774,7 +4938,7 @@ var leafletSrc = { exports: {} };
4774
4938
  function latLngsToCoords(latlngs, levelsDeep, closed, precision) {
4775
4939
  var coords = [];
4776
4940
  for (var i = 0, len = latlngs.length; i < len; i++) {
4777
- coords.push(levelsDeep ? latLngsToCoords(latlngs[i], levelsDeep - 1, closed, precision) : latLngToCoords(latlngs[i], precision));
4941
+ coords.push(levelsDeep ? latLngsToCoords(latlngs[i], isFlat(latlngs[i]) ? 0 : levelsDeep - 1, closed, precision) : latLngToCoords(latlngs[i], precision));
4778
4942
  }
4779
4943
  if (!levelsDeep && closed) {
4780
4944
  coords.push(coords[0]);
@@ -5003,7 +5167,10 @@ var leafletSrc = { exports: {} };
5003
5167
  setTransform(this._image, offset, scale2);
5004
5168
  },
5005
5169
  _reset: function() {
5006
- var image = this._image, bounds = new Bounds(this._map.latLngToLayerPoint(this._bounds.getNorthWest()), this._map.latLngToLayerPoint(this._bounds.getSouthEast())), size = bounds.getSize();
5170
+ var image = this._image, bounds = new Bounds(
5171
+ this._map.latLngToLayerPoint(this._bounds.getNorthWest()),
5172
+ this._map.latLngToLayerPoint(this._bounds.getSouthEast())
5173
+ ), size = bounds.getSize();
5007
5174
  setPosition(image, bounds.min);
5008
5175
  image.style.width = size.x + "px";
5009
5176
  image.style.height = size.y + "px";
@@ -5103,11 +5270,20 @@ var leafletSrc = { exports: {} };
5103
5270
  interactive: false,
5104
5271
  offset: [0, 0],
5105
5272
  className: "",
5106
- pane: void 0
5273
+ pane: void 0,
5274
+ content: ""
5107
5275
  },
5108
5276
  initialize: function(options, source) {
5109
- setOptions(this, options);
5110
- this._source = source;
5277
+ if (options && (options instanceof L.LatLng || isArray(options))) {
5278
+ this._latlng = toLatLng(options);
5279
+ setOptions(this, source);
5280
+ } else {
5281
+ setOptions(this, options);
5282
+ this._source = source;
5283
+ }
5284
+ if (this.options.content) {
5285
+ this._content = this.options.content;
5286
+ }
5111
5287
  },
5112
5288
  openOn: function(map) {
5113
5289
  map = arguments.length ? map : this._source._map;
@@ -5377,7 +5553,10 @@ var leafletSrc = { exports: {} };
5377
5553
  return events;
5378
5554
  },
5379
5555
  _initLayout: function() {
5380
- var prefix = "leaflet-popup", container = this._container = create$1("div", prefix + " " + (this.options.className || "") + " leaflet-zoom-animated");
5556
+ var prefix = "leaflet-popup", container = this._container = create$1(
5557
+ "div",
5558
+ prefix + " " + (this.options.className || "") + " leaflet-zoom-animated"
5559
+ );
5381
5560
  var wrapper = this._wrapper = create$1("div", prefix + "-content-wrapper", container);
5382
5561
  this._contentNode = create$1("div", prefix + "-content", wrapper);
5383
5562
  disableClickPropagation(container);
@@ -5391,7 +5570,10 @@ var leafletSrc = { exports: {} };
5391
5570
  closeButton.setAttribute("aria-label", "Close popup");
5392
5571
  closeButton.href = "#close";
5393
5572
  closeButton.innerHTML = '<span aria-hidden="true">&#215;</span>';
5394
- on(closeButton, "click", this.close, this);
5573
+ on(closeButton, "click", function(ev) {
5574
+ preventDefault(ev);
5575
+ this.close();
5576
+ }, this);
5395
5577
  }
5396
5578
  },
5397
5579
  _updateLayout: function() {
@@ -5494,7 +5676,7 @@ var leafletSrc = { exports: {} };
5494
5676
  return this;
5495
5677
  },
5496
5678
  openPopup: function(latlng) {
5497
- if (this._popup && this._popup._prepareOpen(latlng)) {
5679
+ if (this._popup && this._popup._prepareOpen(latlng || this._latlng)) {
5498
5680
  this._popup.openOn(this._map);
5499
5681
  }
5500
5682
  return this;
@@ -5585,6 +5767,8 @@ var leafletSrc = { exports: {} };
5585
5767
  _initLayout: function() {
5586
5768
  var prefix = "leaflet-tooltip", className = prefix + " " + (this.options.className || "") + " leaflet-zoom-" + (this._zoomAnimated ? "animated" : "hide");
5587
5769
  this._contentNode = this._container = create$1("div", className);
5770
+ this._container.setAttribute("role", "tooltip");
5771
+ this._container.setAttribute("id", "leaflet-tooltip-" + stamp(this));
5588
5772
  },
5589
5773
  _updateLayout: function() {
5590
5774
  },
@@ -5687,6 +5871,11 @@ var leafletSrc = { exports: {} };
5687
5871
  events.mouseover = this._openTooltip;
5688
5872
  events.mouseout = this.closeTooltip;
5689
5873
  events.click = this._openTooltip;
5874
+ if (this._map) {
5875
+ this._addFocusListeners();
5876
+ } else {
5877
+ events.add = this._addFocusListeners;
5878
+ }
5690
5879
  } else {
5691
5880
  events.add = this._openTooltip;
5692
5881
  }
@@ -5699,6 +5888,11 @@ var leafletSrc = { exports: {} };
5699
5888
  openTooltip: function(latlng) {
5700
5889
  if (this._tooltip && this._tooltip._prepareOpen(latlng)) {
5701
5890
  this._tooltip.openOn(this._map);
5891
+ if (this.getElement) {
5892
+ this._setAriaDescribedByOnLayer(this);
5893
+ } else if (this.eachLayer) {
5894
+ this.eachLayer(this._setAriaDescribedByOnLayer, this);
5895
+ }
5702
5896
  }
5703
5897
  return this;
5704
5898
  },
@@ -5725,6 +5919,29 @@ var leafletSrc = { exports: {} };
5725
5919
  getTooltip: function() {
5726
5920
  return this._tooltip;
5727
5921
  },
5922
+ _addFocusListeners: function() {
5923
+ if (this.getElement) {
5924
+ this._addFocusListenersOnLayer(this);
5925
+ } else if (this.eachLayer) {
5926
+ this.eachLayer(this._addFocusListenersOnLayer, this);
5927
+ }
5928
+ },
5929
+ _addFocusListenersOnLayer: function(layer) {
5930
+ var el = layer.getElement();
5931
+ if (el) {
5932
+ on(el, "focus", function() {
5933
+ this._tooltip._source = layer;
5934
+ this.openTooltip();
5935
+ }, this);
5936
+ on(el, "blur", this.closeTooltip, this);
5937
+ }
5938
+ },
5939
+ _setAriaDescribedByOnLayer: function(layer) {
5940
+ var el = layer.getElement();
5941
+ if (el) {
5942
+ el.setAttribute("aria-describedby", this._tooltip._container.id);
5943
+ }
5944
+ },
5728
5945
  _openTooltip: function(e) {
5729
5946
  if (!this._tooltip || !this._map || this._map.dragging && this._map.dragging.moving()) {
5730
5947
  return;
@@ -6068,10 +6285,10 @@ var leafletSrc = { exports: {} };
6068
6285
  },
6069
6286
  _clampZoom: function(zoom2) {
6070
6287
  var options = this.options;
6071
- if (options.minNativeZoom !== void 0 && zoom2 < options.minNativeZoom) {
6288
+ if (void 0 !== options.minNativeZoom && zoom2 < options.minNativeZoom) {
6072
6289
  return options.minNativeZoom;
6073
6290
  }
6074
- if (options.maxNativeZoom !== void 0 && options.maxNativeZoom < zoom2) {
6291
+ if (void 0 !== options.maxNativeZoom && options.maxNativeZoom < zoom2) {
6075
6292
  return options.maxNativeZoom;
6076
6293
  }
6077
6294
  return zoom2;
@@ -6151,7 +6368,10 @@ var leafletSrc = { exports: {} };
6151
6368
  if (this._tileZoom === void 0) {
6152
6369
  return;
6153
6370
  }
6154
- var pixelBounds = this._getTiledPixelBounds(center), tileRange = this._pxBoundsToTileRange(pixelBounds), tileCenter = tileRange.getCenter(), queue = [], margin = this.options.keepBuffer, noPruneRange = new Bounds(tileRange.getBottomLeft().subtract([margin, -margin]), tileRange.getTopRight().add([margin, -margin]));
6371
+ var pixelBounds = this._getTiledPixelBounds(center), tileRange = this._pxBoundsToTileRange(pixelBounds), tileCenter = tileRange.getCenter(), queue = [], margin = this.options.keepBuffer, noPruneRange = new Bounds(
6372
+ tileRange.getBottomLeft().subtract([margin, -margin]),
6373
+ tileRange.getTopRight().add([margin, -margin])
6374
+ );
6155
6375
  if (!(isFinite(tileRange.min.x) && isFinite(tileRange.min.y) && isFinite(tileRange.max.x) && isFinite(tileRange.max.y))) {
6156
6376
  throw new Error("Attempted to load an infinite number of tiles");
6157
6377
  }
@@ -6316,13 +6536,19 @@ var leafletSrc = { exports: {} };
6316
6536
  return coords.scaleBy(this.getTileSize()).subtract(this._level.origin);
6317
6537
  },
6318
6538
  _wrapCoords: function(coords) {
6319
- var newCoords = new Point(this._wrapX ? wrapNum(coords.x, this._wrapX) : coords.x, this._wrapY ? wrapNum(coords.y, this._wrapY) : coords.y);
6539
+ var newCoords = new Point(
6540
+ this._wrapX ? wrapNum(coords.x, this._wrapX) : coords.x,
6541
+ this._wrapY ? wrapNum(coords.y, this._wrapY) : coords.y
6542
+ );
6320
6543
  newCoords.z = coords.z;
6321
6544
  return newCoords;
6322
6545
  },
6323
6546
  _pxBoundsToTileRange: function(bounds) {
6324
6547
  var tileSize = this.getTileSize();
6325
- return new Bounds(bounds.min.unscaleBy(tileSize).floor(), bounds.max.unscaleBy(tileSize).ceil().subtract([1, 1]));
6548
+ return new Bounds(
6549
+ bounds.min.unscaleBy(tileSize).floor(),
6550
+ bounds.max.unscaleBy(tileSize).ceil().subtract([1, 1])
6551
+ );
6326
6552
  },
6327
6553
  _noTilesToLoad: function() {
6328
6554
  for (var key in this._tiles) {
@@ -6356,12 +6582,16 @@ var leafletSrc = { exports: {} };
6356
6582
  options.tileSize = Math.floor(options.tileSize / 2);
6357
6583
  if (!options.zoomReverse) {
6358
6584
  options.zoomOffset++;
6359
- options.maxZoom--;
6585
+ options.maxZoom = Math.max(options.minZoom, options.maxZoom - 1);
6360
6586
  } else {
6361
6587
  options.zoomOffset--;
6362
- options.minZoom++;
6588
+ options.minZoom = Math.min(options.maxZoom, options.minZoom + 1);
6363
6589
  }
6364
6590
  options.minZoom = Math.max(0, options.minZoom);
6591
+ } else if (!options.zoomReverse) {
6592
+ options.maxZoom = Math.max(options.minZoom, options.maxZoom);
6593
+ } else {
6594
+ options.minZoom = Math.min(options.maxZoom, options.minZoom);
6365
6595
  }
6366
6596
  if (typeof options.subdomains === "string") {
6367
6597
  options.subdomains = options.subdomains.split("");
@@ -6389,7 +6619,6 @@ var leafletSrc = { exports: {} };
6389
6619
  tile.referrerPolicy = this.options.referrerPolicy;
6390
6620
  }
6391
6621
  tile.alt = "";
6392
- tile.setAttribute("role", "presentation");
6393
6622
  tile.src = this.getTileUrl(coords);
6394
6623
  return tile;
6395
6624
  },
@@ -7296,7 +7525,10 @@ var leafletSrc = { exports: {} };
7296
7525
  }
7297
7526
  this._clearDeferredResetState();
7298
7527
  this._resetStateTimeout = setTimeout(bind(this._resetState, this), 0);
7299
- var bounds = new LatLngBounds(this._map.containerPointToLatLng(this._startPoint), this._map.containerPointToLatLng(this._point));
7528
+ var bounds = new LatLngBounds(
7529
+ this._map.containerPointToLatLng(this._startPoint),
7530
+ this._map.containerPointToLatLng(this._point)
7531
+ );
7300
7532
  this._map.fitBounds(bounds).fire("boxzoomend", { boxZoomBounds: bounds });
7301
7533
  },
7302
7534
  _onKeyDown: function(e) {
@@ -7375,7 +7607,10 @@ var leafletSrc = { exports: {} };
7375
7607
  map._stop();
7376
7608
  if (this._map.options.maxBounds && this._map.options.maxBoundsViscosity) {
7377
7609
  var bounds = toLatLngBounds(this._map.options.maxBounds);
7378
- this._offsetLimit = toBounds(this._map.latLngToContainerPoint(bounds.getNorthWest()).multiplyBy(-1), this._map.latLngToContainerPoint(bounds.getSouthEast()).multiplyBy(-1).add(this._map.getSize()));
7610
+ this._offsetLimit = toBounds(
7611
+ this._map.latLngToContainerPoint(bounds.getNorthWest()).multiplyBy(-1),
7612
+ this._map.latLngToContainerPoint(bounds.getSouthEast()).multiplyBy(-1).add(this._map.getSize())
7613
+ );
7379
7614
  this._viscosity = Math.min(1, Math.max(0, this._map.options.maxBoundsViscosity));
7380
7615
  } else {
7381
7616
  this._offsetLimit = null;
@@ -7741,7 +7976,7 @@ var leafletSrc = { exports: {} };
7741
7976
  this._moved = true;
7742
7977
  }
7743
7978
  cancelAnimFrame(this._animRequest);
7744
- var moveFn = bind(map._move, map, this._center, this._zoom, { pinch: true, round: false });
7979
+ var moveFn = bind(map._move, map, this._center, this._zoom, { pinch: true, round: false }, void 0);
7745
7980
  this._animRequest = requestAnimFrame(moveFn, this, true);
7746
7981
  preventDefault(e);
7747
7982
  },
@@ -8014,7 +8249,8 @@ const install = function(Vue, options = {}) {
8014
8249
  if (typeof window !== "undefined" && window.Vue) {
8015
8250
  install(window.Vue);
8016
8251
  }
8017
- var index = __spreadValues({
8018
- install
8019
- }, MyComponents);
8252
+ var index = {
8253
+ install,
8254
+ ...MyComponents
8255
+ };
8020
8256
  export { BaseMap, index as default };