gis-leaflet-helper 2.1.22 → 2.1.24
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/dist/gis-leaflet-helper.es.js +345 -258
- package/dist/gis-leaflet-helper.umd.js +86 -5
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){ try {var elementStyle = document.createElement('style'); elementStyle.appendChild(document.createTextNode(".leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:\"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)\";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:\"\"}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}body{height:100%;margin:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-family:Microsoft YaHei,Arial,sans-serif}label{font-weight:700}html{height:100%;box-sizing:border-box}#app{height:100%}*,*:before,*:after{box-sizing:inherit}a:focus,a:active{outline:none}a,a:focus,a:hover{cursor:pointer;text-decoration:none}div:focus{outline:none}.clearfix:after{visibility:hidden;display:block;font-size:0;content:\" \";clear:both;height:0}.leaflet-left .leaflet-control{margin-left:5px}.leaflet-right .leaflet-control{margin-right:5px}.leaflet-top .leaflet-control{margin-top:5px}.leaflet-bottom .leaflet-control{margin-bottom:5px}.leaflet-div-icon{border:none!important;background:transparent!important;text-align:center}.leaflet-measure-path-measurement{position:absolute;left:0;top:0;font-size:13px;font-weight:700;color:red;text-shadow:-1px 0 0 white,-1px -1px 0 white,0 -1px 0 white,1px -1px 0 white,1px 0 0 white,1px 1px 0 white,0 1px 0 white,-1px 1px 0 white;white-space:nowrap;transform-origin:0;pointer-events:none;z-index:9999}.leaflet-measure-path-measurement>div{position:relative;margin-top:-50%;left:-50%}.leaflet-control-scale-line{border:1px solid #999;border-top:none;padding:0;text-align:center;white-space:nowrap;overflow:hidden;background:transparent;color:#fff;height:26px;line-height:26px;text-shadow:0 0 2px #fff}.leaflet-control-container>div{display:flex}")); document.head.appendChild(elementStyle);} catch(e) {console.error('vite-plugin-css-injected-by-js', e);} })();import * as yr from "gis-common";
|
|
2
|
-
import { Color as
|
|
1
|
+
(function(){ try {var elementStyle = document.createElement('style'); elementStyle.appendChild(document.createTextNode(".leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:\"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)\";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:\"\"}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}body{height:100%;margin:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-family:Microsoft YaHei,Arial,sans-serif}label{font-weight:700}html{height:100%;box-sizing:border-box}#app{height:100%}*,*:before,*:after{box-sizing:inherit}a:focus,a:active{outline:none}a,a:focus,a:hover{cursor:pointer;text-decoration:none}div:focus{outline:none}.clearfix:after{visibility:hidden;display:block;font-size:0;content:\" \";clear:both;height:0}.leaflet-left .leaflet-control{margin-left:5px}.leaflet-right .leaflet-control{margin-right:5px}.leaflet-top .leaflet-control{margin-top:5px}.leaflet-bottom .leaflet-control{margin-bottom:5px}.leaflet-div-icon{border:none!important;background:transparent!important;text-align:center}.leaflet-measure-path-measurement{position:absolute;left:0;top:0;font-size:13px;font-weight:700;color:red;text-shadow:-1px 0 0 white,-1px -1px 0 white,0 -1px 0 white,1px -1px 0 white,1px 0 0 white,1px 1px 0 white,0 1px 0 white,-1px 1px 0 white;white-space:nowrap;transform-origin:0;pointer-events:none;z-index:9999}.leaflet-measure-path-measurement>div{position:relative;margin-top:-50%;left:-50%}.leaflet-control-scale-line{border:1px solid #999;border-top:none;padding:0;text-align:center;white-space:nowrap;overflow:hidden;color:#fff;height:26px;line-height:26px;text-shadow:0 0 2px #fff}.leaflet-control-container>div{display:flex;align-items:flex-end}")); document.head.appendChild(elementStyle);} catch(e) {console.error('vite-plugin-css-injected-by-js', e);} })();import * as yr from "gis-common";
|
|
2
|
+
import { Color as ta, CoordsUtil as xi, Util as Mr, ArrayUtil as As } from "gis-common";
|
|
3
3
|
function xr(i, s) {
|
|
4
4
|
for (var n = 0; n < s.length; n++) {
|
|
5
5
|
const r = s[n];
|
|
@@ -44,9 +44,9 @@ var Oe = { exports: {} };
|
|
|
44
44
|
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
45
45
|
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
46
46
|
*/
|
|
47
|
-
var
|
|
48
|
-
function
|
|
49
|
-
return
|
|
47
|
+
var ia;
|
|
48
|
+
function xa() {
|
|
49
|
+
return ia || (ia = 1, function(i, s) {
|
|
50
50
|
(function(n, r) {
|
|
51
51
|
r(s);
|
|
52
52
|
})(wr, function(n) {
|
|
@@ -386,7 +386,7 @@ function ba() {
|
|
|
386
386
|
function F(t, e, a) {
|
|
387
387
|
this.x = a ? Math.round(t) : t, this.y = a ? Math.round(e) : e;
|
|
388
388
|
}
|
|
389
|
-
var
|
|
389
|
+
var qs = Math.trunc || function(t) {
|
|
390
390
|
return t > 0 ? Math.floor(t) : Math.ceil(t);
|
|
391
391
|
};
|
|
392
392
|
F.prototype = {
|
|
@@ -471,7 +471,7 @@ function ba() {
|
|
|
471
471
|
return this.clone()._trunc();
|
|
472
472
|
},
|
|
473
473
|
_trunc: function() {
|
|
474
|
-
return this.x =
|
|
474
|
+
return this.x = qs(this.x), this.y = qs(this.y), this;
|
|
475
475
|
},
|
|
476
476
|
// @method distanceTo(otherPoint: Point): Number
|
|
477
477
|
// Returns the cartesian distance between the current and the given points.
|
|
@@ -870,8 +870,8 @@ function ba() {
|
|
|
870
870
|
var a = Math.PI / 180, h = t.lat * a, u = e.lat * a, _ = Math.sin((e.lat - t.lat) * a / 2), g = Math.sin((e.lng - t.lng) * a / 2), x = _ * _ + Math.cos(h) * Math.cos(u) * g * g, w = 2 * Math.atan2(Math.sqrt(x), Math.sqrt(1 - x));
|
|
871
871
|
return this.R * w;
|
|
872
872
|
}
|
|
873
|
-
}),
|
|
874
|
-
R:
|
|
873
|
+
}), Us = 6378137, We = {
|
|
874
|
+
R: Us,
|
|
875
875
|
MAX_LATITUDE: 85.0511287798,
|
|
876
876
|
project: function(t) {
|
|
877
877
|
var e = Math.PI / 180, a = this.MAX_LATITUDE, h = Math.max(Math.min(a, t.lat), -a), u = Math.sin(h * e);
|
|
@@ -888,7 +888,7 @@ function ba() {
|
|
|
888
888
|
);
|
|
889
889
|
},
|
|
890
890
|
bounds: function() {
|
|
891
|
-
var t =
|
|
891
|
+
var t = Us * Math.PI;
|
|
892
892
|
return new it([-t, -t], [t, t]);
|
|
893
893
|
}()
|
|
894
894
|
};
|
|
@@ -933,10 +933,10 @@ function ba() {
|
|
|
933
933
|
}), Va = o({}, Ve, {
|
|
934
934
|
code: "EPSG:900913"
|
|
935
935
|
});
|
|
936
|
-
function
|
|
936
|
+
function js(t) {
|
|
937
937
|
return document.createElementNS("http://www.w3.org/2000/svg", t);
|
|
938
938
|
}
|
|
939
|
-
function
|
|
939
|
+
function Hs(t, e) {
|
|
940
940
|
var a = "", h, u, _, g, x, w;
|
|
941
941
|
for (h = 0, _ = t.length; h < _; h++) {
|
|
942
942
|
for (x = t[h], u = 0, g = x.length; u < g; u++)
|
|
@@ -945,7 +945,7 @@ function ba() {
|
|
|
945
945
|
}
|
|
946
946
|
return a || "M0 0";
|
|
947
947
|
}
|
|
948
|
-
var Qe = document.documentElement.style, fe = "ActiveXObject" in window, Qa = fe && !document.addEventListener,
|
|
948
|
+
var Qe = document.documentElement.style, fe = "ActiveXObject" in window, Qa = fe && !document.addEventListener, Ws = "msLaunchUri" in navigator && !("documentMode" in document), Xe = Rt("webkit"), $s = Rt("android"), Vs = Rt("android 2") || Rt("android 3"), Xa = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), Ka = $s && Rt("Google") && Xa < 537 && !("AudioNode" in window), Ke = !!window.opera, Qs = !Ws && Rt("chrome"), Xs = Rt("gecko") && !Xe && !Ke && !fe, Ya = !Qs && Rt("safari"), Ks = Rt("phantom"), Ys = "OTransition" in Qe, Ja = navigator.platform.indexOf("Win") === 0, Js = fe && "transition" in Qe, Ye = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !Vs, tn = "MozPerspective" in Qe, to = !window.L_DISABLE_3D && (Js || Ye || tn) && !Ys && !Ks, Ni = typeof orientation < "u" || Rt("mobile"), io = Ni && Xe, eo = Ni && Ye, en = !window.PointerEvent && window.MSPointerEvent, sn = !!(window.PointerEvent || en), nn = "ontouchstart" in window || !!window.TouchEvent, so = !window.L_NO_TOUCH && (nn || sn), no = Ni && Ke, ao = Ni && Xs, oo = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, ro = function() {
|
|
949
949
|
var t = !1;
|
|
950
950
|
try {
|
|
951
951
|
var e = Object.defineProperty({}, "passive", {
|
|
@@ -959,7 +959,7 @@ function ba() {
|
|
|
959
959
|
return t;
|
|
960
960
|
}(), ho = function() {
|
|
961
961
|
return !!document.createElement("canvas").getContext;
|
|
962
|
-
}(), Je = !!(document.createElementNS &&
|
|
962
|
+
}(), Je = !!(document.createElementNS && js("svg").createSVGRect), lo = !!Je && function() {
|
|
963
963
|
var t = document.createElement("div");
|
|
964
964
|
return t.innerHTML = "<svg/>", (t.firstChild && t.firstChild.namespaceURI) === "http://www.w3.org/2000/svg";
|
|
965
965
|
}(), uo = !Je && function() {
|
|
@@ -978,29 +978,29 @@ function ba() {
|
|
|
978
978
|
var N = {
|
|
979
979
|
ie: fe,
|
|
980
980
|
ielt9: Qa,
|
|
981
|
-
edge:
|
|
981
|
+
edge: Ws,
|
|
982
982
|
webkit: Xe,
|
|
983
|
-
android:
|
|
984
|
-
android23:
|
|
983
|
+
android: $s,
|
|
984
|
+
android23: Vs,
|
|
985
985
|
androidStock: Ka,
|
|
986
986
|
opera: Ke,
|
|
987
|
-
chrome:
|
|
988
|
-
gecko:
|
|
987
|
+
chrome: Qs,
|
|
988
|
+
gecko: Xs,
|
|
989
989
|
safari: Ya,
|
|
990
|
-
phantom:
|
|
991
|
-
opera12:
|
|
990
|
+
phantom: Ks,
|
|
991
|
+
opera12: Ys,
|
|
992
992
|
win: Ja,
|
|
993
|
-
ie3d:
|
|
993
|
+
ie3d: Js,
|
|
994
994
|
webkit3d: Ye,
|
|
995
|
-
gecko3d:
|
|
995
|
+
gecko3d: tn,
|
|
996
996
|
any3d: to,
|
|
997
997
|
mobile: Ni,
|
|
998
998
|
mobileWebkit: io,
|
|
999
999
|
mobileWebkit3d: eo,
|
|
1000
|
-
msPointer:
|
|
1001
|
-
pointer:
|
|
1000
|
+
msPointer: en,
|
|
1001
|
+
pointer: sn,
|
|
1002
1002
|
touch: so,
|
|
1003
|
-
touchNative:
|
|
1003
|
+
touchNative: nn,
|
|
1004
1004
|
mobileOpera: no,
|
|
1005
1005
|
mobileGecko: ao,
|
|
1006
1006
|
retina: oo,
|
|
@@ -1011,19 +1011,19 @@ function ba() {
|
|
|
1011
1011
|
inlineSvg: lo,
|
|
1012
1012
|
mac: co,
|
|
1013
1013
|
linux: fo
|
|
1014
|
-
},
|
|
1015
|
-
touchstart:
|
|
1016
|
-
touchmove:
|
|
1017
|
-
touchend:
|
|
1018
|
-
touchcancel:
|
|
1019
|
-
},
|
|
1014
|
+
}, an = N.msPointer ? "MSPointerDown" : "pointerdown", on = N.msPointer ? "MSPointerMove" : "pointermove", rn = N.msPointer ? "MSPointerUp" : "pointerup", hn = N.msPointer ? "MSPointerCancel" : "pointercancel", ts = {
|
|
1015
|
+
touchstart: an,
|
|
1016
|
+
touchmove: on,
|
|
1017
|
+
touchend: rn,
|
|
1018
|
+
touchcancel: hn
|
|
1019
|
+
}, ln = {
|
|
1020
1020
|
touchstart: yo,
|
|
1021
1021
|
touchmove: de,
|
|
1022
1022
|
touchend: de,
|
|
1023
1023
|
touchcancel: de
|
|
1024
|
-
}, fi = {},
|
|
1024
|
+
}, fi = {}, un = !1;
|
|
1025
1025
|
function _o(t, e, a) {
|
|
1026
|
-
return e === "touchstart" && vo(),
|
|
1026
|
+
return e === "touchstart" && vo(), ln[e] ? (a = ln[e].bind(this, a), t.addEventListener(ts[e], a, !1), a) : (console.warn("wrong event specified:", e), p);
|
|
1027
1027
|
}
|
|
1028
1028
|
function mo(t, e, a) {
|
|
1029
1029
|
if (!ts[e]) {
|
|
@@ -1038,11 +1038,11 @@ function ba() {
|
|
|
1038
1038
|
function go(t) {
|
|
1039
1039
|
fi[t.pointerId] && (fi[t.pointerId] = t);
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1041
|
+
function cn(t) {
|
|
1042
1042
|
delete fi[t.pointerId];
|
|
1043
1043
|
}
|
|
1044
1044
|
function vo() {
|
|
1045
|
-
|
|
1045
|
+
un || (document.addEventListener(an, po, !0), document.addEventListener(on, go, !0), document.addEventListener(rn, cn, !0), document.addEventListener(hn, cn, !0), un = !0);
|
|
1046
1046
|
}
|
|
1047
1047
|
function de(t, e) {
|
|
1048
1048
|
if (e.pointerType !== (e.MSPOINTER_TYPE_MOUSE || "mouse")) {
|
|
@@ -1071,7 +1071,7 @@ function ba() {
|
|
|
1071
1071
|
return;
|
|
1072
1072
|
}
|
|
1073
1073
|
if (!(_.pointerType === "mouse" || _.sourceCapabilities && !_.sourceCapabilities.firesTouchEvents)) {
|
|
1074
|
-
var g =
|
|
1074
|
+
var g = pn(_);
|
|
1075
1075
|
if (!(g.some(function(w) {
|
|
1076
1076
|
return w instanceof HTMLLabelElement && w.attributes.for;
|
|
1077
1077
|
}) && !g.some(function(w) {
|
|
@@ -1094,8 +1094,8 @@ function ba() {
|
|
|
1094
1094
|
["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]
|
|
1095
1095
|
), ki = pe(
|
|
1096
1096
|
["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]
|
|
1097
|
-
),
|
|
1098
|
-
function
|
|
1097
|
+
), fn = ki === "webkitTransition" || ki === "OTransition" ? ki + "End" : "transitionend";
|
|
1098
|
+
function dn(t) {
|
|
1099
1099
|
return typeof t == "string" ? document.getElementById(t) : t;
|
|
1100
1100
|
}
|
|
1101
1101
|
function Bi(t, e) {
|
|
@@ -1214,7 +1214,7 @@ function ba() {
|
|
|
1214
1214
|
function ve() {
|
|
1215
1215
|
ge && (ge.style.outlineStyle = rs, ge = void 0, rs = void 0, J(window, "keydown", ve));
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function _n(t) {
|
|
1218
1218
|
do
|
|
1219
1219
|
t = t.parentNode;
|
|
1220
1220
|
while ((!t.offsetWidth || !t.offsetHeight) && t !== document.body);
|
|
@@ -1232,8 +1232,8 @@ function ba() {
|
|
|
1232
1232
|
__proto__: null,
|
|
1233
1233
|
TRANSFORM: is,
|
|
1234
1234
|
TRANSITION: ki,
|
|
1235
|
-
TRANSITION_END:
|
|
1236
|
-
get:
|
|
1235
|
+
TRANSITION_END: fn,
|
|
1236
|
+
get: dn,
|
|
1237
1237
|
getStyle: Bi,
|
|
1238
1238
|
create: Q,
|
|
1239
1239
|
remove: et,
|
|
@@ -1260,7 +1260,7 @@ function ba() {
|
|
|
1260
1260
|
enableImageDrag: os,
|
|
1261
1261
|
preventOutline: hs,
|
|
1262
1262
|
restoreOutline: ve,
|
|
1263
|
-
getSizedParentNode:
|
|
1263
|
+
getSizedParentNode: _n,
|
|
1264
1264
|
getScale: ls
|
|
1265
1265
|
};
|
|
1266
1266
|
function G(t, e, a, h) {
|
|
@@ -1277,12 +1277,12 @@ function ba() {
|
|
|
1277
1277
|
var Dt = "_leaflet_events";
|
|
1278
1278
|
function J(t, e, a, h) {
|
|
1279
1279
|
if (arguments.length === 1)
|
|
1280
|
-
|
|
1280
|
+
mn(t), delete t[Dt];
|
|
1281
1281
|
else if (e && typeof e == "object")
|
|
1282
1282
|
for (var u in e)
|
|
1283
1283
|
fs(t, u, e[u], a);
|
|
1284
1284
|
else if (e = A(e), arguments.length === 2)
|
|
1285
|
-
|
|
1285
|
+
mn(t, function(x) {
|
|
1286
1286
|
return j(e, x) !== -1;
|
|
1287
1287
|
});
|
|
1288
1288
|
else
|
|
@@ -1290,7 +1290,7 @@ function ba() {
|
|
|
1290
1290
|
fs(t, e[_], a, h);
|
|
1291
1291
|
return this;
|
|
1292
1292
|
}
|
|
1293
|
-
function
|
|
1293
|
+
function mn(t, e) {
|
|
1294
1294
|
for (var a in t[Dt]) {
|
|
1295
1295
|
var h = a.split(/\d/)[0];
|
|
1296
1296
|
(!e || e(h)) && fs(t, h, null, null, a);
|
|
@@ -1334,14 +1334,14 @@ function ba() {
|
|
|
1334
1334
|
function hi(t) {
|
|
1335
1335
|
return _t(t), ri(t), this;
|
|
1336
1336
|
}
|
|
1337
|
-
function
|
|
1337
|
+
function pn(t) {
|
|
1338
1338
|
if (t.composedPath)
|
|
1339
1339
|
return t.composedPath();
|
|
1340
1340
|
for (var e = [], a = t.target; a; )
|
|
1341
1341
|
e.push(a), a = a.parentNode;
|
|
1342
1342
|
return e;
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1344
|
+
function gn(t, e) {
|
|
1345
1345
|
if (!e)
|
|
1346
1346
|
return new F(t.clientX, t.clientY);
|
|
1347
1347
|
var a = ls(e), h = a.boundingClientRect;
|
|
@@ -1353,7 +1353,7 @@ function ba() {
|
|
|
1353
1353
|
);
|
|
1354
1354
|
}
|
|
1355
1355
|
var Ao = N.linux && N.chrome ? window.devicePixelRatio : N.mac ? window.devicePixelRatio * 3 : window.devicePixelRatio > 0 ? 2 * window.devicePixelRatio : 1;
|
|
1356
|
-
function
|
|
1356
|
+
function vn(t) {
|
|
1357
1357
|
return N.edge ? t.wheelDeltaY / 2 : (
|
|
1358
1358
|
// Don't trust window-geometry-based delta
|
|
1359
1359
|
t.deltaY && t.deltaMode === 0 ? -t.deltaY / Ao : (
|
|
@@ -1401,13 +1401,13 @@ function ba() {
|
|
|
1401
1401
|
disableClickPropagation: Fi,
|
|
1402
1402
|
preventDefault: _t,
|
|
1403
1403
|
stop: hi,
|
|
1404
|
-
getPropagationPath:
|
|
1405
|
-
getMousePosition:
|
|
1406
|
-
getWheelDelta:
|
|
1404
|
+
getPropagationPath: pn,
|
|
1405
|
+
getMousePosition: gn,
|
|
1406
|
+
getWheelDelta: vn,
|
|
1407
1407
|
isExternalTarget: _s,
|
|
1408
1408
|
addListener: G,
|
|
1409
1409
|
removeListener: J
|
|
1410
|
-
},
|
|
1410
|
+
}, yn = Ii.extend({
|
|
1411
1411
|
// @method run(el: HTMLElement, newPos: Point, duration?: Number, easeLinearity?: Number)
|
|
1412
1412
|
// Run an animation of a given element to a new position, optionally setting
|
|
1413
1413
|
// duration in seconds (`0.25` by default) and easing linearity factor (3rd
|
|
@@ -1516,7 +1516,7 @@ function ba() {
|
|
|
1516
1516
|
trackResize: !0
|
|
1517
1517
|
},
|
|
1518
1518
|
initialize: function(t, e) {
|
|
1519
|
-
e = P(this, e), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(t), this._initLayout(), this._onResize = f(this._onResize, this), this._initEvents(), e.maxBounds && this.setMaxBounds(e.maxBounds), e.zoom !== void 0 && (this._zoom = this._limitZoom(e.zoom)), e.center && e.zoom !== void 0 && this.setView($(e.center), e.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = ki && N.any3d && !N.mobileOpera && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), G(this._proxy,
|
|
1519
|
+
e = P(this, e), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(t), this._initLayout(), this._onResize = f(this._onResize, this), this._initEvents(), e.maxBounds && this.setMaxBounds(e.maxBounds), e.zoom !== void 0 && (this._zoom = this._limitZoom(e.zoom)), e.center && e.zoom !== void 0 && this.setView($(e.center), e.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = ki && N.any3d && !N.mobileOpera && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), G(this._proxy, fn, this._catchTransitionEnd, this)), this._addLayers(this.options.layers);
|
|
1520
1520
|
},
|
|
1521
1521
|
// @section Methods for modifying map state
|
|
1522
1522
|
// @method setView(center: LatLng, zoom: Number, options?: Zoom/pan options): this
|
|
@@ -1597,7 +1597,7 @@ function ba() {
|
|
|
1597
1597
|
return this.fire("moveend");
|
|
1598
1598
|
if (e.animate !== !0 && !this.getSize().contains(t))
|
|
1599
1599
|
return this._resetView(this.unproject(this.project(this.getCenter()).add(t)), this.getZoom()), this;
|
|
1600
|
-
if (this._panAnim || (this._panAnim = new
|
|
1600
|
+
if (this._panAnim || (this._panAnim = new yn(), this._panAnim.on({
|
|
1601
1601
|
step: this._onPanTransitionStep,
|
|
1602
1602
|
end: this._onPanTransitionEnd
|
|
1603
1603
|
}, this)), e.noMoveStart || this.fire("movestart"), e.animate !== !1) {
|
|
@@ -1619,7 +1619,7 @@ function ba() {
|
|
|
1619
1619
|
t = $(t), e = e === void 0 ? g : e;
|
|
1620
1620
|
var x = Math.max(_.x, _.y), w = x * this.getZoomScale(g, e), T = u.distanceTo(h) || 1, I = 1.42, R = I * I;
|
|
1621
1621
|
function U(lt) {
|
|
1622
|
-
var Se = lt ? -1 : 1, mr = lt ? w : x, pr = w * w - x * x + Se * R * R * T * T, gr = 2 * mr * R * T, Ps = pr / gr,
|
|
1622
|
+
var Se = lt ? -1 : 1, mr = lt ? w : x, pr = w * w - x * x + Se * R * R * T * T, gr = 2 * mr * R * T, Ps = pr / gr, Jn = Math.sqrt(Ps * Ps + 1) - Ps, vr = Jn < 1e-9 ? -18 : Math.log(Jn);
|
|
1623
1623
|
return vr;
|
|
1624
1624
|
}
|
|
1625
1625
|
function gt(lt) {
|
|
@@ -1641,16 +1641,16 @@ function ba() {
|
|
|
1641
1641
|
function fr(lt) {
|
|
1642
1642
|
return 1 - Math.pow(1 - lt, 1.5);
|
|
1643
1643
|
}
|
|
1644
|
-
var dr = Date.now(),
|
|
1645
|
-
function
|
|
1646
|
-
var lt = (Date.now() - dr) / _r, Se = fr(lt) *
|
|
1647
|
-
lt <= 1 ? (this._flyToFrame = nt(
|
|
1644
|
+
var dr = Date.now(), Kn = (U(1) - bt) / I, _r = a.duration ? 1e3 * a.duration : 1e3 * Kn * 0.8;
|
|
1645
|
+
function Yn() {
|
|
1646
|
+
var lt = (Date.now() - dr) / _r, Se = fr(lt) * Kn;
|
|
1647
|
+
lt <= 1 ? (this._flyToFrame = nt(Yn, this), this._move(
|
|
1648
1648
|
this.unproject(h.add(u.subtract(h).multiplyBy(cr(Se) / T)), g),
|
|
1649
1649
|
this.getScaleZoom(x / Mi(Se), g),
|
|
1650
1650
|
{ flyTo: !0 }
|
|
1651
1651
|
)) : this._move(t, e)._moveEnd(!0);
|
|
1652
1652
|
}
|
|
1653
|
-
return this._moveStart(!0, a.noMoveStart),
|
|
1653
|
+
return this._moveStart(!0, a.noMoveStart), Yn.call(this), this;
|
|
1654
1654
|
},
|
|
1655
1655
|
// @method flyToBounds(bounds: LatLngBounds, options?: fitBounds options): this
|
|
1656
1656
|
// Sets the view of the map with a smooth animation like [`flyTo`](#map-flyto),
|
|
@@ -2008,7 +2008,7 @@ function ba() {
|
|
|
2008
2008
|
// Given a MouseEvent object, returns the pixel coordinate relative to the
|
|
2009
2009
|
// map container where the event took place.
|
|
2010
2010
|
mouseEventToContainerPoint: function(t) {
|
|
2011
|
-
return
|
|
2011
|
+
return gn(t, this._container);
|
|
2012
2012
|
},
|
|
2013
2013
|
// @method mouseEventToLayerPoint(ev: MouseEvent): Point
|
|
2014
2014
|
// Given a MouseEvent object, returns the pixel coordinate relative to
|
|
@@ -2024,7 +2024,7 @@ function ba() {
|
|
|
2024
2024
|
},
|
|
2025
2025
|
// map initialization methods
|
|
2026
2026
|
_initContainer: function(t) {
|
|
2027
|
-
var e = this._container =
|
|
2027
|
+
var e = this._container = dn(t);
|
|
2028
2028
|
if (e) {
|
|
2029
2029
|
if (e._leaflet_id)
|
|
2030
2030
|
throw new Error("Map container is already initialized.");
|
|
@@ -2361,7 +2361,7 @@ function ba() {
|
|
|
2361
2361
|
et(this._controlContainer), delete this._controlCorners, delete this._controlContainer;
|
|
2362
2362
|
}
|
|
2363
2363
|
});
|
|
2364
|
-
var
|
|
2364
|
+
var Mn = zt.extend({
|
|
2365
2365
|
// @section
|
|
2366
2366
|
// @aka Control.Layers options
|
|
2367
2367
|
options: {
|
|
@@ -2530,7 +2530,7 @@ function ba() {
|
|
|
2530
2530
|
});
|
|
2531
2531
|
}
|
|
2532
2532
|
}), Eo = function(t, e, a) {
|
|
2533
|
-
return new
|
|
2533
|
+
return new Mn(t, e, a);
|
|
2534
2534
|
}, ms = zt.extend({
|
|
2535
2535
|
// @section
|
|
2536
2536
|
// @aka Control.Zoom options
|
|
@@ -2596,7 +2596,7 @@ function ba() {
|
|
|
2596
2596
|
});
|
|
2597
2597
|
var So = function(t) {
|
|
2598
2598
|
return new ms(t);
|
|
2599
|
-
},
|
|
2599
|
+
}, xn = zt.extend({
|
|
2600
2600
|
// @section
|
|
2601
2601
|
// @aka Control.Scale options
|
|
2602
2602
|
options: {
|
|
@@ -2649,7 +2649,7 @@ function ba() {
|
|
|
2649
2649
|
return a = a >= 10 ? 10 : a >= 5 ? 5 : a >= 3 ? 3 : a >= 2 ? 2 : 1, e * a;
|
|
2650
2650
|
}
|
|
2651
2651
|
}), Oo = function(t) {
|
|
2652
|
-
return new
|
|
2652
|
+
return new xn(t);
|
|
2653
2653
|
}, Io = '<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>', ps = zt.extend({
|
|
2654
2654
|
// @section
|
|
2655
2655
|
// @aka Control.Attribution options
|
|
@@ -2709,7 +2709,7 @@ function ba() {
|
|
|
2709
2709
|
var zo = function(t) {
|
|
2710
2710
|
return new ps(t);
|
|
2711
2711
|
};
|
|
2712
|
-
zt.Layers =
|
|
2712
|
+
zt.Layers = Mn, zt.Zoom = ms, zt.Scale = xn, zt.Attribution = ps, Gi.layers = Eo, Gi.zoom = So, Gi.scale = Oo, Gi.attribution = zo;
|
|
2713
2713
|
var Zt = Ht.extend({
|
|
2714
2714
|
initialize: function(t) {
|
|
2715
2715
|
this._map = t;
|
|
@@ -2739,7 +2739,7 @@ function ba() {
|
|
|
2739
2739
|
Zt.addTo = function(t, e) {
|
|
2740
2740
|
return t.addHandler(e, this), this;
|
|
2741
2741
|
};
|
|
2742
|
-
var No = { Events: Tt },
|
|
2742
|
+
var No = { Events: Tt }, wn = N.touch ? "touchstart mousedown" : "mousedown", Jt = Ii.extend({
|
|
2743
2743
|
options: {
|
|
2744
2744
|
// @section
|
|
2745
2745
|
// @aka Draggable options
|
|
@@ -2756,12 +2756,12 @@ function ba() {
|
|
|
2756
2756
|
// @method enable()
|
|
2757
2757
|
// Enables the dragging ability
|
|
2758
2758
|
enable: function() {
|
|
2759
|
-
this._enabled || (G(this._dragStartTarget,
|
|
2759
|
+
this._enabled || (G(this._dragStartTarget, wn, this._onDown, this), this._enabled = !0);
|
|
2760
2760
|
},
|
|
2761
2761
|
// @method disable()
|
|
2762
2762
|
// Disables the dragging ability
|
|
2763
2763
|
disable: function() {
|
|
2764
|
-
this._enabled && (Jt._dragging === this && this.finishDrag(!0), J(this._dragStartTarget,
|
|
2764
|
+
this._enabled && (Jt._dragging === this && this.finishDrag(!0), J(this._dragStartTarget, wn, this._onDown, this), this._enabled = !1, this._moved = !1);
|
|
2765
2765
|
},
|
|
2766
2766
|
_onDown: function(t) {
|
|
2767
2767
|
if (this._enabled && (this._moved = !1, !es(this._element, "leaflet-zoom-anim"))) {
|
|
@@ -2771,7 +2771,7 @@ function ba() {
|
|
|
2771
2771
|
}
|
|
2772
2772
|
if (!(Jt._dragging || t.shiftKey || t.which !== 1 && t.button !== 1 && !t.touches) && (Jt._dragging = this, this._preventOutline && hs(this._element), as(), Ri(), !this._moving)) {
|
|
2773
2773
|
this.fire("down");
|
|
2774
|
-
var e = t.touches ? t.touches[0] : t, a =
|
|
2774
|
+
var e = t.touches ? t.touches[0] : t, a = _n(this._element);
|
|
2775
2775
|
this._startPoint = new F(e.clientX, e.clientY), this._startPos = oi(this._element), this._parentScale = ls(a);
|
|
2776
2776
|
var h = t.type === "mousedown";
|
|
2777
2777
|
G(document, h ? "mousemove" : "touchmove", this._onMove, this), G(document, h ? "mouseup" : "touchend touchcancel", this._onUp, this);
|
|
@@ -2804,7 +2804,7 @@ function ba() {
|
|
|
2804
2804
|
});
|
|
2805
2805
|
}
|
|
2806
2806
|
});
|
|
2807
|
-
function
|
|
2807
|
+
function bn(t, e, a) {
|
|
2808
2808
|
var h, u = [1, 4, 2, 8], _, g, x, w, T, I, R, U;
|
|
2809
2809
|
for (_ = 0, I = t.length; _ < I; _++)
|
|
2810
2810
|
t[_]._code = li(t[_], e);
|
|
@@ -2815,7 +2815,7 @@ function ba() {
|
|
|
2815
2815
|
}
|
|
2816
2816
|
return t;
|
|
2817
2817
|
}
|
|
2818
|
-
function
|
|
2818
|
+
function Ln(t, e) {
|
|
2819
2819
|
var a, h, u, _, g, x, w, T, I;
|
|
2820
2820
|
if (!t || t.length === 0)
|
|
2821
2821
|
throw new Error("latlngs not passed");
|
|
@@ -2842,17 +2842,17 @@ function ba() {
|
|
|
2842
2842
|
}
|
|
2843
2843
|
var ko = {
|
|
2844
2844
|
__proto__: null,
|
|
2845
|
-
clipPolygon:
|
|
2846
|
-
polygonCenter:
|
|
2845
|
+
clipPolygon: bn,
|
|
2846
|
+
polygonCenter: Ln,
|
|
2847
2847
|
centroid: gs
|
|
2848
2848
|
};
|
|
2849
|
-
function
|
|
2849
|
+
function Pn(t, e) {
|
|
2850
2850
|
if (!e || !t.length)
|
|
2851
2851
|
return t.slice();
|
|
2852
2852
|
var a = e * e;
|
|
2853
2853
|
return t = Do(t, a), t = Ro(t, a), t;
|
|
2854
2854
|
}
|
|
2855
|
-
function
|
|
2855
|
+
function An(t, e, a) {
|
|
2856
2856
|
return Math.sqrt(qi(t, e, a, !0));
|
|
2857
2857
|
}
|
|
2858
2858
|
function Bo(t, e, a) {
|
|
@@ -2877,10 +2877,10 @@ function ba() {
|
|
|
2877
2877
|
Zo(t[h], t[u]) > e && (a.push(t[h]), u = h);
|
|
2878
2878
|
return u < _ - 1 && a.push(t[_ - 1]), a;
|
|
2879
2879
|
}
|
|
2880
|
-
var
|
|
2881
|
-
function
|
|
2882
|
-
var _ = h ?
|
|
2883
|
-
for (
|
|
2880
|
+
var Tn;
|
|
2881
|
+
function Cn(t, e, a, h, u) {
|
|
2882
|
+
var _ = h ? Tn : li(t, a), g = li(e, a), x, w, T;
|
|
2883
|
+
for (Tn = g; ; ) {
|
|
2884
2884
|
if (!(_ | g))
|
|
2885
2885
|
return [t, e];
|
|
2886
2886
|
if (_ & g)
|
|
@@ -2907,10 +2907,10 @@ function ba() {
|
|
|
2907
2907
|
function St(t) {
|
|
2908
2908
|
return !k(t[0]) || typeof t[0][0] != "object" && typeof t[0][0] < "u";
|
|
2909
2909
|
}
|
|
2910
|
-
function
|
|
2910
|
+
function En(t) {
|
|
2911
2911
|
return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), St(t);
|
|
2912
2912
|
}
|
|
2913
|
-
function
|
|
2913
|
+
function Sn(t, e) {
|
|
2914
2914
|
var a, h, u, _, g, x, w, T;
|
|
2915
2915
|
if (!t || t.length === 0)
|
|
2916
2916
|
throw new Error("latlngs not passed");
|
|
@@ -2940,16 +2940,16 @@ function ba() {
|
|
|
2940
2940
|
}
|
|
2941
2941
|
var Fo = {
|
|
2942
2942
|
__proto__: null,
|
|
2943
|
-
simplify:
|
|
2944
|
-
pointToSegmentDistance:
|
|
2943
|
+
simplify: Pn,
|
|
2944
|
+
pointToSegmentDistance: An,
|
|
2945
2945
|
closestPointOnSegment: Bo,
|
|
2946
|
-
clipSegment:
|
|
2946
|
+
clipSegment: Cn,
|
|
2947
2947
|
_getEdgeIntersection: ye,
|
|
2948
2948
|
_getBitCode: li,
|
|
2949
2949
|
_sqClosestPointOnSegment: qi,
|
|
2950
2950
|
isFlat: St,
|
|
2951
|
-
_flat:
|
|
2952
|
-
polylineCenter:
|
|
2951
|
+
_flat: En,
|
|
2952
|
+
polylineCenter: Sn
|
|
2953
2953
|
}, ys = {
|
|
2954
2954
|
project: function(t) {
|
|
2955
2955
|
return new F(t.lng, t.lat);
|
|
@@ -2983,7 +2983,7 @@ function ba() {
|
|
|
2983
2983
|
var t = 0.5 / (Math.PI * Ms.R);
|
|
2984
2984
|
return zi(t, 0.5, -t, 0.5);
|
|
2985
2985
|
}()
|
|
2986
|
-
}),
|
|
2986
|
+
}), On = o({}, Yt, {
|
|
2987
2987
|
code: "EPSG:4326",
|
|
2988
2988
|
projection: ys,
|
|
2989
2989
|
transformation: zi(1 / 180, 1, -1 / 180, 0.5)
|
|
@@ -3002,7 +3002,7 @@ function ba() {
|
|
|
3002
3002
|
},
|
|
3003
3003
|
infinite: !0
|
|
3004
3004
|
});
|
|
3005
|
-
Wt.Earth = Yt, Wt.EPSG3395 = qo, Wt.EPSG3857 = Ve, Wt.EPSG900913 = Va, Wt.EPSG4326 =
|
|
3005
|
+
Wt.Earth = Yt, Wt.EPSG3395 = qo, Wt.EPSG3857 = Ve, Wt.EPSG900913 = Va, Wt.EPSG4326 = On, Wt.Simple = Uo;
|
|
3006
3006
|
var Nt = Ii.extend({
|
|
3007
3007
|
// Classes extending `L.Layer` will inherit the following options:
|
|
3008
3008
|
options: {
|
|
@@ -3359,7 +3359,7 @@ function ba() {
|
|
|
3359
3359
|
var a = document.querySelector('link[href$="leaflet.css"]');
|
|
3360
3360
|
return a ? a.href.substring(0, a.href.length - 11 - 1) : "";
|
|
3361
3361
|
}
|
|
3362
|
-
}),
|
|
3362
|
+
}), In = Zt.extend({
|
|
3363
3363
|
initialize: function(t) {
|
|
3364
3364
|
this._marker = t;
|
|
3365
3365
|
},
|
|
@@ -3557,9 +3557,9 @@ function ba() {
|
|
|
3557
3557
|
this._setPos(e);
|
|
3558
3558
|
},
|
|
3559
3559
|
_initInteraction: function() {
|
|
3560
|
-
if (this.options.interactive && (q(this._icon, "leaflet-interactive"), this.addInteractiveTarget(this._icon),
|
|
3560
|
+
if (this.options.interactive && (q(this._icon, "leaflet-interactive"), this.addInteractiveTarget(this._icon), In)) {
|
|
3561
3561
|
var t = this.options.draggable;
|
|
3562
|
-
this.dragging && (t = this.dragging.enabled(), this.dragging.disable()), this.dragging = new
|
|
3562
|
+
this.dragging && (t = this.dragging.enabled(), this.dragging.disable()), this.dragging = new In(this), t && this.dragging.enable();
|
|
3563
3563
|
}
|
|
3564
3564
|
},
|
|
3565
3565
|
// @method setOpacity(opacity: Number): this
|
|
@@ -3831,7 +3831,7 @@ function ba() {
|
|
|
3831
3831
|
getCenter: function() {
|
|
3832
3832
|
if (!this._map)
|
|
3833
3833
|
throw new Error("Must add layer to map before using getCenter()");
|
|
3834
|
-
return
|
|
3834
|
+
return Sn(this._defaultShape(), this._map.options.crs);
|
|
3835
3835
|
},
|
|
3836
3836
|
// @method getBounds(): LatLngBounds
|
|
3837
3837
|
// Returns the `LatLngBounds` of the path.
|
|
@@ -3890,13 +3890,13 @@ function ba() {
|
|
|
3890
3890
|
var e = this._parts, a, h, u, _, g, x, w;
|
|
3891
3891
|
for (a = 0, u = 0, _ = this._rings.length; a < _; a++)
|
|
3892
3892
|
for (w = this._rings[a], h = 0, g = w.length; h < g - 1; h++)
|
|
3893
|
-
x =
|
|
3893
|
+
x = Cn(w[h], w[h + 1], t, h, !0), x && (e[u] = e[u] || [], e[u].push(x[0]), (x[1] !== w[h + 1] || h === g - 2) && (e[u].push(x[1]), u++));
|
|
3894
3894
|
}
|
|
3895
3895
|
},
|
|
3896
3896
|
// simplify each clipped part of the polyline for performance
|
|
3897
3897
|
_simplifyPoints: function() {
|
|
3898
3898
|
for (var t = this._parts, e = this.options.smoothFactor, a = 0, h = t.length; a < h; a++)
|
|
3899
|
-
t[a] =
|
|
3899
|
+
t[a] = Pn(t[a], e);
|
|
3900
3900
|
},
|
|
3901
3901
|
_update: function() {
|
|
3902
3902
|
this._map && (this._clipPoints(), this._simplifyPoints(), this._updatePath());
|
|
@@ -3911,7 +3911,7 @@ function ba() {
|
|
|
3911
3911
|
return !1;
|
|
3912
3912
|
for (a = 0, _ = this._parts.length; a < _; a++)
|
|
3913
3913
|
for (x = this._parts[a], h = 0, g = x.length, u = g - 1; h < g; u = h++)
|
|
3914
|
-
if (!(!e && h === 0) &&
|
|
3914
|
+
if (!(!e && h === 0) && An(t, x[u], x[h]) <= w)
|
|
3915
3915
|
return !0;
|
|
3916
3916
|
return !1;
|
|
3917
3917
|
}
|
|
@@ -3919,7 +3919,7 @@ function ba() {
|
|
|
3919
3919
|
function Xo(t, e) {
|
|
3920
3920
|
return new Vt(t, e);
|
|
3921
3921
|
}
|
|
3922
|
-
Vt._flat =
|
|
3922
|
+
Vt._flat = En;
|
|
3923
3923
|
var gi = Vt.extend({
|
|
3924
3924
|
options: {
|
|
3925
3925
|
fill: !0
|
|
@@ -3932,7 +3932,7 @@ function ba() {
|
|
|
3932
3932
|
getCenter: function() {
|
|
3933
3933
|
if (!this._map)
|
|
3934
3934
|
throw new Error("Must add layer to map before using getCenter()");
|
|
3935
|
-
return
|
|
3935
|
+
return Ln(this._defaultShape(), this._map.options.crs);
|
|
3936
3936
|
},
|
|
3937
3937
|
_convertLatLngs: function(t) {
|
|
3938
3938
|
var e = Vt.prototype._convertLatLngs.call(this, t), a = e.length;
|
|
@@ -3952,7 +3952,7 @@ function ba() {
|
|
|
3952
3952
|
return;
|
|
3953
3953
|
}
|
|
3954
3954
|
for (var h = 0, u = this._rings.length, _; h < u; h++)
|
|
3955
|
-
_ =
|
|
3955
|
+
_ = bn(this._rings[h], t, !0), _.length && this._parts.push(_);
|
|
3956
3956
|
}
|
|
3957
3957
|
},
|
|
3958
3958
|
_updatePath: function() {
|
|
@@ -4063,10 +4063,10 @@ function ba() {
|
|
|
4063
4063
|
return null;
|
|
4064
4064
|
switch (a.type) {
|
|
4065
4065
|
case "Point":
|
|
4066
|
-
return x = g(h),
|
|
4066
|
+
return x = g(h), zn(_, t, x, e);
|
|
4067
4067
|
case "MultiPoint":
|
|
4068
4068
|
for (T = 0, I = h.length; T < I; T++)
|
|
4069
|
-
x = g(h[T]), u.push(
|
|
4069
|
+
x = g(h[T]), u.push(zn(_, t, x, e));
|
|
4070
4070
|
return new $t(u);
|
|
4071
4071
|
case "LineString":
|
|
4072
4072
|
case "MultiLineString":
|
|
@@ -4094,7 +4094,7 @@ function ba() {
|
|
|
4094
4094
|
throw new Error("Invalid GeoJSON object.");
|
|
4095
4095
|
}
|
|
4096
4096
|
}
|
|
4097
|
-
function
|
|
4097
|
+
function zn(t, e, a, h) {
|
|
4098
4098
|
return t ? t(e, a) : new Me(a, h && h.markersInheritOptions && h);
|
|
4099
4099
|
}
|
|
4100
4100
|
function ws(t) {
|
|
@@ -4184,10 +4184,10 @@ function ba() {
|
|
|
4184
4184
|
};
|
|
4185
4185
|
}
|
|
4186
4186
|
});
|
|
4187
|
-
function
|
|
4187
|
+
function Nn(t, e) {
|
|
4188
4188
|
return new Qt(t, e);
|
|
4189
4189
|
}
|
|
4190
|
-
var Yo =
|
|
4190
|
+
var Yo = Nn, Ae = Nt.extend({
|
|
4191
4191
|
// @section
|
|
4192
4192
|
// @aka ImageOverlay options
|
|
4193
4193
|
options: {
|
|
@@ -4312,7 +4312,7 @@ function ba() {
|
|
|
4312
4312
|
}
|
|
4313
4313
|
}), Jo = function(t, e, a) {
|
|
4314
4314
|
return new Ae(t, e, a);
|
|
4315
|
-
},
|
|
4315
|
+
}, kn = Ae.extend({
|
|
4316
4316
|
// @section
|
|
4317
4317
|
// @aka VideoOverlay options
|
|
4318
4318
|
options: {
|
|
@@ -4353,9 +4353,9 @@ function ba() {
|
|
|
4353
4353
|
// used by this overlay.
|
|
4354
4354
|
});
|
|
4355
4355
|
function tr(t, e, a) {
|
|
4356
|
-
return new
|
|
4356
|
+
return new kn(t, e, a);
|
|
4357
4357
|
}
|
|
4358
|
-
var
|
|
4358
|
+
var Bn = Ae.extend({
|
|
4359
4359
|
_initImage: function() {
|
|
4360
4360
|
var t = this._image = this._url;
|
|
4361
4361
|
q(t, "leaflet-image-layer"), this._zoomAnimated && q(t, "leaflet-zoom-animated"), this.options.className && q(t, this.options.className), t.onselectstart = p, t.onmousemove = p;
|
|
@@ -4365,7 +4365,7 @@ function ba() {
|
|
|
4365
4365
|
// used by this overlay.
|
|
4366
4366
|
});
|
|
4367
4367
|
function ir(t, e, a) {
|
|
4368
|
-
return new
|
|
4368
|
+
return new Bn(t, e, a);
|
|
4369
4369
|
}
|
|
4370
4370
|
var Ft = Nt.extend({
|
|
4371
4371
|
// @section
|
|
@@ -4903,7 +4903,7 @@ function ba() {
|
|
|
4903
4903
|
this._tooltip.options.sticky && t.originalEvent && (a = this._map.mouseEventToContainerPoint(t.originalEvent), h = this._map.containerPointToLayerPoint(a), e = this._map.layerPointToLatLng(h)), this._tooltip.setLatLng(e);
|
|
4904
4904
|
}
|
|
4905
4905
|
});
|
|
4906
|
-
var
|
|
4906
|
+
var Rn = pi.extend({
|
|
4907
4907
|
options: {
|
|
4908
4908
|
// @section
|
|
4909
4909
|
// @aka DivIcon options
|
|
@@ -4933,7 +4933,7 @@ function ba() {
|
|
|
4933
4933
|
}
|
|
4934
4934
|
});
|
|
4935
4935
|
function nr(t) {
|
|
4936
|
-
return new
|
|
4936
|
+
return new Rn(t);
|
|
4937
4937
|
}
|
|
4938
4938
|
pi.Default = Ui;
|
|
4939
4939
|
var ji = Nt.extend({
|
|
@@ -5459,10 +5459,10 @@ function ba() {
|
|
|
5459
5459
|
return ji.prototype._tileReady.call(this, t, e, a);
|
|
5460
5460
|
}
|
|
5461
5461
|
});
|
|
5462
|
-
function
|
|
5462
|
+
function Dn(t, e) {
|
|
5463
5463
|
return new yi(t, e);
|
|
5464
5464
|
}
|
|
5465
|
-
var
|
|
5465
|
+
var Zn = yi.extend({
|
|
5466
5466
|
// @section
|
|
5467
5467
|
// @aka TileLayer.WMS options
|
|
5468
5468
|
// If any custom options not documented here are used, they will be sent to the
|
|
@@ -5511,7 +5511,7 @@ function ba() {
|
|
|
5511
5511
|
this.wmsParams[e] = this._crs.code, yi.prototype.onAdd.call(this, t);
|
|
5512
5512
|
},
|
|
5513
5513
|
getTileUrl: function(t) {
|
|
5514
|
-
var e = this._tileCoordsToNwSe(t), a = this._crs, h = xt(a.project(e[0]), a.project(e[1])), u = h.min, _ = h.max, g = (this._wmsVersion >= 1.3 && this._crs ===
|
|
5514
|
+
var e = this._tileCoordsToNwSe(t), a = this._crs, h = xt(a.project(e[0]), a.project(e[1])), u = h.min, _ = h.max, g = (this._wmsVersion >= 1.3 && this._crs === On ? [u.y, u.x, _.y, _.x] : [u.x, u.y, _.x, _.y]).join(","), x = yi.prototype.getTileUrl.call(this, t);
|
|
5515
5515
|
return x + E(this.wmsParams, x, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") + g;
|
|
5516
5516
|
},
|
|
5517
5517
|
// @method setParams(params: Object, noRedraw?: Boolean): this
|
|
@@ -5521,9 +5521,9 @@ function ba() {
|
|
|
5521
5521
|
}
|
|
5522
5522
|
});
|
|
5523
5523
|
function or(t, e) {
|
|
5524
|
-
return new
|
|
5524
|
+
return new Zn(t, e);
|
|
5525
5525
|
}
|
|
5526
|
-
yi.WMS =
|
|
5526
|
+
yi.WMS = Zn, Dn.wms = or;
|
|
5527
5527
|
var Xt = Nt.extend({
|
|
5528
5528
|
// @section
|
|
5529
5529
|
// @aka Renderer options
|
|
@@ -5578,7 +5578,7 @@ function ba() {
|
|
|
5578
5578
|
var t = this.options.padding, e = this._map.getSize(), a = this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();
|
|
5579
5579
|
this._bounds = new it(a, a.add(e.multiplyBy(1 + t * 2)).round()), this._center = this._map.getCenter(), this._zoom = this._map.getZoom();
|
|
5580
5580
|
}
|
|
5581
|
-
}),
|
|
5581
|
+
}), Fn = Xt.extend({
|
|
5582
5582
|
// @section
|
|
5583
5583
|
// @aka Canvas options
|
|
5584
5584
|
options: {
|
|
@@ -5762,8 +5762,8 @@ function ba() {
|
|
|
5762
5762
|
}
|
|
5763
5763
|
}
|
|
5764
5764
|
});
|
|
5765
|
-
function
|
|
5766
|
-
return N.canvas ? new
|
|
5765
|
+
function Gn(t) {
|
|
5766
|
+
return N.canvas ? new Fn(t) : null;
|
|
5767
5767
|
}
|
|
5768
5768
|
var Hi = function() {
|
|
5769
5769
|
try {
|
|
@@ -5811,7 +5811,7 @@ function ba() {
|
|
|
5811
5811
|
_bringToBack: function(t) {
|
|
5812
5812
|
_i(t._container);
|
|
5813
5813
|
}
|
|
5814
|
-
}, Ee = N.vml ? Hi :
|
|
5814
|
+
}, Ee = N.vml ? Hi : js, Wi = Xt.extend({
|
|
5815
5815
|
_initContainer: function() {
|
|
5816
5816
|
this._container = Ee("svg"), this._container.setAttribute("pointer-events", "none"), this._rootGroup = Ee("g"), this._container.appendChild(this._rootGroup);
|
|
5817
5817
|
},
|
|
@@ -5844,7 +5844,7 @@ function ba() {
|
|
|
5844
5844
|
e && (a.stroke ? (e.setAttribute("stroke", a.color), e.setAttribute("stroke-opacity", a.opacity), e.setAttribute("stroke-width", a.weight), e.setAttribute("stroke-linecap", a.lineCap), e.setAttribute("stroke-linejoin", a.lineJoin), a.dashArray ? e.setAttribute("stroke-dasharray", a.dashArray) : e.removeAttribute("stroke-dasharray"), a.dashOffset ? e.setAttribute("stroke-dashoffset", a.dashOffset) : e.removeAttribute("stroke-dashoffset")) : e.setAttribute("stroke", "none"), a.fill ? (e.setAttribute("fill", a.fillColor || a.color), e.setAttribute("fill-opacity", a.fillOpacity), e.setAttribute("fill-rule", a.fillRule || "evenodd")) : e.setAttribute("fill", "none"));
|
|
5845
5845
|
},
|
|
5846
5846
|
_updatePoly: function(t, e) {
|
|
5847
|
-
this._setPath(t,
|
|
5847
|
+
this._setPath(t, Hs(t._parts, e));
|
|
5848
5848
|
},
|
|
5849
5849
|
_updateCircle: function(t) {
|
|
5850
5850
|
var e = t._point, a = Math.max(Math.round(t._radius), 1), h = Math.max(Math.round(t._radiusY), 1) || a, u = "a" + a + "," + h + " 0 1,0 ", _ = t._empty() ? "M0 0" : "M" + (e.x - a) + "," + e.y + u + a * 2 + ",0 " + u + -a * 2 + ",0 ";
|
|
@@ -5862,7 +5862,7 @@ function ba() {
|
|
|
5862
5862
|
}
|
|
5863
5863
|
});
|
|
5864
5864
|
N.vml && Wi.include(rr);
|
|
5865
|
-
function
|
|
5865
|
+
function qn(t) {
|
|
5866
5866
|
return N.svg || N.vml ? new Wi(t) : null;
|
|
5867
5867
|
}
|
|
5868
5868
|
V.include({
|
|
@@ -5881,10 +5881,10 @@ function ba() {
|
|
|
5881
5881
|
return e === void 0 && (e = this._createRenderer({ pane: t }), this._paneRenderers[t] = e), e;
|
|
5882
5882
|
},
|
|
5883
5883
|
_createRenderer: function(t) {
|
|
5884
|
-
return this.options.preferCanvas &&
|
|
5884
|
+
return this.options.preferCanvas && Gn(t) || qn(t);
|
|
5885
5885
|
}
|
|
5886
5886
|
});
|
|
5887
|
-
var
|
|
5887
|
+
var Un = gi.extend({
|
|
5888
5888
|
initialize: function(t, e) {
|
|
5889
5889
|
gi.prototype.initialize.call(this, this._boundsToLatLngs(t), e);
|
|
5890
5890
|
},
|
|
@@ -5903,15 +5903,15 @@ function ba() {
|
|
|
5903
5903
|
}
|
|
5904
5904
|
});
|
|
5905
5905
|
function hr(t, e) {
|
|
5906
|
-
return new
|
|
5906
|
+
return new Un(t, e);
|
|
5907
5907
|
}
|
|
5908
|
-
Wi.create = Ee, Wi.pointsToPath =
|
|
5908
|
+
Wi.create = Ee, Wi.pointsToPath = Hs, Qt.geometryToLayer = we, Qt.coordsToLatLng = ws, Qt.coordsToLatLngs = be, Qt.latLngToCoords = bs, Qt.latLngsToCoords = Le, Qt.getFeature = vi, Qt.asFeature = Pe, V.mergeOptions({
|
|
5909
5909
|
// @option boxZoom: Boolean = true
|
|
5910
5910
|
// Whether the map can be zoomed to a rectangular area specified by
|
|
5911
5911
|
// dragging the mouse while pressing the shift key.
|
|
5912
5912
|
boxZoom: !0
|
|
5913
5913
|
});
|
|
5914
|
-
var
|
|
5914
|
+
var jn = Zt.extend({
|
|
5915
5915
|
initialize: function(t) {
|
|
5916
5916
|
this._map = t, this._container = t._container, this._pane = t._panes.overlayPane, this._resetStateTimeout = 0, t.on("unload", this._destroy, this);
|
|
5917
5917
|
},
|
|
@@ -5970,7 +5970,7 @@ function ba() {
|
|
|
5970
5970
|
t.keyCode === 27 && (this._finish(), this._clearDeferredResetState(), this._resetState());
|
|
5971
5971
|
}
|
|
5972
5972
|
});
|
|
5973
|
-
V.addInitHook("addHandler", "boxZoom",
|
|
5973
|
+
V.addInitHook("addHandler", "boxZoom", jn), V.mergeOptions({
|
|
5974
5974
|
// @option doubleClickZoom: Boolean|String = true
|
|
5975
5975
|
// Whether the map can be zoomed in by double clicking on it and
|
|
5976
5976
|
// zoomed out by double clicking while holding shift. If passed
|
|
@@ -5978,7 +5978,7 @@ function ba() {
|
|
|
5978
5978
|
// view regardless of where the mouse was.
|
|
5979
5979
|
doubleClickZoom: !0
|
|
5980
5980
|
});
|
|
5981
|
-
var
|
|
5981
|
+
var Hn = Zt.extend({
|
|
5982
5982
|
addHooks: function() {
|
|
5983
5983
|
this._map.on("dblclick", this._onDoubleClick, this);
|
|
5984
5984
|
},
|
|
@@ -5990,7 +5990,7 @@ function ba() {
|
|
|
5990
5990
|
e.options.doubleClickZoom === "center" ? e.setZoom(u) : e.setZoomAround(t.containerPoint, u);
|
|
5991
5991
|
}
|
|
5992
5992
|
});
|
|
5993
|
-
V.addInitHook("addHandler", "doubleClickZoom",
|
|
5993
|
+
V.addInitHook("addHandler", "doubleClickZoom", Hn), V.mergeOptions({
|
|
5994
5994
|
// @option dragging: Boolean = true
|
|
5995
5995
|
// Whether the map is draggable with mouse/touch or not.
|
|
5996
5996
|
dragging: !0,
|
|
@@ -6025,7 +6025,7 @@ function ba() {
|
|
|
6025
6025
|
// solid, preventing the user from dragging outside the bounds.
|
|
6026
6026
|
maxBoundsViscosity: 0
|
|
6027
6027
|
});
|
|
6028
|
-
var
|
|
6028
|
+
var Wn = Zt.extend({
|
|
6029
6029
|
addHooks: function() {
|
|
6030
6030
|
if (!this._draggable) {
|
|
6031
6031
|
var t = this._map;
|
|
@@ -6104,7 +6104,7 @@ function ba() {
|
|
|
6104
6104
|
}
|
|
6105
6105
|
}
|
|
6106
6106
|
});
|
|
6107
|
-
V.addInitHook("addHandler", "dragging",
|
|
6107
|
+
V.addInitHook("addHandler", "dragging", Wn), V.mergeOptions({
|
|
6108
6108
|
// @option keyboard: Boolean = true
|
|
6109
6109
|
// Makes the map focusable and allows users to navigate the map with keyboard
|
|
6110
6110
|
// arrows and `+`/`-` keys.
|
|
@@ -6113,7 +6113,7 @@ function ba() {
|
|
|
6113
6113
|
// Amount of pixels to pan when pressing an arrow key.
|
|
6114
6114
|
keyboardPanDelta: 80
|
|
6115
6115
|
});
|
|
6116
|
-
var
|
|
6116
|
+
var $n = Zt.extend({
|
|
6117
6117
|
keyCodes: {
|
|
6118
6118
|
left: [37],
|
|
6119
6119
|
right: [39],
|
|
@@ -6202,7 +6202,7 @@ function ba() {
|
|
|
6202
6202
|
}
|
|
6203
6203
|
}
|
|
6204
6204
|
});
|
|
6205
|
-
V.addInitHook("addHandler", "keyboard",
|
|
6205
|
+
V.addInitHook("addHandler", "keyboard", $n), V.mergeOptions({
|
|
6206
6206
|
// @section Mouse wheel options
|
|
6207
6207
|
// @option scrollWheelZoom: Boolean|String = true
|
|
6208
6208
|
// Whether the map can be zoomed by using the mouse wheel. If passed `'center'`,
|
|
@@ -6218,7 +6218,7 @@ function ba() {
|
|
|
6218
6218
|
// faster (and vice versa).
|
|
6219
6219
|
wheelPxPerZoomLevel: 60
|
|
6220
6220
|
});
|
|
6221
|
-
var
|
|
6221
|
+
var Vn = Zt.extend({
|
|
6222
6222
|
addHooks: function() {
|
|
6223
6223
|
G(this._map._container, "wheel", this._onWheelScroll, this), this._delta = 0;
|
|
6224
6224
|
},
|
|
@@ -6226,7 +6226,7 @@ function ba() {
|
|
|
6226
6226
|
J(this._map._container, "wheel", this._onWheelScroll, this);
|
|
6227
6227
|
},
|
|
6228
6228
|
_onWheelScroll: function(t) {
|
|
6229
|
-
var e =
|
|
6229
|
+
var e = vn(t), a = this._map.options.wheelDebounceTime;
|
|
6230
6230
|
this._delta += e, this._lastMousePos = this._map.mouseEventToContainerPoint(t), this._startTime || (this._startTime = +/* @__PURE__ */ new Date());
|
|
6231
6231
|
var h = Math.max(a - (+/* @__PURE__ */ new Date() - this._startTime), 0);
|
|
6232
6232
|
clearTimeout(this._timer), this._timer = setTimeout(f(this._performZoom, this), h), hi(t);
|
|
@@ -6238,7 +6238,7 @@ function ba() {
|
|
|
6238
6238
|
this._delta = 0, this._startTime = null, g && (t.options.scrollWheelZoom === "center" ? t.setZoom(e + g) : t.setZoomAround(this._lastMousePos, e + g));
|
|
6239
6239
|
}
|
|
6240
6240
|
});
|
|
6241
|
-
V.addInitHook("addHandler", "scrollWheelZoom",
|
|
6241
|
+
V.addInitHook("addHandler", "scrollWheelZoom", Vn);
|
|
6242
6242
|
var lr = 600;
|
|
6243
6243
|
V.mergeOptions({
|
|
6244
6244
|
// @section Touch interaction options
|
|
@@ -6250,7 +6250,7 @@ function ba() {
|
|
|
6250
6250
|
// for it to be considered a valid tap.
|
|
6251
6251
|
tapTolerance: 15
|
|
6252
6252
|
});
|
|
6253
|
-
var
|
|
6253
|
+
var Qn = Zt.extend({
|
|
6254
6254
|
addHooks: function() {
|
|
6255
6255
|
G(this._map._container, "touchstart", this._onDown, this);
|
|
6256
6256
|
},
|
|
@@ -6294,7 +6294,7 @@ function ba() {
|
|
|
6294
6294
|
a._simulated = !0, e.target.dispatchEvent(a);
|
|
6295
6295
|
}
|
|
6296
6296
|
});
|
|
6297
|
-
V.addInitHook("addHandler", "tapHold",
|
|
6297
|
+
V.addInitHook("addHandler", "tapHold", Qn), V.mergeOptions({
|
|
6298
6298
|
// @section Touch interaction options
|
|
6299
6299
|
// @option touchZoom: Boolean|String = *
|
|
6300
6300
|
// Whether the map can be zoomed by touch-dragging with two fingers. If
|
|
@@ -6307,7 +6307,7 @@ function ba() {
|
|
|
6307
6307
|
// and then bounce back when pinch-zooming.
|
|
6308
6308
|
bounceAtZoomLimits: !0
|
|
6309
6309
|
});
|
|
6310
|
-
var
|
|
6310
|
+
var Xn = Zt.extend({
|
|
6311
6311
|
addHooks: function() {
|
|
6312
6312
|
q(this._map._container, "leaflet-touch-zoom"), G(this._map._container, "touchstart", this._onTouchStart, this);
|
|
6313
6313
|
},
|
|
@@ -6346,7 +6346,7 @@ function ba() {
|
|
|
6346
6346
|
this._zooming = !1, dt(this._animRequest), J(document, "touchmove", this._onTouchMove, this), J(document, "touchend touchcancel", this._onTouchEnd, this), this._map.options.zoomAnimation ? this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), !0, this._map.options.zoomSnap) : this._map._resetView(this._center, this._map._limitZoom(this._zoom));
|
|
6347
6347
|
}
|
|
6348
6348
|
});
|
|
6349
|
-
V.addInitHook("addHandler", "touchZoom",
|
|
6349
|
+
V.addInitHook("addHandler", "touchZoom", Xn), V.BoxZoom = jn, V.DoubleClickZoom = Hn, V.Drag = Wn, V.Keyboard = $n, V.ScrollWheelZoom = Vn, V.TapHold = Qn, V.TouchZoom = Xn, n.Bounds = it, n.Browser = N, n.CRS = Wt, n.Canvas = Fn, n.Circle = xs, n.CircleMarker = xe, n.Class = Ht, n.Control = zt, n.DivIcon = Rn, n.DivOverlay = Ft, n.DomEvent = To, n.DomUtil = Po, n.Draggable = Jt, n.Evented = Ii, n.FeatureGroup = $t, n.GeoJSON = Qt, n.GridLayer = ji, n.Handler = Zt, n.Icon = pi, n.ImageOverlay = Ae, n.LatLng = Y, n.LatLngBounds = wt, n.Layer = Nt, n.LayerGroup = mi, n.LineUtil = Fo, n.Map = V, n.Marker = Me, n.Mixin = No, n.Path = ti, n.Point = F, n.PolyUtil = ko, n.Polygon = gi, n.Polyline = Vt, n.Popup = Te, n.PosAnimation = yn, n.Projection = Go, n.Rectangle = Un, n.Renderer = Xt, n.SVG = Wi, n.SVGOverlay = Bn, n.TileLayer = yi, n.Tooltip = Ce, n.Transformation = $e, n.Util = He, n.VideoOverlay = kn, n.bind = f, n.bounds = xt, n.canvas = Gn, n.circle = Qo, n.circleMarker = Vo, n.control = Gi, n.divIcon = nr, n.extend = o, n.featureGroup = Ho, n.geoJSON = Nn, n.geoJson = Yo, n.gridLayer = ar, n.icon = Wo, n.imageOverlay = Jo, n.latLng = $, n.latLngBounds = rt, n.layerGroup = jo, n.map = Co, n.marker = $o, n.point = Z, n.polygon = Ko, n.polyline = Xo, n.popup = er, n.rectangle = hr, n.setOptions = P, n.stamp = d, n.svg = qn, n.svgOverlay = ir, n.tileLayer = Dn, n.tooltip = sr, n.transformation = zi, n.version = r, n.videoOverlay = tr;
|
|
6350
6350
|
var ur = window.L;
|
|
6351
6351
|
n.noConflict = function() {
|
|
6352
6352
|
return window.L = ur, this;
|
|
@@ -6354,7 +6354,7 @@ function ba() {
|
|
|
6354
6354
|
});
|
|
6355
6355
|
}(Oe, Oe.exports)), Oe.exports;
|
|
6356
6356
|
}
|
|
6357
|
-
var M =
|
|
6357
|
+
var M = xa();
|
|
6358
6358
|
const Pr = /* @__PURE__ */ br(M), Ar = /* @__PURE__ */ xr({
|
|
6359
6359
|
__proto__: null,
|
|
6360
6360
|
default: Pr
|
|
@@ -6477,7 +6477,8 @@ const Pr = /* @__PURE__ */ br(M), Ar = /* @__PURE__ */ xr({
|
|
|
6477
6477
|
coordinate: "Coordinate",
|
|
6478
6478
|
lng: "Longitude",
|
|
6479
6479
|
lat: "Latitude",
|
|
6480
|
-
zoomLevel: "Zoom Level"
|
|
6480
|
+
zoomLevel: "Zoom Level",
|
|
6481
|
+
FPS: "FPS"
|
|
6481
6482
|
},
|
|
6482
6483
|
zh_CN: {
|
|
6483
6484
|
home: "回到初始位置",
|
|
@@ -6499,12 +6500,16 @@ const Pr = /* @__PURE__ */ br(M), Ar = /* @__PURE__ */ xr({
|
|
|
6499
6500
|
coordinate: "坐标",
|
|
6500
6501
|
lng: "经度",
|
|
6501
6502
|
lat: "纬度",
|
|
6502
|
-
zoomLevel: "层级"
|
|
6503
|
+
zoomLevel: "层级",
|
|
6504
|
+
FPS: "每秒帧数"
|
|
6503
6505
|
}
|
|
6504
|
-
},
|
|
6506
|
+
}, wa = M.Control.extend({
|
|
6505
6507
|
options: {
|
|
6506
6508
|
position: "bottomleft",
|
|
6507
|
-
coordinateUnit: "decimal"
|
|
6509
|
+
coordinateUnit: "decimal",
|
|
6510
|
+
showCoordinate: !0,
|
|
6511
|
+
showLevel: !0,
|
|
6512
|
+
showFPS: !0
|
|
6508
6513
|
},
|
|
6509
6514
|
initialize(i) {
|
|
6510
6515
|
M.setOptions(this, i), this.lastTime = +/* @__PURE__ */ new Date(), this.frames = 0, M.Control.prototype.initialize.call(this, this.options);
|
|
@@ -6512,14 +6517,14 @@ const Pr = /* @__PURE__ */ br(M), Ar = /* @__PURE__ */ xr({
|
|
|
6512
6517
|
onAdd(i) {
|
|
6513
6518
|
this.map = i, this.lang = i.lang, this.langDic = Ki[this.lang], this._container = M.DomUtil.create("div", `${i.clsPrefix}-statusbar`), this.zoom = i.getZoom();
|
|
6514
6519
|
const s = i.getCenter();
|
|
6515
|
-
return this.lng = s.lng, this.lat = s.lat, this._latlngContainer = M.DomUtil.create("div", `${i.clsPrefix}-statusbar-item`, this._container), this.
|
|
6520
|
+
return this.lng = s.lng, this.lat = s.lat, this.options.showCoordinate && (this._latlngContainer = M.DomUtil.create("div", `${i.clsPrefix}-statusbar-item coordinate`, this._container), this._latlngContainer.innerHTML = `<b>${this.langDic.coordinate}:</b>${this.getCoordinate(this.lng)},${this.getCoordinate(this.lat)}`), this.options.showLevel && (this._levelContainer = M.DomUtil.create("div", `${i.clsPrefix}-statusbar-item level`, this._container), this._levelContainer.innerHTML = `<b>${this.langDic.zoomLevel}:</b>${this.zoom + 1}`), this.options.showFPS && (this._fpsContainer = M.DomUtil.create("div", `${i.clsPrefix}-statusbar-item fps`, this._container), this._fpsContainer.innerHTML = `<b>${this.langDic.FPS}:</b>60`), this.initEvt(), this._container;
|
|
6516
6521
|
},
|
|
6517
6522
|
initEvt() {
|
|
6518
6523
|
this.map.on("mousemove", (i) => {
|
|
6519
|
-
this.lat = i.latlng.lat, this.lng = i.latlng.lng, this._latlngContainer.innerHTML = `<b>${this.langDic.coordinate}:</b>${this.getCoordinate(this.lng)},${this.getCoordinate(this.lat)}
|
|
6524
|
+
this.lat = i.latlng.lat, this.lng = i.latlng.lng, this._latlngContainer && (this._latlngContainer.innerHTML = `<b>${this.langDic.coordinate}:</b>${this.getCoordinate(this.lng)},${this.getCoordinate(this.lat)}`);
|
|
6520
6525
|
}), this.map.on("zoomend", () => {
|
|
6521
|
-
this.zoom = this.map.getZoom(), this._levelContainer.innerHTML = `<b>${this.langDic.zoomLevel}:</b>${this.zoom + 1}
|
|
6522
|
-
}), this.calcFPS();
|
|
6526
|
+
this.zoom = this.map.getZoom(), this._levelContainer && (this._levelContainer.innerHTML = `<b>${this.langDic.zoomLevel}:</b>${this.zoom + 1}`);
|
|
6527
|
+
}), this.options.showFPS && this.calcFPS();
|
|
6523
6528
|
},
|
|
6524
6529
|
getCoordinate(i) {
|
|
6525
6530
|
switch (this.options.coordinateUnit) {
|
|
@@ -6539,11 +6544,11 @@ const Pr = /* @__PURE__ */ br(M), Ar = /* @__PURE__ */ xr({
|
|
|
6539
6544
|
calcFPS() {
|
|
6540
6545
|
if (this.frames++, this.frames >= 30) {
|
|
6541
6546
|
const i = Date.now() - this.lastTime, s = Math.round(1e3 / (i / this.frames));
|
|
6542
|
-
this._fpsContainer && (this.frames = 0, this.lastTime = Date.now(), this._fpsContainer.innerHTML = `<b
|
|
6547
|
+
this._fpsContainer && (this.frames = 0, this.lastTime = Date.now(), this._fpsContainer.innerHTML = `<b>${this.langDic.FPS}:</b><span>${s}</span>`);
|
|
6543
6548
|
}
|
|
6544
6549
|
requestAnimationFrame(this.calcFPS.bind(this));
|
|
6545
6550
|
}
|
|
6546
|
-
}),
|
|
6551
|
+
}), ba = M.Control.extend({
|
|
6547
6552
|
includes: M.Evented ? M.Evented.prototype : M.Mixin.Events,
|
|
6548
6553
|
options: {
|
|
6549
6554
|
position: "bottomright",
|
|
@@ -6566,7 +6571,7 @@ const Pr = /* @__PURE__ */ br(M), Ar = /* @__PURE__ */ xr({
|
|
|
6566
6571
|
M.Util.setOptions(this, s), this.options.aimingRectOptions.interactive = !1, this.options.shadowRectOptions.interactive = !1, this._layer = i;
|
|
6567
6572
|
},
|
|
6568
6573
|
onAdd(i) {
|
|
6569
|
-
this._mainMap = i, this.lang = i.options.lang ?? this.options.lang ?? "zh_CN", this.langDic = Ki[this.lang], this._container = M.DomUtil.create("div",
|
|
6574
|
+
this._mainMap = i, this.lang = i.options.lang ?? this.options.lang ?? "zh_CN", this.langDic = Ki[this.lang], this._container = M.DomUtil.create("div", `${i.clsPrefix}-eaglemap`), this._container.style.width = this.options.width + "px", this._container.style.height = this.options.height + "px", M.DomEvent.disableClickPropagation(this._container), M.DomEvent.on(this._container, "mousewheel", M.DomEvent.stopPropagation);
|
|
6570
6575
|
let s = {
|
|
6571
6576
|
attributionControl: !1,
|
|
6572
6577
|
dragging: !this.options.centerFixed,
|
|
@@ -6600,7 +6605,7 @@ const Pr = /* @__PURE__ */ br(M), Ar = /* @__PURE__ */ xr({
|
|
|
6600
6605
|
this._toggleDisplayButton = this.options.toggleDisplay ? this._createButton(
|
|
6601
6606
|
"",
|
|
6602
6607
|
this._toggleButtonInitialTitleText(),
|
|
6603
|
-
|
|
6608
|
+
`${this._mainMap.clsPrefix}-eaglemap-toggle-display ${this._mainMap.clsPrefix}-eaglemap-toggle-display-` + this.options.position,
|
|
6604
6609
|
this._container,
|
|
6605
6610
|
this._toggleDisplayButtonClicked,
|
|
6606
6611
|
this
|
|
@@ -6735,12 +6740,13 @@ class Ne extends L[L.Layer ? "Layer" : "Class"] {
|
|
|
6735
6740
|
L.DomUtil.setPosition(this._element, n), this._element.style.transform += " rotate(" + this._rotation + "rad)";
|
|
6736
6741
|
}
|
|
6737
6742
|
}
|
|
6738
|
-
function
|
|
6743
|
+
function ea(i, s, n) {
|
|
6739
6744
|
i._leaflet_pos = s, M.DomUtil.setTransform(i, s, n);
|
|
6740
6745
|
}
|
|
6741
6746
|
M.Map.addInitHook("addHandler", "drawHandler", Cr);
|
|
6742
6747
|
M.Map.addInitHook(function() {
|
|
6743
|
-
|
|
6748
|
+
var i, s, n;
|
|
6749
|
+
(i = this.options.eagleMapControl) != null && i.show && (this.eagleMapControl = new ba(this.options.eagleMapControl), this.addControl(this.eagleMapControl)), (s = this.options.statusBarControl) != null && s.show && (this.statusBarControl = new wa(this.options.statusBarControl), this.addControl(this.statusBarControl)), (n = this.options.scaleControl) != null && n.show && (this.scaleControl = new M.Control.Scale(
|
|
6744
6750
|
Object.assign(
|
|
6745
6751
|
{
|
|
6746
6752
|
position: "bottomleft",
|
|
@@ -6776,7 +6782,7 @@ M.Marker.include({
|
|
|
6776
6782
|
const f = parseFloat(((1 - l) / (r - n)).toFixed(2)), { iconAnchor: c, iconSize: d } = this.getIcon().options;
|
|
6777
6783
|
c ? this._map._zoom >= r ? (this._icon.style.marginLeft = -c[0], this._icon.style.marginTop = -c[1]) : this._map._zoom > n & this._map._zoom < r ? (s = 1 - (r - this._map._zoom) * f, this._icon.style.marginLeft = -c[0] * s, this._icon.style.marginTop = -c[1] * s) : this._map._zoom <= n && o ? this._icon.style.display = "none" : this._map._zoom <= n && !o && (s = l, this._icon.style.marginLeft = -c[0], this._icon.style.marginTop = -c[1]) : d && (this._map._zoom >= r ? (this._icon.style.marginLeft = -d[0] / 2, this._icon.style.marginTop = -d[1] / 2) : this._map._zoom > n & this._map._zoom < r ? (s = 1 - (r - this._map._zoom) * f, this._icon.style.marginLeft = -d[0] / 2 * s, this._icon.style.marginTop = -d[1] / 2 * s) : this._map._zoom <= n && o ? this._icon.style.display = "none" : this._map._zoom <= n && !o && (s = l, this._icon.style.marginLeft = -d[0] / 2 * s, this._icon.style.marginTop = -d[1] / 2 * s));
|
|
6778
6784
|
}
|
|
6779
|
-
this._icon &&
|
|
6785
|
+
this._icon && ea(this._icon, i, s || 1), this._shadow && ea(this._shadow, i, s || 1), this._zIndex = i.y + this.options.zIndexOffset, this._resetZIndex(), this._applyRotation();
|
|
6780
6786
|
},
|
|
6781
6787
|
_applyRotation() {
|
|
6782
6788
|
this.options.rotationAngle && (this._icon.style[M.DomUtil.TRANSFORM + "Origin"] = this.options.rotationOrigin, M.DomUtil.TRANSFORM === "msTransform" ? this._icon.style[M.DomUtil.TRANSFORM] = "rotate(" + this.options.rotationAngle + "deg)" : this._icon.style[M.DomUtil.TRANSFORM] += " rotateZ(" + this.options.rotationAngle + "deg)");
|
|
@@ -6801,7 +6807,7 @@ M.Map.include({
|
|
|
6801
6807
|
}
|
|
6802
6808
|
});
|
|
6803
6809
|
M.Path.addInitHook(function() {
|
|
6804
|
-
this.color =
|
|
6810
|
+
this.options.color && (this.color = ta.from(this.options.color)), this.options.fillColor && (this.fillColor = ta.from(this.options.fillColor));
|
|
6805
6811
|
});
|
|
6806
6812
|
M.Polyline.addInitHook(function() {
|
|
6807
6813
|
this.options.showMeasurements && this.showMeasurements();
|
|
@@ -7008,7 +7014,7 @@ var Er = { exports: {} };
|
|
|
7008
7014
|
function Sr(i) {
|
|
7009
7015
|
i("EPSG:4326", "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"), i("EPSG:4269", "+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"), i("EPSG:3857", "+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"), i.WGS84 = i["EPSG:4326"], i["EPSG:3785"] = i["EPSG:3857"], i.GOOGLE = i["EPSG:3857"], i["EPSG:900913"] = i["EPSG:3857"], i["EPSG:102113"] = i["EPSG:3857"];
|
|
7010
7016
|
}
|
|
7011
|
-
var ui = 1, ci = 2, Ti = 3, Or = 4,
|
|
7017
|
+
var ui = 1, ci = 2, Ti = 3, Or = 4, Es = 5, sa = 6378137, Ir = 6356752314e-3, na = 0.0066943799901413165, Yi = 484813681109536e-20, C = Math.PI / 2, zr = 0.16666666666666666, Nr = 0.04722222222222222, kr = 0.022156084656084655, S = 1e-10, mt = 0.017453292519943295, qt = 57.29577951308232, X = Math.PI / 4, se = Math.PI * 2, ot = 3.14159265359, At = {};
|
|
7012
7018
|
At.greenwich = 0;
|
|
7013
7019
|
At.lisbon = -9.131906111111;
|
|
7014
7020
|
At.paris = 2.337229166667;
|
|
@@ -7026,15 +7032,15 @@ const Br = {
|
|
|
7026
7032
|
ft: { to_meter: 0.3048 },
|
|
7027
7033
|
"us-ft": { to_meter: 1200 / 3937 }
|
|
7028
7034
|
};
|
|
7029
|
-
var
|
|
7035
|
+
var aa = /[\s_\-\/\(\)]/g;
|
|
7030
7036
|
function ei(i, s) {
|
|
7031
7037
|
if (i[s])
|
|
7032
7038
|
return i[s];
|
|
7033
|
-
for (var n = Object.keys(i), r = s.toLowerCase().replace(
|
|
7034
|
-
if (l = n[o], f = l.toLowerCase().replace(
|
|
7039
|
+
for (var n = Object.keys(i), r = s.toLowerCase().replace(aa, ""), o = -1, l, f; ++o < n.length; )
|
|
7040
|
+
if (l = n[o], f = l.toLowerCase().replace(aa, ""), f === r)
|
|
7035
7041
|
return i[l];
|
|
7036
7042
|
}
|
|
7037
|
-
function
|
|
7043
|
+
function Ss(i) {
|
|
7038
7044
|
var s = {}, n = i.split("+").map(function(c) {
|
|
7039
7045
|
return c.trim();
|
|
7040
7046
|
}).filter(function(c) {
|
|
@@ -7143,7 +7149,7 @@ function Is(i) {
|
|
|
7143
7149
|
o = n[r], r in f ? (l = f[r], typeof l == "function" ? l(o) : s[l] = o) : s[r] = o;
|
|
7144
7150
|
return typeof s.datumCode == "string" && s.datumCode !== "WGS84" && (s.datumCode = s.datumCode.toLowerCase()), s;
|
|
7145
7151
|
}
|
|
7146
|
-
var ne = 1, Pa = 2, Aa = 3, De = 4, Ta = 5,
|
|
7152
|
+
var ne = 1, Pa = 2, Aa = 3, De = 4, Ta = 5, Ns = -1, Rr = /\s/, Dr = /[A-Za-z]/, Zr = /[A-Za-z84_]/, je = /[,\]]/, Ca = /[\d\.E\-\+]/;
|
|
7147
7153
|
function Kt(i) {
|
|
7148
7154
|
if (typeof i != "string")
|
|
7149
7155
|
throw new Error("not a string");
|
|
@@ -7168,7 +7174,7 @@ Kt.prototype.readCharicter = function() {
|
|
|
7168
7174
|
return this.afterquote(i);
|
|
7169
7175
|
case Aa:
|
|
7170
7176
|
return this.number(i);
|
|
7171
|
-
case
|
|
7177
|
+
case Ns:
|
|
7172
7178
|
return;
|
|
7173
7179
|
}
|
|
7174
7180
|
};
|
|
@@ -7189,7 +7195,7 @@ Kt.prototype.afterItem = function(i) {
|
|
|
7189
7195
|
return;
|
|
7190
7196
|
}
|
|
7191
7197
|
if (i === "]") {
|
|
7192
|
-
this.level--, this.word !== null && (this.currentObject.push(this.word), this.word = null), this.state = ne, this.currentObject = this.stack.pop(), this.currentObject || (this.state =
|
|
7198
|
+
this.level--, this.word !== null && (this.currentObject.push(this.word), this.word = null), this.state = ne, this.currentObject = this.stack.pop(), this.currentObject || (this.state = Ns);
|
|
7193
7199
|
return;
|
|
7194
7200
|
}
|
|
7195
7201
|
};
|
|
@@ -7249,7 +7255,7 @@ Kt.prototype.neutral = function(i) {
|
|
|
7249
7255
|
Kt.prototype.output = function() {
|
|
7250
7256
|
for (; this.place < this.text.length; )
|
|
7251
7257
|
this.readCharicter();
|
|
7252
|
-
if (this.state ===
|
|
7258
|
+
if (this.state === Ns)
|
|
7253
7259
|
return this.root;
|
|
7254
7260
|
throw new Error('unable to parse string "' + this.text + '". State is ' + this.state);
|
|
7255
7261
|
};
|
|
@@ -7257,7 +7263,7 @@ function Fr(i) {
|
|
|
7257
7263
|
var s = new Kt(i);
|
|
7258
7264
|
return s.output();
|
|
7259
7265
|
}
|
|
7260
|
-
function
|
|
7266
|
+
function oa(i, s, n) {
|
|
7261
7267
|
Array.isArray(s) && (n.unshift(s), s = null);
|
|
7262
7268
|
var r = s ? {} : i, o = n.reduce(function(l, f) {
|
|
7263
7269
|
return bi(f, l), l;
|
|
@@ -7330,13 +7336,13 @@ function bi(i, s) {
|
|
|
7330
7336
|
case "FITTED_CS":
|
|
7331
7337
|
case "LOCAL_DATUM":
|
|
7332
7338
|
case "DATUM":
|
|
7333
|
-
i[0] = ["name", i[0]],
|
|
7339
|
+
i[0] = ["name", i[0]], oa(s, n, i);
|
|
7334
7340
|
return;
|
|
7335
7341
|
default:
|
|
7336
7342
|
for (r = -1; ++r < i.length; )
|
|
7337
7343
|
if (!Array.isArray(i[r]))
|
|
7338
7344
|
return bi(i, s[n]);
|
|
7339
|
-
return
|
|
7345
|
+
return oa(s, n, i);
|
|
7340
7346
|
}
|
|
7341
7347
|
}
|
|
7342
7348
|
var Gr = 0.017453292519943295;
|
|
@@ -7413,7 +7419,7 @@ function vt(i) {
|
|
|
7413
7419
|
var s = this;
|
|
7414
7420
|
if (arguments.length === 2) {
|
|
7415
7421
|
var n = arguments[1];
|
|
7416
|
-
typeof n == "string" ? n.charAt(0) === "+" ? vt[i] =
|
|
7422
|
+
typeof n == "string" ? n.charAt(0) === "+" ? vt[i] = Ss(arguments[1]) : vt[i] = Ea(arguments[1]) : vt[i] = n;
|
|
7417
7423
|
} else if (arguments.length === 1) {
|
|
7418
7424
|
if (Array.isArray(i))
|
|
7419
7425
|
return i.map(function(r) {
|
|
@@ -7464,14 +7470,14 @@ function Yr(i) {
|
|
|
7464
7470
|
if (Qr(s))
|
|
7465
7471
|
return vt["EPSG:3857"];
|
|
7466
7472
|
var n = Xr(s);
|
|
7467
|
-
return n ?
|
|
7473
|
+
return n ? Ss(n) : s;
|
|
7468
7474
|
}
|
|
7469
7475
|
if (Kr(i))
|
|
7470
|
-
return
|
|
7476
|
+
return Ss(i);
|
|
7471
7477
|
} else
|
|
7472
7478
|
return i;
|
|
7473
7479
|
}
|
|
7474
|
-
function
|
|
7480
|
+
function ra(i, s) {
|
|
7475
7481
|
i = i || {};
|
|
7476
7482
|
var n, r;
|
|
7477
7483
|
if (!s)
|
|
@@ -7539,14 +7545,14 @@ const sh = {
|
|
|
7539
7545
|
};
|
|
7540
7546
|
function nh() {
|
|
7541
7547
|
}
|
|
7542
|
-
function
|
|
7548
|
+
function ha(i) {
|
|
7543
7549
|
return i;
|
|
7544
7550
|
}
|
|
7545
7551
|
var ah = ["longlat", "identity"];
|
|
7546
7552
|
const oh = {
|
|
7547
7553
|
init: nh,
|
|
7548
|
-
forward:
|
|
7549
|
-
inverse:
|
|
7554
|
+
forward: ha,
|
|
7555
|
+
inverse: ha,
|
|
7550
7556
|
names: ah
|
|
7551
7557
|
};
|
|
7552
7558
|
var rh = [sh, oh], ke = {}, Ze = [];
|
|
@@ -7908,7 +7914,7 @@ ct.rnb72 = {
|
|
|
7908
7914
|
};
|
|
7909
7915
|
function _h(i, s, n, r, o, l, f) {
|
|
7910
7916
|
var c = {};
|
|
7911
|
-
return i === void 0 || i === "none" ? c.datum_type =
|
|
7917
|
+
return i === void 0 || i === "none" ? c.datum_type = Es : c.datum_type = Or, s && (c.datum_params = s.map(parseFloat), (c.datum_params[0] !== 0 || c.datum_params[1] !== 0 || c.datum_params[2] !== 0) && (c.datum_type = ui), c.datum_params.length > 3 && (c.datum_params[3] !== 0 || c.datum_params[4] !== 0 || c.datum_params[5] !== 0 || c.datum_params[6] !== 0) && (c.datum_type = ci, c.datum_params[3] *= Yi, c.datum_params[4] *= Yi, c.datum_params[5] *= Yi, c.datum_params[6] = c.datum_params[6] / 1e6 + 1)), f && (c.datum_type = Ti, c.grids = f), c.a = n, c.b = r, c.es = o, c.ep2 = l, c;
|
|
7912
7918
|
}
|
|
7913
7919
|
var Oa = {};
|
|
7914
7920
|
function mh(i, s) {
|
|
@@ -7944,14 +7950,14 @@ function yh(i, s) {
|
|
|
7944
7950
|
nFields: i.getInt32(8, s),
|
|
7945
7951
|
nSubgridFields: i.getInt32(24, s),
|
|
7946
7952
|
nSubgrids: i.getInt32(40, s),
|
|
7947
|
-
shiftType:
|
|
7953
|
+
shiftType: Os(i, 56, 64).trim(),
|
|
7948
7954
|
fromSemiMajorAxis: i.getFloat64(120, s),
|
|
7949
7955
|
fromSemiMinorAxis: i.getFloat64(136, s),
|
|
7950
7956
|
toSemiMajorAxis: i.getFloat64(152, s),
|
|
7951
7957
|
toSemiMinorAxis: i.getFloat64(168, s)
|
|
7952
7958
|
};
|
|
7953
7959
|
}
|
|
7954
|
-
function
|
|
7960
|
+
function Os(i, s, n) {
|
|
7955
7961
|
return String.fromCharCode.apply(null, new Uint8Array(i.buffer.slice(s, n)));
|
|
7956
7962
|
}
|
|
7957
7963
|
function Mh(i, s, n) {
|
|
@@ -7978,8 +7984,8 @@ function xh(i) {
|
|
|
7978
7984
|
}
|
|
7979
7985
|
function wh(i, s, n) {
|
|
7980
7986
|
return {
|
|
7981
|
-
name:
|
|
7982
|
-
parent:
|
|
7987
|
+
name: Os(i, s + 8, s + 16).trim(),
|
|
7988
|
+
parent: Os(i, s + 24, s + 24 + 8).trim(),
|
|
7983
7989
|
lowerLatitude: i.getFloat64(s + 72, n),
|
|
7984
7990
|
upperLatitude: i.getFloat64(s + 88, n),
|
|
7985
7991
|
lowerLongitude: i.getFloat64(s + 104, n),
|
|
@@ -8032,7 +8038,7 @@ function Ut(i, s) {
|
|
|
8032
8038
|
f.ep2,
|
|
8033
8039
|
c
|
|
8034
8040
|
);
|
|
8035
|
-
|
|
8041
|
+
ra(this, n), ra(this, r), this.a = l.a, this.b = l.b, this.rf = l.rf, this.sphere = l.sphere, this.es = f.es, this.e = f.e, this.ep2 = f.ep2, this.datum = d, this.init(), s(null, this);
|
|
8036
8042
|
}
|
|
8037
8043
|
Ut.projections = uh;
|
|
8038
8044
|
Ut.projections.start();
|
|
@@ -8114,26 +8120,26 @@ function Ie(i) {
|
|
|
8114
8120
|
return i === ui || i === ci;
|
|
8115
8121
|
}
|
|
8116
8122
|
function Th(i, s, n) {
|
|
8117
|
-
if (Lh(i, s) || i.datum_type ===
|
|
8123
|
+
if (Lh(i, s) || i.datum_type === Es || s.datum_type === Es)
|
|
8118
8124
|
return n;
|
|
8119
8125
|
var r = i.a, o = i.es;
|
|
8120
8126
|
if (i.datum_type === Ti) {
|
|
8121
|
-
var l =
|
|
8127
|
+
var l = la(i, !1, n);
|
|
8122
8128
|
if (l !== 0)
|
|
8123
8129
|
return;
|
|
8124
|
-
r =
|
|
8130
|
+
r = sa, o = na;
|
|
8125
8131
|
}
|
|
8126
8132
|
var f = s.a, c = s.b, d = s.es;
|
|
8127
|
-
if (s.datum_type === Ti && (f =
|
|
8133
|
+
if (s.datum_type === Ti && (f = sa, c = Ir, d = na), o === d && r === f && !Ie(i.datum_type) && !Ie(s.datum_type))
|
|
8128
8134
|
return n;
|
|
8129
8135
|
if (n = Ia(n, o, r), Ie(i.datum_type) && (n = Ph(n, i.datum_type, i.datum_params)), Ie(s.datum_type) && (n = Ah(n, s.datum_type, s.datum_params)), n = za(n, d, f, c), s.datum_type === Ti) {
|
|
8130
|
-
var m =
|
|
8136
|
+
var m = la(s, !0, n);
|
|
8131
8137
|
if (m !== 0)
|
|
8132
8138
|
return;
|
|
8133
8139
|
}
|
|
8134
8140
|
return n;
|
|
8135
8141
|
}
|
|
8136
|
-
function
|
|
8142
|
+
function la(i, s, n) {
|
|
8137
8143
|
if (i.grids === null || i.grids.length === 0)
|
|
8138
8144
|
return console.log("Grid shift grids not found"), -1;
|
|
8139
8145
|
var r = { x: -n.x, y: n.y }, o = { x: Number.NaN, y: Number.NaN }, l = [];
|
|
@@ -8163,14 +8169,14 @@ function Ch(i, s, n) {
|
|
|
8163
8169
|
return r;
|
|
8164
8170
|
var o = { x: i.x, y: i.y };
|
|
8165
8171
|
o.x -= n.ll[0], o.y -= n.ll[1], o.x = O(o.x - Math.PI) + Math.PI;
|
|
8166
|
-
var l =
|
|
8172
|
+
var l = ua(o, n);
|
|
8167
8173
|
if (s) {
|
|
8168
8174
|
if (isNaN(l.x))
|
|
8169
8175
|
return r;
|
|
8170
8176
|
l.x = o.x - l.x, l.y = o.y - l.y;
|
|
8171
8177
|
var f = 9, c = 1e-12, d, m;
|
|
8172
8178
|
do {
|
|
8173
|
-
if (m =
|
|
8179
|
+
if (m = ua(l, n), isNaN(m.x)) {
|
|
8174
8180
|
console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");
|
|
8175
8181
|
break;
|
|
8176
8182
|
}
|
|
@@ -8183,7 +8189,7 @@ function Ch(i, s, n) {
|
|
|
8183
8189
|
isNaN(l.x) || (r.x = i.x + l.x, r.y = i.y + l.y);
|
|
8184
8190
|
return r;
|
|
8185
8191
|
}
|
|
8186
|
-
function
|
|
8192
|
+
function ua(i, s) {
|
|
8187
8193
|
var n = { x: i.x / s.del[0], y: i.y / s.del[1] }, r = { x: Math.floor(n.x), y: Math.floor(n.y) }, o = { x: n.x - 1 * r.x, y: n.y - 1 * r.y }, l = { x: Number.NaN, y: Number.NaN }, f;
|
|
8188
8194
|
if (r.x < 0 || r.x >= s.lim[0] || r.y < 0 || r.y >= s.lim[1])
|
|
8189
8195
|
return l;
|
|
@@ -8197,7 +8203,7 @@ function fa(i, s) {
|
|
|
8197
8203
|
var v = { x: s.cvs[f][0], y: s.cvs[f][1] }, p = o.x * o.y, y = o.x * (1 - o.y), b = (1 - o.x) * (1 - o.y), A = (1 - o.x) * o.y;
|
|
8198
8204
|
return l.x = b * c.x + y * d.x + A * v.x + p * m.x, l.y = b * c.y + y * d.y + A * v.y + p * m.y, l;
|
|
8199
8205
|
}
|
|
8200
|
-
function
|
|
8206
|
+
function ca(i, s, n) {
|
|
8201
8207
|
var r = n.x, o = n.y, l = n.z || 0, f, c, d, m = {};
|
|
8202
8208
|
for (d = 0; d < 3; d++)
|
|
8203
8209
|
if (!(s && d === 2 && n.z === void 0))
|
|
@@ -8233,9 +8239,9 @@ function Na(i) {
|
|
|
8233
8239
|
return i.length > 2 && (s.z = i[2]), i.length > 3 && (s.m = i[3]), s;
|
|
8234
8240
|
}
|
|
8235
8241
|
function Eh(i) {
|
|
8236
|
-
|
|
8242
|
+
fa(i.x), fa(i.y);
|
|
8237
8243
|
}
|
|
8238
|
-
function
|
|
8244
|
+
function fa(i) {
|
|
8239
8245
|
if (typeof Number.isFinite == "function") {
|
|
8240
8246
|
if (Number.isFinite(i))
|
|
8241
8247
|
return;
|
|
@@ -8256,7 +8262,7 @@ function Fe(i, s, n, r) {
|
|
|
8256
8262
|
m: n.m
|
|
8257
8263
|
};
|
|
8258
8264
|
var l = n.z !== void 0;
|
|
8259
|
-
if (Eh(n), i.datum && s.datum && Sh(i, s) && (o = new Ut("WGS84"), n = Fe(i, o, n, r), i = o), r && i.axis !== "enu" && (n =
|
|
8265
|
+
if (Eh(n), i.datum && s.datum && Sh(i, s) && (o = new Ut("WGS84"), n = Fe(i, o, n, r), i = o), r && i.axis !== "enu" && (n = ca(i, !1, n)), i.projName === "longlat")
|
|
8260
8266
|
n = {
|
|
8261
8267
|
x: n.x * mt,
|
|
8262
8268
|
y: n.y * mt,
|
|
@@ -8281,9 +8287,9 @@ function Fe(i, s, n, r) {
|
|
|
8281
8287
|
x: n.x / s.to_meter,
|
|
8282
8288
|
y: n.y / s.to_meter,
|
|
8283
8289
|
z: n.z || 0
|
|
8284
|
-
})), r && s.axis !== "enu" ?
|
|
8290
|
+
})), r && s.axis !== "enu" ? ca(s, !0, n) : (n && !l && delete n.z, n);
|
|
8285
8291
|
}
|
|
8286
|
-
var
|
|
8292
|
+
var da = Ut("WGS84");
|
|
8287
8293
|
function Ts(i, s, n, r) {
|
|
8288
8294
|
var o, l, f;
|
|
8289
8295
|
return Array.isArray(n) ? (o = Fe(i, s, n, r) || { x: NaN, y: NaN }, n.length > 2 ? typeof i.name < "u" && i.name === "geocent" || typeof s.name < "u" && s.name === "geocent" ? typeof o.z == "number" ? [o.x, o.y, o.z].concat(n.slice(3)) : [o.x, o.y, n[2]].concat(n.slice(3)) : [o.x, o.y].concat(n.slice(2)) : [o.x, o.y]) : (l = Fe(i, s, n, r), f = Object.keys(n), f.length === 2 || f.forEach(function(c) {
|
|
@@ -8295,13 +8301,13 @@ function Ts(i, s, n, r) {
|
|
|
8295
8301
|
l[c] = n[c];
|
|
8296
8302
|
}), l);
|
|
8297
8303
|
}
|
|
8298
|
-
function
|
|
8304
|
+
function _a(i) {
|
|
8299
8305
|
return i instanceof Ut ? i : i.oProj ? i.oProj : Ut(i);
|
|
8300
8306
|
}
|
|
8301
8307
|
function Ct(i, s, n) {
|
|
8302
|
-
i =
|
|
8308
|
+
i = _a(i);
|
|
8303
8309
|
var r = !1, o;
|
|
8304
|
-
return typeof s > "u" ? (s = i, i =
|
|
8310
|
+
return typeof s > "u" ? (s = i, i = da, r = !0) : (typeof s.x < "u" || Array.isArray(s)) && (n = s, s = i, i = da, r = !0), s = _a(s), n ? Ts(i, s, n) : (o = {
|
|
8305
8311
|
forward: function(l, f) {
|
|
8306
8312
|
return Ts(i, s, l, f);
|
|
8307
8313
|
},
|
|
@@ -8310,7 +8316,7 @@ function Ct(i, s, n) {
|
|
|
8310
8316
|
}
|
|
8311
8317
|
}, r && (o.oProj = s), o);
|
|
8312
8318
|
}
|
|
8313
|
-
var
|
|
8319
|
+
var ma = 6, ka = "AJSAJS", Ba = "AFAFAF", Pi = 65, Lt = 73, It = 79, Vi = 86, Qi = 90;
|
|
8314
8320
|
const Oh = {
|
|
8315
8321
|
forward: Ra,
|
|
8316
8322
|
inverse: Ih,
|
|
@@ -8323,17 +8329,17 @@ function Ra(i, s) {
|
|
|
8323
8329
|
}), s);
|
|
8324
8330
|
}
|
|
8325
8331
|
function Ih(i) {
|
|
8326
|
-
var s =
|
|
8332
|
+
var s = ks(Fa(i.toUpperCase()));
|
|
8327
8333
|
return s.lat && s.lon ? [s.lon, s.lat, s.lon, s.lat] : [s.left, s.bottom, s.right, s.top];
|
|
8328
8334
|
}
|
|
8329
8335
|
function Da(i) {
|
|
8330
|
-
var s =
|
|
8336
|
+
var s = ks(Fa(i.toUpperCase()));
|
|
8331
8337
|
return s.lat && s.lon ? [s.lon, s.lat] : [(s.left + s.right) / 2, (s.top + s.bottom) / 2];
|
|
8332
8338
|
}
|
|
8333
8339
|
function Cs(i) {
|
|
8334
8340
|
return i * (Math.PI / 180);
|
|
8335
8341
|
}
|
|
8336
|
-
function
|
|
8342
|
+
function pa(i) {
|
|
8337
8343
|
return 180 * (i / Math.PI);
|
|
8338
8344
|
}
|
|
8339
8345
|
function zh(i) {
|
|
@@ -8347,19 +8353,19 @@ function zh(i) {
|
|
|
8347
8353
|
zoneLetter: Nh(s)
|
|
8348
8354
|
};
|
|
8349
8355
|
}
|
|
8350
|
-
function
|
|
8356
|
+
function ks(i) {
|
|
8351
8357
|
var s = i.northing, n = i.easting, r = i.zoneLetter, o = i.zoneNumber;
|
|
8352
8358
|
if (o < 0 || o > 60)
|
|
8353
8359
|
return null;
|
|
8354
8360
|
var l = 0.9996, f = 6378137, c = 669438e-8, d, m = (1 - Math.sqrt(1 - c)) / (1 + Math.sqrt(1 - c)), v, p, y, b, A, P, E, z, B, k = n - 5e5, j = s;
|
|
8355
8361
|
r < "N" && (j -= 1e7), E = (o - 1) * 6 - 180 + 3, d = c / (1 - c), P = j / l, z = P / (f * (1 - c / 4 - 3 * c * c / 64 - 5 * c * c * c / 256)), B = z + (3 * m / 2 - 27 * m * m * m / 32) * Math.sin(2 * z) + (21 * m * m / 16 - 55 * m * m * m * m / 32) * Math.sin(4 * z) + 151 * m * m * m / 96 * Math.sin(6 * z), v = f / Math.sqrt(1 - c * Math.sin(B) * Math.sin(B)), p = Math.tan(B) * Math.tan(B), y = d * Math.cos(B) * Math.cos(B), b = f * (1 - c) / Math.pow(1 - c * Math.sin(B) * Math.sin(B), 1.5), A = k / (v * l);
|
|
8356
8362
|
var H = B - v * Math.tan(B) / b * (A * A / 2 - (5 + 3 * p + 10 * y - 4 * y * y - 9 * d) * A * A * A * A / 24 + (61 + 90 * p + 298 * y + 45 * p * p - 252 * d - 3 * y * y) * A * A * A * A * A * A / 720);
|
|
8357
|
-
H =
|
|
8363
|
+
H = pa(H);
|
|
8358
8364
|
var W = (A - (1 + 2 * p + y) * A * A * A / 6 + (5 - 2 * y + 28 * p - 3 * y * y + 8 * d + 24 * p * p) * A * A * A * A * A / 120) / Math.cos(B);
|
|
8359
|
-
W = E +
|
|
8365
|
+
W = E + pa(W);
|
|
8360
8366
|
var ut;
|
|
8361
8367
|
if (i.accuracy) {
|
|
8362
|
-
var tt =
|
|
8368
|
+
var tt = ks({
|
|
8363
8369
|
northing: i.northing + i.accuracy,
|
|
8364
8370
|
easting: i.easting + i.accuracy,
|
|
8365
8371
|
zoneLetter: i.zoneLetter,
|
|
@@ -8391,8 +8397,8 @@ function Bh(i, s, n) {
|
|
|
8391
8397
|
return Rh(o, l, r);
|
|
8392
8398
|
}
|
|
8393
8399
|
function Za(i) {
|
|
8394
|
-
var s = i %
|
|
8395
|
-
return s === 0 && (s =
|
|
8400
|
+
var s = i % ma;
|
|
8401
|
+
return s === 0 && (s = ma), s;
|
|
8396
8402
|
}
|
|
8397
8403
|
function Rh(i, s, n) {
|
|
8398
8404
|
var r = n - 1, o = ka.charCodeAt(r), l = Ba.charCodeAt(r), f = o + i - 1, c = l + s, d = !1;
|
|
@@ -8546,10 +8552,10 @@ Ei.fromMGRS = function(i) {
|
|
|
8546
8552
|
Ei.prototype.toMGRS = function(i) {
|
|
8547
8553
|
return Ra([this.x, this.y], i);
|
|
8548
8554
|
};
|
|
8549
|
-
var Gh = 1, qh = 0.25,
|
|
8550
|
-
function
|
|
8555
|
+
var Gh = 1, qh = 0.25, ga = 0.046875, va = 0.01953125, ya = 0.01068115234375, Uh = 0.75, jh = 0.46875, Hh = 0.013020833333333334, Wh = 0.007120768229166667, $h = 0.3645833333333333, Vh = 0.005696614583333333, Qh = 0.3076171875;
|
|
8556
|
+
function Bs(i) {
|
|
8551
8557
|
var s = [];
|
|
8552
|
-
s[0] = Gh - i * (qh + i * (
|
|
8558
|
+
s[0] = Gh - i * (qh + i * (ga + i * (va + i * ya))), s[1] = i * (Uh - i * (ga + i * (va + i * ya)));
|
|
8553
8559
|
var n = i * i;
|
|
8554
8560
|
return s[2] = n * (jh - i * (Hh + i * Wh)), n *= i, s[3] = n * ($h - i * Vh), s[4] = n * i * Qh, s;
|
|
8555
8561
|
}
|
|
@@ -8557,7 +8563,7 @@ function Oi(i, s, n, r) {
|
|
|
8557
8563
|
return n *= s, s *= s, r[0] * i - n * (r[1] + s * (r[2] + s * (r[3] + s * r[4])));
|
|
8558
8564
|
}
|
|
8559
8565
|
var Xh = 20;
|
|
8560
|
-
function
|
|
8566
|
+
function Rs(i, s, n) {
|
|
8561
8567
|
for (var r = 1 / (1 - s), o = i, l = Xh; l; --l) {
|
|
8562
8568
|
var f = Math.sin(o), c = 1 - s * f * f;
|
|
8563
8569
|
if (c = (Oi(o, f, Math.cos(o), n) - i) * (c * Math.sqrt(c)) * r, o -= c, Math.abs(c) < S)
|
|
@@ -8566,7 +8572,7 @@ function Zs(i, s, n) {
|
|
|
8566
8572
|
return o;
|
|
8567
8573
|
}
|
|
8568
8574
|
function Kh() {
|
|
8569
|
-
this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.es && (this.en =
|
|
8575
|
+
this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.es && (this.en = Bs(this.es), this.ml0 = Oi(this.lat0, Math.sin(this.lat0), Math.cos(this.lat0), this.en));
|
|
8570
8576
|
}
|
|
8571
8577
|
function Yh(i) {
|
|
8572
8578
|
var s = i.x, n = i.y, r = O(s - this.long0), o, l, f, c = Math.sin(n), d = Math.cos(n);
|
|
@@ -8592,7 +8598,7 @@ function Yh(i) {
|
|
|
8592
8598
|
function Jh(i) {
|
|
8593
8599
|
var s, n, r, o, l = (i.x - this.x0) * (1 / this.a), f = (i.y - this.y0) * (1 / this.a);
|
|
8594
8600
|
if (this.es)
|
|
8595
|
-
if (s = this.ml0 + f / this.k0, n =
|
|
8601
|
+
if (s = this.ml0 + f / this.k0, n = Rs(s, this.es, this.en), Math.abs(n) < C) {
|
|
8596
8602
|
var p = Math.sin(n), y = Math.cos(n), b = Math.abs(y) > S ? Math.tan(n) : 0, A = this.ep2 * Math.pow(y, 2), P = Math.pow(A, 2), E = Math.pow(b, 2), z = Math.pow(E, 2);
|
|
8597
8603
|
s = 1 - this.es * Math.pow(p, 2);
|
|
8598
8604
|
var B = l * Math.sqrt(s) / this.k0, k = Math.pow(B, 2);
|
|
@@ -8629,7 +8635,7 @@ function el(i) {
|
|
|
8629
8635
|
var s = Math.abs(i);
|
|
8630
8636
|
return s = il(s * (1 + s / (Pt(1, s) + 1))), i < 0 ? -s : s;
|
|
8631
8637
|
}
|
|
8632
|
-
function
|
|
8638
|
+
function Ds(i, s) {
|
|
8633
8639
|
for (var n = 2 * Math.cos(2 * s), r = i.length - 1, o = i[r], l = 0, f; --r >= 0; )
|
|
8634
8640
|
f = -l + n * o + i[r], l = o, o = f;
|
|
8635
8641
|
return s + f * Math.sin(2 * s);
|
|
@@ -8654,12 +8660,12 @@ function al() {
|
|
|
8654
8660
|
this.approx && (Be.init.apply(this), this.forward = Be.forward, this.inverse = Be.inverse), this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.cgb = [], this.cbg = [], this.utg = [], this.gtu = [];
|
|
8655
8661
|
var i = this.es / (1 + Math.sqrt(1 - this.es)), s = i / (2 - i), n = s;
|
|
8656
8662
|
this.cgb[0] = s * (2 + s * (-2 / 3 + s * (-2 + s * (116 / 45 + s * (26 / 45 + s * (-2854 / 675)))))), this.cbg[0] = s * (-2 + s * (2 / 3 + s * (4 / 3 + s * (-82 / 45 + s * (32 / 45 + s * (4642 / 4725)))))), n = n * s, this.cgb[1] = n * (7 / 3 + s * (-8 / 5 + s * (-227 / 45 + s * (2704 / 315 + s * (2323 / 945))))), this.cbg[1] = n * (5 / 3 + s * (-16 / 15 + s * (-13 / 9 + s * (904 / 315 + s * (-1522 / 945))))), n = n * s, this.cgb[2] = n * (56 / 15 + s * (-136 / 35 + s * (-1262 / 105 + s * (73814 / 2835)))), this.cbg[2] = n * (-26 / 15 + s * (34 / 21 + s * (8 / 5 + s * (-12686 / 2835)))), n = n * s, this.cgb[3] = n * (4279 / 630 + s * (-332 / 35 + s * (-399572 / 14175))), this.cbg[3] = n * (1237 / 630 + s * (-12 / 5 + s * (-24832 / 14175))), n = n * s, this.cgb[4] = n * (4174 / 315 + s * (-144838 / 6237)), this.cbg[4] = n * (-734 / 315 + s * (109598 / 31185)), n = n * s, this.cgb[5] = n * (601676 / 22275), this.cbg[5] = n * (444337 / 155925), n = Math.pow(s, 2), this.Qn = this.k0 / (1 + s) * (1 + n * (1 / 4 + n * (1 / 64 + n / 256))), this.utg[0] = s * (-0.5 + s * (2 / 3 + s * (-37 / 96 + s * (1 / 360 + s * (81 / 512 + s * (-96199 / 604800)))))), this.gtu[0] = s * (0.5 + s * (-2 / 3 + s * (5 / 16 + s * (41 / 180 + s * (-127 / 288 + s * (7891 / 37800)))))), this.utg[1] = n * (-1 / 48 + s * (-1 / 15 + s * (437 / 1440 + s * (-46 / 105 + s * (1118711 / 3870720))))), this.gtu[1] = n * (13 / 48 + s * (-3 / 5 + s * (557 / 1440 + s * (281 / 630 + s * (-1983433 / 1935360))))), n = n * s, this.utg[2] = n * (-17 / 480 + s * (37 / 840 + s * (209 / 4480 + s * (-5569 / 90720)))), this.gtu[2] = n * (61 / 240 + s * (-103 / 140 + s * (15061 / 26880 + s * (167603 / 181440)))), n = n * s, this.utg[3] = n * (-4397 / 161280 + s * (11 / 504 + s * (830251 / 7257600))), this.gtu[3] = n * (49561 / 161280 + s * (-179 / 168 + s * (6601661 / 7257600))), n = n * s, this.utg[4] = n * (-4583 / 161280 + s * (108847 / 3991680)), this.gtu[4] = n * (34729 / 80640 + s * (-3418889 / 1995840)), n = n * s, this.utg[5] = n * (-20648693 / 638668800), this.gtu[5] = n * (212378941 / 319334400);
|
|
8657
|
-
var r =
|
|
8663
|
+
var r = Ds(this.cbg, this.lat0);
|
|
8658
8664
|
this.Zb = -this.Qn * (r + sl(this.gtu, 2 * r));
|
|
8659
8665
|
}
|
|
8660
8666
|
function ol(i) {
|
|
8661
8667
|
var s = O(i.x - this.long0), n = i.y;
|
|
8662
|
-
n =
|
|
8668
|
+
n = Ds(this.cbg, n);
|
|
8663
8669
|
var r = Math.sin(n), o = Math.cos(n), l = Math.sin(s), f = Math.cos(s);
|
|
8664
8670
|
n = Math.atan2(r, f * o), s = Math.atan2(l * o, Pt(r, o * f)), s = el(Math.tan(s));
|
|
8665
8671
|
var c = qa(this.gtu, 2 * n, 2 * s);
|
|
@@ -8675,7 +8681,7 @@ function rl(i) {
|
|
|
8675
8681
|
var l = qa(this.utg, 2 * n, 2 * s);
|
|
8676
8682
|
n = n + l[0], s = s + l[1], s = Math.atan(Ga(s));
|
|
8677
8683
|
var f = Math.sin(n), c = Math.cos(n), d = Math.sin(s), m = Math.cos(s);
|
|
8678
|
-
n = Math.atan2(f * m, Pt(d, m * c)), s = Math.atan2(d, m * c), r = O(s + this.long0), o =
|
|
8684
|
+
n = Math.atan2(f * m, Pt(d, m * c)), s = Math.atan2(d, m * c), r = O(s + this.long0), o = Ds(this.cgb, n);
|
|
8679
8685
|
} else
|
|
8680
8686
|
r = 1 / 0, o = 1 / 0;
|
|
8681
8687
|
return i.x = r, i.y = o, i;
|
|
@@ -8709,36 +8715,36 @@ const dl = {
|
|
|
8709
8715
|
names: fl,
|
|
8710
8716
|
dependsOn: ul
|
|
8711
8717
|
};
|
|
8712
|
-
function
|
|
8718
|
+
function Zs(i, s) {
|
|
8713
8719
|
return Math.pow((1 - i) / (1 + i), s);
|
|
8714
8720
|
}
|
|
8715
8721
|
var _l = 20;
|
|
8716
8722
|
function ml() {
|
|
8717
8723
|
var i = Math.sin(this.lat0), s = Math.cos(this.lat0);
|
|
8718
|
-
s *= s, this.rc = Math.sqrt(1 - this.es) / (1 - this.es * i * i), this.C = Math.sqrt(1 + this.es * s * s / (1 - this.es)), this.phic0 = Math.asin(i / this.C), this.ratexp = 0.5 * this.C * this.e, this.K = Math.tan(0.5 * this.phic0 + X) / (Math.pow(Math.tan(0.5 * this.lat0 + X), this.C) *
|
|
8724
|
+
s *= s, this.rc = Math.sqrt(1 - this.es) / (1 - this.es * i * i), this.C = Math.sqrt(1 + this.es * s * s / (1 - this.es)), this.phic0 = Math.asin(i / this.C), this.ratexp = 0.5 * this.C * this.e, this.K = Math.tan(0.5 * this.phic0 + X) / (Math.pow(Math.tan(0.5 * this.lat0 + X), this.C) * Zs(this.e * i, this.ratexp));
|
|
8719
8725
|
}
|
|
8720
8726
|
function pl(i) {
|
|
8721
8727
|
var s = i.x, n = i.y;
|
|
8722
|
-
return i.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * n + X), this.C) *
|
|
8728
|
+
return i.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * n + X), this.C) * Zs(this.e * Math.sin(n), this.ratexp)) - C, i.x = this.C * s, i;
|
|
8723
8729
|
}
|
|
8724
8730
|
function gl(i) {
|
|
8725
|
-
for (var s = 1e-14, n = i.x / this.C, r = i.y, o = Math.pow(Math.tan(0.5 * r + X) / this.K, 1 / this.C), l = _l; l > 0 && (r = 2 * Math.atan(o *
|
|
8731
|
+
for (var s = 1e-14, n = i.x / this.C, r = i.y, o = Math.pow(Math.tan(0.5 * r + X) / this.K, 1 / this.C), l = _l; l > 0 && (r = 2 * Math.atan(o * Zs(this.e * Math.sin(i.y), -0.5 * this.e)) - C, !(Math.abs(r - i.y) < s)); --l)
|
|
8726
8732
|
i.y = r;
|
|
8727
8733
|
return l ? (i.x = n, i.y = r, i) : null;
|
|
8728
8734
|
}
|
|
8729
8735
|
var vl = ["gauss"];
|
|
8730
|
-
const
|
|
8736
|
+
const Fs = {
|
|
8731
8737
|
init: ml,
|
|
8732
8738
|
forward: pl,
|
|
8733
8739
|
inverse: gl,
|
|
8734
8740
|
names: vl
|
|
8735
8741
|
};
|
|
8736
8742
|
function yl() {
|
|
8737
|
-
|
|
8743
|
+
Fs.init.apply(this), this.rc && (this.sinc0 = Math.sin(this.phic0), this.cosc0 = Math.cos(this.phic0), this.R2 = 2 * this.rc, this.title || (this.title = "Oblique Stereographic Alternative"));
|
|
8738
8744
|
}
|
|
8739
8745
|
function Ml(i) {
|
|
8740
8746
|
var s, n, r, o;
|
|
8741
|
-
return i.x = O(i.x - this.long0),
|
|
8747
|
+
return i.x = O(i.x - this.long0), Fs.forward.apply(this, [i]), s = Math.sin(i.y), n = Math.cos(i.y), r = Math.cos(i.x), o = this.k0 * this.R2 / (1 + this.sinc0 * s + this.cosc0 * n * r), i.x = o * n * Math.sin(i.x), i.y = o * (this.cosc0 * s - this.sinc0 * n * r), i.x = this.a * i.x + this.x0, i.y = this.a * i.y + this.y0, i;
|
|
8742
8748
|
}
|
|
8743
8749
|
function xl(i) {
|
|
8744
8750
|
var s, n, r, o, l;
|
|
@@ -8747,7 +8753,7 @@ function xl(i) {
|
|
|
8747
8753
|
s = Math.sin(f), n = Math.cos(f), o = Math.asin(n * this.sinc0 + i.y * s * this.cosc0 / l), r = Math.atan2(i.x * s, l * this.cosc0 * n - i.y * this.sinc0 * s);
|
|
8748
8754
|
} else
|
|
8749
8755
|
o = this.phic0, r = 0;
|
|
8750
|
-
return i.x = r, i.y = o,
|
|
8756
|
+
return i.x = r, i.y = o, Fs.inverse.apply(this, [i]), i.x = O(i.x + this.long0), i;
|
|
8751
8757
|
}
|
|
8752
8758
|
var wl = ["Stereographic_North_Pole", "Oblique_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
|
|
8753
8759
|
const bl = {
|
|
@@ -9224,7 +9230,7 @@ const Fu = {
|
|
|
9224
9230
|
inverse: Du,
|
|
9225
9231
|
names: Zu
|
|
9226
9232
|
};
|
|
9227
|
-
var
|
|
9233
|
+
var Ma = 20;
|
|
9228
9234
|
function Gu() {
|
|
9229
9235
|
this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = he(this.es), this.e1 = le(this.es), this.e2 = ue(this.es), this.e3 = ce(this.es), this.ml0 = this.a * yt(this.e0, this.e1, this.e2, this.e3, this.lat0);
|
|
9230
9236
|
}
|
|
@@ -9248,7 +9254,7 @@ function Uu(i) {
|
|
|
9248
9254
|
else {
|
|
9249
9255
|
f = this.lat0 + o / this.a, c = r * r / this.a / this.a + f * f, d = f;
|
|
9250
9256
|
var v;
|
|
9251
|
-
for (l =
|
|
9257
|
+
for (l = Ma; l; --l)
|
|
9252
9258
|
if (v = Math.tan(d), m = -1 * (f * (d * v + 1) - d - 0.5 * (d * d + c) * v) / ((d - f) / v - 1), d += m, Math.abs(m) <= S) {
|
|
9253
9259
|
n = d;
|
|
9254
9260
|
break;
|
|
@@ -9260,7 +9266,7 @@ function Uu(i) {
|
|
|
9260
9266
|
else {
|
|
9261
9267
|
f = (this.ml0 + o) / this.a, c = r * r / this.a / this.a + f * f, d = f;
|
|
9262
9268
|
var p, y, b, A, P;
|
|
9263
|
-
for (l =
|
|
9269
|
+
for (l = Ma; l; --l)
|
|
9264
9270
|
if (P = this.e * Math.sin(d), p = Math.sqrt(1 - P * P) * Math.tan(d), y = this.a * yt(this.e0, this.e1, this.e2, this.e3, d), b = this.e0 - 2 * this.e1 * Math.cos(2 * d) + 4 * this.e2 * Math.cos(4 * d) - 6 * this.e3 * Math.cos(6 * d), A = y / this.a, m = (f * (p * A + 1) - A - 0.5 * p * (A * A + c)) / (this.es * Math.sin(2 * d) * (A * A + c - 2 * f * A) / (4 * p) + (f - A) * (p * b - 2 / Math.sin(2 * d)) - b), d -= m, Math.abs(m) <= S) {
|
|
9265
9271
|
n = d;
|
|
9266
9272
|
break;
|
|
@@ -9336,7 +9342,7 @@ const ic = {
|
|
|
9336
9342
|
};
|
|
9337
9343
|
var ec = 20;
|
|
9338
9344
|
function sc() {
|
|
9339
|
-
this.sphere ? (this.n = 1, this.m = 0, this.es = 0, this.C_y = Math.sqrt((this.m + 1) / this.n), this.C_x = this.C_y / (this.m + 1)) : this.en =
|
|
9345
|
+
this.sphere ? (this.n = 1, this.m = 0, this.es = 0, this.C_y = Math.sqrt((this.m + 1) / this.n), this.C_x = this.C_y / (this.m + 1)) : this.en = Bs(this.es);
|
|
9340
9346
|
}
|
|
9341
9347
|
function nc(i) {
|
|
9342
9348
|
var s, n, r = i.x, o = i.y;
|
|
@@ -9358,7 +9364,7 @@ function nc(i) {
|
|
|
9358
9364
|
}
|
|
9359
9365
|
function ac(i) {
|
|
9360
9366
|
var s, n, r, o;
|
|
9361
|
-
return i.x -= this.x0, r = i.x / this.a, i.y -= this.y0, s = i.y / this.a, this.sphere ? (s /= this.C_y, r = r / (this.C_x * (this.m + Math.cos(s))), this.m ? s = si((this.m * s + Math.sin(s)) / this.n) : this.n !== 1 && (s = si(Math.sin(s) / this.n)), r = O(r + this.long0), s = ni(s)) : (s =
|
|
9367
|
+
return i.x -= this.x0, r = i.x / this.a, i.y -= this.y0, s = i.y / this.a, this.sphere ? (s /= this.C_y, r = r / (this.C_x * (this.m + Math.cos(s))), this.m ? s = si((this.m * s + Math.sin(s)) / this.n) : this.n !== 1 && (s = si(Math.sin(s) / this.n)), r = O(r + this.long0), s = ni(s)) : (s = Rs(i.y / this.a, this.es, this.en), o = Math.abs(s), o < C ? (o = Math.sin(s), n = this.long0 + i.x * Math.sqrt(1 - this.es * o * o) / (this.a * Math.cos(s)), r = O(n)) : o - S < C && (r = this.long0)), i.x = r, i.y = s, i;
|
|
9362
9368
|
}
|
|
9363
9369
|
var oc = ["Sinusoidal", "sinu"];
|
|
9364
9370
|
const rc = {
|
|
@@ -9545,7 +9551,7 @@ const Rc = {
|
|
|
9545
9551
|
inverse: kc,
|
|
9546
9552
|
names: Bc
|
|
9547
9553
|
};
|
|
9548
|
-
var
|
|
9554
|
+
var Is = [
|
|
9549
9555
|
[1, 22199e-21, -715515e-10, 31103e-10],
|
|
9550
9556
|
[0.9986, -482243e-9, -24897e-9, -13309e-10],
|
|
9551
9557
|
[0.9954, -83103e-8, -448605e-10, -986701e-12],
|
|
@@ -9605,7 +9611,7 @@ function qc(i) {
|
|
|
9605
9611
|
var s = O(i.x - this.long0), n = Math.abs(i.y), r = Math.floor(n * Ha);
|
|
9606
9612
|
r < 0 ? r = 0 : r >= Ai && (r = Ai - 1), n = qt * (n - Dc * r);
|
|
9607
9613
|
var o = {
|
|
9608
|
-
x: qe(
|
|
9614
|
+
x: qe(Is[r], n) * s,
|
|
9609
9615
|
y: qe(Xi[r], n)
|
|
9610
9616
|
};
|
|
9611
9617
|
return i.y < 0 && (o.y = -o.y), o.x = o.x * this.a * Ua + this.x0, o.y = o.y * this.a * ja + this.y0, o;
|
|
@@ -9616,7 +9622,7 @@ function Uc(i) {
|
|
|
9616
9622
|
y: Math.abs(i.y - this.y0) / (this.a * ja)
|
|
9617
9623
|
};
|
|
9618
9624
|
if (s.y >= 1)
|
|
9619
|
-
s.x /=
|
|
9625
|
+
s.x /= Is[Ai][0], s.y = i.y < 0 ? -C : C;
|
|
9620
9626
|
else {
|
|
9621
9627
|
var n = Math.floor(s.y * Ai);
|
|
9622
9628
|
for (n < 0 ? n = 0 : n >= Ai && (n = Ai - 1); ; )
|
|
@@ -9629,7 +9635,7 @@ function Uc(i) {
|
|
|
9629
9635
|
var r = Xi[n], o = 5 * (s.y - r[0]) / (Xi[n + 1][0] - r[0]);
|
|
9630
9636
|
o = Fc(function(l) {
|
|
9631
9637
|
return (qe(r, l) - s.y) / Zc(r, l);
|
|
9632
|
-
}, o, S, 100), s.x /= qe(
|
|
9638
|
+
}, o, S, 100), s.x /= qe(Is[n], o), s.y = (5 * n + o) * mt, i.y < 0 && (s.y = -s.y);
|
|
9633
9639
|
}
|
|
9634
9640
|
return s.x = O(s.x + this.long0), s;
|
|
9635
9641
|
}
|
|
@@ -9829,7 +9835,7 @@ function df() {
|
|
|
9829
9835
|
var i;
|
|
9830
9836
|
if (this.phi1 = this.lat1, Math.abs(this.phi1) < oe)
|
|
9831
9837
|
throw new Error();
|
|
9832
|
-
this.es ? (this.en =
|
|
9838
|
+
this.es ? (this.en = Bs(this.es), this.m1 = Oi(
|
|
9833
9839
|
this.phi1,
|
|
9834
9840
|
this.am1 = Math.sin(this.phi1),
|
|
9835
9841
|
i = Math.cos(this.phi1),
|
|
@@ -9843,7 +9849,7 @@ function _f(i) {
|
|
|
9843
9849
|
function mf(i) {
|
|
9844
9850
|
i.x = (i.x - (this.x0 || 0)) / this.a, i.y = (i.y - (this.y0 || 0)) / this.a;
|
|
9845
9851
|
var s, n, r, o;
|
|
9846
|
-
if (n = Pt(i.x, i.y = this.am1 - i.y), o =
|
|
9852
|
+
if (n = Pt(i.x, i.y = this.am1 - i.y), o = Rs(this.am1 + this.m1 - n, this.es, this.en), (s = Math.abs(o)) < C)
|
|
9847
9853
|
s = Math.sin(o), r = n * Math.atan2(i.x, i.y) * Math.sqrt(1 - this.es * s * s) / Math.cos(o);
|
|
9848
9854
|
else if (Math.abs(s - C) <= oe)
|
|
9849
9855
|
r = 0;
|
|
@@ -9888,7 +9894,7 @@ const xf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9888
9894
|
(function(i) {
|
|
9889
9895
|
(function(s) {
|
|
9890
9896
|
var n, r;
|
|
9891
|
-
n =
|
|
9897
|
+
n = xa(), r = wf, i.exports = s(n, r);
|
|
9892
9898
|
})(function(s, n) {
|
|
9893
9899
|
return n.__esModule && n.default && (n = n.default), s.Proj = {}, s.Proj._isProj4Obj = function(r) {
|
|
9894
9900
|
return typeof r.inverse < "u" && typeof r.forward < "u";
|
|
@@ -10031,11 +10037,11 @@ const Wa = new M.Proj.CRS(
|
|
|
10031
10037
|
SATELITE_NO_ANNO: "img_no_anno"
|
|
10032
10038
|
},
|
|
10033
10039
|
style: {
|
|
10034
|
-
NORMAL: "
|
|
10035
|
-
GRAY: "
|
|
10036
|
-
DARK: "
|
|
10037
|
-
BROWN: "
|
|
10038
|
-
BLUR: "
|
|
10040
|
+
NORMAL: "normal",
|
|
10041
|
+
GRAY: "gray",
|
|
10042
|
+
DARK: "dark",
|
|
10043
|
+
BROWN: "brown",
|
|
10044
|
+
BLUR: "blur"
|
|
10039
10045
|
},
|
|
10040
10046
|
options: {
|
|
10041
10047
|
provide: "tdt",
|
|
@@ -10386,6 +10392,87 @@ function Tf(i) {
|
|
|
10386
10392
|
}
|
|
10387
10393
|
.${i}-statusbar-item + .${i}-statusbar-item {
|
|
10388
10394
|
margin-left: 10px
|
|
10395
|
+
}
|
|
10396
|
+
.${i}-eaglemap {
|
|
10397
|
+
border: solid rgba(13, 59, 54, 0.85) 1px;
|
|
10398
|
+
box-shadow: 0 1px 7px #999;
|
|
10399
|
+
background: rgba(13, 59, 54, 0.85);
|
|
10400
|
+
-moz-border-radius: 8px;
|
|
10401
|
+
-webkit-border-radius: 8px;
|
|
10402
|
+
border-radius: 3px;
|
|
10403
|
+
transition: all 0.5s;
|
|
10404
|
+
}
|
|
10405
|
+
|
|
10406
|
+
.${i}-eaglemap a {
|
|
10407
|
+
background-color: rgba(13, 59, 54, 0.85);
|
|
10408
|
+
background-position: -1px -1px;
|
|
10409
|
+
background-repeat: no-repeat;
|
|
10410
|
+
display: block;
|
|
10411
|
+
outline: none;
|
|
10412
|
+
z-index: 99999;
|
|
10413
|
+
transition: all 0.2s;
|
|
10414
|
+
}
|
|
10415
|
+
|
|
10416
|
+
.${i}-eaglemap a.minimized {
|
|
10417
|
+
-webkit-transform: rotate(180deg);
|
|
10418
|
+
transform: rotate(180deg);
|
|
10419
|
+
}
|
|
10420
|
+
|
|
10421
|
+
.${i}-eaglemap a.minimized-bottomright {
|
|
10422
|
+
-webkit-transform: rotate(180deg);
|
|
10423
|
+
transform: rotate(180deg);
|
|
10424
|
+
border-radius: 0px;
|
|
10425
|
+
}
|
|
10426
|
+
|
|
10427
|
+
.${i}-eaglemap a.minimized-topleft {
|
|
10428
|
+
-webkit-transform: rotate(0deg);
|
|
10429
|
+
transform: rotate(0deg);
|
|
10430
|
+
border-radius: 0px;
|
|
10431
|
+
}
|
|
10432
|
+
|
|
10433
|
+
.${i}-eaglemap a.minimized-bottomleft {
|
|
10434
|
+
-webkit-transform: rotate(270deg);
|
|
10435
|
+
transform: rotate(270deg);
|
|
10436
|
+
border-radius: 0px;
|
|
10437
|
+
}
|
|
10438
|
+
|
|
10439
|
+
.${i}-eaglemap a.minimized-topright {
|
|
10440
|
+
-webkit-transform: rotate(90deg);
|
|
10441
|
+
transform: rotate(90deg);
|
|
10442
|
+
border-radius: 0px;
|
|
10443
|
+
}
|
|
10444
|
+
|
|
10445
|
+
.${i}-eaglemap-toggle-display {
|
|
10446
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAMdJREFUOE/V0zEOQVEQheH/hMQqVDahREMreonKApCgUYkE67ANOhWJxga0WoXqyEuehBeP+0Lj1iffzNzMiB89/cjhTyDbOSAv6Ro6+svRbLeALtCUdElitgvJImnQFigDO6Ah6XzHbJeAiaT2Y4E0aAYM4+AeqEeY7SKwBk6Sqh+hKGB7Cozj8BHoACsg6mgTDMXYAJi/+PBsUIxFo1QSWDbI9hLofdWR7QXQT9mjsI5s14DRm2U8SHoq8ie3FnpfQQuZFbsB4idCE9J/7MkAAAAASUVORK5CYII=');
|
|
10447
|
+
background-size: cover;
|
|
10448
|
+
position: absolute;
|
|
10449
|
+
border-radius: 3px 0px 0px 0px;
|
|
10450
|
+
}
|
|
10451
|
+
|
|
10452
|
+
.${i}-eaglemap-toggle-display-bottomright {
|
|
10453
|
+
bottom: 0;
|
|
10454
|
+
right: 0;
|
|
10455
|
+
}
|
|
10456
|
+
|
|
10457
|
+
.${i}-eaglemap-toggle-display-topleft {
|
|
10458
|
+
top: 0;
|
|
10459
|
+
left: 0;
|
|
10460
|
+
-webkit-transform: rotate(180deg);
|
|
10461
|
+
transform: rotate(180deg);
|
|
10462
|
+
}
|
|
10463
|
+
|
|
10464
|
+
.${i}-eaglemap-toggle-display-bottomleft {
|
|
10465
|
+
bottom: 0;
|
|
10466
|
+
left: 0;
|
|
10467
|
+
-webkit-transform: rotate(90deg);
|
|
10468
|
+
transform: rotate(90deg);
|
|
10469
|
+
}
|
|
10470
|
+
|
|
10471
|
+
.${i}-eaglemap-toggle-display-topright {
|
|
10472
|
+
top: 0;
|
|
10473
|
+
right: 0;
|
|
10474
|
+
-webkit-transform: rotate(270deg);
|
|
10475
|
+
transform: rotate(270deg);
|
|
10389
10476
|
}`, n.appendChild(s);
|
|
10390
10477
|
}
|
|
10391
10478
|
((i) => {
|
|
@@ -10406,7 +10493,7 @@ function Tf(i) {
|
|
|
10406
10493
|
},
|
|
10407
10494
|
initialize(n, r = {}, o) {
|
|
10408
10495
|
var l;
|
|
10409
|
-
if (typeof n == "string" && (n = document.
|
|
10496
|
+
if (typeof n == "string" && (n = document.getElementById(n)), !n instanceof HTMLElement || !n.clientWidth || !n.clientHeight)
|
|
10410
10497
|
throw new Error("地图容器不存在或元素尺寸为0");
|
|
10411
10498
|
this.lang = typeof r.lang == "string" ? r.lang : "zh_CN", this.clsPrefix = typeof r.clsPrefix == "string" ? r.clsPrefix : "gis2d", Tf(this.clsPrefix), M.Util.setOptions(this, r), M.Control.Zoom.mergeOptions({
|
|
10412
10499
|
position: ((l = this.options.zoomControl) == null ? void 0 : l.position) || "topleft",
|
|
@@ -10425,7 +10512,7 @@ function Tf(i) {
|
|
|
10425
10512
|
this
|
|
10426
10513
|
), r.debug ? (document.onselectstart = () => r.debug.allowSelect, n.oncontextmenu = () => r.debug.allowContextmenu, document.onkeydown = function(f) {
|
|
10427
10514
|
if (f && f.keyCode === 123) return r.debug.allowDevtool;
|
|
10428
|
-
}) : (document.onkeydown = function(f) {
|
|
10515
|
+
}) : process.env.NODE_ENV !== "development" && (document.onkeydown = function(f) {
|
|
10429
10516
|
if (f && f.keyCode === 123) return !1;
|
|
10430
10517
|
}, n.oncontextmenu = () => !1), i[o || "$m"] = this;
|
|
10431
10518
|
},
|
|
@@ -10434,14 +10521,14 @@ function Tf(i) {
|
|
|
10434
10521
|
},
|
|
10435
10522
|
setCursor(n = "default") {
|
|
10436
10523
|
const r = this.getContainer();
|
|
10437
|
-
["auto", "pointer", "crosshair", "move", "text", "wait", "help", "grab", "default"].includes(n) ? r.style.cursor = n : r.style.cursor = typeof n == "string" ? `url(${"./images/cursor/" + n + ".cur"}), auto` : `url(${n}), auto`;
|
|
10524
|
+
["auto", "pointer", "crosshair", "move", "text", "wait", "help", "grab", "default"].includes(n) ? r.style.cursor = `${n}` : r.style.cursor = typeof n == "string" ? `url(${"./images/cursor/" + n + ".cur"}), auto` : `url(${n}), auto`;
|
|
10438
10525
|
},
|
|
10439
10526
|
flyTo(n, r = 0, o = { animate: !1 }) {
|
|
10440
10527
|
n instanceof M.Marker ? (n = n._latlng, M.Map.prototype.flyTo.call(this, n, r || this.getZoom(), o)) : n instanceof M.Path || n instanceof M.FeatureGroup ? (n = n.getBounds(), M.Map.prototype.flyToBounds.call(this, n, o)) : M.Map.prototype.flyTo.call(this, n, r || this.getZoom(), o);
|
|
10441
10528
|
}
|
|
10442
|
-
}), s.StatusBar =
|
|
10529
|
+
}), s.StatusBar = wa, s.CRS.BaiDu = Wa, s.WebMercatorTiledLayer = bf, s.Knob = Tr, s.EagleMap = ba, s.LayerManager = Af, s.ImageOverlay.Rotated = Lf, s.Text = Pf, s.VertexMarkers = La, s.Measurement = Ne, i.L = s;
|
|
10443
10530
|
})(window);
|
|
10444
|
-
function
|
|
10531
|
+
function zs() {
|
|
10445
10532
|
if (typeof globalThis < "u")
|
|
10446
10533
|
return globalThis;
|
|
10447
10534
|
if (typeof self < "u")
|
|
@@ -10452,22 +10539,22 @@ function ks() {
|
|
|
10452
10539
|
return global;
|
|
10453
10540
|
throw new Error("未找到全局对象");
|
|
10454
10541
|
}
|
|
10455
|
-
const
|
|
10456
|
-
|
|
10542
|
+
const Gs = function(i, s = {}) {
|
|
10543
|
+
Gs.installed || (zs().Gis = yr);
|
|
10457
10544
|
};
|
|
10458
|
-
|
|
10545
|
+
zs().Vue && Gs(zs().Vue);
|
|
10459
10546
|
const Ef = {
|
|
10460
|
-
install:
|
|
10547
|
+
install: Gs
|
|
10461
10548
|
};
|
|
10462
10549
|
export {
|
|
10463
10550
|
Wa as BaiDuCRS,
|
|
10464
10551
|
Cr as Draw,
|
|
10465
|
-
|
|
10552
|
+
ba as EagleMap,
|
|
10466
10553
|
Tr as Knob,
|
|
10467
10554
|
Af as LayerManager,
|
|
10468
10555
|
Ne as MeasureMent,
|
|
10469
10556
|
Lf as RotatedImageOverLayer,
|
|
10470
|
-
|
|
10557
|
+
wa as StatusBar,
|
|
10471
10558
|
Pf as TextLayer,
|
|
10472
10559
|
La as VertexMarker,
|
|
10473
10560
|
bf as WebMercatorTiledLayer,
|