gis-leaflet-helper 2.1.23 → 2.1.25
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 +1053 -955
- 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 Ps } 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];
|
|
@@ -39,14 +39,14 @@ function Lr(i) {
|
|
|
39
39
|
});
|
|
40
40
|
}), n;
|
|
41
41
|
}
|
|
42
|
-
var
|
|
42
|
+
var Se = { exports: {} };
|
|
43
43
|
/* @preserve
|
|
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) {
|
|
@@ -158,7 +158,7 @@ function ba() {
|
|
|
158
158
|
function dt(t) {
|
|
159
159
|
t && Bt.call(window, t);
|
|
160
160
|
}
|
|
161
|
-
var
|
|
161
|
+
var je = {
|
|
162
162
|
__proto__: null,
|
|
163
163
|
extend: o,
|
|
164
164
|
create: l,
|
|
@@ -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, He = {
|
|
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,18 +888,18 @@ 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
|
};
|
|
895
|
-
function
|
|
895
|
+
function We(t, e, a, h) {
|
|
896
896
|
if (k(t)) {
|
|
897
897
|
this._a = t[0], this._b = t[1], this._c = t[2], this._d = t[3];
|
|
898
898
|
return;
|
|
899
899
|
}
|
|
900
900
|
this._a = t, this._b = e, this._c = a, this._d = h;
|
|
901
901
|
}
|
|
902
|
-
|
|
902
|
+
We.prototype = {
|
|
903
903
|
// @method transform(point: Point, scale?: Number): Point
|
|
904
904
|
// Returns a transformed point, optionally multiplied by the given scale.
|
|
905
905
|
// Only accepts actual `L.Point` instances, not arrays.
|
|
@@ -921,22 +921,22 @@ function ba() {
|
|
|
921
921
|
}
|
|
922
922
|
};
|
|
923
923
|
function zi(t, e, a, h) {
|
|
924
|
-
return new
|
|
924
|
+
return new We(t, e, a, h);
|
|
925
925
|
}
|
|
926
|
-
var
|
|
926
|
+
var $e = o({}, Yt, {
|
|
927
927
|
code: "EPSG:3857",
|
|
928
|
-
projection:
|
|
928
|
+
projection: He,
|
|
929
929
|
transformation: function() {
|
|
930
|
-
var t = 0.5 / (Math.PI *
|
|
930
|
+
var t = 0.5 / (Math.PI * He.R);
|
|
931
931
|
return zi(t, 0.5, -t, 0.5);
|
|
932
932
|
}()
|
|
933
|
-
}), Va = o({},
|
|
933
|
+
}), Va = o({}, $e, {
|
|
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
|
|
948
|
+
var Ve = document.documentElement.style, ce = "ActiveXObject" in window, Qa = ce && !document.addEventListener, Ws = "msLaunchUri" in navigator && !("documentMode" in document), Qe = 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), Xe = !!window.opera, Qs = !Ws && Rt("chrome"), Xs = Rt("gecko") && !Qe && !Xe && !ce, Ya = !Qs && Rt("safari"), Ks = Rt("phantom"), Ys = "OTransition" in Ve, Ja = navigator.platform.indexOf("Win") === 0, Js = ce && "transition" in Ve, Ke = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !Vs, tn = "MozPerspective" in Ve, to = !window.L_DISABLE_3D && (Js || Ke || tn) && !Ys && !Ks, Ni = typeof orientation < "u" || Rt("mobile"), io = Ni && Qe, eo = Ni && Ke, en = !window.PointerEvent && window.MSPointerEvent, sn = !!(window.PointerEvent || en), nn = "ontouchstart" in window || !!window.TouchEvent, so = !window.L_NO_TOUCH && (nn || sn), no = Ni && Xe, 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,10 +959,10 @@ function ba() {
|
|
|
959
959
|
return t;
|
|
960
960
|
}(), ho = function() {
|
|
961
961
|
return !!document.createElement("canvas").getContext;
|
|
962
|
-
}(),
|
|
962
|
+
}(), Ye = !!(document.createElementNS && js("svg").createSVGRect), lo = !!Ye && 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
|
-
}(), uo = !
|
|
965
|
+
}(), uo = !Ye && function() {
|
|
966
966
|
try {
|
|
967
967
|
var t = document.createElement("div");
|
|
968
968
|
t.innerHTML = '<v:shape adj="1"/>';
|
|
@@ -976,61 +976,61 @@ function ba() {
|
|
|
976
976
|
return navigator.userAgent.toLowerCase().indexOf(t) >= 0;
|
|
977
977
|
}
|
|
978
978
|
var N = {
|
|
979
|
-
ie:
|
|
979
|
+
ie: ce,
|
|
980
980
|
ielt9: Qa,
|
|
981
|
-
edge:
|
|
982
|
-
webkit:
|
|
983
|
-
android:
|
|
984
|
-
android23:
|
|
981
|
+
edge: Ws,
|
|
982
|
+
webkit: Qe,
|
|
983
|
+
android: $s,
|
|
984
|
+
android23: Vs,
|
|
985
985
|
androidStock: Ka,
|
|
986
|
-
opera:
|
|
987
|
-
chrome:
|
|
988
|
-
gecko:
|
|
986
|
+
opera: Xe,
|
|
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:
|
|
994
|
-
webkit3d:
|
|
995
|
-
gecko3d:
|
|
993
|
+
ie3d: Js,
|
|
994
|
+
webkit3d: Ke,
|
|
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,
|
|
1007
1007
|
passiveEvents: ro,
|
|
1008
1008
|
canvas: ho,
|
|
1009
|
-
svg:
|
|
1009
|
+
svg: Ye,
|
|
1010
1010
|
vml: uo,
|
|
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", Je = {
|
|
1015
|
+
touchstart: an,
|
|
1016
|
+
touchmove: on,
|
|
1017
|
+
touchend: rn,
|
|
1018
|
+
touchcancel: hn
|
|
1019
|
+
}, ln = {
|
|
1020
1020
|
touchstart: yo,
|
|
1021
|
-
touchmove:
|
|
1022
|
-
touchend:
|
|
1023
|
-
touchcancel:
|
|
1024
|
-
}, fi = {},
|
|
1021
|
+
touchmove: fe,
|
|
1022
|
+
touchend: fe,
|
|
1023
|
+
touchcancel: fe
|
|
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(Je[e], a, !1), a) : (console.warn("wrong event specified:", e), p);
|
|
1027
1027
|
}
|
|
1028
1028
|
function mo(t, e, a) {
|
|
1029
|
-
if (!
|
|
1029
|
+
if (!Je[e]) {
|
|
1030
1030
|
console.warn("wrong event specified:", e);
|
|
1031
1031
|
return;
|
|
1032
1032
|
}
|
|
1033
|
-
t.removeEventListener(
|
|
1033
|
+
t.removeEventListener(Je[e], a, !1);
|
|
1034
1034
|
}
|
|
1035
1035
|
function po(t) {
|
|
1036
1036
|
fi[t.pointerId] = t;
|
|
@@ -1038,13 +1038,13 @@ 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
|
-
function
|
|
1047
|
+
function fe(t, e) {
|
|
1048
1048
|
if (e.pointerType !== (e.MSPOINTER_TYPE_MOUSE || "mouse")) {
|
|
1049
1049
|
e.touches = [];
|
|
1050
1050
|
for (var a in fi)
|
|
@@ -1053,7 +1053,7 @@ function ba() {
|
|
|
1053
1053
|
}
|
|
1054
1054
|
}
|
|
1055
1055
|
function yo(t, e) {
|
|
1056
|
-
e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && _t(e),
|
|
1056
|
+
e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && _t(e), fe(t, e);
|
|
1057
1057
|
}
|
|
1058
1058
|
function Mo(t) {
|
|
1059
1059
|
var e = {}, a, h;
|
|
@@ -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) {
|
|
@@ -1090,12 +1090,12 @@ function ba() {
|
|
|
1090
1090
|
function bo(t, e) {
|
|
1091
1091
|
t.removeEventListener("dblclick", e.dblclick), t.removeEventListener("click", e.simDblclick);
|
|
1092
1092
|
}
|
|
1093
|
-
var
|
|
1093
|
+
var ts = me(
|
|
1094
1094
|
["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]
|
|
1095
|
-
), ki =
|
|
1095
|
+
), ki = me(
|
|
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) {
|
|
@@ -1114,7 +1114,7 @@ function ba() {
|
|
|
1114
1114
|
var e = t.parentNode;
|
|
1115
1115
|
e && e.removeChild(t);
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1117
|
+
function de(t) {
|
|
1118
1118
|
for (; t.firstChild; )
|
|
1119
1119
|
t.removeChild(t.firstChild);
|
|
1120
1120
|
}
|
|
@@ -1126,28 +1126,28 @@ function ba() {
|
|
|
1126
1126
|
var e = t.parentNode;
|
|
1127
1127
|
e && e.firstChild !== t && e.insertBefore(t, e.firstChild);
|
|
1128
1128
|
}
|
|
1129
|
-
function
|
|
1129
|
+
function is(t, e) {
|
|
1130
1130
|
if (t.classList !== void 0)
|
|
1131
1131
|
return t.classList.contains(e);
|
|
1132
|
-
var a =
|
|
1132
|
+
var a = _e(t);
|
|
1133
1133
|
return a.length > 0 && new RegExp("(^|\\s)" + e + "(\\s|$)").test(a);
|
|
1134
1134
|
}
|
|
1135
1135
|
function q(t, e) {
|
|
1136
1136
|
if (t.classList !== void 0)
|
|
1137
1137
|
for (var a = A(e), h = 0, u = a.length; h < u; h++)
|
|
1138
1138
|
t.classList.add(a[h]);
|
|
1139
|
-
else if (!
|
|
1140
|
-
var _ =
|
|
1141
|
-
|
|
1139
|
+
else if (!is(t, e)) {
|
|
1140
|
+
var _ = _e(t);
|
|
1141
|
+
es(t, (_ ? _ + " " : "") + e);
|
|
1142
1142
|
}
|
|
1143
1143
|
}
|
|
1144
1144
|
function at(t, e) {
|
|
1145
|
-
t.classList !== void 0 ? t.classList.remove(e) :
|
|
1145
|
+
t.classList !== void 0 ? t.classList.remove(e) : es(t, b((" " + _e(t) + " ").replace(" " + e + " ", " ")));
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1147
|
+
function es(t, e) {
|
|
1148
1148
|
t.className.baseVal === void 0 ? t.className = e : t.className.baseVal = e;
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function _e(t) {
|
|
1151
1151
|
return t.correspondingElement && (t = t.correspondingElement), t.className.baseVal === void 0 ? t.className : t.className.baseVal;
|
|
1152
1152
|
}
|
|
1153
1153
|
function Et(t, e) {
|
|
@@ -1163,7 +1163,7 @@ function ba() {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
e = Math.round(e * 100), a ? (a.Enabled = e !== 100, a.Opacity = e) : t.style.filter += " progid:" + h + "(opacity=" + e + ")";
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1166
|
+
function me(t) {
|
|
1167
1167
|
for (var e = document.documentElement.style, a = 0; a < t.length; a++)
|
|
1168
1168
|
if (t[a] in e)
|
|
1169
1169
|
return t[a];
|
|
@@ -1171,7 +1171,7 @@ function ba() {
|
|
|
1171
1171
|
}
|
|
1172
1172
|
function ai(t, e, a) {
|
|
1173
1173
|
var h = e || new F(0, 0);
|
|
1174
|
-
t.style[
|
|
1174
|
+
t.style[ts] = (N.ie3d ? "translate(" + h.x + "px," + h.y + "px)" : "translate3d(" + h.x + "px," + h.y + "px,0)") + (a ? " scale(" + a + ")" : "");
|
|
1175
1175
|
}
|
|
1176
1176
|
function ht(t, e) {
|
|
1177
1177
|
t._leaflet_pos = e, N.any3d ? ai(t, e) : (t.style.left = e.x + "px", t.style.top = e.y + "px");
|
|
@@ -1179,7 +1179,7 @@ function ba() {
|
|
|
1179
1179
|
function oi(t) {
|
|
1180
1180
|
return t._leaflet_pos || new F(0, 0);
|
|
1181
1181
|
}
|
|
1182
|
-
var Ri, Di,
|
|
1182
|
+
var Ri, Di, ss;
|
|
1183
1183
|
if ("onselectstart" in document)
|
|
1184
1184
|
Ri = function() {
|
|
1185
1185
|
G(window, "selectstart", _t);
|
|
@@ -1187,40 +1187,40 @@ function ba() {
|
|
|
1187
1187
|
J(window, "selectstart", _t);
|
|
1188
1188
|
};
|
|
1189
1189
|
else {
|
|
1190
|
-
var Zi =
|
|
1190
|
+
var Zi = me(
|
|
1191
1191
|
["userSelect", "WebkitUserSelect", "OUserSelect", "MozUserSelect", "msUserSelect"]
|
|
1192
1192
|
);
|
|
1193
1193
|
Ri = function() {
|
|
1194
1194
|
if (Zi) {
|
|
1195
1195
|
var t = document.documentElement.style;
|
|
1196
|
-
|
|
1196
|
+
ss = t[Zi], t[Zi] = "none";
|
|
1197
1197
|
}
|
|
1198
1198
|
}, Di = function() {
|
|
1199
|
-
Zi && (document.documentElement.style[Zi] =
|
|
1199
|
+
Zi && (document.documentElement.style[Zi] = ss, ss = void 0);
|
|
1200
1200
|
};
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function ns() {
|
|
1203
1203
|
G(window, "dragstart", _t);
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1205
|
+
function as() {
|
|
1206
1206
|
J(window, "dragstart", _t);
|
|
1207
1207
|
}
|
|
1208
|
-
var
|
|
1209
|
-
function
|
|
1208
|
+
var pe, os;
|
|
1209
|
+
function rs(t) {
|
|
1210
1210
|
for (; t.tabIndex === -1; )
|
|
1211
1211
|
t = t.parentNode;
|
|
1212
|
-
t.style && (
|
|
1212
|
+
t.style && (ge(), pe = t, os = t.style.outlineStyle, t.style.outlineStyle = "none", G(window, "keydown", ge));
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1215
|
-
|
|
1214
|
+
function ge() {
|
|
1215
|
+
pe && (pe.style.outlineStyle = os, pe = void 0, os = void 0, J(window, "keydown", ge));
|
|
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);
|
|
1221
1221
|
return t;
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1223
|
+
function hs(t) {
|
|
1224
1224
|
var e = t.getBoundingClientRect();
|
|
1225
1225
|
return {
|
|
1226
1226
|
x: e.width / t.offsetWidth || 1,
|
|
@@ -1230,23 +1230,23 @@ function ba() {
|
|
|
1230
1230
|
}
|
|
1231
1231
|
var Po = {
|
|
1232
1232
|
__proto__: null,
|
|
1233
|
-
TRANSFORM:
|
|
1233
|
+
TRANSFORM: ts,
|
|
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,
|
|
1240
|
-
empty:
|
|
1240
|
+
empty: de,
|
|
1241
1241
|
toFront: di,
|
|
1242
1242
|
toBack: _i,
|
|
1243
|
-
hasClass:
|
|
1243
|
+
hasClass: is,
|
|
1244
1244
|
addClass: q,
|
|
1245
1245
|
removeClass: at,
|
|
1246
|
-
setClass:
|
|
1247
|
-
getClass:
|
|
1246
|
+
setClass: es,
|
|
1247
|
+
getClass: _e,
|
|
1248
1248
|
setOpacity: Et,
|
|
1249
|
-
testProp:
|
|
1249
|
+
testProp: me,
|
|
1250
1250
|
setTransform: ai,
|
|
1251
1251
|
setPosition: ht,
|
|
1252
1252
|
getPosition: oi,
|
|
@@ -1256,74 +1256,74 @@ function ba() {
|
|
|
1256
1256
|
get enableTextSelection() {
|
|
1257
1257
|
return Di;
|
|
1258
1258
|
},
|
|
1259
|
-
disableImageDrag:
|
|
1260
|
-
enableImageDrag:
|
|
1261
|
-
preventOutline:
|
|
1262
|
-
restoreOutline:
|
|
1263
|
-
getSizedParentNode:
|
|
1264
|
-
getScale:
|
|
1259
|
+
disableImageDrag: ns,
|
|
1260
|
+
enableImageDrag: as,
|
|
1261
|
+
preventOutline: rs,
|
|
1262
|
+
restoreOutline: ge,
|
|
1263
|
+
getSizedParentNode: _n,
|
|
1264
|
+
getScale: hs
|
|
1265
1265
|
};
|
|
1266
1266
|
function G(t, e, a, h) {
|
|
1267
1267
|
if (e && typeof e == "object")
|
|
1268
1268
|
for (var u in e)
|
|
1269
|
-
|
|
1269
|
+
us(t, u, e[u], a);
|
|
1270
1270
|
else {
|
|
1271
1271
|
e = A(e);
|
|
1272
1272
|
for (var _ = 0, g = e.length; _ < g; _++)
|
|
1273
|
-
|
|
1273
|
+
us(t, e[_], a, h);
|
|
1274
1274
|
}
|
|
1275
1275
|
return this;
|
|
1276
1276
|
}
|
|
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
|
+
cs(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
|
|
1289
1289
|
for (var _ = 0, g = e.length; _ < g; _++)
|
|
1290
|
-
|
|
1290
|
+
cs(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
|
-
(!e || e(h)) &&
|
|
1296
|
+
(!e || e(h)) && cs(t, h, null, null, a);
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
|
-
var
|
|
1299
|
+
var ls = {
|
|
1300
1300
|
mouseenter: "mouseover",
|
|
1301
1301
|
mouseleave: "mouseout",
|
|
1302
1302
|
wheel: !("onwheel" in window) && "mousewheel"
|
|
1303
1303
|
};
|
|
1304
|
-
function
|
|
1304
|
+
function us(t, e, a, h) {
|
|
1305
1305
|
var u = e + d(a) + (h ? "_" + d(h) : "");
|
|
1306
1306
|
if (t[Dt] && t[Dt][u])
|
|
1307
1307
|
return this;
|
|
1308
1308
|
var _ = function(x) {
|
|
1309
1309
|
return a.call(h || t, x || window.event);
|
|
1310
1310
|
}, g = _;
|
|
1311
|
-
!N.touchNative && N.pointer && e.indexOf("touch") === 0 ? _ = _o(t, e, _) : N.touch && e === "dblclick" ? _ = wo(t, _) : "addEventListener" in t ? e === "touchstart" || e === "touchmove" || e === "wheel" || e === "mousewheel" ? t.addEventListener(
|
|
1312
|
-
x = x || window.event,
|
|
1313
|
-
}, t.addEventListener(
|
|
1311
|
+
!N.touchNative && N.pointer && e.indexOf("touch") === 0 ? _ = _o(t, e, _) : N.touch && e === "dblclick" ? _ = wo(t, _) : "addEventListener" in t ? e === "touchstart" || e === "touchmove" || e === "wheel" || e === "mousewheel" ? t.addEventListener(ls[e] || e, _, N.passiveEvents ? { passive: !1 } : !1) : e === "mouseenter" || e === "mouseleave" ? (_ = function(x) {
|
|
1312
|
+
x = x || window.event, ds(t, x) && g(x);
|
|
1313
|
+
}, t.addEventListener(ls[e], _, !1)) : t.addEventListener(e, g, !1) : t.attachEvent("on" + e, _), t[Dt] = t[Dt] || {}, t[Dt][u] = _;
|
|
1314
1314
|
}
|
|
1315
|
-
function
|
|
1315
|
+
function cs(t, e, a, h, u) {
|
|
1316
1316
|
u = u || e + d(a) + (h ? "_" + d(h) : "");
|
|
1317
1317
|
var _ = t[Dt] && t[Dt][u];
|
|
1318
1318
|
if (!_)
|
|
1319
1319
|
return this;
|
|
1320
|
-
!N.touchNative && N.pointer && e.indexOf("touch") === 0 ? mo(t, e, _) : N.touch && e === "dblclick" ? bo(t, _) : "removeEventListener" in t ? t.removeEventListener(
|
|
1320
|
+
!N.touchNative && N.pointer && e.indexOf("touch") === 0 ? mo(t, e, _) : N.touch && e === "dblclick" ? bo(t, _) : "removeEventListener" in t ? t.removeEventListener(ls[e] || e, _, !1) : t.detachEvent("on" + e, _), t[Dt][u] = null;
|
|
1321
1321
|
}
|
|
1322
1322
|
function ri(t) {
|
|
1323
1323
|
return t.stopPropagation ? t.stopPropagation() : t.originalEvent ? t.originalEvent._stopped = !0 : t.cancelBubble = !0, this;
|
|
1324
1324
|
}
|
|
1325
|
-
function
|
|
1326
|
-
return
|
|
1325
|
+
function fs(t) {
|
|
1326
|
+
return us(t, "wheel", ri), this;
|
|
1327
1327
|
}
|
|
1328
1328
|
function Fi(t) {
|
|
1329
1329
|
return G(t, "mousedown touchstart dblclick contextmenu", ri), t._leaflet_disable_click = !0, this;
|
|
@@ -1334,17 +1334,17 @@ 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
|
-
var a =
|
|
1347
|
+
var a = hs(e), h = a.boundingClientRect;
|
|
1348
1348
|
return new F(
|
|
1349
1349
|
// offset.left/top values are in page scale (like clientX/Y),
|
|
1350
1350
|
// whereas clientLeft/Top (border width) values are the original values (before CSS scale applies).
|
|
@@ -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 : (
|
|
@@ -1380,7 +1380,7 @@ function ba() {
|
|
|
1380
1380
|
)
|
|
1381
1381
|
);
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1383
|
+
function ds(t, e) {
|
|
1384
1384
|
var a = e.relatedTarget;
|
|
1385
1385
|
if (!a)
|
|
1386
1386
|
return !0;
|
|
@@ -1397,17 +1397,17 @@ function ba() {
|
|
|
1397
1397
|
on: G,
|
|
1398
1398
|
off: J,
|
|
1399
1399
|
stopPropagation: ri,
|
|
1400
|
-
disableScrollPropagation:
|
|
1400
|
+
disableScrollPropagation: fs,
|
|
1401
1401
|
disableClickPropagation: Fi,
|
|
1402
1402
|
preventDefault: _t,
|
|
1403
1403
|
stop: hi,
|
|
1404
|
-
getPropagationPath:
|
|
1405
|
-
getMousePosition:
|
|
1406
|
-
getWheelDelta:
|
|
1407
|
-
isExternalTarget:
|
|
1404
|
+
getPropagationPath: pn,
|
|
1405
|
+
getMousePosition: gn,
|
|
1406
|
+
getWheelDelta: vn,
|
|
1407
|
+
isExternalTarget: ds,
|
|
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
|
|
@@ -1444,7 +1444,7 @@ function ba() {
|
|
|
1444
1444
|
// @option crs: CRS = L.CRS.EPSG3857
|
|
1445
1445
|
// The [Coordinate Reference System](#crs) to use. Don't change this if you're not
|
|
1446
1446
|
// sure what it means.
|
|
1447
|
-
crs:
|
|
1447
|
+
crs: $e,
|
|
1448
1448
|
// @option center: LatLng = undefined
|
|
1449
1449
|
// Initial geographic center of the map
|
|
1450
1450
|
center: void 0,
|
|
@@ -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
|
|
1622
|
+
var Ee = lt ? -1 : 1, mr = lt ? w : x, pr = w * w - x * x + Ee * R * R * T * T, gr = 2 * mr * R * T, Ls = pr / gr, Jn = Math.sqrt(Ls * Ls + 1) - Ls, 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,
|
|
1647
|
-
lt <= 1 ? (this._flyToFrame = nt(
|
|
1648
|
-
this.unproject(h.add(u.subtract(h).multiplyBy(cr(
|
|
1649
|
-
this.getScaleZoom(x / Mi(
|
|
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, Ee = fr(lt) * Kn;
|
|
1647
|
+
lt <= 1 ? (this._flyToFrame = nt(Yn, this), this._move(
|
|
1648
|
+
this.unproject(h.add(u.subtract(h).multiplyBy(cr(Ee) / T)), g),
|
|
1649
|
+
this.getScaleZoom(x / Mi(Ee), 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.");
|
|
@@ -2105,7 +2105,7 @@ function ba() {
|
|
|
2105
2105
|
g = !0;
|
|
2106
2106
|
break;
|
|
2107
2107
|
}
|
|
2108
|
-
if (h && h.listens(e, !0) && (u && !
|
|
2108
|
+
if (h && h.listens(e, !0) && (u && !ds(_, t) || (a.push(h), u)) || _ === this._container)
|
|
2109
2109
|
break;
|
|
2110
2110
|
_ = _.parentNode;
|
|
2111
2111
|
}
|
|
@@ -2122,7 +2122,7 @@ function ba() {
|
|
|
2122
2122
|
var e = t.target || t.srcElement;
|
|
2123
2123
|
if (!(!this._loaded || e._leaflet_disable_events || t.type === "click" && this._isClickDisabled(e))) {
|
|
2124
2124
|
var a = t.type;
|
|
2125
|
-
a === "mousedown" &&
|
|
2125
|
+
a === "mousedown" && rs(e), this._fireDOMEvent(t, a);
|
|
2126
2126
|
}
|
|
2127
2127
|
},
|
|
2128
2128
|
_mouseEvents: ["click", "dblclick", "mouseover", "mouseout", "contextmenu"],
|
|
@@ -2245,7 +2245,7 @@ function ba() {
|
|
|
2245
2245
|
_createAnimProxy: function() {
|
|
2246
2246
|
var t = this._proxy = Q("div", "leaflet-proxy leaflet-zoom-animated");
|
|
2247
2247
|
this._panes.mapPane.appendChild(t), this.on("zoomanim", function(e) {
|
|
2248
|
-
var a =
|
|
2248
|
+
var a = ts, h = this._proxy.style[a];
|
|
2249
2249
|
ai(this._proxy, this.project(e.center, e.zoom), this.getZoomScale(e.zoom, 1)), h === this._proxy.style[a] && this._animatingZoom && this._onZoomTransitionEnd();
|
|
2250
2250
|
}, this), this.on("load moveend", this._animMoveEnd, this), this._on("unload", this._destroyAnimProxy, this);
|
|
2251
2251
|
},
|
|
@@ -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: {
|
|
@@ -2441,7 +2441,7 @@ function ba() {
|
|
|
2441
2441
|
},
|
|
2442
2442
|
_initLayout: function() {
|
|
2443
2443
|
var t = "leaflet-control-layers", e = this._container = Q("div", t), a = this.options.collapsed;
|
|
2444
|
-
e.setAttribute("aria-haspopup", !0), Fi(e),
|
|
2444
|
+
e.setAttribute("aria-haspopup", !0), Fi(e), fs(e);
|
|
2445
2445
|
var h = this._section = Q("section", t + "-list");
|
|
2446
2446
|
a && (this._map.on("click", this.collapse, this), G(e, {
|
|
2447
2447
|
mouseenter: this._expandSafely,
|
|
@@ -2475,7 +2475,7 @@ function ba() {
|
|
|
2475
2475
|
_update: function() {
|
|
2476
2476
|
if (!this._container)
|
|
2477
2477
|
return this;
|
|
2478
|
-
|
|
2478
|
+
de(this._baseLayersList), de(this._overlaysList), this._layerControlInputs = [];
|
|
2479
2479
|
var t, e, a, h, u = 0;
|
|
2480
2480
|
for (a = 0; a < this._layers.length; a++)
|
|
2481
2481
|
h = this._layers[a], this._addItem(h), e = e || h.overlay, t = t || !h.overlay, u += h.overlay ? 0 : 1;
|
|
@@ -2530,8 +2530,8 @@ function ba() {
|
|
|
2530
2530
|
});
|
|
2531
2531
|
}
|
|
2532
2532
|
}), Eo = function(t, e, a) {
|
|
2533
|
-
return new
|
|
2534
|
-
},
|
|
2533
|
+
return new Mn(t, e, a);
|
|
2534
|
+
}, _s = zt.extend({
|
|
2535
2535
|
// @section
|
|
2536
2536
|
// @aka Control.Zoom options
|
|
2537
2537
|
options: {
|
|
@@ -2592,11 +2592,11 @@ function ba() {
|
|
|
2592
2592
|
V.mergeOptions({
|
|
2593
2593
|
zoomControl: !0
|
|
2594
2594
|
}), V.addInitHook(function() {
|
|
2595
|
-
this.options.zoomControl && (this.zoomControl = new
|
|
2595
|
+
this.options.zoomControl && (this.zoomControl = new _s(), this.addControl(this.zoomControl));
|
|
2596
2596
|
});
|
|
2597
2597
|
var So = function(t) {
|
|
2598
|
-
return new
|
|
2599
|
-
},
|
|
2598
|
+
return new _s(t);
|
|
2599
|
+
}, xn = zt.extend({
|
|
2600
2600
|
// @section
|
|
2601
2601
|
// @aka Control.Scale options
|
|
2602
2602
|
options: {
|
|
@@ -2649,8 +2649,8 @@ 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
|
|
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>',
|
|
2652
|
+
return new xn(t);
|
|
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>', ms = zt.extend({
|
|
2654
2654
|
// @section
|
|
2655
2655
|
// @aka Control.Attribution options
|
|
2656
2656
|
options: {
|
|
@@ -2704,12 +2704,12 @@ function ba() {
|
|
|
2704
2704
|
V.mergeOptions({
|
|
2705
2705
|
attributionControl: !0
|
|
2706
2706
|
}), V.addInitHook(function() {
|
|
2707
|
-
this.options.attributionControl && new
|
|
2707
|
+
this.options.attributionControl && new ms().addTo(this);
|
|
2708
2708
|
});
|
|
2709
2709
|
var zo = function(t) {
|
|
2710
|
-
return new
|
|
2710
|
+
return new ms(t);
|
|
2711
2711
|
};
|
|
2712
|
-
zt.Layers =
|
|
2712
|
+
zt.Layers = Mn, zt.Zoom = _s, zt.Scale = xn, zt.Attribution = ms, 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,23 +2756,23 @@ 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
|
-
if (this._enabled && (this._moved = !1, !
|
|
2767
|
+
if (this._enabled && (this._moved = !1, !is(this._element, "leaflet-zoom-anim"))) {
|
|
2768
2768
|
if (t.touches && t.touches.length !== 1) {
|
|
2769
2769
|
Jt._dragging === this && this.finishDrag();
|
|
2770
2770
|
return;
|
|
2771
2771
|
}
|
|
2772
|
-
if (!(Jt._dragging || t.shiftKey || t.which !== 1 && t.button !== 1 && !t.touches) && (Jt._dragging = this, this._preventOutline &&
|
|
2772
|
+
if (!(Jt._dragging || t.shiftKey || t.which !== 1 && t.button !== 1 && !t.touches) && (Jt._dragging = this, this._preventOutline && rs(this._element), ns(), Ri(), !this._moving)) {
|
|
2773
2773
|
this.fire("down");
|
|
2774
|
-
var e = t.touches ? t.touches[0] : t, a =
|
|
2775
|
-
this._startPoint = new F(e.clientX, e.clientY), this._startPos = oi(this._element), this._parentScale =
|
|
2774
|
+
var e = t.touches ? t.touches[0] : t, a = _n(this._element);
|
|
2775
|
+
this._startPoint = new F(e.clientX, e.clientY), this._startPos = oi(this._element), this._parentScale = hs(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);
|
|
2778
2778
|
}
|
|
@@ -2796,7 +2796,7 @@ function ba() {
|
|
|
2796
2796
|
this._enabled && this.finishDrag();
|
|
2797
2797
|
},
|
|
2798
2798
|
finishDrag: function(t) {
|
|
2799
|
-
at(document.body, "leaflet-dragging"), this._lastTarget && (at(this._lastTarget, "leaflet-drag-target"), this._lastTarget = null), J(document, "mousemove touchmove", this._onMove, this), J(document, "mouseup touchend touchcancel", this._onUp, this),
|
|
2799
|
+
at(document.body, "leaflet-dragging"), this._lastTarget && (at(this._lastTarget, "leaflet-drag-target"), this._lastTarget = null), J(document, "mousemove touchmove", this._onMove, this), J(document, "mouseup touchend touchcancel", this._onUp, this), as(), Di();
|
|
2800
2800
|
var e = this._moved && this._moving;
|
|
2801
2801
|
this._moving = !1, Jt._dragging = !1, e && this.fire("dragend", {
|
|
2802
2802
|
noInertia: t,
|
|
@@ -2804,24 +2804,24 @@ 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);
|
|
2811
2811
|
for (x = 0; x < 4; x++) {
|
|
2812
2812
|
for (R = u[x], h = [], _ = 0, I = t.length, g = I - 1; _ < I; g = _++)
|
|
2813
|
-
w = t[_], T = t[g], w._code & R ? T._code & R || (U =
|
|
2813
|
+
w = t[_], T = t[g], w._code & R ? T._code & R || (U = ve(T, w, R, e, a), U._code = li(U, e), h.push(U)) : (T._code & R && (U = ve(T, w, R, e, a), U._code = li(U, e), h.push(U)), h.push(w));
|
|
2814
2814
|
t = h;
|
|
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");
|
|
2822
2822
|
St(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
2823
2823
|
var R = $([0, 0]), U = rt(t), gt = U.getNorthWest().distanceTo(U.getSouthWest()) * U.getNorthEast().distanceTo(U.getNorthWest());
|
|
2824
|
-
gt < 1700 && (R =
|
|
2824
|
+
gt < 1700 && (R = ps(t));
|
|
2825
2825
|
var ft = t.length, Ot = [];
|
|
2826
2826
|
for (a = 0; a < ft; a++) {
|
|
2827
2827
|
var bt = $(t[a]);
|
|
@@ -2833,7 +2833,7 @@ function ba() {
|
|
|
2833
2833
|
var Mi = e.unproject(Z(I));
|
|
2834
2834
|
return $([Mi.lat + R.lat, Mi.lng + R.lng]);
|
|
2835
2835
|
}
|
|
2836
|
-
function
|
|
2836
|
+
function ps(t) {
|
|
2837
2837
|
for (var e = 0, a = 0, h = 0, u = 0; u < t.length; u++) {
|
|
2838
2838
|
var _ = $(t[u]);
|
|
2839
2839
|
e += _.lat, a += _.lng, h++;
|
|
@@ -2842,17 +2842,17 @@ function ba() {
|
|
|
2842
2842
|
}
|
|
2843
2843
|
var ko = {
|
|
2844
2844
|
__proto__: null,
|
|
2845
|
-
clipPolygon:
|
|
2846
|
-
polygonCenter:
|
|
2847
|
-
centroid:
|
|
2845
|
+
clipPolygon: bn,
|
|
2846
|
+
polygonCenter: Ln,
|
|
2847
|
+
centroid: ps
|
|
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) {
|
|
@@ -2860,35 +2860,35 @@ function ba() {
|
|
|
2860
2860
|
}
|
|
2861
2861
|
function Ro(t, e) {
|
|
2862
2862
|
var a = t.length, h = typeof Uint8Array < "u" ? Uint8Array : Array, u = new h(a);
|
|
2863
|
-
u[0] = u[a - 1] = 1,
|
|
2863
|
+
u[0] = u[a - 1] = 1, gs(t, u, e, 0, a - 1);
|
|
2864
2864
|
var _, g = [];
|
|
2865
2865
|
for (_ = 0; _ < a; _++)
|
|
2866
2866
|
u[_] && g.push(t[_]);
|
|
2867
2867
|
return g;
|
|
2868
2868
|
}
|
|
2869
|
-
function
|
|
2869
|
+
function gs(t, e, a, h, u) {
|
|
2870
2870
|
var _ = 0, g, x, w;
|
|
2871
2871
|
for (x = h + 1; x <= u - 1; x++)
|
|
2872
2872
|
w = qi(t[x], t[h], t[u], !0), w > _ && (g = x, _ = w);
|
|
2873
|
-
_ > a && (e[g] = 1,
|
|
2873
|
+
_ > a && (e[g] = 1, gs(t, e, a, h, g), gs(t, e, a, g, u));
|
|
2874
2874
|
}
|
|
2875
2875
|
function Do(t, e) {
|
|
2876
2876
|
for (var a = [t[0]], h = 1, u = 0, _ = t.length; h < _; h++)
|
|
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)
|
|
2887
2887
|
return !1;
|
|
2888
|
-
x = _ || g, w =
|
|
2888
|
+
x = _ || g, w = ve(t, e, x, a, u), T = li(w, a), x === _ ? (t = w, _ = T) : (e = w, g = T);
|
|
2889
2889
|
}
|
|
2890
2890
|
}
|
|
2891
|
-
function
|
|
2891
|
+
function ve(t, e, a, h, u) {
|
|
2892
2892
|
var _ = e.x - t.x, g = e.y - t.y, x = h.min, w = h.max, T, I;
|
|
2893
2893
|
return a & 8 ? (T = t.x + _ * (w.y - t.y) / g, I = w.y) : a & 4 ? (T = t.x + _ * (x.y - t.y) / g, I = x.y) : a & 2 ? (T = w.x, I = t.y + g * (w.x - t.x) / _) : a & 1 && (T = x.x, I = t.y + g * (x.x - t.x) / _), new F(T, I, u);
|
|
2894
2894
|
}
|
|
@@ -2907,16 +2907,16 @@ 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");
|
|
2917
2917
|
St(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
2918
2918
|
var I = $([0, 0]), R = rt(t), U = R.getNorthWest().distanceTo(R.getSouthWest()) * R.getNorthEast().distanceTo(R.getNorthWest());
|
|
2919
|
-
U < 1700 && (I =
|
|
2919
|
+
U < 1700 && (I = ps(t));
|
|
2920
2920
|
var gt = t.length, ft = [];
|
|
2921
2921
|
for (a = 0; a < gt; a++) {
|
|
2922
2922
|
var Ot = $(t[a]);
|
|
@@ -2940,17 +2940,17 @@ 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:
|
|
2947
|
-
_getEdgeIntersection:
|
|
2946
|
+
clipSegment: Cn,
|
|
2947
|
+
_getEdgeIntersection: ve,
|
|
2948
2948
|
_getBitCode: li,
|
|
2949
2949
|
_sqClosestPointOnSegment: qi,
|
|
2950
2950
|
isFlat: St,
|
|
2951
|
-
_flat:
|
|
2952
|
-
polylineCenter:
|
|
2953
|
-
},
|
|
2951
|
+
_flat: En,
|
|
2952
|
+
polylineCenter: Sn
|
|
2953
|
+
}, vs = {
|
|
2954
2954
|
project: function(t) {
|
|
2955
2955
|
return new F(t.lng, t.lat);
|
|
2956
2956
|
},
|
|
@@ -2958,7 +2958,7 @@ function ba() {
|
|
|
2958
2958
|
return new Y(t.y, t.x);
|
|
2959
2959
|
},
|
|
2960
2960
|
bounds: new it([-180, -90], [180, 90])
|
|
2961
|
-
},
|
|
2961
|
+
}, ys = {
|
|
2962
2962
|
R: 6378137,
|
|
2963
2963
|
R_MINOR: 6356752314245179e-9,
|
|
2964
2964
|
bounds: new it([-2003750834279e-5, -1549657073972e-5], [2003750834279e-5, 1876465623138e-5]),
|
|
@@ -2973,22 +2973,22 @@ function ba() {
|
|
|
2973
2973
|
}
|
|
2974
2974
|
}, Go = {
|
|
2975
2975
|
__proto__: null,
|
|
2976
|
-
LonLat:
|
|
2977
|
-
Mercator:
|
|
2978
|
-
SphericalMercator:
|
|
2976
|
+
LonLat: vs,
|
|
2977
|
+
Mercator: ys,
|
|
2978
|
+
SphericalMercator: He
|
|
2979
2979
|
}, qo = o({}, Yt, {
|
|
2980
2980
|
code: "EPSG:3395",
|
|
2981
|
-
projection:
|
|
2981
|
+
projection: ys,
|
|
2982
2982
|
transformation: function() {
|
|
2983
|
-
var t = 0.5 / (Math.PI *
|
|
2983
|
+
var t = 0.5 / (Math.PI * ys.R);
|
|
2984
2984
|
return zi(t, 0.5, -t, 0.5);
|
|
2985
2985
|
}()
|
|
2986
|
-
}),
|
|
2986
|
+
}), On = o({}, Yt, {
|
|
2987
2987
|
code: "EPSG:4326",
|
|
2988
|
-
projection:
|
|
2988
|
+
projection: vs,
|
|
2989
2989
|
transformation: zi(1 / 180, 1, -1 / 180, 0.5)
|
|
2990
2990
|
}), Uo = o({}, Wt, {
|
|
2991
|
-
projection:
|
|
2991
|
+
projection: vs,
|
|
2992
2992
|
transformation: zi(1, 0, -1, 0),
|
|
2993
2993
|
scale: function(t) {
|
|
2994
2994
|
return Math.pow(2, t);
|
|
@@ -3002,7 +3002,7 @@ function ba() {
|
|
|
3002
3002
|
},
|
|
3003
3003
|
infinite: !0
|
|
3004
3004
|
});
|
|
3005
|
-
Wt.Earth = Yt, Wt.EPSG3395 = qo, Wt.EPSG3857 =
|
|
3005
|
+
Wt.Earth = Yt, Wt.EPSG3395 = qo, Wt.EPSG3857 = $e, 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
|
},
|
|
@@ -3409,7 +3409,7 @@ function ba() {
|
|
|
3409
3409
|
_onDragEnd: function(t) {
|
|
3410
3410
|
dt(this._panRequest), delete this._oldLatLng, this._marker.fire("moveend").fire("dragend", t);
|
|
3411
3411
|
}
|
|
3412
|
-
}),
|
|
3412
|
+
}), ye = Nt.extend({
|
|
3413
3413
|
// @section
|
|
3414
3414
|
// @aka Marker options
|
|
3415
3415
|
options: {
|
|
@@ -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
|
|
@@ -3595,7 +3595,7 @@ function ba() {
|
|
|
3595
3595
|
}
|
|
3596
3596
|
});
|
|
3597
3597
|
function $o(t, e) {
|
|
3598
|
-
return new
|
|
3598
|
+
return new ye(t, e);
|
|
3599
3599
|
}
|
|
3600
3600
|
var ti = Nt.extend({
|
|
3601
3601
|
// @section
|
|
@@ -3683,7 +3683,7 @@ function ba() {
|
|
|
3683
3683
|
_clickTolerance: function() {
|
|
3684
3684
|
return (this.options.stroke ? this.options.weight / 2 : 0) + (this._renderer.options.tolerance || 0);
|
|
3685
3685
|
}
|
|
3686
|
-
}),
|
|
3686
|
+
}), Me = ti.extend({
|
|
3687
3687
|
// @section
|
|
3688
3688
|
// @aka CircleMarker options
|
|
3689
3689
|
options: {
|
|
@@ -3742,9 +3742,9 @@ function ba() {
|
|
|
3742
3742
|
}
|
|
3743
3743
|
});
|
|
3744
3744
|
function Vo(t, e) {
|
|
3745
|
-
return new
|
|
3745
|
+
return new Me(t, e);
|
|
3746
3746
|
}
|
|
3747
|
-
var
|
|
3747
|
+
var Ms = Me.extend({
|
|
3748
3748
|
initialize: function(t, e, a) {
|
|
3749
3749
|
if (typeof e == "number" && (e = o({}, a, { radius: e })), P(this, e), this._latlng = $(t), isNaN(this.options.radius))
|
|
3750
3750
|
throw new Error("Circle radius cannot be NaN");
|
|
@@ -3783,7 +3783,7 @@ function ba() {
|
|
|
3783
3783
|
}
|
|
3784
3784
|
});
|
|
3785
3785
|
function Qo(t, e, a) {
|
|
3786
|
-
return new
|
|
3786
|
+
return new Ms(t, e, a);
|
|
3787
3787
|
}
|
|
3788
3788
|
var Vt = ti.extend({
|
|
3789
3789
|
// @section
|
|
@@ -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() {
|
|
@@ -4037,8 +4037,8 @@ function ba() {
|
|
|
4037
4037
|
var _ = this.options;
|
|
4038
4038
|
if (_.filter && !_.filter(t))
|
|
4039
4039
|
return this;
|
|
4040
|
-
var g =
|
|
4041
|
-
return g ? (g.feature =
|
|
4040
|
+
var g = xe(t, _);
|
|
4041
|
+
return g ? (g.feature = Le(t), g.defaultOptions = g.options, this.resetStyle(g), _.onEachFeature && _.onEachFeature(t, g), this.addLayer(g)) : this;
|
|
4042
4042
|
},
|
|
4043
4043
|
// @method resetStyle( <Path> layer? ): this
|
|
4044
4044
|
// Resets the given vector layer's style to the original GeoJSON style, useful for resetting style after hover events.
|
|
@@ -4057,26 +4057,26 @@ function ba() {
|
|
|
4057
4057
|
t.setStyle && (typeof e == "function" && (e = e(t.feature)), t.setStyle(e));
|
|
4058
4058
|
}
|
|
4059
4059
|
});
|
|
4060
|
-
function
|
|
4061
|
-
var a = t.type === "Feature" ? t.geometry : t, h = a ? a.coordinates : null, u = [], _ = e && e.pointToLayer, g = e && e.coordsToLatLng ||
|
|
4060
|
+
function xe(t, e) {
|
|
4061
|
+
var a = t.type === "Feature" ? t.geometry : t, h = a ? a.coordinates : null, u = [], _ = e && e.pointToLayer, g = e && e.coordsToLatLng || xs, x, w, T, I;
|
|
4062
4062
|
if (!h && !a)
|
|
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":
|
|
4073
|
-
return w =
|
|
4073
|
+
return w = we(h, a.type === "LineString" ? 0 : 1, g), new Vt(w, e);
|
|
4074
4074
|
case "Polygon":
|
|
4075
4075
|
case "MultiPolygon":
|
|
4076
|
-
return w =
|
|
4076
|
+
return w = we(h, a.type === "Polygon" ? 1 : 2, g), new gi(w, e);
|
|
4077
4077
|
case "GeometryCollection":
|
|
4078
4078
|
for (T = 0, I = a.geometries.length; T < I; T++) {
|
|
4079
|
-
var R =
|
|
4079
|
+
var R = xe({
|
|
4080
4080
|
geometry: a.geometries[T],
|
|
4081
4081
|
type: "Feature",
|
|
4082
4082
|
properties: t.properties
|
|
@@ -4086,7 +4086,7 @@ function ba() {
|
|
|
4086
4086
|
return new $t(u);
|
|
4087
4087
|
case "FeatureCollection":
|
|
4088
4088
|
for (T = 0, I = a.features.length; T < I; T++) {
|
|
4089
|
-
var U =
|
|
4089
|
+
var U = xe(a.features[T], e);
|
|
4090
4090
|
U && u.push(U);
|
|
4091
4091
|
}
|
|
4092
4092
|
return new $t(u);
|
|
@@ -4094,46 +4094,46 @@ function ba() {
|
|
|
4094
4094
|
throw new Error("Invalid GeoJSON object.");
|
|
4095
4095
|
}
|
|
4096
4096
|
}
|
|
4097
|
-
function
|
|
4098
|
-
return t ? t(e, a) : new
|
|
4097
|
+
function zn(t, e, a, h) {
|
|
4098
|
+
return t ? t(e, a) : new ye(a, h && h.markersInheritOptions && h);
|
|
4099
4099
|
}
|
|
4100
|
-
function
|
|
4100
|
+
function xs(t) {
|
|
4101
4101
|
return new Y(t[1], t[0], t[2]);
|
|
4102
4102
|
}
|
|
4103
|
-
function
|
|
4103
|
+
function we(t, e, a) {
|
|
4104
4104
|
for (var h = [], u = 0, _ = t.length, g; u < _; u++)
|
|
4105
|
-
g = e ?
|
|
4105
|
+
g = e ? we(t[u], e - 1, a) : (a || xs)(t[u]), h.push(g);
|
|
4106
4106
|
return h;
|
|
4107
4107
|
}
|
|
4108
|
-
function
|
|
4108
|
+
function ws(t, e) {
|
|
4109
4109
|
return t = $(t), t.alt !== void 0 ? [y(t.lng, e), y(t.lat, e), y(t.alt, e)] : [y(t.lng, e), y(t.lat, e)];
|
|
4110
4110
|
}
|
|
4111
|
-
function
|
|
4111
|
+
function be(t, e, a, h) {
|
|
4112
4112
|
for (var u = [], _ = 0, g = t.length; _ < g; _++)
|
|
4113
|
-
u.push(e ?
|
|
4113
|
+
u.push(e ? be(t[_], St(t[_]) ? 0 : e - 1, a, h) : ws(t[_], h));
|
|
4114
4114
|
return !e && a && u.length > 0 && u.push(u[0].slice()), u;
|
|
4115
4115
|
}
|
|
4116
4116
|
function vi(t, e) {
|
|
4117
|
-
return t.feature ? o({}, t.feature, { geometry: e }) :
|
|
4117
|
+
return t.feature ? o({}, t.feature, { geometry: e }) : Le(e);
|
|
4118
4118
|
}
|
|
4119
|
-
function
|
|
4119
|
+
function Le(t) {
|
|
4120
4120
|
return t.type === "Feature" || t.type === "FeatureCollection" ? t : {
|
|
4121
4121
|
type: "Feature",
|
|
4122
4122
|
properties: {},
|
|
4123
4123
|
geometry: t
|
|
4124
4124
|
};
|
|
4125
4125
|
}
|
|
4126
|
-
var
|
|
4126
|
+
var bs = {
|
|
4127
4127
|
toGeoJSON: function(t) {
|
|
4128
4128
|
return vi(this, {
|
|
4129
4129
|
type: "Point",
|
|
4130
|
-
coordinates:
|
|
4130
|
+
coordinates: ws(this.getLatLng(), t)
|
|
4131
4131
|
});
|
|
4132
4132
|
}
|
|
4133
4133
|
};
|
|
4134
|
-
|
|
4134
|
+
ye.include(bs), Ms.include(bs), Me.include(bs), Vt.include({
|
|
4135
4135
|
toGeoJSON: function(t) {
|
|
4136
|
-
var e = !St(this._latlngs), a =
|
|
4136
|
+
var e = !St(this._latlngs), a = be(this._latlngs, e ? 1 : 0, !1, t);
|
|
4137
4137
|
return vi(this, {
|
|
4138
4138
|
type: (e ? "Multi" : "") + "LineString",
|
|
4139
4139
|
coordinates: a
|
|
@@ -4141,7 +4141,7 @@ function ba() {
|
|
|
4141
4141
|
}
|
|
4142
4142
|
}), gi.include({
|
|
4143
4143
|
toGeoJSON: function(t) {
|
|
4144
|
-
var e = !St(this._latlngs), a = e && !St(this._latlngs[0]), h =
|
|
4144
|
+
var e = !St(this._latlngs), a = e && !St(this._latlngs[0]), h = be(this._latlngs, a ? 2 : e ? 1 : 0, !0, t);
|
|
4145
4145
|
return e || (h = [h]), vi(this, {
|
|
4146
4146
|
type: (a ? "Multi" : "") + "Polygon",
|
|
4147
4147
|
coordinates: h
|
|
@@ -4171,7 +4171,7 @@ function ba() {
|
|
|
4171
4171
|
if (a)
|
|
4172
4172
|
h.push(_.geometry);
|
|
4173
4173
|
else {
|
|
4174
|
-
var g =
|
|
4174
|
+
var g = Le(_);
|
|
4175
4175
|
g.type === "FeatureCollection" ? h.push.apply(h, g.features) : h.push(g);
|
|
4176
4176
|
}
|
|
4177
4177
|
}
|
|
@@ -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, Pe = Nt.extend({
|
|
4191
4191
|
// @section
|
|
4192
4192
|
// @aka ImageOverlay options
|
|
4193
4193
|
options: {
|
|
@@ -4311,8 +4311,8 @@ function ba() {
|
|
|
4311
4311
|
return this._bounds.getCenter();
|
|
4312
4312
|
}
|
|
4313
4313
|
}), Jo = function(t, e, a) {
|
|
4314
|
-
return new
|
|
4315
|
-
},
|
|
4314
|
+
return new Pe(t, e, a);
|
|
4315
|
+
}, kn = Pe.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 = Pe.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
|
|
@@ -4535,7 +4535,7 @@ function ba() {
|
|
|
4535
4535
|
return u instanceof t ? (P(u, h), u._source = this) : (u = e && !h ? e : new t(h, this), u.setContent(a)), u;
|
|
4536
4536
|
}
|
|
4537
4537
|
});
|
|
4538
|
-
var
|
|
4538
|
+
var Ae = Ft.extend({
|
|
4539
4539
|
// @section
|
|
4540
4540
|
// @aka Popup options
|
|
4541
4541
|
options: {
|
|
@@ -4616,7 +4616,7 @@ function ba() {
|
|
|
4616
4616
|
"div",
|
|
4617
4617
|
t + " " + (this.options.className || "") + " leaflet-zoom-animated"
|
|
4618
4618
|
), a = this._wrapper = Q("div", t + "-content-wrapper", e);
|
|
4619
|
-
if (this._contentNode = Q("div", t + "-content", a), Fi(e),
|
|
4619
|
+
if (this._contentNode = Q("div", t + "-content", a), Fi(e), fs(this._contentNode), G(e, "contextmenu", ri), this._tipContainer = Q("div", t + "-tip-container", e), this._tip = Q("div", t + "-tip", this._tipContainer), this.options.closeButton) {
|
|
4620
4620
|
var h = this._closeButton = Q("a", t + "-close-button", e);
|
|
4621
4621
|
h.setAttribute("role", "button"), h.setAttribute("aria-label", "Close popup"), h.href = "#close", h.innerHTML = '<span aria-hidden="true">×</span>', G(h, "click", function(u) {
|
|
4622
4622
|
_t(u), this.close();
|
|
@@ -4651,7 +4651,7 @@ function ba() {
|
|
|
4651
4651
|
return Z(this._source && this._source._getPopupAnchor ? this._source._getPopupAnchor() : [0, 0]);
|
|
4652
4652
|
}
|
|
4653
4653
|
}), er = function(t, e) {
|
|
4654
|
-
return new
|
|
4654
|
+
return new Ae(t, e);
|
|
4655
4655
|
};
|
|
4656
4656
|
V.mergeOptions({
|
|
4657
4657
|
closePopupOnClick: !0
|
|
@@ -4662,7 +4662,7 @@ function ba() {
|
|
|
4662
4662
|
// @method openPopup(content: String|HTMLElement, latlng: LatLng, options?: Popup options): this
|
|
4663
4663
|
// Creates a popup with the specified content and options and opens it in the given point on a map.
|
|
4664
4664
|
openPopup: function(t, e, a) {
|
|
4665
|
-
return this._initOverlay(
|
|
4665
|
+
return this._initOverlay(Ae, t, e, a).openOn(this), this;
|
|
4666
4666
|
},
|
|
4667
4667
|
// @method closePopup(popup?: Popup): this
|
|
4668
4668
|
// Closes the popup previously opened with [openPopup](#map-openpopup) (or the given one).
|
|
@@ -4675,7 +4675,7 @@ function ba() {
|
|
|
4675
4675
|
// necessary event listeners. If a `Function` is passed it will receive
|
|
4676
4676
|
// the layer as the first argument and should return a `String` or `HTMLElement`.
|
|
4677
4677
|
bindPopup: function(t, e) {
|
|
4678
|
-
return this._popup = this._initOverlay(
|
|
4678
|
+
return this._popup = this._initOverlay(Ae, this._popup, t, e), this._popupHandlersAdded || (this.on({
|
|
4679
4679
|
click: this._openPopup,
|
|
4680
4680
|
keypress: this._onKeyPress,
|
|
4681
4681
|
remove: this.closePopup,
|
|
@@ -4740,7 +4740,7 @@ function ba() {
|
|
|
4740
4740
|
t.originalEvent.keyCode === 13 && this._openPopup(t);
|
|
4741
4741
|
}
|
|
4742
4742
|
});
|
|
4743
|
-
var
|
|
4743
|
+
var Te = Ft.extend({
|
|
4744
4744
|
// @section
|
|
4745
4745
|
// @aka Tooltip options
|
|
4746
4746
|
options: {
|
|
@@ -4803,7 +4803,7 @@ function ba() {
|
|
|
4803
4803
|
return Z(this._source && this._source._getTooltipAnchor && !this.options.sticky ? this._source._getTooltipAnchor() : [0, 0]);
|
|
4804
4804
|
}
|
|
4805
4805
|
}), sr = function(t, e) {
|
|
4806
|
-
return new
|
|
4806
|
+
return new Te(t, e);
|
|
4807
4807
|
};
|
|
4808
4808
|
V.include({
|
|
4809
4809
|
// @method openTooltip(tooltip: Tooltip): this
|
|
@@ -4812,7 +4812,7 @@ function ba() {
|
|
|
4812
4812
|
// @method openTooltip(content: String|HTMLElement, latlng: LatLng, options?: Tooltip options): this
|
|
4813
4813
|
// Creates a tooltip with the specified content and options and open it.
|
|
4814
4814
|
openTooltip: function(t, e, a) {
|
|
4815
|
-
return this._initOverlay(
|
|
4815
|
+
return this._initOverlay(Te, t, e, a).openOn(this), this;
|
|
4816
4816
|
},
|
|
4817
4817
|
// @method closeTooltip(tooltip: Tooltip): this
|
|
4818
4818
|
// Closes the tooltip given as parameter.
|
|
@@ -4825,7 +4825,7 @@ function ba() {
|
|
|
4825
4825
|
// necessary event listeners. If a `Function` is passed it will receive
|
|
4826
4826
|
// the layer as the first argument and should return a `String` or `HTMLElement`.
|
|
4827
4827
|
bindTooltip: function(t, e) {
|
|
4828
|
-
return this._tooltip && this.isTooltipOpen() && this.unbindTooltip(), this._tooltip = this._initOverlay(
|
|
4828
|
+
return this._tooltip && this.isTooltipOpen() && this.unbindTooltip(), this._tooltip = this._initOverlay(Te, this._tooltip, t, e), this._initTooltipInteractions(), this._tooltip.options.permanent && this._map && this._map.hasLayer(this) && this.openTooltip(), this;
|
|
4829
4829
|
},
|
|
4830
4830
|
// @method unbindTooltip(): this
|
|
4831
4831
|
// Removes the tooltip previously bound with `bindTooltip`.
|
|
@@ -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
|
|
@@ -4922,7 +4922,7 @@ function ba() {
|
|
|
4922
4922
|
},
|
|
4923
4923
|
createIcon: function(t) {
|
|
4924
4924
|
var e = t && t.tagName === "DIV" ? t : document.createElement("div"), a = this.options;
|
|
4925
|
-
if (a.html instanceof Element ? (
|
|
4925
|
+
if (a.html instanceof Element ? (de(e), e.appendChild(a.html)) : e.innerHTML = a.html !== !1 ? a.html : "", a.bgPos) {
|
|
4926
4926
|
var h = Z(a.bgPos);
|
|
4927
4927
|
e.style.backgroundPosition = -h.x + "px " + -h.y + "px";
|
|
4928
4928
|
}
|
|
@@ -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,9 +5811,9 @@ function ba() {
|
|
|
5811
5811
|
_bringToBack: function(t) {
|
|
5812
5812
|
_i(t._container);
|
|
5813
5813
|
}
|
|
5814
|
-
},
|
|
5814
|
+
}, Ce = N.vml ? Hi : js, Wi = Xt.extend({
|
|
5815
5815
|
_initContainer: function() {
|
|
5816
|
-
this._container =
|
|
5816
|
+
this._container = Ce("svg"), this._container.setAttribute("pointer-events", "none"), this._rootGroup = Ce("g"), this._container.appendChild(this._rootGroup);
|
|
5817
5817
|
},
|
|
5818
5818
|
_destroyContainer: function() {
|
|
5819
5819
|
et(this._container), J(this._container), delete this._container, delete this._rootGroup, delete this._svgSize;
|
|
@@ -5827,7 +5827,7 @@ function ba() {
|
|
|
5827
5827
|
},
|
|
5828
5828
|
// methods below are called by vector layers implementations
|
|
5829
5829
|
_initPath: function(t) {
|
|
5830
|
-
var e = t._path =
|
|
5830
|
+
var e = t._path = Ce("path");
|
|
5831
5831
|
t.options.className && q(e, t.options.className), t.options.interactive && q(e, "leaflet-interactive"), this._updateStyle(t), this._layers[d(t)] = t;
|
|
5832
5832
|
},
|
|
5833
5833
|
_addPath: function(t) {
|
|
@@ -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 =
|
|
5908
|
+
Wi.create = Ce, Wi.pointsToPath = Hs, Qt.geometryToLayer = xe, Qt.coordsToLatLng = xs, Qt.coordsToLatLngs = we, Qt.latLngToCoords = ws, Qt.latLngsToCoords = be, Qt.getFeature = vi, Qt.asFeature = Le, 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
|
},
|
|
@@ -5936,7 +5936,7 @@ function ba() {
|
|
|
5936
5936
|
_onMouseDown: function(t) {
|
|
5937
5937
|
if (!t.shiftKey || t.which !== 1 && t.button !== 1)
|
|
5938
5938
|
return !1;
|
|
5939
|
-
this._clearDeferredResetState(), this._resetState(), Ri(),
|
|
5939
|
+
this._clearDeferredResetState(), this._resetState(), Ri(), ns(), this._startPoint = this._map.mouseEventToContainerPoint(t), G(document, {
|
|
5940
5940
|
contextmenu: hi,
|
|
5941
5941
|
mousemove: this._onMouseMove,
|
|
5942
5942
|
mouseup: this._onMouseUp,
|
|
@@ -5949,7 +5949,7 @@ function ba() {
|
|
|
5949
5949
|
ht(this._box, e.min), this._box.style.width = a.x + "px", this._box.style.height = a.y + "px";
|
|
5950
5950
|
},
|
|
5951
5951
|
_finish: function() {
|
|
5952
|
-
this._moved && (et(this._box), at(this._container, "leaflet-crosshair")), Di(),
|
|
5952
|
+
this._moved && (et(this._box), at(this._container, "leaflet-crosshair")), Di(), as(), J(document, {
|
|
5953
5953
|
contextmenu: hi,
|
|
5954
5954
|
mousemove: this._onMouseMove,
|
|
5955
5955
|
mouseup: this._onMouseUp,
|
|
@@ -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,15 +6346,15 @@ 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 = Ms, n.CircleMarker = Me, 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 = Pe, n.LatLng = Y, n.LatLngBounds = wt, n.Layer = Nt, n.LayerGroup = mi, n.LineUtil = Fo, n.Map = V, n.Marker = ye, n.Mixin = No, n.Path = ti, n.Point = F, n.PolyUtil = ko, n.Polygon = gi, n.Polyline = Vt, n.Popup = Ae, n.PosAnimation = yn, n.Projection = Go, n.Rectangle = Un, n.Renderer = Xt, n.SVG = Wi, n.SVGOverlay = Bn, n.TileLayer = yi, n.Tooltip = Te, n.Transformation = We, n.Util = je, 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;
|
|
6353
6353
|
}, window.L = n;
|
|
6354
6354
|
});
|
|
6355
|
-
}(
|
|
6355
|
+
}(Se, Se.exports)), Se.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
|
|
@@ -6456,7 +6456,27 @@ const Pr = /* @__PURE__ */ br(M), Ar = /* @__PURE__ */ xr({
|
|
|
6456
6456
|
disable() {
|
|
6457
6457
|
return this._map.setCursor(), this.latlngs = [], this.removeHooks(), this.geometry = null, this._map.closeTooltip(this.tooltip), this._map.removeLayer(this.tempPoint), M.Handler.prototype.disable.call(this), this;
|
|
6458
6458
|
}
|
|
6459
|
-
}),
|
|
6459
|
+
}), Er = {
|
|
6460
|
+
en_US: {
|
|
6461
|
+
showEagle: "Show Eagle Map",
|
|
6462
|
+
hideEagle: "Hide Eagle Map"
|
|
6463
|
+
},
|
|
6464
|
+
zh_CN: {
|
|
6465
|
+
showEagle: "显示鹰眼图",
|
|
6466
|
+
hideEagle: "隐藏鹰眼图"
|
|
6467
|
+
}
|
|
6468
|
+
}, Sr = {
|
|
6469
|
+
en_US: {
|
|
6470
|
+
coordinate: "Coordinate",
|
|
6471
|
+
zoomLevel: "Zoom Level",
|
|
6472
|
+
FPS: "FPS"
|
|
6473
|
+
},
|
|
6474
|
+
zh_CN: {
|
|
6475
|
+
coordinate: "坐标",
|
|
6476
|
+
zoomLevel: "层级",
|
|
6477
|
+
FPS: "每秒帧数"
|
|
6478
|
+
}
|
|
6479
|
+
}, As = {
|
|
6460
6480
|
en_US: {
|
|
6461
6481
|
home: "Go Home",
|
|
6462
6482
|
capture: "Screen Capture",
|
|
@@ -6472,12 +6492,8 @@ const Pr = /* @__PURE__ */ br(M), Ar = /* @__PURE__ */ xr({
|
|
|
6472
6492
|
more: "More",
|
|
6473
6493
|
draw: "Plot",
|
|
6474
6494
|
layer: "Layer Manager",
|
|
6475
|
-
showEagle: "Show Eagle Map",
|
|
6476
|
-
hideEagle: "Hide Eagle Map",
|
|
6477
|
-
coordinate: "Coordinate",
|
|
6478
6495
|
lng: "Longitude",
|
|
6479
|
-
lat: "Latitude"
|
|
6480
|
-
zoomLevel: "Zoom Level"
|
|
6496
|
+
lat: "Latitude"
|
|
6481
6497
|
},
|
|
6482
6498
|
zh_CN: {
|
|
6483
6499
|
home: "回到初始位置",
|
|
@@ -6494,32 +6510,31 @@ const Pr = /* @__PURE__ */ br(M), Ar = /* @__PURE__ */ xr({
|
|
|
6494
6510
|
more: "更多",
|
|
6495
6511
|
draw: "标绘",
|
|
6496
6512
|
layer: "图层管理",
|
|
6497
|
-
showEagle: "显示鹰眼图",
|
|
6498
|
-
hideEagle: "隐藏鹰眼图",
|
|
6499
|
-
coordinate: "坐标",
|
|
6500
6513
|
lng: "经度",
|
|
6501
|
-
lat: "纬度"
|
|
6502
|
-
zoomLevel: "层级"
|
|
6514
|
+
lat: "纬度"
|
|
6503
6515
|
}
|
|
6504
|
-
},
|
|
6516
|
+
}, wa = M.Control.extend({
|
|
6505
6517
|
options: {
|
|
6506
6518
|
position: "bottomleft",
|
|
6507
|
-
coordinateUnit: "decimal"
|
|
6519
|
+
coordinateUnit: "decimal",
|
|
6520
|
+
showCoordinate: !0,
|
|
6521
|
+
showLevel: !0,
|
|
6522
|
+
showFPS: !0
|
|
6508
6523
|
},
|
|
6509
6524
|
initialize(i) {
|
|
6510
6525
|
M.setOptions(this, i), this.lastTime = +/* @__PURE__ */ new Date(), this.frames = 0, M.Control.prototype.initialize.call(this, this.options);
|
|
6511
6526
|
},
|
|
6512
6527
|
onAdd(i) {
|
|
6513
|
-
this.map = i, this.lang = i.lang, this.langDic =
|
|
6528
|
+
this.map = i, this.lang = i.lang, this.langDic = Sr, this._container = M.DomUtil.create("div", `${i.clsPrefix}-statusbar`), this.zoom = i.getZoom();
|
|
6514
6529
|
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.
|
|
6530
|
+
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[this.lang].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[this.lang].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[this.lang].FPS}:</b>60`), this.initEvt(), this._container;
|
|
6516
6531
|
},
|
|
6517
6532
|
initEvt() {
|
|
6518
6533
|
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)}
|
|
6534
|
+
this.lat = i.latlng.lat, this.lng = i.latlng.lng, this._latlngContainer && (this._latlngContainer.innerHTML = `<b>${this.langDic[this.lang].coordinate}:</b>${this.getCoordinate(this.lng)},${this.getCoordinate(this.lat)}`);
|
|
6520
6535
|
}), this.map.on("zoomend", () => {
|
|
6521
|
-
this.zoom = this.map.getZoom(), this._levelContainer.innerHTML = `<b>${this.langDic.zoomLevel}:</b>${this.zoom + 1}
|
|
6522
|
-
}), this.calcFPS();
|
|
6536
|
+
this.zoom = this.map.getZoom(), this._levelContainer && (this._levelContainer.innerHTML = `<b>${this.langDic[this.lang].zoomLevel}:</b>${this.zoom + 1}`);
|
|
6537
|
+
}), this.options.showFPS && this.calcFPS();
|
|
6523
6538
|
},
|
|
6524
6539
|
getCoordinate(i) {
|
|
6525
6540
|
switch (this.options.coordinateUnit) {
|
|
@@ -6539,11 +6554,11 @@ const Pr = /* @__PURE__ */ br(M), Ar = /* @__PURE__ */ xr({
|
|
|
6539
6554
|
calcFPS() {
|
|
6540
6555
|
if (this.frames++, this.frames >= 30) {
|
|
6541
6556
|
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
|
|
6557
|
+
this._fpsContainer && (this.frames = 0, this.lastTime = Date.now(), this._fpsContainer.innerHTML = `<b>${this.langDic[this.lang].FPS}:</b><span>${s}</span>`);
|
|
6543
6558
|
}
|
|
6544
6559
|
requestAnimationFrame(this.calcFPS.bind(this));
|
|
6545
6560
|
}
|
|
6546
|
-
}),
|
|
6561
|
+
}), ba = M.Control.extend({
|
|
6547
6562
|
includes: M.Evented ? M.Evented.prototype : M.Mixin.Events,
|
|
6548
6563
|
options: {
|
|
6549
6564
|
position: "bottomright",
|
|
@@ -6560,13 +6575,14 @@ const Pr = /* @__PURE__ */ br(M), Ar = /* @__PURE__ */ xr({
|
|
|
6560
6575
|
collapsedHeight: 22,
|
|
6561
6576
|
aimingRectOptions: { color: "#ff7800", weight: 1, interactive: !1 },
|
|
6562
6577
|
shadowRectOptions: { color: "#000000", weight: 1, interactive: !1, opacity: 0, fillOpacity: 0 },
|
|
6578
|
+
strings: {},
|
|
6563
6579
|
mapOptions: {}
|
|
6564
6580
|
},
|
|
6565
6581
|
initialize(i, s) {
|
|
6566
6582
|
M.Util.setOptions(this, s), this.options.aimingRectOptions.interactive = !1, this.options.shadowRectOptions.interactive = !1, this._layer = i;
|
|
6567
6583
|
},
|
|
6568
6584
|
onAdd(i) {
|
|
6569
|
-
this._mainMap = i, this.lang = i.options.lang ?? this.options.lang ?? "zh_CN", this.langDic =
|
|
6585
|
+
this._mainMap = i, this.lang = i.options.lang ?? this.options.lang ?? "zh_CN", this.langDic = Er, this.options.strings = { hideText: this.langDic[this.lang].hideEagle, showText: this.langDic[this.lang].showEagle }, 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
6586
|
let s = {
|
|
6571
6587
|
attributionControl: !1,
|
|
6572
6588
|
dragging: !this.options.centerFixed,
|
|
@@ -6600,14 +6616,14 @@ const Pr = /* @__PURE__ */ br(M), Ar = /* @__PURE__ */ xr({
|
|
|
6600
6616
|
this._toggleDisplayButton = this.options.toggleDisplay ? this._createButton(
|
|
6601
6617
|
"",
|
|
6602
6618
|
this._toggleButtonInitialTitleText(),
|
|
6603
|
-
|
|
6619
|
+
`${this._mainMap.clsPrefix}-eaglemap-toggle-display ${this._mainMap.clsPrefix}-eaglemap-toggle-display-` + this.options.position,
|
|
6604
6620
|
this._container,
|
|
6605
6621
|
this._toggleDisplayButtonClicked,
|
|
6606
6622
|
this
|
|
6607
6623
|
) : void 0, this._toggleDisplayButton.style.width = this.options.collapsedWidth + "px", this._toggleDisplayButton.style.height = this.options.collapsedHeight + "px";
|
|
6608
6624
|
},
|
|
6609
6625
|
_toggleButtonInitialTitleText() {
|
|
6610
|
-
return this.options.minimized ? this.langDic.showEagle : this.langDic.hideEagle;
|
|
6626
|
+
return this.options.minimized ? this.langDic[this.lang].showEagle : this.langDic[this.lang].hideEagle;
|
|
6611
6627
|
},
|
|
6612
6628
|
_createButton(i, s, n, r, o, l) {
|
|
6613
6629
|
const f = M.DomUtil.create("a", n, r);
|
|
@@ -6712,7 +6728,7 @@ const Pr = /* @__PURE__ */ br(M), Ar = /* @__PURE__ */ xr({
|
|
|
6712
6728
|
}), L.FeatureGroup.prototype.onRemove.call(this, i);
|
|
6713
6729
|
}
|
|
6714
6730
|
});
|
|
6715
|
-
class
|
|
6731
|
+
class ze extends L[L.Layer ? "Layer" : "Class"] {
|
|
6716
6732
|
constructor(s, n, r, o, l) {
|
|
6717
6733
|
super(), L.setOptions(this, l), this._latlng = s, this._measurement = n, this._title = r, this._rotation = o, this.MEASUREDDATA = null, this.tempAcCurrDrawPoints = null;
|
|
6718
6734
|
}
|
|
@@ -6735,12 +6751,12 @@ class Ne extends L[L.Layer ? "Layer" : "Class"] {
|
|
|
6735
6751
|
L.DomUtil.setPosition(this._element, n), this._element.style.transform += " rotate(" + this._rotation + "rad)";
|
|
6736
6752
|
}
|
|
6737
6753
|
}
|
|
6738
|
-
function
|
|
6754
|
+
function ea(i, s, n) {
|
|
6739
6755
|
i._leaflet_pos = s, M.DomUtil.setTransform(i, s, n);
|
|
6740
6756
|
}
|
|
6741
6757
|
M.Map.addInitHook("addHandler", "drawHandler", Cr);
|
|
6742
6758
|
M.Map.addInitHook(function() {
|
|
6743
|
-
this.options.eagleMapControl && (this.eagleMapControl =
|
|
6759
|
+
this.options.eagleMapControl.show && (this.eagleMapControl = new ba(this.options.eagleMapControl), this.addControl(this.eagleMapControl)), this.options.statusBarControl.show && (this.statusBarControl = new wa(this.options.statusBarControl), this.addControl(this.statusBarControl)), this.options.scaleControl.show && (this.scaleControl = new M.Control.Scale(
|
|
6744
6760
|
Object.assign(
|
|
6745
6761
|
{
|
|
6746
6762
|
position: "bottomleft",
|
|
@@ -6776,7 +6792,7 @@ M.Marker.include({
|
|
|
6776
6792
|
const f = parseFloat(((1 - l) / (r - n)).toFixed(2)), { iconAnchor: c, iconSize: d } = this.getIcon().options;
|
|
6777
6793
|
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
6794
|
}
|
|
6779
|
-
this._icon &&
|
|
6795
|
+
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
6796
|
},
|
|
6781
6797
|
_applyRotation() {
|
|
6782
6798
|
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 +6817,7 @@ M.Map.include({
|
|
|
6801
6817
|
}
|
|
6802
6818
|
});
|
|
6803
6819
|
M.Path.addInitHook(function() {
|
|
6804
|
-
this.color =
|
|
6820
|
+
this.options.color && (this.color = ta.from(this.options.color)), this.options.fillColor && (this.fillColor = ta.from(this.options.fillColor));
|
|
6805
6821
|
});
|
|
6806
6822
|
M.Polyline.addInitHook(function() {
|
|
6807
6823
|
this.options.showMeasurements && this.showMeasurements();
|
|
@@ -6963,7 +6979,7 @@ M.Polyline.include({
|
|
|
6963
6979
|
for (let v = 1, p = n.length; r && v <= p || v < p; v++)
|
|
6964
6980
|
if (l = n[v - 1], f = n[v % p], l.distanceTo(f), c = this._map.latLngToLayerPoint(l), d = this._map.latLngToLayerPoint(f), m = c.distanceTo(d), m >= o.minPixelDistance) {
|
|
6965
6981
|
const y = this.tempMoveFormatDistance(l, f);
|
|
6966
|
-
new
|
|
6982
|
+
new ze(
|
|
6967
6983
|
this._map.layerPointToLatLng([(c.x + d.x) / 2, (c.y + d.y) / 2]),
|
|
6968
6984
|
y,
|
|
6969
6985
|
o.lang.segmentLength,
|
|
@@ -6971,9 +6987,9 @@ M.Polyline.include({
|
|
|
6971
6987
|
o
|
|
6972
6988
|
).addTo(this._measurementLayer);
|
|
6973
6989
|
}
|
|
6974
|
-
!r && this._measurementOptions.showAggregate && (new
|
|
6990
|
+
!r && this._measurementOptions.showAggregate && (new ze(f, this.tempFormatDistance(i), o.lang.totalLength, 0, o).addTo(this._measurementLayer), this.MEASUREDDATA = this.tempFormatDistance(i));
|
|
6975
6991
|
}
|
|
6976
|
-
return r && o.showArea && n.length > 2 && (new
|
|
6992
|
+
return r && o.showArea && n.length > 2 && (new ze(this.getBounds().getCenter(), this.tempFormatArea(i[0]), o.lang.totalArea, 0, o).addTo(this._measurementLayer), this.MEASUREDDATA = this.tempFormatArea(i[0])), this;
|
|
6977
6993
|
},
|
|
6978
6994
|
_getRotation(i, s) {
|
|
6979
6995
|
const n = this._map.project(i), r = this._map.project(s);
|
|
@@ -7004,11 +7020,11 @@ M.Path.include({
|
|
|
7004
7020
|
return l;
|
|
7005
7021
|
}
|
|
7006
7022
|
});
|
|
7007
|
-
var
|
|
7008
|
-
function
|
|
7023
|
+
var Or = { exports: {} };
|
|
7024
|
+
function Ir(i) {
|
|
7009
7025
|
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
7026
|
}
|
|
7011
|
-
var ui = 1, ci = 2, Ti = 3,
|
|
7027
|
+
var ui = 1, ci = 2, Ti = 3, zr = 4, Es = 5, sa = 6378137, Nr = 6356752314e-3, na = 0.0066943799901413165, Ki = 484813681109536e-20, C = Math.PI / 2, kr = 0.16666666666666666, Br = 0.04722222222222222, Rr = 0.022156084656084655, S = 1e-10, mt = 0.017453292519943295, qt = 57.29577951308232, X = Math.PI / 4, ee = Math.PI * 2, ot = 3.14159265359, At = {};
|
|
7012
7028
|
At.greenwich = 0;
|
|
7013
7029
|
At.lisbon = -9.131906111111;
|
|
7014
7030
|
At.paris = 2.337229166667;
|
|
@@ -7022,19 +7038,19 @@ At.brussels = 4.367975;
|
|
|
7022
7038
|
At.stockholm = 18.058277777778;
|
|
7023
7039
|
At.athens = 23.7163375;
|
|
7024
7040
|
At.oslo = 10.722916666667;
|
|
7025
|
-
const
|
|
7041
|
+
const Dr = {
|
|
7026
7042
|
ft: { to_meter: 0.3048 },
|
|
7027
7043
|
"us-ft": { to_meter: 1200 / 3937 }
|
|
7028
7044
|
};
|
|
7029
|
-
var
|
|
7045
|
+
var aa = /[\s_\-\/\(\)]/g;
|
|
7030
7046
|
function ei(i, s) {
|
|
7031
7047
|
if (i[s])
|
|
7032
7048
|
return i[s];
|
|
7033
|
-
for (var n = Object.keys(i), r = s.toLowerCase().replace(
|
|
7034
|
-
if (l = n[o], f = l.toLowerCase().replace(
|
|
7049
|
+
for (var n = Object.keys(i), r = s.toLowerCase().replace(aa, ""), o = -1, l, f; ++o < n.length; )
|
|
7050
|
+
if (l = n[o], f = l.toLowerCase().replace(aa, ""), f === r)
|
|
7035
7051
|
return i[l];
|
|
7036
7052
|
}
|
|
7037
|
-
function
|
|
7053
|
+
function Ss(i) {
|
|
7038
7054
|
var s = {}, n = i.split("+").map(function(c) {
|
|
7039
7055
|
return c.trim();
|
|
7040
7056
|
}).filter(function(c) {
|
|
@@ -7118,7 +7134,7 @@ function Is(i) {
|
|
|
7118
7134
|
},
|
|
7119
7135
|
units: function(c) {
|
|
7120
7136
|
s.units = c;
|
|
7121
|
-
var d = ei(
|
|
7137
|
+
var d = ei(Dr, c);
|
|
7122
7138
|
d && (s.to_meter = d.to_meter);
|
|
7123
7139
|
},
|
|
7124
7140
|
from_greenwich: function(c) {
|
|
@@ -7143,41 +7159,41 @@ function Is(i) {
|
|
|
7143
7159
|
o = n[r], r in f ? (l = f[r], typeof l == "function" ? l(o) : s[l] = o) : s[r] = o;
|
|
7144
7160
|
return typeof s.datumCode == "string" && s.datumCode !== "WGS84" && (s.datumCode = s.datumCode.toLowerCase()), s;
|
|
7145
7161
|
}
|
|
7146
|
-
var
|
|
7162
|
+
var se = 1, Pa = 2, Aa = 3, Re = 4, Ta = 5, Ns = -1, Zr = /\s/, Fr = /[A-Za-z]/, Gr = /[A-Za-z84_]/, Ue = /[,\]]/, Ca = /[\d\.E\-\+]/;
|
|
7147
7163
|
function Kt(i) {
|
|
7148
7164
|
if (typeof i != "string")
|
|
7149
7165
|
throw new Error("not a string");
|
|
7150
|
-
this.text = i.trim(), this.level = 0, this.place = 0, this.root = null, this.stack = [], this.currentObject = null, this.state =
|
|
7166
|
+
this.text = i.trim(), this.level = 0, this.place = 0, this.root = null, this.stack = [], this.currentObject = null, this.state = se;
|
|
7151
7167
|
}
|
|
7152
7168
|
Kt.prototype.readCharicter = function() {
|
|
7153
7169
|
var i = this.text[this.place++];
|
|
7154
|
-
if (this.state !==
|
|
7155
|
-
for (;
|
|
7170
|
+
if (this.state !== Re)
|
|
7171
|
+
for (; Zr.test(i); ) {
|
|
7156
7172
|
if (this.place >= this.text.length)
|
|
7157
7173
|
return;
|
|
7158
7174
|
i = this.text[this.place++];
|
|
7159
7175
|
}
|
|
7160
7176
|
switch (this.state) {
|
|
7161
|
-
case
|
|
7177
|
+
case se:
|
|
7162
7178
|
return this.neutral(i);
|
|
7163
7179
|
case Pa:
|
|
7164
7180
|
return this.keyword(i);
|
|
7165
|
-
case
|
|
7181
|
+
case Re:
|
|
7166
7182
|
return this.quoted(i);
|
|
7167
7183
|
case Ta:
|
|
7168
7184
|
return this.afterquote(i);
|
|
7169
7185
|
case Aa:
|
|
7170
7186
|
return this.number(i);
|
|
7171
|
-
case
|
|
7187
|
+
case Ns:
|
|
7172
7188
|
return;
|
|
7173
7189
|
}
|
|
7174
7190
|
};
|
|
7175
7191
|
Kt.prototype.afterquote = function(i) {
|
|
7176
7192
|
if (i === '"') {
|
|
7177
|
-
this.word += '"', this.state =
|
|
7193
|
+
this.word += '"', this.state = Re;
|
|
7178
7194
|
return;
|
|
7179
7195
|
}
|
|
7180
|
-
if (
|
|
7196
|
+
if (Ue.test(i)) {
|
|
7181
7197
|
this.word = this.word.trim(), this.afterItem(i);
|
|
7182
7198
|
return;
|
|
7183
7199
|
}
|
|
@@ -7185,11 +7201,11 @@ Kt.prototype.afterquote = function(i) {
|
|
|
7185
7201
|
};
|
|
7186
7202
|
Kt.prototype.afterItem = function(i) {
|
|
7187
7203
|
if (i === ",") {
|
|
7188
|
-
this.word !== null && this.currentObject.push(this.word), this.word = null, this.state =
|
|
7204
|
+
this.word !== null && this.currentObject.push(this.word), this.word = null, this.state = se;
|
|
7189
7205
|
return;
|
|
7190
7206
|
}
|
|
7191
7207
|
if (i === "]") {
|
|
7192
|
-
this.level--, this.word !== null && (this.currentObject.push(this.word), this.word = null), this.state =
|
|
7208
|
+
this.level--, this.word !== null && (this.currentObject.push(this.word), this.word = null), this.state = se, this.currentObject = this.stack.pop(), this.currentObject || (this.state = Ns);
|
|
7193
7209
|
return;
|
|
7194
7210
|
}
|
|
7195
7211
|
};
|
|
@@ -7198,7 +7214,7 @@ Kt.prototype.number = function(i) {
|
|
|
7198
7214
|
this.word += i;
|
|
7199
7215
|
return;
|
|
7200
7216
|
}
|
|
7201
|
-
if (
|
|
7217
|
+
if (Ue.test(i)) {
|
|
7202
7218
|
this.word = parseFloat(this.word), this.afterItem(i);
|
|
7203
7219
|
return;
|
|
7204
7220
|
}
|
|
@@ -7212,35 +7228,35 @@ Kt.prototype.quoted = function(i) {
|
|
|
7212
7228
|
this.word += i;
|
|
7213
7229
|
};
|
|
7214
7230
|
Kt.prototype.keyword = function(i) {
|
|
7215
|
-
if (
|
|
7231
|
+
if (Gr.test(i)) {
|
|
7216
7232
|
this.word += i;
|
|
7217
7233
|
return;
|
|
7218
7234
|
}
|
|
7219
7235
|
if (i === "[") {
|
|
7220
7236
|
var s = [];
|
|
7221
|
-
s.push(this.word), this.level++, this.root === null ? this.root = s : this.currentObject.push(s), this.stack.push(this.currentObject), this.currentObject = s, this.state =
|
|
7237
|
+
s.push(this.word), this.level++, this.root === null ? this.root = s : this.currentObject.push(s), this.stack.push(this.currentObject), this.currentObject = s, this.state = se;
|
|
7222
7238
|
return;
|
|
7223
7239
|
}
|
|
7224
|
-
if (
|
|
7240
|
+
if (Ue.test(i)) {
|
|
7225
7241
|
this.afterItem(i);
|
|
7226
7242
|
return;
|
|
7227
7243
|
}
|
|
7228
7244
|
throw new Error(`havn't handled "` + i + '" in keyword yet, index ' + this.place);
|
|
7229
7245
|
};
|
|
7230
7246
|
Kt.prototype.neutral = function(i) {
|
|
7231
|
-
if (
|
|
7247
|
+
if (Fr.test(i)) {
|
|
7232
7248
|
this.word = i, this.state = Pa;
|
|
7233
7249
|
return;
|
|
7234
7250
|
}
|
|
7235
7251
|
if (i === '"') {
|
|
7236
|
-
this.word = "", this.state =
|
|
7252
|
+
this.word = "", this.state = Re;
|
|
7237
7253
|
return;
|
|
7238
7254
|
}
|
|
7239
7255
|
if (Ca.test(i)) {
|
|
7240
7256
|
this.word = i, this.state = Aa;
|
|
7241
7257
|
return;
|
|
7242
7258
|
}
|
|
7243
|
-
if (
|
|
7259
|
+
if (Ue.test(i)) {
|
|
7244
7260
|
this.afterItem(i);
|
|
7245
7261
|
return;
|
|
7246
7262
|
}
|
|
@@ -7249,15 +7265,15 @@ Kt.prototype.neutral = function(i) {
|
|
|
7249
7265
|
Kt.prototype.output = function() {
|
|
7250
7266
|
for (; this.place < this.text.length; )
|
|
7251
7267
|
this.readCharicter();
|
|
7252
|
-
if (this.state ===
|
|
7268
|
+
if (this.state === Ns)
|
|
7253
7269
|
return this.root;
|
|
7254
7270
|
throw new Error('unable to parse string "' + this.text + '". State is ' + this.state);
|
|
7255
7271
|
};
|
|
7256
|
-
function
|
|
7272
|
+
function qr(i) {
|
|
7257
7273
|
var s = new Kt(i);
|
|
7258
7274
|
return s.output();
|
|
7259
7275
|
}
|
|
7260
|
-
function
|
|
7276
|
+
function oa(i, s, n) {
|
|
7261
7277
|
Array.isArray(s) && (n.unshift(s), s = null);
|
|
7262
7278
|
var r = s ? {} : i, o = n.reduce(function(l, f) {
|
|
7263
7279
|
return bi(f, l), l;
|
|
@@ -7330,24 +7346,24 @@ function bi(i, s) {
|
|
|
7330
7346
|
case "FITTED_CS":
|
|
7331
7347
|
case "LOCAL_DATUM":
|
|
7332
7348
|
case "DATUM":
|
|
7333
|
-
i[0] = ["name", i[0]],
|
|
7349
|
+
i[0] = ["name", i[0]], oa(s, n, i);
|
|
7334
7350
|
return;
|
|
7335
7351
|
default:
|
|
7336
7352
|
for (r = -1; ++r < i.length; )
|
|
7337
7353
|
if (!Array.isArray(i[r]))
|
|
7338
7354
|
return bi(i, s[n]);
|
|
7339
|
-
return
|
|
7355
|
+
return oa(s, n, i);
|
|
7340
7356
|
}
|
|
7341
7357
|
}
|
|
7342
|
-
var
|
|
7343
|
-
function
|
|
7358
|
+
var Ur = 0.017453292519943295;
|
|
7359
|
+
function jr(i, s) {
|
|
7344
7360
|
var n = s[0], r = s[1];
|
|
7345
7361
|
!(n in i) && r in i && (i[n] = i[r], s.length === 3 && (i[n] = s[2](i[n])));
|
|
7346
7362
|
}
|
|
7347
7363
|
function Gt(i) {
|
|
7348
|
-
return i *
|
|
7364
|
+
return i * Ur;
|
|
7349
7365
|
}
|
|
7350
|
-
function
|
|
7366
|
+
function Hr(i) {
|
|
7351
7367
|
if (i.type === "GEOGCS" ? i.projName = "longlat" : i.type === "LOCAL_CS" ? (i.projName = "identity", i.local = !0) : typeof i.PROJECTION == "object" ? i.projName = Object.keys(i.PROJECTION)[0] : i.projName = i.PROJECTION, i.AXIS) {
|
|
7352
7368
|
for (var s = "", n = 0, r = i.AXIS.length; n < r; ++n) {
|
|
7353
7369
|
var o = [i.AXIS[n][0].toLowerCase(), i.AXIS[n][1].toLowerCase()];
|
|
@@ -7363,7 +7379,7 @@ function Ur(i) {
|
|
|
7363
7379
|
return m * v;
|
|
7364
7380
|
}
|
|
7365
7381
|
var c = function(m) {
|
|
7366
|
-
return
|
|
7382
|
+
return jr(i, m);
|
|
7367
7383
|
}, d = [
|
|
7368
7384
|
["standard_parallel_1", "Standard_Parallel_1"],
|
|
7369
7385
|
["standard_parallel_1", "Latitude of 1st standard parallel"],
|
|
@@ -7404,16 +7420,16 @@ function Ur(i) {
|
|
|
7404
7420
|
d.forEach(c), !i.long0 && i.longc && (i.projName === "Albers_Conic_Equal_Area" || i.projName === "Lambert_Azimuthal_Equal_Area") && (i.long0 = i.longc), !i.lat_ts && i.lat1 && (i.projName === "Stereographic_South_Pole" || i.projName === "Polar Stereographic (variant B)") ? (i.lat0 = Gt(i.lat1 > 0 ? 90 : -90), i.lat_ts = i.lat1) : !i.lat_ts && i.lat0 && i.projName === "Polar_Stereographic" && (i.lat_ts = i.lat0, i.lat0 = Gt(i.lat0 > 0 ? 90 : -90));
|
|
7405
7421
|
}
|
|
7406
7422
|
function Ea(i) {
|
|
7407
|
-
var s =
|
|
7423
|
+
var s = qr(i), n = s.shift(), r = s.shift();
|
|
7408
7424
|
s.unshift(["name", r]), s.unshift(["type", n]);
|
|
7409
7425
|
var o = {};
|
|
7410
|
-
return bi(s, o),
|
|
7426
|
+
return bi(s, o), Hr(o), o;
|
|
7411
7427
|
}
|
|
7412
7428
|
function vt(i) {
|
|
7413
7429
|
var s = this;
|
|
7414
7430
|
if (arguments.length === 2) {
|
|
7415
7431
|
var n = arguments[1];
|
|
7416
|
-
typeof n == "string" ? n.charAt(0) === "+" ? vt[i] =
|
|
7432
|
+
typeof n == "string" ? n.charAt(0) === "+" ? vt[i] = Ss(arguments[1]) : vt[i] = Ea(arguments[1]) : vt[i] = n;
|
|
7417
7433
|
} else if (arguments.length === 1) {
|
|
7418
7434
|
if (Array.isArray(i))
|
|
7419
7435
|
return i.map(function(r) {
|
|
@@ -7426,52 +7442,52 @@ function vt(i) {
|
|
|
7426
7442
|
return;
|
|
7427
7443
|
}
|
|
7428
7444
|
}
|
|
7429
|
-
|
|
7430
|
-
function
|
|
7445
|
+
Ir(vt);
|
|
7446
|
+
function Wr(i) {
|
|
7431
7447
|
return typeof i == "string";
|
|
7432
7448
|
}
|
|
7433
|
-
function
|
|
7449
|
+
function $r(i) {
|
|
7434
7450
|
return i in vt;
|
|
7435
7451
|
}
|
|
7436
|
-
var
|
|
7437
|
-
function
|
|
7438
|
-
return
|
|
7452
|
+
var Vr = ["PROJECTEDCRS", "PROJCRS", "GEOGCS", "GEOCCS", "PROJCS", "LOCAL_CS", "GEODCRS", "GEODETICCRS", "GEODETICDATUM", "ENGCRS", "ENGINEERINGCRS"];
|
|
7453
|
+
function Qr(i) {
|
|
7454
|
+
return Vr.some(function(s) {
|
|
7439
7455
|
return i.indexOf(s) > -1;
|
|
7440
7456
|
});
|
|
7441
7457
|
}
|
|
7442
|
-
var
|
|
7443
|
-
function
|
|
7458
|
+
var Xr = ["3857", "900913", "3785", "102113"];
|
|
7459
|
+
function Kr(i) {
|
|
7444
7460
|
var s = ei(i, "authority");
|
|
7445
7461
|
if (s) {
|
|
7446
7462
|
var n = ei(s, "epsg");
|
|
7447
|
-
return n &&
|
|
7463
|
+
return n && Xr.indexOf(n) > -1;
|
|
7448
7464
|
}
|
|
7449
7465
|
}
|
|
7450
|
-
function
|
|
7466
|
+
function Yr(i) {
|
|
7451
7467
|
var s = ei(i, "extension");
|
|
7452
7468
|
if (s)
|
|
7453
7469
|
return ei(s, "proj4");
|
|
7454
7470
|
}
|
|
7455
|
-
function
|
|
7471
|
+
function Jr(i) {
|
|
7456
7472
|
return i[0] === "+";
|
|
7457
7473
|
}
|
|
7458
|
-
function
|
|
7459
|
-
if (
|
|
7460
|
-
if (
|
|
7474
|
+
function th(i) {
|
|
7475
|
+
if (Wr(i)) {
|
|
7476
|
+
if ($r(i))
|
|
7461
7477
|
return vt[i];
|
|
7462
|
-
if (
|
|
7478
|
+
if (Qr(i)) {
|
|
7463
7479
|
var s = Ea(i);
|
|
7464
|
-
if (
|
|
7480
|
+
if (Kr(s))
|
|
7465
7481
|
return vt["EPSG:3857"];
|
|
7466
|
-
var n =
|
|
7467
|
-
return n ?
|
|
7482
|
+
var n = Yr(s);
|
|
7483
|
+
return n ? Ss(n) : s;
|
|
7468
7484
|
}
|
|
7469
|
-
if (
|
|
7470
|
-
return
|
|
7485
|
+
if (Jr(i))
|
|
7486
|
+
return Ss(i);
|
|
7471
7487
|
} else
|
|
7472
7488
|
return i;
|
|
7473
7489
|
}
|
|
7474
|
-
function
|
|
7490
|
+
function ra(i, s) {
|
|
7475
7491
|
i = i || {};
|
|
7476
7492
|
var n, r;
|
|
7477
7493
|
if (!s)
|
|
@@ -7484,27 +7500,27 @@ function jt(i, s, n) {
|
|
|
7484
7500
|
var r = i * s;
|
|
7485
7501
|
return n / Math.sqrt(1 - r * r);
|
|
7486
7502
|
}
|
|
7487
|
-
function
|
|
7503
|
+
function oe(i) {
|
|
7488
7504
|
return i < 0 ? -1 : 1;
|
|
7489
7505
|
}
|
|
7490
7506
|
function O(i) {
|
|
7491
|
-
return Math.abs(i) <= ot ? i : i -
|
|
7507
|
+
return Math.abs(i) <= ot ? i : i - oe(i) * ee;
|
|
7492
7508
|
}
|
|
7493
7509
|
function kt(i, s, n) {
|
|
7494
7510
|
var r = i * n, o = 0.5 * i;
|
|
7495
7511
|
return r = Math.pow((1 - r) / (1 + r), o), Math.tan(0.5 * (C - s)) / r;
|
|
7496
7512
|
}
|
|
7497
|
-
function
|
|
7513
|
+
function ne(i, s) {
|
|
7498
7514
|
for (var n = 0.5 * i, r, o, l = C - 2 * Math.atan(s), f = 0; f <= 15; f++)
|
|
7499
7515
|
if (r = i * Math.sin(l), o = C - 2 * Math.atan(s * Math.pow((1 - r) / (1 + r), n)) - l, l += o, Math.abs(o) <= 1e-10)
|
|
7500
7516
|
return l;
|
|
7501
7517
|
return -9999;
|
|
7502
7518
|
}
|
|
7503
|
-
function
|
|
7519
|
+
function ih() {
|
|
7504
7520
|
var i = this.b / this.a;
|
|
7505
7521
|
this.es = 1 - i * i, "x0" in this || (this.x0 = 0), "y0" in this || (this.y0 = 0), this.e = Math.sqrt(this.es), this.lat_ts ? this.sphere ? this.k0 = Math.cos(this.lat_ts) : this.k0 = jt(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) : this.k0 || (this.k ? this.k0 = this.k : this.k0 = 1);
|
|
7506
7522
|
}
|
|
7507
|
-
function
|
|
7523
|
+
function eh(i) {
|
|
7508
7524
|
var s = i.x, n = i.y;
|
|
7509
7525
|
if (n * qt > 90 && n * qt < -90 && s * qt > 180 && s * qt < -180)
|
|
7510
7526
|
return null;
|
|
@@ -7519,57 +7535,57 @@ function th(i) {
|
|
|
7519
7535
|
}
|
|
7520
7536
|
return i.x = r, i.y = o, i;
|
|
7521
7537
|
}
|
|
7522
|
-
function
|
|
7538
|
+
function sh(i) {
|
|
7523
7539
|
var s = i.x - this.x0, n = i.y - this.y0, r, o;
|
|
7524
7540
|
if (this.sphere)
|
|
7525
7541
|
o = C - 2 * Math.atan(Math.exp(-n / (this.a * this.k0)));
|
|
7526
7542
|
else {
|
|
7527
7543
|
var l = Math.exp(-n / (this.a * this.k0));
|
|
7528
|
-
if (o =
|
|
7544
|
+
if (o = ne(this.e, l), o === -9999)
|
|
7529
7545
|
return null;
|
|
7530
7546
|
}
|
|
7531
7547
|
return r = O(this.long0 + s / (this.a * this.k0)), i.x = r, i.y = o, i;
|
|
7532
7548
|
}
|
|
7533
|
-
var
|
|
7534
|
-
const
|
|
7535
|
-
init:
|
|
7536
|
-
forward:
|
|
7537
|
-
inverse:
|
|
7538
|
-
names:
|
|
7549
|
+
var nh = ["Mercator", "Popular Visualisation Pseudo Mercator", "Mercator_1SP", "Mercator_Auxiliary_Sphere", "merc"];
|
|
7550
|
+
const ah = {
|
|
7551
|
+
init: ih,
|
|
7552
|
+
forward: eh,
|
|
7553
|
+
inverse: sh,
|
|
7554
|
+
names: nh
|
|
7539
7555
|
};
|
|
7540
|
-
function
|
|
7556
|
+
function oh() {
|
|
7541
7557
|
}
|
|
7542
|
-
function
|
|
7558
|
+
function ha(i) {
|
|
7543
7559
|
return i;
|
|
7544
7560
|
}
|
|
7545
|
-
var
|
|
7546
|
-
const
|
|
7547
|
-
init:
|
|
7548
|
-
forward:
|
|
7549
|
-
inverse:
|
|
7550
|
-
names:
|
|
7561
|
+
var rh = ["longlat", "identity"];
|
|
7562
|
+
const hh = {
|
|
7563
|
+
init: oh,
|
|
7564
|
+
forward: ha,
|
|
7565
|
+
inverse: ha,
|
|
7566
|
+
names: rh
|
|
7551
7567
|
};
|
|
7552
|
-
var
|
|
7568
|
+
var lh = [ah, hh], Ne = {}, De = [];
|
|
7553
7569
|
function Sa(i, s) {
|
|
7554
|
-
var n =
|
|
7555
|
-
return i.names ? (
|
|
7556
|
-
|
|
7570
|
+
var n = De.length;
|
|
7571
|
+
return i.names ? (De[n] = i, i.names.forEach(function(r) {
|
|
7572
|
+
Ne[r.toLowerCase()] = n;
|
|
7557
7573
|
}), this) : (console.log(s), !0);
|
|
7558
7574
|
}
|
|
7559
|
-
function
|
|
7575
|
+
function uh(i) {
|
|
7560
7576
|
if (!i)
|
|
7561
7577
|
return !1;
|
|
7562
7578
|
var s = i.toLowerCase();
|
|
7563
|
-
if (typeof
|
|
7564
|
-
return
|
|
7579
|
+
if (typeof Ne[s] < "u" && De[Ne[s]])
|
|
7580
|
+
return De[Ne[s]];
|
|
7565
7581
|
}
|
|
7566
|
-
function
|
|
7567
|
-
|
|
7582
|
+
function ch() {
|
|
7583
|
+
lh.forEach(Sa);
|
|
7568
7584
|
}
|
|
7569
|
-
const
|
|
7570
|
-
start:
|
|
7585
|
+
const fh = {
|
|
7586
|
+
start: ch,
|
|
7571
7587
|
add: Sa,
|
|
7572
|
-
get:
|
|
7588
|
+
get: uh
|
|
7573
7589
|
};
|
|
7574
7590
|
var D = {};
|
|
7575
7591
|
D.MERIT = {
|
|
@@ -7783,7 +7799,7 @@ D.WGS7 = {
|
|
|
7783
7799
|
rf: 298.26,
|
|
7784
7800
|
ellipseName: "WGS 72"
|
|
7785
7801
|
};
|
|
7786
|
-
var
|
|
7802
|
+
var dh = D.WGS84 = {
|
|
7787
7803
|
a: 6378137,
|
|
7788
7804
|
rf: 298.257223563,
|
|
7789
7805
|
ellipseName: "WGS 84"
|
|
@@ -7793,9 +7809,9 @@ D.sphere = {
|
|
|
7793
7809
|
b: 6370997,
|
|
7794
7810
|
ellipseName: "Normal Sphere (r=6370997)"
|
|
7795
7811
|
};
|
|
7796
|
-
function
|
|
7812
|
+
function _h(i, s, n, r) {
|
|
7797
7813
|
var o = i * i, l = s * s, f = (o - l) / o, c = 0;
|
|
7798
|
-
r ? (i *= 1 - f * (
|
|
7814
|
+
r ? (i *= 1 - f * (kr + f * (Br + f * Rr)), o = i * i, f = 0) : c = Math.sqrt(f);
|
|
7799
7815
|
var d = (o - l) / l;
|
|
7800
7816
|
return {
|
|
7801
7817
|
es: f,
|
|
@@ -7803,10 +7819,10 @@ function fh(i, s, n, r) {
|
|
|
7803
7819
|
ep2: d
|
|
7804
7820
|
};
|
|
7805
7821
|
}
|
|
7806
|
-
function
|
|
7822
|
+
function mh(i, s, n, r, o) {
|
|
7807
7823
|
if (!i) {
|
|
7808
7824
|
var l = ei(D, r);
|
|
7809
|
-
l || (l =
|
|
7825
|
+
l || (l = dh), i = l.a, s = l.b, n = l.rf;
|
|
7810
7826
|
}
|
|
7811
7827
|
return n && !s && (s = (1 - 1 / n) * i), (n === 0 || Math.abs(i - s) < S) && (o = !0, s = i), {
|
|
7812
7828
|
a: i,
|
|
@@ -7906,22 +7922,22 @@ ct.rnb72 = {
|
|
|
7906
7922
|
ellipse: "intl",
|
|
7907
7923
|
datumName: "Reseau National Belge 1972"
|
|
7908
7924
|
};
|
|
7909
|
-
function
|
|
7925
|
+
function ph(i, s, n, r, o, l, f) {
|
|
7910
7926
|
var c = {};
|
|
7911
|
-
return i === void 0 || i === "none" ? c.datum_type =
|
|
7927
|
+
return i === void 0 || i === "none" ? c.datum_type = Es : c.datum_type = zr, 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] *= Ki, c.datum_params[4] *= Ki, c.datum_params[5] *= Ki, 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
7928
|
}
|
|
7913
7929
|
var Oa = {};
|
|
7914
|
-
function
|
|
7915
|
-
var n = new DataView(s), r =
|
|
7930
|
+
function gh(i, s) {
|
|
7931
|
+
var n = new DataView(s), r = Mh(n), o = xh(n, r), l = wh(n, o, r), f = { header: o, subgrids: l };
|
|
7916
7932
|
return Oa[i] = f, f;
|
|
7917
7933
|
}
|
|
7918
|
-
function
|
|
7934
|
+
function vh(i) {
|
|
7919
7935
|
if (i === void 0)
|
|
7920
7936
|
return null;
|
|
7921
7937
|
var s = i.split(",");
|
|
7922
|
-
return s.map(
|
|
7938
|
+
return s.map(yh);
|
|
7923
7939
|
}
|
|
7924
|
-
function
|
|
7940
|
+
function yh(i) {
|
|
7925
7941
|
if (i.length === 0)
|
|
7926
7942
|
return null;
|
|
7927
7943
|
var s = i[0] === "@";
|
|
@@ -7935,28 +7951,28 @@ function gh(i) {
|
|
|
7935
7951
|
function Li(i) {
|
|
7936
7952
|
return i / 3600 * Math.PI / 180;
|
|
7937
7953
|
}
|
|
7938
|
-
function
|
|
7954
|
+
function Mh(i) {
|
|
7939
7955
|
var s = i.getInt32(8, !1);
|
|
7940
7956
|
return s === 11 ? !1 : (s = i.getInt32(8, !0), s !== 11 && console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"), !0);
|
|
7941
7957
|
}
|
|
7942
|
-
function
|
|
7958
|
+
function xh(i, s) {
|
|
7943
7959
|
return {
|
|
7944
7960
|
nFields: i.getInt32(8, s),
|
|
7945
7961
|
nSubgridFields: i.getInt32(24, s),
|
|
7946
7962
|
nSubgrids: i.getInt32(40, s),
|
|
7947
|
-
shiftType:
|
|
7963
|
+
shiftType: Os(i, 56, 64).trim(),
|
|
7948
7964
|
fromSemiMajorAxis: i.getFloat64(120, s),
|
|
7949
7965
|
fromSemiMinorAxis: i.getFloat64(136, s),
|
|
7950
7966
|
toSemiMajorAxis: i.getFloat64(152, s),
|
|
7951
7967
|
toSemiMinorAxis: i.getFloat64(168, s)
|
|
7952
7968
|
};
|
|
7953
7969
|
}
|
|
7954
|
-
function
|
|
7970
|
+
function Os(i, s, n) {
|
|
7955
7971
|
return String.fromCharCode.apply(null, new Uint8Array(i.buffer.slice(s, n)));
|
|
7956
7972
|
}
|
|
7957
|
-
function
|
|
7973
|
+
function wh(i, s, n) {
|
|
7958
7974
|
for (var r = 176, o = [], l = 0; l < s.nSubgrids; l++) {
|
|
7959
|
-
var f =
|
|
7975
|
+
var f = Lh(i, r, n), c = Ph(i, r, f, n), d = Math.round(
|
|
7960
7976
|
1 + (f.upperLongitude - f.lowerLongitude) / f.longitudeInterval
|
|
7961
7977
|
), m = Math.round(
|
|
7962
7978
|
1 + (f.upperLatitude - f.lowerLatitude) / f.latitudeInterval
|
|
@@ -7966,20 +7982,20 @@ function Mh(i, s, n) {
|
|
|
7966
7982
|
del: [Li(f.longitudeInterval), Li(f.latitudeInterval)],
|
|
7967
7983
|
lim: [d, m],
|
|
7968
7984
|
count: f.gridNodeCount,
|
|
7969
|
-
cvs:
|
|
7985
|
+
cvs: bh(c)
|
|
7970
7986
|
}), r += 176 + f.gridNodeCount * 16;
|
|
7971
7987
|
}
|
|
7972
7988
|
return o;
|
|
7973
7989
|
}
|
|
7974
|
-
function
|
|
7990
|
+
function bh(i) {
|
|
7975
7991
|
return i.map(function(s) {
|
|
7976
7992
|
return [Li(s.longitudeShift), Li(s.latitudeShift)];
|
|
7977
7993
|
});
|
|
7978
7994
|
}
|
|
7979
|
-
function
|
|
7995
|
+
function Lh(i, s, n) {
|
|
7980
7996
|
return {
|
|
7981
|
-
name:
|
|
7982
|
-
parent:
|
|
7997
|
+
name: Os(i, s + 8, s + 16).trim(),
|
|
7998
|
+
parent: Os(i, s + 24, s + 24 + 8).trim(),
|
|
7983
7999
|
lowerLatitude: i.getFloat64(s + 72, n),
|
|
7984
8000
|
upperLatitude: i.getFloat64(s + 88, n),
|
|
7985
8001
|
lowerLongitude: i.getFloat64(s + 104, n),
|
|
@@ -7989,7 +8005,7 @@ function wh(i, s, n) {
|
|
|
7989
8005
|
gridNodeCount: i.getInt32(s + 168, n)
|
|
7990
8006
|
};
|
|
7991
8007
|
}
|
|
7992
|
-
function
|
|
8008
|
+
function Ph(i, s, n, r) {
|
|
7993
8009
|
for (var o = s + 176, l = 16, f = [], c = 0; c < n.gridNodeCount; c++) {
|
|
7994
8010
|
var d = {
|
|
7995
8011
|
latitudeShift: i.getFloat32(o + c * l, r),
|
|
@@ -8008,7 +8024,7 @@ function Ut(i, s) {
|
|
|
8008
8024
|
if (m)
|
|
8009
8025
|
throw m;
|
|
8010
8026
|
};
|
|
8011
|
-
var n =
|
|
8027
|
+
var n = th(i);
|
|
8012
8028
|
if (typeof n != "object") {
|
|
8013
8029
|
s("Could not parse to valid json: " + i);
|
|
8014
8030
|
return;
|
|
@@ -8023,7 +8039,7 @@ function Ut(i, s) {
|
|
|
8023
8039
|
o && (n.datum_params = n.datum_params || (o.towgs84 ? o.towgs84.split(",") : null), n.ellps = o.ellipse, n.datumName = o.datumName ? o.datumName : n.datumCode);
|
|
8024
8040
|
}
|
|
8025
8041
|
n.k0 = n.k0 || 1, n.axis = n.axis || "enu", n.ellps = n.ellps || "wgs84", n.lat1 = n.lat1 || n.lat0;
|
|
8026
|
-
var l =
|
|
8042
|
+
var l = mh(n.a, n.b, n.rf, n.ellps, n.sphere), f = _h(l.a, l.b, l.rf, n.R_A), c = vh(n.nadgrids), d = n.datum || ph(
|
|
8027
8043
|
n.datumCode,
|
|
8028
8044
|
n.datum_params,
|
|
8029
8045
|
l.a,
|
|
@@ -8032,11 +8048,11 @@ function Ut(i, s) {
|
|
|
8032
8048
|
f.ep2,
|
|
8033
8049
|
c
|
|
8034
8050
|
);
|
|
8035
|
-
|
|
8051
|
+
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
8052
|
}
|
|
8037
|
-
Ut.projections =
|
|
8053
|
+
Ut.projections = fh;
|
|
8038
8054
|
Ut.projections.start();
|
|
8039
|
-
function
|
|
8055
|
+
function Ah(i, s) {
|
|
8040
8056
|
return i.datum_type !== s.datum_type || i.a !== s.a || Math.abs(i.es - s.es) > 5e-11 ? !1 : i.datum_type === ui ? i.datum_params[0] === s.datum_params[0] && i.datum_params[1] === s.datum_params[1] && i.datum_params[2] === s.datum_params[2] : i.datum_type === ci ? i.datum_params[0] === s.datum_params[0] && i.datum_params[1] === s.datum_params[1] && i.datum_params[2] === s.datum_params[2] && i.datum_params[3] === s.datum_params[3] && i.datum_params[4] === s.datum_params[4] && i.datum_params[5] === s.datum_params[5] && i.datum_params[6] === s.datum_params[6] : !0;
|
|
8041
8057
|
}
|
|
8042
8058
|
function Ia(i, s, n) {
|
|
@@ -8078,7 +8094,7 @@ function za(i, s, n, r) {
|
|
|
8078
8094
|
z: Mt
|
|
8079
8095
|
};
|
|
8080
8096
|
}
|
|
8081
|
-
function
|
|
8097
|
+
function Th(i, s, n) {
|
|
8082
8098
|
if (s === ui)
|
|
8083
8099
|
return {
|
|
8084
8100
|
x: i.x + n[0],
|
|
@@ -8094,7 +8110,7 @@ function Ph(i, s, n) {
|
|
|
8094
8110
|
};
|
|
8095
8111
|
}
|
|
8096
8112
|
}
|
|
8097
|
-
function
|
|
8113
|
+
function Ch(i, s, n) {
|
|
8098
8114
|
if (s === ui)
|
|
8099
8115
|
return {
|
|
8100
8116
|
x: i.x - n[0],
|
|
@@ -8110,30 +8126,30 @@ function Ah(i, s, n) {
|
|
|
8110
8126
|
};
|
|
8111
8127
|
}
|
|
8112
8128
|
}
|
|
8113
|
-
function
|
|
8129
|
+
function Oe(i) {
|
|
8114
8130
|
return i === ui || i === ci;
|
|
8115
8131
|
}
|
|
8116
|
-
function
|
|
8117
|
-
if (
|
|
8132
|
+
function Eh(i, s, n) {
|
|
8133
|
+
if (Ah(i, s) || i.datum_type === Es || s.datum_type === Es)
|
|
8118
8134
|
return n;
|
|
8119
8135
|
var r = i.a, o = i.es;
|
|
8120
8136
|
if (i.datum_type === Ti) {
|
|
8121
|
-
var l =
|
|
8137
|
+
var l = la(i, !1, n);
|
|
8122
8138
|
if (l !== 0)
|
|
8123
8139
|
return;
|
|
8124
|
-
r =
|
|
8140
|
+
r = sa, o = na;
|
|
8125
8141
|
}
|
|
8126
8142
|
var f = s.a, c = s.b, d = s.es;
|
|
8127
|
-
if (s.datum_type === Ti && (f =
|
|
8143
|
+
if (s.datum_type === Ti && (f = sa, c = Nr, d = na), o === d && r === f && !Oe(i.datum_type) && !Oe(s.datum_type))
|
|
8128
8144
|
return n;
|
|
8129
|
-
if (n = Ia(n, o, r),
|
|
8130
|
-
var m =
|
|
8145
|
+
if (n = Ia(n, o, r), Oe(i.datum_type) && (n = Th(n, i.datum_type, i.datum_params)), Oe(s.datum_type) && (n = Ch(n, s.datum_type, s.datum_params)), n = za(n, d, f, c), s.datum_type === Ti) {
|
|
8146
|
+
var m = la(s, !0, n);
|
|
8131
8147
|
if (m !== 0)
|
|
8132
8148
|
return;
|
|
8133
8149
|
}
|
|
8134
8150
|
return n;
|
|
8135
8151
|
}
|
|
8136
|
-
function
|
|
8152
|
+
function la(i, s, n) {
|
|
8137
8153
|
if (i.grids === null || i.grids.length === 0)
|
|
8138
8154
|
return console.log("Grid shift grids not found"), -1;
|
|
8139
8155
|
var r = { x: -n.x, y: n.y }, o = { x: Number.NaN, y: Number.NaN }, l = [];
|
|
@@ -8151,26 +8167,26 @@ function ca(i, s, n) {
|
|
|
8151
8167
|
}
|
|
8152
8168
|
for (var d = c.grid.subgrids, m = 0, v = d.length; m < v; m++) {
|
|
8153
8169
|
var p = d[m], y = (Math.abs(p.del[1]) + Math.abs(p.del[0])) / 1e4, b = p.ll[0] - y, A = p.ll[1] - y, P = p.ll[0] + (p.lim[0] - 1) * p.del[0] + y, E = p.ll[1] + (p.lim[1] - 1) * p.del[1] + y;
|
|
8154
|
-
if (!(A > r.y || b > r.x || E < r.y || P < r.x) && (o =
|
|
8170
|
+
if (!(A > r.y || b > r.x || E < r.y || P < r.x) && (o = Sh(r, s, p), !isNaN(o.x)))
|
|
8155
8171
|
break t;
|
|
8156
8172
|
}
|
|
8157
8173
|
}
|
|
8158
8174
|
return isNaN(o.x) ? (console.log("Failed to find a grid shift table for location '" + -r.x * qt + " " + r.y * qt + " tried: '" + l + "'"), -1) : (n.x = -o.x, n.y = o.y, 0);
|
|
8159
8175
|
}
|
|
8160
|
-
function
|
|
8176
|
+
function Sh(i, s, n) {
|
|
8161
8177
|
var r = { x: Number.NaN, y: Number.NaN };
|
|
8162
8178
|
if (isNaN(i.x))
|
|
8163
8179
|
return r;
|
|
8164
8180
|
var o = { x: i.x, y: i.y };
|
|
8165
8181
|
o.x -= n.ll[0], o.y -= n.ll[1], o.x = O(o.x - Math.PI) + Math.PI;
|
|
8166
|
-
var l =
|
|
8182
|
+
var l = ua(o, n);
|
|
8167
8183
|
if (s) {
|
|
8168
8184
|
if (isNaN(l.x))
|
|
8169
8185
|
return r;
|
|
8170
8186
|
l.x = o.x - l.x, l.y = o.y - l.y;
|
|
8171
8187
|
var f = 9, c = 1e-12, d, m;
|
|
8172
8188
|
do {
|
|
8173
|
-
if (m =
|
|
8189
|
+
if (m = ua(l, n), isNaN(m.x)) {
|
|
8174
8190
|
console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");
|
|
8175
8191
|
break;
|
|
8176
8192
|
}
|
|
@@ -8183,7 +8199,7 @@ function Ch(i, s, n) {
|
|
|
8183
8199
|
isNaN(l.x) || (r.x = i.x + l.x, r.y = i.y + l.y);
|
|
8184
8200
|
return r;
|
|
8185
8201
|
}
|
|
8186
|
-
function
|
|
8202
|
+
function ua(i, s) {
|
|
8187
8203
|
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
8204
|
if (r.x < 0 || r.x >= s.lim[0] || r.y < 0 || r.y >= s.lim[1])
|
|
8189
8205
|
return l;
|
|
@@ -8197,7 +8213,7 @@ function fa(i, s) {
|
|
|
8197
8213
|
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
8214
|
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
8215
|
}
|
|
8200
|
-
function
|
|
8216
|
+
function ca(i, s, n) {
|
|
8201
8217
|
var r = n.x, o = n.y, l = n.z || 0, f, c, d, m = {};
|
|
8202
8218
|
for (d = 0; d < 3; d++)
|
|
8203
8219
|
if (!(s && d === 2 && n.z === void 0))
|
|
@@ -8232,10 +8248,10 @@ function Na(i) {
|
|
|
8232
8248
|
};
|
|
8233
8249
|
return i.length > 2 && (s.z = i[2]), i.length > 3 && (s.m = i[3]), s;
|
|
8234
8250
|
}
|
|
8235
|
-
function
|
|
8236
|
-
|
|
8251
|
+
function Oh(i) {
|
|
8252
|
+
fa(i.x), fa(i.y);
|
|
8237
8253
|
}
|
|
8238
|
-
function
|
|
8254
|
+
function fa(i) {
|
|
8239
8255
|
if (typeof Number.isFinite == "function") {
|
|
8240
8256
|
if (Number.isFinite(i))
|
|
8241
8257
|
return;
|
|
@@ -8244,10 +8260,10 @@ function _a(i) {
|
|
|
8244
8260
|
if (typeof i != "number" || i !== i || !isFinite(i))
|
|
8245
8261
|
throw new TypeError("coordinates must be finite numbers");
|
|
8246
8262
|
}
|
|
8247
|
-
function
|
|
8263
|
+
function Ih(i, s) {
|
|
8248
8264
|
return (i.datum.datum_type === ui || i.datum.datum_type === ci || i.datum.datum_type === Ti) && s.datumCode !== "WGS84" || (s.datum.datum_type === ui || s.datum.datum_type === ci || s.datum.datum_type === Ti) && i.datumCode !== "WGS84";
|
|
8249
8265
|
}
|
|
8250
|
-
function
|
|
8266
|
+
function Ze(i, s, n, r) {
|
|
8251
8267
|
var o;
|
|
8252
8268
|
Array.isArray(n) ? n = Na(n) : n = {
|
|
8253
8269
|
x: n.x,
|
|
@@ -8256,7 +8272,7 @@ function Fe(i, s, n, r) {
|
|
|
8256
8272
|
m: n.m
|
|
8257
8273
|
};
|
|
8258
8274
|
var l = n.z !== void 0;
|
|
8259
|
-
if (
|
|
8275
|
+
if (Oh(n), i.datum && s.datum && Ih(i, s) && (o = new Ut("WGS84"), n = Ze(i, o, n, r), i = o), r && i.axis !== "enu" && (n = ca(i, !1, n)), i.projName === "longlat")
|
|
8260
8276
|
n = {
|
|
8261
8277
|
x: n.x * mt,
|
|
8262
8278
|
y: n.y * mt,
|
|
@@ -8268,7 +8284,7 @@ function Fe(i, s, n, r) {
|
|
|
8268
8284
|
z: n.z || 0
|
|
8269
8285
|
}), n = i.inverse(n), !n)
|
|
8270
8286
|
return;
|
|
8271
|
-
if (i.from_greenwich && (n.x += i.from_greenwich), n =
|
|
8287
|
+
if (i.from_greenwich && (n.x += i.from_greenwich), n = Eh(i.datum, s.datum, n), !!n)
|
|
8272
8288
|
return s.from_greenwich && (n = {
|
|
8273
8289
|
x: n.x - s.from_greenwich,
|
|
8274
8290
|
y: n.y,
|
|
@@ -8281,12 +8297,12 @@ function Fe(i, s, n, r) {
|
|
|
8281
8297
|
x: n.x / s.to_meter,
|
|
8282
8298
|
y: n.y / s.to_meter,
|
|
8283
8299
|
z: n.z || 0
|
|
8284
|
-
})), r && s.axis !== "enu" ?
|
|
8300
|
+
})), r && s.axis !== "enu" ? ca(s, !0, n) : (n && !l && delete n.z, n);
|
|
8285
8301
|
}
|
|
8286
|
-
var
|
|
8302
|
+
var da = Ut("WGS84");
|
|
8287
8303
|
function Ts(i, s, n, r) {
|
|
8288
8304
|
var o, l, f;
|
|
8289
|
-
return Array.isArray(n) ? (o =
|
|
8305
|
+
return Array.isArray(n) ? (o = Ze(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 = Ze(i, s, n, r), f = Object.keys(n), f.length === 2 || f.forEach(function(c) {
|
|
8290
8306
|
if (typeof i.name < "u" && i.name === "geocent" || typeof s.name < "u" && s.name === "geocent") {
|
|
8291
8307
|
if (c === "x" || c === "y" || c === "z")
|
|
8292
8308
|
return;
|
|
@@ -8295,13 +8311,13 @@ function Ts(i, s, n, r) {
|
|
|
8295
8311
|
l[c] = n[c];
|
|
8296
8312
|
}), l);
|
|
8297
8313
|
}
|
|
8298
|
-
function
|
|
8314
|
+
function _a(i) {
|
|
8299
8315
|
return i instanceof Ut ? i : i.oProj ? i.oProj : Ut(i);
|
|
8300
8316
|
}
|
|
8301
8317
|
function Ct(i, s, n) {
|
|
8302
|
-
i =
|
|
8318
|
+
i = _a(i);
|
|
8303
8319
|
var r = !1, o;
|
|
8304
|
-
return typeof s > "u" ? (s = i, i =
|
|
8320
|
+
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
8321
|
forward: function(l, f) {
|
|
8306
8322
|
return Ts(i, s, l, f);
|
|
8307
8323
|
},
|
|
@@ -8310,33 +8326,33 @@ function Ct(i, s, n) {
|
|
|
8310
8326
|
}
|
|
8311
8327
|
}, r && (o.oProj = s), o);
|
|
8312
8328
|
}
|
|
8313
|
-
var
|
|
8314
|
-
const
|
|
8329
|
+
var ma = 6, ka = "AJSAJS", Ba = "AFAFAF", Pi = 65, Lt = 73, It = 79, Vi = 86, Qi = 90;
|
|
8330
|
+
const zh = {
|
|
8315
8331
|
forward: Ra,
|
|
8316
|
-
inverse:
|
|
8332
|
+
inverse: Nh,
|
|
8317
8333
|
toPoint: Da
|
|
8318
8334
|
};
|
|
8319
8335
|
function Ra(i, s) {
|
|
8320
|
-
return s = s || 5, kh(
|
|
8336
|
+
return s = s || 5, Rh(kh({
|
|
8321
8337
|
lat: i[1],
|
|
8322
8338
|
lon: i[0]
|
|
8323
8339
|
}), s);
|
|
8324
8340
|
}
|
|
8325
|
-
function
|
|
8326
|
-
var s =
|
|
8341
|
+
function Nh(i) {
|
|
8342
|
+
var s = ks(Fa(i.toUpperCase()));
|
|
8327
8343
|
return s.lat && s.lon ? [s.lon, s.lat, s.lon, s.lat] : [s.left, s.bottom, s.right, s.top];
|
|
8328
8344
|
}
|
|
8329
8345
|
function Da(i) {
|
|
8330
|
-
var s =
|
|
8346
|
+
var s = ks(Fa(i.toUpperCase()));
|
|
8331
8347
|
return s.lat && s.lon ? [s.lon, s.lat] : [(s.left + s.right) / 2, (s.top + s.bottom) / 2];
|
|
8332
8348
|
}
|
|
8333
8349
|
function Cs(i) {
|
|
8334
8350
|
return i * (Math.PI / 180);
|
|
8335
8351
|
}
|
|
8336
|
-
function
|
|
8352
|
+
function pa(i) {
|
|
8337
8353
|
return 180 * (i / Math.PI);
|
|
8338
8354
|
}
|
|
8339
|
-
function
|
|
8355
|
+
function kh(i) {
|
|
8340
8356
|
var s = i.lat, n = i.lon, r = 6378137, o = 669438e-8, l = 0.9996, f, c, d, m, v, p, y, b = Cs(s), A = Cs(n), P, E;
|
|
8341
8357
|
E = Math.floor((n + 180) / 6) + 1, n === 180 && (E = 60), s >= 56 && s < 64 && n >= 3 && n < 12 && (E = 32), s >= 72 && s < 84 && (n >= 0 && n < 9 ? E = 31 : n >= 9 && n < 21 ? E = 33 : n >= 21 && n < 33 ? E = 35 : n >= 33 && n < 42 && (E = 37)), f = (E - 1) * 6 - 180 + 3, P = Cs(f), c = o / (1 - o), d = r / Math.sqrt(1 - o * Math.sin(b) * Math.sin(b)), m = Math.tan(b) * Math.tan(b), v = c * Math.cos(b) * Math.cos(b), p = Math.cos(b) * (A - P), y = r * ((1 - o / 4 - 3 * o * o / 64 - 5 * o * o * o / 256) * b - (3 * o / 8 + 3 * o * o / 32 + 45 * o * o * o / 1024) * Math.sin(2 * b) + (15 * o * o / 256 + 45 * o * o * o / 1024) * Math.sin(4 * b) - 35 * o * o * o / 3072 * Math.sin(6 * b));
|
|
8342
8358
|
var z = l * d * (p + (1 - m + v) * p * p * p / 6 + (5 - 18 * m + m * m + 72 * v - 58 * c) * p * p * p * p * p / 120) + 5e5, B = l * (y + d * Math.tan(b) * (p * p / 2 + (5 - m + 9 * v + 4 * v * v) * p * p * p * p / 24 + (61 - 58 * m + m * m + 600 * v - 330 * c) * p * p * p * p * p * p / 720));
|
|
@@ -8344,22 +8360,22 @@ function zh(i) {
|
|
|
8344
8360
|
northing: Math.round(B),
|
|
8345
8361
|
easting: Math.round(z),
|
|
8346
8362
|
zoneNumber: E,
|
|
8347
|
-
zoneLetter:
|
|
8363
|
+
zoneLetter: Bh(s)
|
|
8348
8364
|
};
|
|
8349
8365
|
}
|
|
8350
|
-
function
|
|
8366
|
+
function ks(i) {
|
|
8351
8367
|
var s = i.northing, n = i.easting, r = i.zoneLetter, o = i.zoneNumber;
|
|
8352
8368
|
if (o < 0 || o > 60)
|
|
8353
8369
|
return null;
|
|
8354
8370
|
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
8371
|
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
8372
|
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 =
|
|
8373
|
+
H = pa(H);
|
|
8358
8374
|
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 +
|
|
8375
|
+
W = E + pa(W);
|
|
8360
8376
|
var ut;
|
|
8361
8377
|
if (i.accuracy) {
|
|
8362
|
-
var tt =
|
|
8378
|
+
var tt = ks({
|
|
8363
8379
|
northing: i.northing + i.accuracy,
|
|
8364
8380
|
easting: i.easting + i.accuracy,
|
|
8365
8381
|
zoneLetter: i.zoneLetter,
|
|
@@ -8378,23 +8394,23 @@ function Rs(i) {
|
|
|
8378
8394
|
};
|
|
8379
8395
|
return ut;
|
|
8380
8396
|
}
|
|
8381
|
-
function
|
|
8397
|
+
function Bh(i) {
|
|
8382
8398
|
var s = "Z";
|
|
8383
8399
|
return 84 >= i && i >= 72 ? s = "X" : 72 > i && i >= 64 ? s = "W" : 64 > i && i >= 56 ? s = "V" : 56 > i && i >= 48 ? s = "U" : 48 > i && i >= 40 ? s = "T" : 40 > i && i >= 32 ? s = "S" : 32 > i && i >= 24 ? s = "R" : 24 > i && i >= 16 ? s = "Q" : 16 > i && i >= 8 ? s = "P" : 8 > i && i >= 0 ? s = "N" : 0 > i && i >= -8 ? s = "M" : -8 > i && i >= -16 ? s = "L" : -16 > i && i >= -24 ? s = "K" : -24 > i && i >= -32 ? s = "J" : -32 > i && i >= -40 ? s = "H" : -40 > i && i >= -48 ? s = "G" : -48 > i && i >= -56 ? s = "F" : -56 > i && i >= -64 ? s = "E" : -64 > i && i >= -72 ? s = "D" : -72 > i && i >= -80 && (s = "C"), s;
|
|
8384
8400
|
}
|
|
8385
|
-
function
|
|
8401
|
+
function Rh(i, s) {
|
|
8386
8402
|
var n = "00000" + i.easting, r = "00000" + i.northing;
|
|
8387
|
-
return i.zoneNumber + i.zoneLetter +
|
|
8403
|
+
return i.zoneNumber + i.zoneLetter + Dh(i.easting, i.northing, i.zoneNumber) + n.substr(n.length - 5, s) + r.substr(r.length - 5, s);
|
|
8388
8404
|
}
|
|
8389
|
-
function
|
|
8405
|
+
function Dh(i, s, n) {
|
|
8390
8406
|
var r = Za(n), o = Math.floor(i / 1e5), l = Math.floor(s / 1e5) % 20;
|
|
8391
|
-
return
|
|
8407
|
+
return Zh(o, l, r);
|
|
8392
8408
|
}
|
|
8393
8409
|
function Za(i) {
|
|
8394
|
-
var s = i %
|
|
8395
|
-
return s === 0 && (s =
|
|
8410
|
+
var s = i % ma;
|
|
8411
|
+
return s === 0 && (s = ma), s;
|
|
8396
8412
|
}
|
|
8397
|
-
function
|
|
8413
|
+
function Zh(i, s, n) {
|
|
8398
8414
|
var r = n - 1, o = ka.charCodeAt(r), l = Ba.charCodeAt(r), f = o + i - 1, c = l + s, d = !1;
|
|
8399
8415
|
f > Qi && (f = f - Qi + Pi - 1, d = !0), (f === Lt || o < Lt && f > Lt || (f > Lt || o < Lt) && d) && f++, (f === It || o < It && f > It || (f > It || o < It) && d) && (f++, f === Lt && f++), f > Qi && (f = f - Qi + Pi - 1), c > Vi ? (c = c - Vi + Pi - 1, d = !0) : d = !1, (c === Lt || l < Lt && c > Lt || (c > Lt || l < Lt) && d) && c++, (c === It || l < It && c > It || (c > It || l < It) && d) && (c++, c === Lt && c++), c > Vi && (c = c - Vi + Pi - 1);
|
|
8400
8416
|
var m = String.fromCharCode(f) + String.fromCharCode(c);
|
|
@@ -8415,7 +8431,7 @@ function Fa(i) {
|
|
|
8415
8431
|
if (c <= "A" || c === "B" || c === "Y" || c >= "Z" || c === "I" || c === "O")
|
|
8416
8432
|
throw "MGRSPoint zone letter " + c + " not handled: " + i;
|
|
8417
8433
|
n = i.substring(l, l += 2);
|
|
8418
|
-
for (var d = Za(f), m =
|
|
8434
|
+
for (var d = Za(f), m = Fh(n.charAt(0), d), v = Gh(n.charAt(1), d); v < qh(c); )
|
|
8419
8435
|
v += 2e6;
|
|
8420
8436
|
var p = s - l;
|
|
8421
8437
|
if (p % 2 !== 0)
|
|
@@ -8432,7 +8448,7 @@ northing meters` + i;
|
|
|
8432
8448
|
accuracy: P
|
|
8433
8449
|
};
|
|
8434
8450
|
}
|
|
8435
|
-
function
|
|
8451
|
+
function Fh(i, s) {
|
|
8436
8452
|
for (var n = ka.charCodeAt(s - 1), r = 1e5, o = !1; n !== i.charCodeAt(0); ) {
|
|
8437
8453
|
if (n++, n === Lt && n++, n === It && n++, n > Qi) {
|
|
8438
8454
|
if (o)
|
|
@@ -8443,7 +8459,7 @@ function Dh(i, s) {
|
|
|
8443
8459
|
}
|
|
8444
8460
|
return r;
|
|
8445
8461
|
}
|
|
8446
|
-
function
|
|
8462
|
+
function Gh(i, s) {
|
|
8447
8463
|
if (i > "V")
|
|
8448
8464
|
throw "MGRSPoint given invalid Northing " + i;
|
|
8449
8465
|
for (var n = Ba.charCodeAt(s - 1), r = 0, o = !1; n !== i.charCodeAt(0); ) {
|
|
@@ -8456,7 +8472,7 @@ function Zh(i, s) {
|
|
|
8456
8472
|
}
|
|
8457
8473
|
return r;
|
|
8458
8474
|
}
|
|
8459
|
-
function
|
|
8475
|
+
function qh(i) {
|
|
8460
8476
|
var s;
|
|
8461
8477
|
switch (i) {
|
|
8462
8478
|
case "C":
|
|
@@ -8546,29 +8562,29 @@ Ei.fromMGRS = function(i) {
|
|
|
8546
8562
|
Ei.prototype.toMGRS = function(i) {
|
|
8547
8563
|
return Ra([this.x, this.y], i);
|
|
8548
8564
|
};
|
|
8549
|
-
var
|
|
8550
|
-
function
|
|
8565
|
+
var Uh = 1, jh = 0.25, ga = 0.046875, va = 0.01953125, ya = 0.01068115234375, Hh = 0.75, Wh = 0.46875, $h = 0.013020833333333334, Vh = 0.007120768229166667, Qh = 0.3645833333333333, Xh = 0.005696614583333333, Kh = 0.3076171875;
|
|
8566
|
+
function Bs(i) {
|
|
8551
8567
|
var s = [];
|
|
8552
|
-
s[0] =
|
|
8568
|
+
s[0] = Uh - i * (jh + i * (ga + i * (va + i * ya))), s[1] = i * (Hh - i * (ga + i * (va + i * ya)));
|
|
8553
8569
|
var n = i * i;
|
|
8554
|
-
return s[2] = n * (
|
|
8570
|
+
return s[2] = n * (Wh - i * ($h + i * Vh)), n *= i, s[3] = n * (Qh - i * Xh), s[4] = n * i * Kh, s;
|
|
8555
8571
|
}
|
|
8556
8572
|
function Oi(i, s, n, r) {
|
|
8557
8573
|
return n *= s, s *= s, r[0] * i - n * (r[1] + s * (r[2] + s * (r[3] + s * r[4])));
|
|
8558
8574
|
}
|
|
8559
|
-
var
|
|
8560
|
-
function
|
|
8561
|
-
for (var r = 1 / (1 - s), o = i, l =
|
|
8575
|
+
var Yh = 20;
|
|
8576
|
+
function Rs(i, s, n) {
|
|
8577
|
+
for (var r = 1 / (1 - s), o = i, l = Yh; l; --l) {
|
|
8562
8578
|
var f = Math.sin(o), c = 1 - s * f * f;
|
|
8563
8579
|
if (c = (Oi(o, f, Math.cos(o), n) - i) * (c * Math.sqrt(c)) * r, o -= c, Math.abs(c) < S)
|
|
8564
8580
|
return o;
|
|
8565
8581
|
}
|
|
8566
8582
|
return o;
|
|
8567
8583
|
}
|
|
8568
|
-
function
|
|
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 =
|
|
8584
|
+
function Jh() {
|
|
8585
|
+
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
8586
|
}
|
|
8571
|
-
function
|
|
8587
|
+
function tl(i) {
|
|
8572
8588
|
var s = i.x, n = i.y, r = O(s - this.long0), o, l, f, c = Math.sin(n), d = Math.cos(n);
|
|
8573
8589
|
if (this.es) {
|
|
8574
8590
|
var v = d * r, p = Math.pow(v, 2), y = this.ep2 * Math.pow(d, 2), b = Math.pow(y, 2), A = Math.abs(d) > S ? Math.tan(n) : 0, P = Math.pow(A, 2), E = Math.pow(P, 2);
|
|
@@ -8589,28 +8605,28 @@ function Yh(i) {
|
|
|
8589
8605
|
}
|
|
8590
8606
|
return i.x = l, i.y = f, i;
|
|
8591
8607
|
}
|
|
8592
|
-
function
|
|
8608
|
+
function il(i) {
|
|
8593
8609
|
var s, n, r, o, l = (i.x - this.x0) * (1 / this.a), f = (i.y - this.y0) * (1 / this.a);
|
|
8594
8610
|
if (this.es)
|
|
8595
|
-
if (s = this.ml0 + f / this.k0, n =
|
|
8611
|
+
if (s = this.ml0 + f / this.k0, n = Rs(s, this.es, this.en), Math.abs(n) < C) {
|
|
8596
8612
|
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
8613
|
s = 1 - this.es * Math.pow(p, 2);
|
|
8598
8614
|
var B = l * Math.sqrt(s) / this.k0, k = Math.pow(B, 2);
|
|
8599
8615
|
s = s * b, r = n - s * k / (1 - this.es) * 0.5 * (1 - k / 12 * (5 + 3 * E - 9 * A * E + A - 4 * P - k / 30 * (61 + 90 * E - 252 * A * E + 45 * z + 46 * A - k / 56 * (1385 + 3633 * E + 4095 * z + 1574 * z * E)))), o = O(this.long0 + B * (1 - k / 6 * (1 + 2 * E + A - k / 20 * (5 + 28 * E + 24 * z + 8 * A * E + 6 * A - k / 42 * (61 + 662 * E + 1320 * z + 720 * z * E)))) / y);
|
|
8600
8616
|
} else
|
|
8601
|
-
r = C *
|
|
8617
|
+
r = C * oe(f), o = 0;
|
|
8602
8618
|
else {
|
|
8603
8619
|
var c = Math.exp(l / this.k0), d = 0.5 * (c - 1 / c), m = this.lat0 + f / this.k0, v = Math.cos(m);
|
|
8604
8620
|
s = Math.sqrt((1 - Math.pow(v, 2)) / (1 + Math.pow(d, 2))), r = Math.asin(s), f < 0 && (r = -r), d === 0 && v === 0 ? o = 0 : o = O(Math.atan2(d, v) + this.long0);
|
|
8605
8621
|
}
|
|
8606
8622
|
return i.x = o, i.y = r, i;
|
|
8607
8623
|
}
|
|
8608
|
-
var
|
|
8609
|
-
const
|
|
8610
|
-
init:
|
|
8611
|
-
forward:
|
|
8612
|
-
inverse:
|
|
8613
|
-
names:
|
|
8624
|
+
var el = ["Fast_Transverse_Mercator", "Fast Transverse Mercator"];
|
|
8625
|
+
const ke = {
|
|
8626
|
+
init: Jh,
|
|
8627
|
+
forward: tl,
|
|
8628
|
+
inverse: il,
|
|
8629
|
+
names: el
|
|
8614
8630
|
};
|
|
8615
8631
|
function Ga(i) {
|
|
8616
8632
|
var s = Math.exp(i);
|
|
@@ -8621,53 +8637,53 @@ function Pt(i, s) {
|
|
|
8621
8637
|
var n = Math.max(i, s), r = Math.min(i, s) / (n || 1);
|
|
8622
8638
|
return n * Math.sqrt(1 + Math.pow(r, 2));
|
|
8623
8639
|
}
|
|
8624
|
-
function
|
|
8640
|
+
function sl(i) {
|
|
8625
8641
|
var s = 1 + i, n = s - 1;
|
|
8626
8642
|
return n === 0 ? i : i * Math.log(s) / n;
|
|
8627
8643
|
}
|
|
8628
|
-
function
|
|
8644
|
+
function nl(i) {
|
|
8629
8645
|
var s = Math.abs(i);
|
|
8630
|
-
return s =
|
|
8646
|
+
return s = sl(s * (1 + s / (Pt(1, s) + 1))), i < 0 ? -s : s;
|
|
8631
8647
|
}
|
|
8632
|
-
function
|
|
8648
|
+
function Ds(i, s) {
|
|
8633
8649
|
for (var n = 2 * Math.cos(2 * s), r = i.length - 1, o = i[r], l = 0, f; --r >= 0; )
|
|
8634
8650
|
f = -l + n * o + i[r], l = o, o = f;
|
|
8635
8651
|
return s + f * Math.sin(2 * s);
|
|
8636
8652
|
}
|
|
8637
|
-
function
|
|
8653
|
+
function al(i, s) {
|
|
8638
8654
|
for (var n = 2 * Math.cos(s), r = i.length - 1, o = i[r], l = 0, f; --r >= 0; )
|
|
8639
8655
|
f = -l + n * o + i[r], l = o, o = f;
|
|
8640
8656
|
return Math.sin(s) * f;
|
|
8641
8657
|
}
|
|
8642
|
-
function
|
|
8658
|
+
function ol(i) {
|
|
8643
8659
|
var s = Math.exp(i);
|
|
8644
8660
|
return s = (s + 1 / s) / 2, s;
|
|
8645
8661
|
}
|
|
8646
8662
|
function qa(i, s, n) {
|
|
8647
|
-
for (var r = Math.sin(s), o = Math.cos(s), l = Ga(n), f =
|
|
8663
|
+
for (var r = Math.sin(s), o = Math.cos(s), l = Ga(n), f = ol(n), c = 2 * o * f, d = -2 * r * l, m = i.length - 1, v = i[m], p = 0, y = 0, b = 0, A, P; --m >= 0; )
|
|
8648
8664
|
A = y, P = p, y = v, p = b, v = -A + c * y - d * p + i[m], b = -P + d * y + c * p;
|
|
8649
8665
|
return c = r * f, d = o * l, [c * v - d * b, c * b + d * v];
|
|
8650
8666
|
}
|
|
8651
|
-
function
|
|
8667
|
+
function rl() {
|
|
8652
8668
|
if (!this.approx && (isNaN(this.es) || this.es <= 0))
|
|
8653
8669
|
throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');
|
|
8654
|
-
this.approx && (
|
|
8670
|
+
this.approx && (ke.init.apply(this), this.forward = ke.forward, this.inverse = ke.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
8671
|
var i = this.es / (1 + Math.sqrt(1 - this.es)), s = i / (2 - i), n = s;
|
|
8656
8672
|
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 =
|
|
8658
|
-
this.Zb = -this.Qn * (r +
|
|
8673
|
+
var r = Ds(this.cbg, this.lat0);
|
|
8674
|
+
this.Zb = -this.Qn * (r + al(this.gtu, 2 * r));
|
|
8659
8675
|
}
|
|
8660
|
-
function
|
|
8676
|
+
function hl(i) {
|
|
8661
8677
|
var s = O(i.x - this.long0), n = i.y;
|
|
8662
|
-
n =
|
|
8678
|
+
n = Ds(this.cbg, n);
|
|
8663
8679
|
var r = Math.sin(n), o = Math.cos(n), l = Math.sin(s), f = Math.cos(s);
|
|
8664
|
-
n = Math.atan2(r, f * o), s = Math.atan2(l * o, Pt(r, o * f)), s =
|
|
8680
|
+
n = Math.atan2(r, f * o), s = Math.atan2(l * o, Pt(r, o * f)), s = nl(Math.tan(s));
|
|
8665
8681
|
var c = qa(this.gtu, 2 * n, 2 * s);
|
|
8666
8682
|
n = n + c[0], s = s + c[1];
|
|
8667
8683
|
var d, m;
|
|
8668
8684
|
return Math.abs(s) <= 2.623395162778 ? (d = this.a * (this.Qn * s) + this.x0, m = this.a * (this.Qn * n + this.Zb) + this.y0) : (d = 1 / 0, m = 1 / 0), i.x = d, i.y = m, i;
|
|
8669
8685
|
}
|
|
8670
|
-
function
|
|
8686
|
+
function ll(i) {
|
|
8671
8687
|
var s = (i.x - this.x0) * (1 / this.a), n = (i.y - this.y0) * (1 / this.a);
|
|
8672
8688
|
n = (n - this.Zb) / this.Qn, s = s / this.Qn;
|
|
8673
8689
|
var r, o;
|
|
@@ -8675,19 +8691,19 @@ function rl(i) {
|
|
|
8675
8691
|
var l = qa(this.utg, 2 * n, 2 * s);
|
|
8676
8692
|
n = n + l[0], s = s + l[1], s = Math.atan(Ga(s));
|
|
8677
8693
|
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 =
|
|
8694
|
+
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
8695
|
} else
|
|
8680
8696
|
r = 1 / 0, o = 1 / 0;
|
|
8681
8697
|
return i.x = r, i.y = o, i;
|
|
8682
8698
|
}
|
|
8683
|
-
var
|
|
8684
|
-
const
|
|
8685
|
-
init:
|
|
8686
|
-
forward:
|
|
8687
|
-
inverse:
|
|
8688
|
-
names:
|
|
8699
|
+
var ul = ["Extended_Transverse_Mercator", "Extended Transverse Mercator", "etmerc", "Transverse_Mercator", "Transverse Mercator", "Gauss Kruger", "Gauss_Kruger", "tmerc"];
|
|
8700
|
+
const Be = {
|
|
8701
|
+
init: rl,
|
|
8702
|
+
forward: hl,
|
|
8703
|
+
inverse: ll,
|
|
8704
|
+
names: ul
|
|
8689
8705
|
};
|
|
8690
|
-
function
|
|
8706
|
+
function cl(i, s) {
|
|
8691
8707
|
if (i === void 0) {
|
|
8692
8708
|
if (i = Math.floor((O(s) + Math.PI) * 30 / Math.PI) + 1, i < 0)
|
|
8693
8709
|
return 0;
|
|
@@ -8696,77 +8712,77 @@ function ll(i, s) {
|
|
|
8696
8712
|
}
|
|
8697
8713
|
return i;
|
|
8698
8714
|
}
|
|
8699
|
-
var
|
|
8700
|
-
function
|
|
8701
|
-
var i =
|
|
8715
|
+
var fl = "etmerc";
|
|
8716
|
+
function dl() {
|
|
8717
|
+
var i = cl(this.zone, this.long0);
|
|
8702
8718
|
if (i === void 0)
|
|
8703
8719
|
throw new Error("unknown utm zone");
|
|
8704
|
-
this.lat0 = 0, this.long0 = (6 * Math.abs(i) - 183) * mt, this.x0 = 5e5, this.y0 = this.utmSouth ? 1e7 : 0, this.k0 = 0.9996,
|
|
8720
|
+
this.lat0 = 0, this.long0 = (6 * Math.abs(i) - 183) * mt, this.x0 = 5e5, this.y0 = this.utmSouth ? 1e7 : 0, this.k0 = 0.9996, Be.init.apply(this), this.forward = Be.forward, this.inverse = Be.inverse;
|
|
8705
8721
|
}
|
|
8706
|
-
var
|
|
8707
|
-
const
|
|
8708
|
-
init:
|
|
8709
|
-
names:
|
|
8710
|
-
dependsOn:
|
|
8722
|
+
var _l = ["Universal Transverse Mercator System", "utm"];
|
|
8723
|
+
const ml = {
|
|
8724
|
+
init: dl,
|
|
8725
|
+
names: _l,
|
|
8726
|
+
dependsOn: fl
|
|
8711
8727
|
};
|
|
8712
|
-
function
|
|
8728
|
+
function Zs(i, s) {
|
|
8713
8729
|
return Math.pow((1 - i) / (1 + i), s);
|
|
8714
8730
|
}
|
|
8715
|
-
var
|
|
8716
|
-
function
|
|
8731
|
+
var pl = 20;
|
|
8732
|
+
function gl() {
|
|
8717
8733
|
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) *
|
|
8734
|
+
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
8735
|
}
|
|
8720
|
-
function
|
|
8736
|
+
function vl(i) {
|
|
8721
8737
|
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) *
|
|
8738
|
+
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
8739
|
}
|
|
8724
|
-
function
|
|
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 =
|
|
8740
|
+
function yl(i) {
|
|
8741
|
+
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 = pl; 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
8742
|
i.y = r;
|
|
8727
8743
|
return l ? (i.x = n, i.y = r, i) : null;
|
|
8728
8744
|
}
|
|
8729
|
-
var
|
|
8730
|
-
const
|
|
8731
|
-
init:
|
|
8732
|
-
forward:
|
|
8733
|
-
inverse:
|
|
8734
|
-
names:
|
|
8745
|
+
var Ml = ["gauss"];
|
|
8746
|
+
const Fs = {
|
|
8747
|
+
init: gl,
|
|
8748
|
+
forward: vl,
|
|
8749
|
+
inverse: yl,
|
|
8750
|
+
names: Ml
|
|
8735
8751
|
};
|
|
8736
|
-
function
|
|
8737
|
-
|
|
8752
|
+
function xl() {
|
|
8753
|
+
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
8754
|
}
|
|
8739
|
-
function
|
|
8755
|
+
function wl(i) {
|
|
8740
8756
|
var s, n, r, o;
|
|
8741
|
-
return i.x = O(i.x - this.long0),
|
|
8757
|
+
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
8758
|
}
|
|
8743
|
-
function
|
|
8759
|
+
function bl(i) {
|
|
8744
8760
|
var s, n, r, o, l;
|
|
8745
8761
|
if (i.x = (i.x - this.x0) / this.a, i.y = (i.y - this.y0) / this.a, i.x /= this.k0, i.y /= this.k0, l = Pt(i.x, i.y)) {
|
|
8746
8762
|
var f = 2 * Math.atan2(l, this.R2);
|
|
8747
8763
|
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
8764
|
} else
|
|
8749
8765
|
o = this.phic0, r = 0;
|
|
8750
|
-
return i.x = r, i.y = o,
|
|
8751
|
-
}
|
|
8752
|
-
var
|
|
8753
|
-
const
|
|
8754
|
-
init:
|
|
8755
|
-
forward:
|
|
8756
|
-
inverse:
|
|
8757
|
-
names:
|
|
8766
|
+
return i.x = r, i.y = o, Fs.inverse.apply(this, [i]), i.x = O(i.x + this.long0), i;
|
|
8767
|
+
}
|
|
8768
|
+
var Ll = ["Stereographic_North_Pole", "Oblique_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
|
|
8769
|
+
const Pl = {
|
|
8770
|
+
init: xl,
|
|
8771
|
+
forward: wl,
|
|
8772
|
+
inverse: bl,
|
|
8773
|
+
names: Ll
|
|
8758
8774
|
};
|
|
8759
|
-
function
|
|
8775
|
+
function Al(i, s, n) {
|
|
8760
8776
|
return s *= n, Math.tan(0.5 * (C + i)) * Math.pow((1 - s) / (1 + s), 0.5 * n);
|
|
8761
8777
|
}
|
|
8762
|
-
function
|
|
8763
|
-
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.coslat0 = Math.cos(this.lat0), this.sinlat0 = Math.sin(this.lat0), this.sphere ? this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= S && (this.k0 = 0.5 * (1 +
|
|
8778
|
+
function Tl() {
|
|
8779
|
+
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.coslat0 = Math.cos(this.lat0), this.sinlat0 = Math.sin(this.lat0), this.sphere ? this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= S && (this.k0 = 0.5 * (1 + oe(this.lat0) * Math.sin(this.lat_ts))) : (Math.abs(this.coslat0) <= S && (this.lat0 > 0 ? this.con = 1 : this.con = -1), this.cons = Math.sqrt(Math.pow(1 + this.e, 1 + this.e) * Math.pow(1 - this.e, 1 - this.e)), this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= S && Math.abs(Math.cos(this.lat_ts)) > S && (this.k0 = 0.5 * this.cons * jt(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) / kt(this.e, this.con * this.lat_ts, this.con * Math.sin(this.lat_ts))), this.ms1 = jt(this.e, this.sinlat0, this.coslat0), this.X0 = 2 * Math.atan(this.ssfn_(this.lat0, this.sinlat0, this.e)) - C, this.cosX0 = Math.cos(this.X0), this.sinX0 = Math.sin(this.X0));
|
|
8764
8780
|
}
|
|
8765
|
-
function
|
|
8781
|
+
function Cl(i) {
|
|
8766
8782
|
var s = i.x, n = i.y, r = Math.sin(n), o = Math.cos(n), l, f, c, d, m, v, p = O(s - this.long0);
|
|
8767
8783
|
return Math.abs(Math.abs(s - this.long0) - Math.PI) <= S && Math.abs(n + this.lat0) <= S ? (i.x = NaN, i.y = NaN, i) : this.sphere ? (l = 2 * this.k0 / (1 + this.sinlat0 * r + this.coslat0 * o * Math.cos(p)), i.x = this.a * l * o * Math.sin(p) + this.x0, i.y = this.a * l * (this.coslat0 * r - this.sinlat0 * o * Math.cos(p)) + this.y0, i) : (f = 2 * Math.atan(this.ssfn_(n, r, this.e)) - C, d = Math.cos(f), c = Math.sin(f), Math.abs(this.coslat0) <= S ? (m = kt(this.e, n * this.con, this.con * r), v = 2 * this.a * this.k0 * m / this.cons, i.x = this.x0 + v * Math.sin(s - this.long0), i.y = this.y0 - this.con * v * Math.cos(s - this.long0), i) : (Math.abs(this.sinlat0) < S ? (l = 2 * this.a * this.k0 / (1 + d * Math.cos(p)), i.y = l * c) : (l = 2 * this.a * this.k0 * this.ms1 / (this.cosX0 * (1 + this.sinX0 * c + this.cosX0 * d * Math.cos(p))), i.y = l * (this.cosX0 * c - this.sinX0 * d * Math.cos(p)) + this.y0), i.x = l * d * Math.sin(p) + this.x0, i));
|
|
8768
8784
|
}
|
|
8769
|
-
function
|
|
8785
|
+
function El(i) {
|
|
8770
8786
|
i.x -= this.x0, i.y -= this.y0;
|
|
8771
8787
|
var s, n, r, o, l, f = Math.sqrt(i.x * i.x + i.y * i.y);
|
|
8772
8788
|
if (this.sphere) {
|
|
@@ -8775,20 +8791,20 @@ function Tl(i) {
|
|
|
8775
8791
|
} else if (Math.abs(this.coslat0) <= S) {
|
|
8776
8792
|
if (f <= S)
|
|
8777
8793
|
return n = this.lat0, s = this.long0, i.x = s, i.y = n, i;
|
|
8778
|
-
i.x *= this.con, i.y *= this.con, r = f * this.cons / (2 * this.a * this.k0), n = this.con *
|
|
8794
|
+
i.x *= this.con, i.y *= this.con, r = f * this.cons / (2 * this.a * this.k0), n = this.con * ne(this.e, r), s = this.con * O(this.con * this.long0 + Math.atan2(i.x, -1 * i.y));
|
|
8779
8795
|
} else
|
|
8780
|
-
o = 2 * Math.atan(f * this.cosX0 / (2 * this.a * this.k0 * this.ms1)), s = this.long0, f <= S ? l = this.X0 : (l = Math.asin(Math.cos(o) * this.sinX0 + i.y * Math.sin(o) * this.cosX0 / f), s = O(this.long0 + Math.atan2(i.x * Math.sin(o), f * this.cosX0 * Math.cos(o) - i.y * this.sinX0 * Math.sin(o)))), n = -1 *
|
|
8796
|
+
o = 2 * Math.atan(f * this.cosX0 / (2 * this.a * this.k0 * this.ms1)), s = this.long0, f <= S ? l = this.X0 : (l = Math.asin(Math.cos(o) * this.sinX0 + i.y * Math.sin(o) * this.cosX0 / f), s = O(this.long0 + Math.atan2(i.x * Math.sin(o), f * this.cosX0 * Math.cos(o) - i.y * this.sinX0 * Math.sin(o)))), n = -1 * ne(this.e, Math.tan(0.5 * (C + l)));
|
|
8781
8797
|
return i.x = s, i.y = n, i;
|
|
8782
8798
|
}
|
|
8783
|
-
var
|
|
8784
|
-
const
|
|
8785
|
-
init:
|
|
8786
|
-
forward:
|
|
8787
|
-
inverse:
|
|
8788
|
-
names:
|
|
8789
|
-
ssfn_:
|
|
8799
|
+
var Sl = ["stere", "Stereographic_South_Pole", "Polar Stereographic (variant B)", "Polar_Stereographic"];
|
|
8800
|
+
const Ol = {
|
|
8801
|
+
init: Tl,
|
|
8802
|
+
forward: Cl,
|
|
8803
|
+
inverse: El,
|
|
8804
|
+
names: Sl,
|
|
8805
|
+
ssfn_: Al
|
|
8790
8806
|
};
|
|
8791
|
-
function
|
|
8807
|
+
function Il() {
|
|
8792
8808
|
var i = this.lat0;
|
|
8793
8809
|
this.lambda0 = this.long0;
|
|
8794
8810
|
var s = Math.sin(i), n = this.a, r = this.rf, o = 1 / r, l = 2 * o - Math.pow(o, 2), f = this.e = Math.sqrt(l);
|
|
@@ -8796,11 +8812,11 @@ function Sl() {
|
|
|
8796
8812
|
var c = Math.log(Math.tan(Math.PI / 4 + this.b0 / 2)), d = Math.log(Math.tan(Math.PI / 4 + i / 2)), m = Math.log((1 + f * s) / (1 - f * s));
|
|
8797
8813
|
this.K = c - this.alpha * d + this.alpha * f / 2 * m;
|
|
8798
8814
|
}
|
|
8799
|
-
function
|
|
8815
|
+
function zl(i) {
|
|
8800
8816
|
var s = Math.log(Math.tan(Math.PI / 4 - i.y / 2)), n = this.e / 2 * Math.log((1 + this.e * Math.sin(i.y)) / (1 - this.e * Math.sin(i.y))), r = -this.alpha * (s + n) + this.K, o = 2 * (Math.atan(Math.exp(r)) - Math.PI / 4), l = this.alpha * (i.x - this.lambda0), f = Math.atan(Math.sin(l) / (Math.sin(this.b0) * Math.tan(o) + Math.cos(this.b0) * Math.cos(l))), c = Math.asin(Math.cos(this.b0) * Math.sin(o) - Math.sin(this.b0) * Math.cos(o) * Math.cos(l));
|
|
8801
8817
|
return i.y = this.R / 2 * Math.log((1 + Math.sin(c)) / (1 - Math.sin(c))) + this.y0, i.x = this.R * f + this.x0, i;
|
|
8802
8818
|
}
|
|
8803
|
-
function
|
|
8819
|
+
function Nl(i) {
|
|
8804
8820
|
for (var s = i.x - this.x0, n = i.y - this.y0, r = s / this.R, o = 2 * (Math.atan(Math.exp(n / this.R)) - Math.PI / 4), l = Math.asin(Math.cos(this.b0) * Math.sin(o) + Math.sin(this.b0) * Math.cos(o) * Math.cos(r)), f = Math.atan(Math.sin(r) / (Math.cos(this.b0) * Math.cos(r) - Math.sin(this.b0) * Math.tan(o))), c = this.lambda0 + f / this.alpha, d = 0, m = l, v = -1e3, p = 0; Math.abs(m - v) > 1e-7; ) {
|
|
8805
8821
|
if (++p > 20)
|
|
8806
8822
|
return;
|
|
@@ -8808,21 +8824,21 @@ function Il(i) {
|
|
|
8808
8824
|
}
|
|
8809
8825
|
return i.x = c, i.y = m, i;
|
|
8810
8826
|
}
|
|
8811
|
-
var
|
|
8812
|
-
const
|
|
8813
|
-
init:
|
|
8814
|
-
forward:
|
|
8815
|
-
inverse:
|
|
8816
|
-
names:
|
|
8827
|
+
var kl = ["somerc"];
|
|
8828
|
+
const Bl = {
|
|
8829
|
+
init: Il,
|
|
8830
|
+
forward: zl,
|
|
8831
|
+
inverse: Nl,
|
|
8832
|
+
names: kl
|
|
8817
8833
|
};
|
|
8818
8834
|
var wi = 1e-7;
|
|
8819
|
-
function
|
|
8835
|
+
function Rl(i) {
|
|
8820
8836
|
var s = ["Hotine_Oblique_Mercator", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin"], n = typeof i.PROJECTION == "object" ? Object.keys(i.PROJECTION)[0] : i.PROJECTION;
|
|
8821
8837
|
return "no_uoff" in i || "no_off" in i || s.indexOf(n) !== -1;
|
|
8822
8838
|
}
|
|
8823
|
-
function
|
|
8839
|
+
function Dl() {
|
|
8824
8840
|
var i, s, n, r, o, l, f, c, d, m, v = 0, p, y = 0, b = 0, A = 0, P = 0, E = 0, z = 0;
|
|
8825
|
-
this.no_off =
|
|
8841
|
+
this.no_off = Rl(this), this.no_rot = "no_rot" in this;
|
|
8826
8842
|
var B = !1;
|
|
8827
8843
|
"alpha" in this && (B = !0);
|
|
8828
8844
|
var k = !1;
|
|
@@ -8831,9 +8847,9 @@ function Bl() {
|
|
|
8831
8847
|
else if (b = this.long1, P = this.lat1, A = this.long2, E = this.lat2, Math.abs(P - E) <= wi || (i = Math.abs(P)) <= wi || Math.abs(i - C) <= wi || Math.abs(Math.abs(this.lat0) - C) <= wi || Math.abs(Math.abs(E) - C) <= wi)
|
|
8832
8848
|
throw new Error();
|
|
8833
8849
|
var j = 1 - this.es;
|
|
8834
|
-
s = Math.sqrt(j), Math.abs(this.lat0) > S ? (c = Math.sin(this.lat0), n = Math.cos(this.lat0), i = 1 - this.es * c * c, this.B = n * n, this.B = Math.sqrt(1 + this.es * this.B * this.B / j), this.A = this.B * this.k0 * s / i, r = this.B * s / (n * Math.sqrt(i)), o = r * r - 1, o <= 0 ? o = 0 : (o = Math.sqrt(o), this.lat0 < 0 && (o = -o)), this.E = o += r, this.E *= Math.pow(kt(this.e, this.lat0, c), this.B)) : (this.B = 1 / s, this.A = this.k0, this.E = r = o = 1), B || k ? (B ? (p = Math.asin(Math.sin(z) / r), k || (v = z)) : (p = v, z = Math.asin(r * Math.sin(p))), this.lam0 = y - Math.asin(0.5 * (o - 1 / o) * Math.tan(p)) / this.B) : (l = Math.pow(kt(this.e, P, Math.sin(P)), this.B), f = Math.pow(kt(this.e, E, Math.sin(E)), this.B), o = this.E / l, d = (f - l) / (f + l), m = this.E * this.E, m = (m - f * l) / (m + f * l), i = b - A, i < -Math.pi ? A -=
|
|
8850
|
+
s = Math.sqrt(j), Math.abs(this.lat0) > S ? (c = Math.sin(this.lat0), n = Math.cos(this.lat0), i = 1 - this.es * c * c, this.B = n * n, this.B = Math.sqrt(1 + this.es * this.B * this.B / j), this.A = this.B * this.k0 * s / i, r = this.B * s / (n * Math.sqrt(i)), o = r * r - 1, o <= 0 ? o = 0 : (o = Math.sqrt(o), this.lat0 < 0 && (o = -o)), this.E = o += r, this.E *= Math.pow(kt(this.e, this.lat0, c), this.B)) : (this.B = 1 / s, this.A = this.k0, this.E = r = o = 1), B || k ? (B ? (p = Math.asin(Math.sin(z) / r), k || (v = z)) : (p = v, z = Math.asin(r * Math.sin(p))), this.lam0 = y - Math.asin(0.5 * (o - 1 / o) * Math.tan(p)) / this.B) : (l = Math.pow(kt(this.e, P, Math.sin(P)), this.B), f = Math.pow(kt(this.e, E, Math.sin(E)), this.B), o = this.E / l, d = (f - l) / (f + l), m = this.E * this.E, m = (m - f * l) / (m + f * l), i = b - A, i < -Math.pi ? A -= ee : i > Math.pi && (A += ee), this.lam0 = O(0.5 * (b + A) - Math.atan(m * Math.tan(0.5 * this.B * (b - A)) / d) / this.B), p = Math.atan(2 * Math.sin(this.B * O(b - this.lam0)) / (o - 1 / o)), v = z = Math.asin(r * Math.sin(p))), this.singam = Math.sin(p), this.cosgam = Math.cos(p), this.sinrot = Math.sin(v), this.cosrot = Math.cos(v), this.rB = 1 / this.B, this.ArB = this.A * this.rB, this.BrA = 1 / this.ArB, this.A * this.B, this.no_off ? this.u_0 = 0 : (this.u_0 = Math.abs(this.ArB * Math.atan(Math.sqrt(r * r - 1) / Math.cos(z))), this.lat0 < 0 && (this.u_0 = -this.u_0)), o = 0.5 * p, this.v_pole_n = this.ArB * Math.log(Math.tan(X - o)), this.v_pole_s = this.ArB * Math.log(Math.tan(X + o));
|
|
8835
8851
|
}
|
|
8836
|
-
function
|
|
8852
|
+
function Zl(i) {
|
|
8837
8853
|
var s = {}, n, r, o, l, f, c, d, m;
|
|
8838
8854
|
if (i.x = i.x - this.lam0, Math.abs(Math.abs(i.y) - C) > S) {
|
|
8839
8855
|
if (f = this.E / Math.pow(kt(this.e, i.y, Math.sin(i.y)), this.B), c = 1 / f, n = 0.5 * (f - c), r = 0.5 * (f + c), l = Math.sin(this.B * i.x), o = (n * this.singam - l * this.cosgam) / r, Math.abs(Math.abs(o) - 1) < S)
|
|
@@ -8843,25 +8859,25 @@ function Rl(i) {
|
|
|
8843
8859
|
m = i.y > 0 ? this.v_pole_n : this.v_pole_s, d = this.ArB * i.y;
|
|
8844
8860
|
return this.no_rot ? (s.x = d, s.y = m) : (d -= this.u_0, s.x = m * this.cosrot + d * this.sinrot, s.y = d * this.cosrot - m * this.sinrot), s.x = this.a * s.x + this.x0, s.y = this.a * s.y + this.y0, s;
|
|
8845
8861
|
}
|
|
8846
|
-
function
|
|
8862
|
+
function Fl(i) {
|
|
8847
8863
|
var s, n, r, o, l, f, c, d = {};
|
|
8848
8864
|
if (i.x = (i.x - this.x0) * (1 / this.a), i.y = (i.y - this.y0) * (1 / this.a), this.no_rot ? (n = i.y, s = i.x) : (n = i.x * this.cosrot - i.y * this.sinrot, s = i.y * this.cosrot + i.x * this.sinrot + this.u_0), r = Math.exp(-this.BrA * n), o = 0.5 * (r - 1 / r), l = 0.5 * (r + 1 / r), f = Math.sin(this.BrA * s), c = (f * this.cosgam + o * this.singam) / l, Math.abs(Math.abs(c) - 1) < S)
|
|
8849
8865
|
d.x = 0, d.y = c < 0 ? -C : C;
|
|
8850
8866
|
else {
|
|
8851
|
-
if (d.y = this.E / Math.sqrt((1 + c) / (1 - c)), d.y =
|
|
8867
|
+
if (d.y = this.E / Math.sqrt((1 + c) / (1 - c)), d.y = ne(this.e, Math.pow(d.y, 1 / this.B)), d.y === 1 / 0)
|
|
8852
8868
|
throw new Error();
|
|
8853
8869
|
d.x = -this.rB * Math.atan2(o * this.cosgam - f * this.singam, Math.cos(this.BrA * s));
|
|
8854
8870
|
}
|
|
8855
8871
|
return d.x += this.lam0, d;
|
|
8856
8872
|
}
|
|
8857
|
-
var
|
|
8858
|
-
const
|
|
8859
|
-
init:
|
|
8860
|
-
forward:
|
|
8861
|
-
inverse:
|
|
8862
|
-
names:
|
|
8873
|
+
var Gl = ["Hotine_Oblique_Mercator", "Hotine Oblique Mercator", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin", "Hotine_Oblique_Mercator_Two_Point_Natural_Origin", "Hotine_Oblique_Mercator_Azimuth_Center", "Oblique_Mercator", "omerc"];
|
|
8874
|
+
const ql = {
|
|
8875
|
+
init: Dl,
|
|
8876
|
+
forward: Zl,
|
|
8877
|
+
inverse: Fl,
|
|
8878
|
+
names: Gl
|
|
8863
8879
|
};
|
|
8864
|
-
function
|
|
8880
|
+
function Ul() {
|
|
8865
8881
|
if (this.lat2 || (this.lat2 = this.lat1), this.k0 || (this.k0 = 1), this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, !(Math.abs(this.lat1 + this.lat2) < S)) {
|
|
8866
8882
|
var i = this.b / this.a;
|
|
8867
8883
|
this.e = Math.sqrt(1 - i * i);
|
|
@@ -8869,9 +8885,9 @@ function Gl() {
|
|
|
8869
8885
|
Math.abs(this.lat1 - this.lat2) > S ? this.ns = Math.log(r / c) / Math.log(o / d) : this.ns = s, isNaN(this.ns) && (this.ns = s), this.f0 = r / (this.ns * Math.pow(o, this.ns)), this.rh = this.a * this.f0 * Math.pow(m, this.ns), this.title || (this.title = "Lambert Conformal Conic");
|
|
8870
8886
|
}
|
|
8871
8887
|
}
|
|
8872
|
-
function
|
|
8888
|
+
function jl(i) {
|
|
8873
8889
|
var s = i.x, n = i.y;
|
|
8874
|
-
Math.abs(2 * Math.abs(n) - Math.PI) <= S && (n =
|
|
8890
|
+
Math.abs(2 * Math.abs(n) - Math.PI) <= S && (n = oe(n) * (C - 2 * S));
|
|
8875
8891
|
var r = Math.abs(Math.abs(n) - C), o, l;
|
|
8876
8892
|
if (r > S)
|
|
8877
8893
|
o = kt(this.e, n, Math.sin(n)), l = this.a * this.f0 * Math.pow(o, this.ns);
|
|
@@ -8883,18 +8899,18 @@ function ql(i) {
|
|
|
8883
8899
|
var f = this.ns * O(s - this.long0);
|
|
8884
8900
|
return i.x = this.k0 * (l * Math.sin(f)) + this.x0, i.y = this.k0 * (this.rh - l * Math.cos(f)) + this.y0, i;
|
|
8885
8901
|
}
|
|
8886
|
-
function
|
|
8902
|
+
function Hl(i) {
|
|
8887
8903
|
var s, n, r, o, l, f = (i.x - this.x0) / this.k0, c = this.rh - (i.y - this.y0) / this.k0;
|
|
8888
8904
|
this.ns > 0 ? (s = Math.sqrt(f * f + c * c), n = 1) : (s = -Math.sqrt(f * f + c * c), n = -1);
|
|
8889
8905
|
var d = 0;
|
|
8890
8906
|
if (s !== 0 && (d = Math.atan2(n * f, n * c)), s !== 0 || this.ns > 0) {
|
|
8891
|
-
if (n = 1 / this.ns, r = Math.pow(s / (this.a * this.f0), n), o =
|
|
8907
|
+
if (n = 1 / this.ns, r = Math.pow(s / (this.a * this.f0), n), o = ne(this.e, r), o === -9999)
|
|
8892
8908
|
return null;
|
|
8893
8909
|
} else
|
|
8894
8910
|
o = -C;
|
|
8895
8911
|
return l = O(d / this.ns + this.long0), i.x = l, i.y = o, i;
|
|
8896
8912
|
}
|
|
8897
|
-
var
|
|
8913
|
+
var Wl = [
|
|
8898
8914
|
"Lambert Tangential Conformal Conic Projection",
|
|
8899
8915
|
"Lambert_Conformal_Conic",
|
|
8900
8916
|
"Lambert_Conformal_Conic_1SP",
|
|
@@ -8903,20 +8919,20 @@ var jl = [
|
|
|
8903
8919
|
"Lambert Conic Conformal (1SP)",
|
|
8904
8920
|
"Lambert Conic Conformal (2SP)"
|
|
8905
8921
|
];
|
|
8906
|
-
const
|
|
8907
|
-
init:
|
|
8908
|
-
forward:
|
|
8909
|
-
inverse:
|
|
8910
|
-
names:
|
|
8922
|
+
const $l = {
|
|
8923
|
+
init: Ul,
|
|
8924
|
+
forward: jl,
|
|
8925
|
+
inverse: Hl,
|
|
8926
|
+
names: Wl
|
|
8911
8927
|
};
|
|
8912
|
-
function
|
|
8928
|
+
function Vl() {
|
|
8913
8929
|
this.a = 6377397155e-3, this.es = 0.006674372230614, this.e = Math.sqrt(this.es), this.lat0 || (this.lat0 = 0.863937979737193), this.long0 || (this.long0 = 0.7417649320975901 - 0.308341501185665), this.k0 || (this.k0 = 0.9999), this.s45 = 0.785398163397448, this.s90 = 2 * this.s45, this.fi0 = this.lat0, this.e2 = this.es, this.e = Math.sqrt(this.e2), this.alfa = Math.sqrt(1 + this.e2 * Math.pow(Math.cos(this.fi0), 4) / (1 - this.e2)), this.uq = 1.04216856380474, this.u0 = Math.asin(Math.sin(this.fi0) / this.alfa), this.g = Math.pow((1 + this.e * Math.sin(this.fi0)) / (1 - this.e * Math.sin(this.fi0)), this.alfa * this.e / 2), this.k = Math.tan(this.u0 / 2 + this.s45) / Math.pow(Math.tan(this.fi0 / 2 + this.s45), this.alfa) * this.g, this.k1 = this.k0, this.n0 = this.a * Math.sqrt(1 - this.e2) / (1 - this.e2 * Math.pow(Math.sin(this.fi0), 2)), this.s0 = 1.37008346281555, this.n = Math.sin(this.s0), this.ro0 = this.k1 * this.n0 / Math.tan(this.s0), this.ad = this.s90 - this.uq;
|
|
8914
8930
|
}
|
|
8915
|
-
function
|
|
8931
|
+
function Ql(i) {
|
|
8916
8932
|
var s, n, r, o, l, f, c, d = i.x, m = i.y, v = O(d - this.long0);
|
|
8917
8933
|
return s = Math.pow((1 + this.e * Math.sin(m)) / (1 - this.e * Math.sin(m)), this.alfa * this.e / 2), n = 2 * (Math.atan(this.k * Math.pow(Math.tan(m / 2 + this.s45), this.alfa) / s) - this.s45), r = -v * this.alfa, o = Math.asin(Math.cos(this.ad) * Math.sin(n) + Math.sin(this.ad) * Math.cos(n) * Math.cos(r)), l = Math.asin(Math.cos(n) * Math.sin(r) / Math.cos(o)), f = this.n * l, c = this.ro0 * Math.pow(Math.tan(this.s0 / 2 + this.s45), this.n) / Math.pow(Math.tan(o / 2 + this.s45), this.n), i.y = c * Math.cos(f) / 1, i.x = c * Math.sin(f) / 1, this.czech || (i.y *= -1, i.x *= -1), i;
|
|
8918
8934
|
}
|
|
8919
|
-
function
|
|
8935
|
+
function Xl(i) {
|
|
8920
8936
|
var s, n, r, o, l, f, c, d, m = i.x;
|
|
8921
8937
|
i.x = i.y, i.y = m, this.czech || (i.y *= -1, i.x *= -1), f = Math.sqrt(i.x * i.x + i.y * i.y), l = Math.atan2(i.y, i.x), o = l / Math.sin(this.s0), r = 2 * (Math.atan(Math.pow(this.ro0 / f, 1 / this.n) * Math.tan(this.s0 / 2 + this.s45)) - this.s45), s = Math.asin(Math.cos(this.ad) * Math.sin(r) - Math.sin(this.ad) * Math.cos(r) * Math.cos(o)), n = Math.asin(Math.cos(r) * Math.sin(o) / Math.cos(s)), i.x = this.long0 - n / this.alfa, c = s, d = 0;
|
|
8922
8938
|
var v = 0;
|
|
@@ -8925,26 +8941,26 @@ function Vl(i) {
|
|
|
8925
8941
|
while (d === 0 && v < 15);
|
|
8926
8942
|
return v >= 15 ? null : i;
|
|
8927
8943
|
}
|
|
8928
|
-
var
|
|
8929
|
-
const
|
|
8930
|
-
init:
|
|
8931
|
-
forward:
|
|
8932
|
-
inverse:
|
|
8933
|
-
names:
|
|
8944
|
+
var Kl = ["Krovak", "krovak"];
|
|
8945
|
+
const Yl = {
|
|
8946
|
+
init: Vl,
|
|
8947
|
+
forward: Ql,
|
|
8948
|
+
inverse: Xl,
|
|
8949
|
+
names: Kl
|
|
8934
8950
|
};
|
|
8935
8951
|
function yt(i, s, n, r, o) {
|
|
8936
8952
|
return i * o - s * Math.sin(2 * o) + n * Math.sin(4 * o) - r * Math.sin(6 * o);
|
|
8937
8953
|
}
|
|
8938
|
-
function
|
|
8954
|
+
function re(i) {
|
|
8939
8955
|
return 1 - 0.25 * i * (1 + i / 16 * (3 + 1.25 * i));
|
|
8940
8956
|
}
|
|
8941
|
-
function
|
|
8957
|
+
function he(i) {
|
|
8942
8958
|
return 0.375 * i * (1 + 0.25 * i * (1 + 0.46875 * i));
|
|
8943
8959
|
}
|
|
8944
|
-
function
|
|
8960
|
+
function le(i) {
|
|
8945
8961
|
return 0.05859375 * i * i * (1 + 0.75 * i);
|
|
8946
8962
|
}
|
|
8947
|
-
function
|
|
8963
|
+
function ue(i) {
|
|
8948
8964
|
return i * i * i * (35 / 3072);
|
|
8949
8965
|
}
|
|
8950
8966
|
function Si(i, s, n) {
|
|
@@ -8952,9 +8968,9 @@ function Si(i, s, n) {
|
|
|
8952
8968
|
return i / Math.sqrt(1 - r * r);
|
|
8953
8969
|
}
|
|
8954
8970
|
function ni(i) {
|
|
8955
|
-
return Math.abs(i) < C ? i : i -
|
|
8971
|
+
return Math.abs(i) < C ? i : i - oe(i) * Math.PI;
|
|
8956
8972
|
}
|
|
8957
|
-
function
|
|
8973
|
+
function Fe(i, s, n, r, o) {
|
|
8958
8974
|
var l, f;
|
|
8959
8975
|
l = i / s;
|
|
8960
8976
|
for (var c = 0; c < 15; c++)
|
|
@@ -8962,10 +8978,10 @@ function Ge(i, s, n, r, o) {
|
|
|
8962
8978
|
return l;
|
|
8963
8979
|
return NaN;
|
|
8964
8980
|
}
|
|
8965
|
-
function
|
|
8966
|
-
this.sphere || (this.e0 =
|
|
8981
|
+
function Jl() {
|
|
8982
|
+
this.sphere || (this.e0 = re(this.es), this.e1 = he(this.es), this.e2 = le(this.es), this.e3 = ue(this.es), this.ml0 = this.a * yt(this.e0, this.e1, this.e2, this.e3, this.lat0));
|
|
8967
8983
|
}
|
|
8968
|
-
function
|
|
8984
|
+
function tu(i) {
|
|
8969
8985
|
var s, n, r = i.x, o = i.y;
|
|
8970
8986
|
if (r = O(r - this.long0), this.sphere)
|
|
8971
8987
|
s = this.a * Math.asin(Math.cos(o) * Math.sin(r)), n = this.a * (Math.atan2(Math.tan(o), Math.cos(r)) - this.lat0);
|
|
@@ -8975,14 +8991,14 @@ function Yl(i) {
|
|
|
8975
8991
|
}
|
|
8976
8992
|
return i.x = s + this.x0, i.y = n + this.y0, i;
|
|
8977
8993
|
}
|
|
8978
|
-
function
|
|
8994
|
+
function iu(i) {
|
|
8979
8995
|
i.x -= this.x0, i.y -= this.y0;
|
|
8980
8996
|
var s = i.x / this.a, n = i.y / this.a, r, o;
|
|
8981
8997
|
if (this.sphere) {
|
|
8982
8998
|
var l = n + this.lat0;
|
|
8983
8999
|
r = Math.asin(Math.sin(l) * Math.cos(s)), o = Math.atan2(Math.tan(s), Math.cos(l));
|
|
8984
9000
|
} else {
|
|
8985
|
-
var f = this.ml0 / this.a + n, c =
|
|
9001
|
+
var f = this.ml0 / this.a + n, c = Fe(f, this.e0, this.e1, this.e2, this.e3);
|
|
8986
9002
|
if (Math.abs(Math.abs(c) - C) <= S)
|
|
8987
9003
|
return i.x = this.long0, i.y = C, n < 0 && (i.y *= -1), i;
|
|
8988
9004
|
var d = Si(this.a, this.e, Math.sin(c)), m = d * d * d / this.a / this.a * (1 - this.es), v = Math.pow(Math.tan(c), 2), p = s * this.a / d, y = p * p;
|
|
@@ -8990,23 +9006,23 @@ function Jl(i) {
|
|
|
8990
9006
|
}
|
|
8991
9007
|
return i.x = O(o + this.long0), i.y = ni(r), i;
|
|
8992
9008
|
}
|
|
8993
|
-
var
|
|
8994
|
-
const
|
|
8995
|
-
init:
|
|
8996
|
-
forward:
|
|
8997
|
-
inverse:
|
|
8998
|
-
names:
|
|
9009
|
+
var eu = ["Cassini", "Cassini_Soldner", "cass"];
|
|
9010
|
+
const su = {
|
|
9011
|
+
init: Jl,
|
|
9012
|
+
forward: tu,
|
|
9013
|
+
inverse: iu,
|
|
9014
|
+
names: eu
|
|
8999
9015
|
};
|
|
9000
9016
|
function ii(i, s) {
|
|
9001
9017
|
var n;
|
|
9002
9018
|
return i > 1e-7 ? (n = i * s, (1 - i * i) * (s / (1 - n * n) - 0.5 / i * Math.log((1 - n) / (1 + n)))) : 2 * s;
|
|
9003
9019
|
}
|
|
9004
|
-
var
|
|
9005
|
-
function
|
|
9020
|
+
var nu = 1, au = 2, ou = 3, ru = 4;
|
|
9021
|
+
function hu() {
|
|
9006
9022
|
var i = Math.abs(this.lat0);
|
|
9007
9023
|
if (Math.abs(i - C) < S ? this.mode = this.lat0 < 0 ? this.S_POLE : this.N_POLE : Math.abs(i) < S ? this.mode = this.EQUIT : this.mode = this.OBLIQ, this.es > 0) {
|
|
9008
9024
|
var s;
|
|
9009
|
-
switch (this.qp = ii(this.e, 1), this.mmf = 0.5 / (1 - this.es), this.apa =
|
|
9025
|
+
switch (this.qp = ii(this.e, 1), this.mmf = 0.5 / (1 - this.es), this.apa = gu(this.es), this.mode) {
|
|
9010
9026
|
case this.N_POLE:
|
|
9011
9027
|
this.dd = 1;
|
|
9012
9028
|
break;
|
|
@@ -9023,7 +9039,7 @@ function ou() {
|
|
|
9023
9039
|
} else
|
|
9024
9040
|
this.mode === this.OBLIQ && (this.sinph0 = Math.sin(this.lat0), this.cosph0 = Math.cos(this.lat0));
|
|
9025
9041
|
}
|
|
9026
|
-
function
|
|
9042
|
+
function lu(i) {
|
|
9027
9043
|
var s, n, r, o, l, f, c, d, m, v, p = i.x, y = i.y;
|
|
9028
9044
|
if (p = O(p - this.long0), this.sphere) {
|
|
9029
9045
|
if (l = Math.sin(y), v = Math.cos(y), r = Math.cos(p), this.mode === this.OBLIQ || this.mode === this.EQUIT) {
|
|
@@ -9065,7 +9081,7 @@ function ru(i) {
|
|
|
9065
9081
|
}
|
|
9066
9082
|
return i.x = this.a * s + this.x0, i.y = this.a * n + this.y0, i;
|
|
9067
9083
|
}
|
|
9068
|
-
function
|
|
9084
|
+
function uu(i) {
|
|
9069
9085
|
i.x -= this.x0, i.y -= this.y0;
|
|
9070
9086
|
var s = i.x / this.a, n = i.y / this.a, r, o, l, f, c, d, m;
|
|
9071
9087
|
if (this.sphere) {
|
|
@@ -9097,47 +9113,47 @@ function hu(i) {
|
|
|
9097
9113
|
return i.x = this.long0, i.y = this.lat0, i;
|
|
9098
9114
|
m = 1 - c / this.qp, this.mode === this.S_POLE && (m = -m);
|
|
9099
9115
|
}
|
|
9100
|
-
r = Math.atan2(s, n), o =
|
|
9116
|
+
r = Math.atan2(s, n), o = vu(Math.asin(m), this.apa);
|
|
9101
9117
|
}
|
|
9102
9118
|
return i.x = O(this.long0 + r), i.y = o, i;
|
|
9103
9119
|
}
|
|
9104
|
-
var
|
|
9105
|
-
function
|
|
9120
|
+
var cu = 0.3333333333333333, fu = 0.17222222222222222, du = 0.10257936507936508, _u = 0.06388888888888888, mu = 0.0664021164021164, pu = 0.016415012942191543;
|
|
9121
|
+
function gu(i) {
|
|
9106
9122
|
var s, n = [];
|
|
9107
|
-
return n[0] = i *
|
|
9123
|
+
return n[0] = i * cu, s = i * i, n[0] += s * fu, n[1] = s * _u, s *= i, n[0] += s * du, n[1] += s * mu, n[2] = s * pu, n;
|
|
9108
9124
|
}
|
|
9109
|
-
function
|
|
9125
|
+
function vu(i, s) {
|
|
9110
9126
|
var n = i + i;
|
|
9111
9127
|
return i + s[0] * Math.sin(n) + s[1] * Math.sin(n + n) + s[2] * Math.sin(n + n + n);
|
|
9112
9128
|
}
|
|
9113
|
-
var
|
|
9114
|
-
const
|
|
9115
|
-
init:
|
|
9116
|
-
forward:
|
|
9117
|
-
inverse:
|
|
9118
|
-
names:
|
|
9119
|
-
S_POLE:
|
|
9120
|
-
N_POLE:
|
|
9121
|
-
EQUIT:
|
|
9122
|
-
OBLIQ:
|
|
9129
|
+
var yu = ["Lambert Azimuthal Equal Area", "Lambert_Azimuthal_Equal_Area", "laea"];
|
|
9130
|
+
const Mu = {
|
|
9131
|
+
init: hu,
|
|
9132
|
+
forward: lu,
|
|
9133
|
+
inverse: uu,
|
|
9134
|
+
names: yu,
|
|
9135
|
+
S_POLE: nu,
|
|
9136
|
+
N_POLE: au,
|
|
9137
|
+
EQUIT: ou,
|
|
9138
|
+
OBLIQ: ru
|
|
9123
9139
|
};
|
|
9124
9140
|
function si(i) {
|
|
9125
9141
|
return Math.abs(i) > 1 && (i = i > 1 ? 1 : -1), Math.asin(i);
|
|
9126
9142
|
}
|
|
9127
|
-
function
|
|
9143
|
+
function xu() {
|
|
9128
9144
|
Math.abs(this.lat1 + this.lat2) < S || (this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e3 = Math.sqrt(this.es), this.sin_po = Math.sin(this.lat1), this.cos_po = Math.cos(this.lat1), this.t1 = this.sin_po, this.con = this.sin_po, this.ms1 = jt(this.e3, this.sin_po, this.cos_po), this.qs1 = ii(this.e3, this.sin_po), this.sin_po = Math.sin(this.lat2), this.cos_po = Math.cos(this.lat2), this.t2 = this.sin_po, this.ms2 = jt(this.e3, this.sin_po, this.cos_po), this.qs2 = ii(this.e3, this.sin_po), this.sin_po = Math.sin(this.lat0), this.cos_po = Math.cos(this.lat0), this.t3 = this.sin_po, this.qs0 = ii(this.e3, this.sin_po), Math.abs(this.lat1 - this.lat2) > S ? this.ns0 = (this.ms1 * this.ms1 - this.ms2 * this.ms2) / (this.qs2 - this.qs1) : this.ns0 = this.con, this.c = this.ms1 * this.ms1 + this.ns0 * this.qs1, this.rh = this.a * Math.sqrt(this.c - this.ns0 * this.qs0) / this.ns0);
|
|
9129
9145
|
}
|
|
9130
|
-
function
|
|
9146
|
+
function wu(i) {
|
|
9131
9147
|
var s = i.x, n = i.y;
|
|
9132
9148
|
this.sin_phi = Math.sin(n), this.cos_phi = Math.cos(n);
|
|
9133
9149
|
var r = ii(this.e3, this.sin_phi), o = this.a * Math.sqrt(this.c - this.ns0 * r) / this.ns0, l = this.ns0 * O(s - this.long0), f = o * Math.sin(l) + this.x0, c = this.rh - o * Math.cos(l) + this.y0;
|
|
9134
9150
|
return i.x = f, i.y = c, i;
|
|
9135
9151
|
}
|
|
9136
|
-
function
|
|
9152
|
+
function bu(i) {
|
|
9137
9153
|
var s, n, r, o, l, f;
|
|
9138
9154
|
return i.x -= this.x0, i.y = this.rh - i.y + this.y0, this.ns0 >= 0 ? (s = Math.sqrt(i.x * i.x + i.y * i.y), r = 1) : (s = -Math.sqrt(i.x * i.x + i.y * i.y), r = -1), o = 0, s !== 0 && (o = Math.atan2(r * i.x, r * i.y)), r = s * this.ns0 / this.a, this.sphere ? f = Math.asin((this.c - r * r) / (2 * this.ns0)) : (n = (this.c - r * r) / this.ns0, f = this.phi1z(this.e3, n)), l = O(o / this.ns0 + this.long0), i.x = l, i.y = f, i;
|
|
9139
9155
|
}
|
|
9140
|
-
function
|
|
9156
|
+
function Lu(i, s) {
|
|
9141
9157
|
var n, r, o, l, f, c = si(0.5 * s);
|
|
9142
9158
|
if (i < S)
|
|
9143
9159
|
return c;
|
|
@@ -9146,33 +9162,33 @@ function wu(i, s) {
|
|
|
9146
9162
|
return c;
|
|
9147
9163
|
return null;
|
|
9148
9164
|
}
|
|
9149
|
-
var
|
|
9150
|
-
const
|
|
9151
|
-
init:
|
|
9152
|
-
forward:
|
|
9153
|
-
inverse:
|
|
9154
|
-
names:
|
|
9155
|
-
phi1z:
|
|
9165
|
+
var Pu = ["Albers_Conic_Equal_Area", "Albers", "aea"];
|
|
9166
|
+
const Au = {
|
|
9167
|
+
init: xu,
|
|
9168
|
+
forward: wu,
|
|
9169
|
+
inverse: bu,
|
|
9170
|
+
names: Pu,
|
|
9171
|
+
phi1z: Lu
|
|
9156
9172
|
};
|
|
9157
|
-
function
|
|
9173
|
+
function Tu() {
|
|
9158
9174
|
this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0), this.infinity_dist = 1e3 * this.a, this.rc = 1;
|
|
9159
9175
|
}
|
|
9160
|
-
function
|
|
9176
|
+
function Cu(i) {
|
|
9161
9177
|
var s, n, r, o, l, f, c, d, m = i.x, v = i.y;
|
|
9162
9178
|
return r = O(m - this.long0), s = Math.sin(v), n = Math.cos(v), o = Math.cos(r), f = this.sin_p14 * s + this.cos_p14 * n * o, l = 1, f > 0 || Math.abs(f) <= S ? (c = this.x0 + this.a * l * n * Math.sin(r) / f, d = this.y0 + this.a * l * (this.cos_p14 * s - this.sin_p14 * n * o) / f) : (c = this.x0 + this.infinity_dist * n * Math.sin(r), d = this.y0 + this.infinity_dist * (this.cos_p14 * s - this.sin_p14 * n * o)), i.x = c, i.y = d, i;
|
|
9163
9179
|
}
|
|
9164
|
-
function
|
|
9180
|
+
function Eu(i) {
|
|
9165
9181
|
var s, n, r, o, l, f;
|
|
9166
9182
|
return i.x = (i.x - this.x0) / this.a, i.y = (i.y - this.y0) / this.a, i.x /= this.k0, i.y /= this.k0, (s = Math.sqrt(i.x * i.x + i.y * i.y)) ? (o = Math.atan2(s, this.rc), n = Math.sin(o), r = Math.cos(o), f = si(r * this.sin_p14 + i.y * n * this.cos_p14 / s), l = Math.atan2(i.x * n, s * this.cos_p14 * r - i.y * this.sin_p14 * n), l = O(this.long0 + l)) : (f = this.phic0, l = 0), i.x = l, i.y = f, i;
|
|
9167
9183
|
}
|
|
9168
|
-
var
|
|
9169
|
-
const
|
|
9170
|
-
init:
|
|
9171
|
-
forward:
|
|
9172
|
-
inverse:
|
|
9173
|
-
names:
|
|
9184
|
+
var Su = ["gnom"];
|
|
9185
|
+
const Ou = {
|
|
9186
|
+
init: Tu,
|
|
9187
|
+
forward: Cu,
|
|
9188
|
+
inverse: Eu,
|
|
9189
|
+
names: Su
|
|
9174
9190
|
};
|
|
9175
|
-
function
|
|
9191
|
+
function Iu(i, s) {
|
|
9176
9192
|
var n = 1 - (1 - i * i) / (2 * i) * Math.log((1 - i) / (1 + i));
|
|
9177
9193
|
if (Math.abs(Math.abs(s) - n) < 1e-6)
|
|
9178
9194
|
return s < 0 ? -1 * C : C;
|
|
@@ -9181,10 +9197,10 @@ function Su(i, s) {
|
|
|
9181
9197
|
return r;
|
|
9182
9198
|
return NaN;
|
|
9183
9199
|
}
|
|
9184
|
-
function
|
|
9200
|
+
function zu() {
|
|
9185
9201
|
this.sphere || (this.k0 = jt(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)));
|
|
9186
9202
|
}
|
|
9187
|
-
function
|
|
9203
|
+
function Nu(i) {
|
|
9188
9204
|
var s = i.x, n = i.y, r, o, l = O(s - this.long0);
|
|
9189
9205
|
if (this.sphere)
|
|
9190
9206
|
r = this.x0 + this.a * l * Math.cos(this.lat_ts), o = this.y0 + this.a * Math.sin(n) / Math.cos(this.lat_ts);
|
|
@@ -9194,41 +9210,41 @@ function Iu(i) {
|
|
|
9194
9210
|
}
|
|
9195
9211
|
return i.x = r, i.y = o, i;
|
|
9196
9212
|
}
|
|
9197
|
-
function
|
|
9213
|
+
function ku(i) {
|
|
9198
9214
|
i.x -= this.x0, i.y -= this.y0;
|
|
9199
9215
|
var s, n;
|
|
9200
|
-
return this.sphere ? (s = O(this.long0 + i.x / this.a / Math.cos(this.lat_ts)), n = Math.asin(i.y / this.a * Math.cos(this.lat_ts))) : (n =
|
|
9201
|
-
}
|
|
9202
|
-
var
|
|
9203
|
-
const
|
|
9204
|
-
init:
|
|
9205
|
-
forward:
|
|
9206
|
-
inverse:
|
|
9207
|
-
names:
|
|
9216
|
+
return this.sphere ? (s = O(this.long0 + i.x / this.a / Math.cos(this.lat_ts)), n = Math.asin(i.y / this.a * Math.cos(this.lat_ts))) : (n = Iu(this.e, 2 * i.y * this.k0 / this.a), s = O(this.long0 + i.x / (this.a * this.k0))), i.x = s, i.y = n, i;
|
|
9217
|
+
}
|
|
9218
|
+
var Bu = ["cea"];
|
|
9219
|
+
const Ru = {
|
|
9220
|
+
init: zu,
|
|
9221
|
+
forward: Nu,
|
|
9222
|
+
inverse: ku,
|
|
9223
|
+
names: Bu
|
|
9208
9224
|
};
|
|
9209
|
-
function
|
|
9225
|
+
function Du() {
|
|
9210
9226
|
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.lat_ts = this.lat_ts || 0, this.title = this.title || "Equidistant Cylindrical (Plate Carre)", this.rc = Math.cos(this.lat_ts);
|
|
9211
9227
|
}
|
|
9212
|
-
function
|
|
9228
|
+
function Zu(i) {
|
|
9213
9229
|
var s = i.x, n = i.y, r = O(s - this.long0), o = ni(n - this.lat0);
|
|
9214
9230
|
return i.x = this.x0 + this.a * r * this.rc, i.y = this.y0 + this.a * o, i;
|
|
9215
9231
|
}
|
|
9216
|
-
function
|
|
9232
|
+
function Fu(i) {
|
|
9217
9233
|
var s = i.x, n = i.y;
|
|
9218
9234
|
return i.x = O(this.long0 + (s - this.x0) / (this.a * this.rc)), i.y = ni(this.lat0 + (n - this.y0) / this.a), i;
|
|
9219
9235
|
}
|
|
9220
|
-
var
|
|
9221
|
-
const
|
|
9222
|
-
init:
|
|
9223
|
-
forward:
|
|
9224
|
-
inverse:
|
|
9225
|
-
names:
|
|
9236
|
+
var Gu = ["Equirectangular", "Equidistant_Cylindrical", "eqc"];
|
|
9237
|
+
const qu = {
|
|
9238
|
+
init: Du,
|
|
9239
|
+
forward: Zu,
|
|
9240
|
+
inverse: Fu,
|
|
9241
|
+
names: Gu
|
|
9226
9242
|
};
|
|
9227
|
-
var
|
|
9228
|
-
function
|
|
9229
|
-
this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 =
|
|
9243
|
+
var Ma = 20;
|
|
9244
|
+
function Uu() {
|
|
9245
|
+
this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = re(this.es), this.e1 = he(this.es), this.e2 = le(this.es), this.e3 = ue(this.es), this.ml0 = this.a * yt(this.e0, this.e1, this.e2, this.e3, this.lat0);
|
|
9230
9246
|
}
|
|
9231
|
-
function
|
|
9247
|
+
function ju(i) {
|
|
9232
9248
|
var s = i.x, n = i.y, r, o, l, f = O(s - this.long0);
|
|
9233
9249
|
if (l = f * Math.sin(n), this.sphere)
|
|
9234
9250
|
Math.abs(n) <= S ? (r = this.a * f, o = -1 * this.a * this.lat0) : (r = this.a * Math.sin(l) / Math.tan(n), o = this.a * (ni(n - this.lat0) + (1 - Math.cos(l)) / Math.tan(n)));
|
|
@@ -9240,7 +9256,7 @@ function qu(i) {
|
|
|
9240
9256
|
}
|
|
9241
9257
|
return i.x = r + this.x0, i.y = o + this.y0, i;
|
|
9242
9258
|
}
|
|
9243
|
-
function
|
|
9259
|
+
function Hu(i) {
|
|
9244
9260
|
var s, n, r, o, l, f, c, d, m;
|
|
9245
9261
|
if (r = i.x - this.x0, o = i.y - this.y0, this.sphere)
|
|
9246
9262
|
if (Math.abs(o + this.a * this.lat0) <= S)
|
|
@@ -9248,7 +9264,7 @@ function Uu(i) {
|
|
|
9248
9264
|
else {
|
|
9249
9265
|
f = this.lat0 + o / this.a, c = r * r / this.a / this.a + f * f, d = f;
|
|
9250
9266
|
var v;
|
|
9251
|
-
for (l =
|
|
9267
|
+
for (l = Ma; l; --l)
|
|
9252
9268
|
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
9269
|
n = d;
|
|
9254
9270
|
break;
|
|
@@ -9260,7 +9276,7 @@ function Uu(i) {
|
|
|
9260
9276
|
else {
|
|
9261
9277
|
f = (this.ml0 + o) / this.a, c = r * r / this.a / this.a + f * f, d = f;
|
|
9262
9278
|
var p, y, b, A, P;
|
|
9263
|
-
for (l =
|
|
9279
|
+
for (l = Ma; l; --l)
|
|
9264
9280
|
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
9281
|
n = d;
|
|
9266
9282
|
break;
|
|
@@ -9269,18 +9285,18 @@ function Uu(i) {
|
|
|
9269
9285
|
}
|
|
9270
9286
|
return i.x = s, i.y = n, i;
|
|
9271
9287
|
}
|
|
9272
|
-
var
|
|
9273
|
-
const
|
|
9274
|
-
init:
|
|
9275
|
-
forward:
|
|
9276
|
-
inverse:
|
|
9277
|
-
names:
|
|
9288
|
+
var Wu = ["Polyconic", "poly"];
|
|
9289
|
+
const $u = {
|
|
9290
|
+
init: Uu,
|
|
9291
|
+
forward: ju,
|
|
9292
|
+
inverse: Hu,
|
|
9293
|
+
names: Wu
|
|
9278
9294
|
};
|
|
9279
|
-
function
|
|
9295
|
+
function Vu() {
|
|
9280
9296
|
this.A = [], this.A[1] = 0.6399175073, this.A[2] = -0.1358797613, this.A[3] = 0.063294409, this.A[4] = -0.02526853, this.A[5] = 0.0117879, this.A[6] = -55161e-7, this.A[7] = 26906e-7, this.A[8] = -1333e-6, this.A[9] = 67e-5, this.A[10] = -34e-5, this.B_re = [], this.B_im = [], this.B_re[1] = 0.7557853228, this.B_im[1] = 0, this.B_re[2] = 0.249204646, this.B_im[2] = 3371507e-9, this.B_re[3] = -1541739e-9, this.B_im[3] = 0.04105856, this.B_re[4] = -0.10162907, this.B_im[4] = 0.01727609, this.B_re[5] = -0.26623489, this.B_im[5] = -0.36249218, this.B_re[6] = -0.6870983, this.B_im[6] = -1.1651967, this.C_re = [], this.C_im = [], this.C_re[1] = 1.3231270439, this.C_im[1] = 0, this.C_re[2] = -0.577245789, this.C_im[2] = -7809598e-9, this.C_re[3] = 0.508307513, this.C_im[3] = -0.112208952, this.C_re[4] = -0.15094762, this.C_im[4] = 0.18200602, this.C_re[5] = 1.01418179, this.C_im[5] = 1.64497696, this.C_re[6] = 1.9660549, this.C_im[6] = 2.5127645, this.D = [], this.D[1] = 1.5627014243, this.D[2] = 0.5185406398, this.D[3] = -0.03333098, this.D[4] = -0.1052906, this.D[5] = -0.0368594, this.D[6] = 7317e-6, this.D[7] = 0.0122, this.D[8] = 394e-5, this.D[9] = -13e-4;
|
|
9281
9297
|
}
|
|
9282
|
-
function
|
|
9283
|
-
var s, n = i.x, r = i.y, o = r - this.lat0, l = n - this.long0, f = o /
|
|
9298
|
+
function Qu(i) {
|
|
9299
|
+
var s, n = i.x, r = i.y, o = r - this.lat0, l = n - this.long0, f = o / Ki * 1e-5, c = l, d = 1, m = 0;
|
|
9284
9300
|
for (s = 1; s <= 10; s++)
|
|
9285
9301
|
d = d * f, m = m + this.A[s] * d;
|
|
9286
9302
|
var v = m, p = c, y = 1, b = 0, A, P, E = 0, z = 0;
|
|
@@ -9288,7 +9304,7 @@ function $u(i) {
|
|
|
9288
9304
|
A = y * v - b * p, P = b * v + y * p, y = A, b = P, E = E + this.B_re[s] * y - this.B_im[s] * b, z = z + this.B_im[s] * y + this.B_re[s] * b;
|
|
9289
9305
|
return i.x = z * this.a + this.x0, i.y = E * this.a + this.y0, i;
|
|
9290
9306
|
}
|
|
9291
|
-
function
|
|
9307
|
+
function Xu(i) {
|
|
9292
9308
|
var s, n = i.x, r = i.y, o = n - this.x0, l = r - this.y0, f = l / this.a, c = o / this.a, d = 1, m = 0, v, p, y = 0, b = 0;
|
|
9293
9309
|
for (s = 1; s <= 6; s++)
|
|
9294
9310
|
v = d * f - m * c, p = m * f + d * c, d = v, m = p, y = y + this.C_re[s] * d - this.C_im[s] * m, b = b + this.C_im[s] * d + this.C_re[s] * m;
|
|
@@ -9306,45 +9322,45 @@ function Vu(i) {
|
|
|
9306
9322
|
var tt = y, Mt = b, Bt = 1, nt = 0;
|
|
9307
9323
|
for (s = 1; s <= 9; s++)
|
|
9308
9324
|
Bt = Bt * tt, nt = nt + this.D[s] * Bt;
|
|
9309
|
-
var dt = this.lat0 + nt *
|
|
9310
|
-
return i.x =
|
|
9311
|
-
}
|
|
9312
|
-
var
|
|
9313
|
-
const
|
|
9314
|
-
init:
|
|
9315
|
-
forward:
|
|
9316
|
-
inverse:
|
|
9317
|
-
names:
|
|
9325
|
+
var dt = this.lat0 + nt * Ki * 1e5, je = this.long0 + Mt;
|
|
9326
|
+
return i.x = je, i.y = dt, i;
|
|
9327
|
+
}
|
|
9328
|
+
var Ku = ["New_Zealand_Map_Grid", "nzmg"];
|
|
9329
|
+
const Yu = {
|
|
9330
|
+
init: Vu,
|
|
9331
|
+
forward: Qu,
|
|
9332
|
+
inverse: Xu,
|
|
9333
|
+
names: Ku
|
|
9318
9334
|
};
|
|
9319
|
-
function
|
|
9335
|
+
function Ju() {
|
|
9320
9336
|
}
|
|
9321
|
-
function
|
|
9337
|
+
function tc(i) {
|
|
9322
9338
|
var s = i.x, n = i.y, r = O(s - this.long0), o = this.x0 + this.a * r, l = this.y0 + this.a * Math.log(Math.tan(Math.PI / 4 + n / 2.5)) * 1.25;
|
|
9323
9339
|
return i.x = o, i.y = l, i;
|
|
9324
9340
|
}
|
|
9325
|
-
function
|
|
9341
|
+
function ic(i) {
|
|
9326
9342
|
i.x -= this.x0, i.y -= this.y0;
|
|
9327
9343
|
var s = O(this.long0 + i.x / this.a), n = 2.5 * (Math.atan(Math.exp(0.8 * i.y / this.a)) - Math.PI / 4);
|
|
9328
9344
|
return i.x = s, i.y = n, i;
|
|
9329
9345
|
}
|
|
9330
|
-
var
|
|
9331
|
-
const
|
|
9332
|
-
init:
|
|
9333
|
-
forward:
|
|
9334
|
-
inverse:
|
|
9335
|
-
names:
|
|
9346
|
+
var ec = ["Miller_Cylindrical", "mill"];
|
|
9347
|
+
const sc = {
|
|
9348
|
+
init: Ju,
|
|
9349
|
+
forward: tc,
|
|
9350
|
+
inverse: ic,
|
|
9351
|
+
names: ec
|
|
9336
9352
|
};
|
|
9337
|
-
var
|
|
9338
|
-
function
|
|
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 =
|
|
9353
|
+
var nc = 20;
|
|
9354
|
+
function ac() {
|
|
9355
|
+
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
9356
|
}
|
|
9341
|
-
function
|
|
9357
|
+
function oc(i) {
|
|
9342
9358
|
var s, n, r = i.x, o = i.y;
|
|
9343
9359
|
if (r = O(r - this.long0), this.sphere) {
|
|
9344
9360
|
if (!this.m)
|
|
9345
9361
|
o = this.n !== 1 ? Math.asin(this.n * Math.sin(o)) : o;
|
|
9346
9362
|
else
|
|
9347
|
-
for (var l = this.n * Math.sin(o), f =
|
|
9363
|
+
for (var l = this.n * Math.sin(o), f = nc; f; --f) {
|
|
9348
9364
|
var c = (this.m * o + Math.sin(o) - l) / (this.m + Math.cos(o));
|
|
9349
9365
|
if (o -= c, Math.abs(c) < S)
|
|
9350
9366
|
break;
|
|
@@ -9356,20 +9372,20 @@ function nc(i) {
|
|
|
9356
9372
|
}
|
|
9357
9373
|
return i.x = s, i.y = n, i;
|
|
9358
9374
|
}
|
|
9359
|
-
function
|
|
9375
|
+
function rc(i) {
|
|
9360
9376
|
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 =
|
|
9362
|
-
}
|
|
9363
|
-
var
|
|
9364
|
-
const
|
|
9365
|
-
init:
|
|
9366
|
-
forward:
|
|
9367
|
-
inverse:
|
|
9368
|
-
names:
|
|
9377
|
+
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;
|
|
9378
|
+
}
|
|
9379
|
+
var hc = ["Sinusoidal", "sinu"];
|
|
9380
|
+
const lc = {
|
|
9381
|
+
init: ac,
|
|
9382
|
+
forward: oc,
|
|
9383
|
+
inverse: rc,
|
|
9384
|
+
names: hc
|
|
9369
9385
|
};
|
|
9370
|
-
function
|
|
9386
|
+
function uc() {
|
|
9371
9387
|
}
|
|
9372
|
-
function
|
|
9388
|
+
function cc(i) {
|
|
9373
9389
|
for (var s = i.x, n = i.y, r = O(s - this.long0), o = n, l = Math.PI * Math.sin(n); ; ) {
|
|
9374
9390
|
var f = -(o + Math.sin(o) - l) / (1 + Math.cos(o));
|
|
9375
9391
|
if (o += f, Math.abs(f) < S)
|
|
@@ -9379,7 +9395,7 @@ function lc(i) {
|
|
|
9379
9395
|
var c = 0.900316316158 * this.a * r * Math.cos(o) + this.x0, d = 1.4142135623731 * this.a * Math.sin(o) + this.y0;
|
|
9380
9396
|
return i.x = c, i.y = d, i;
|
|
9381
9397
|
}
|
|
9382
|
-
function
|
|
9398
|
+
function fc(i) {
|
|
9383
9399
|
var s, n;
|
|
9384
9400
|
i.x -= this.x0, i.y -= this.y0, n = i.y / (1.4142135623731 * this.a), Math.abs(n) > 0.999999999999 && (n = 0.999999999999), s = Math.asin(n);
|
|
9385
9401
|
var r = O(this.long0 + i.x / (0.900316316158 * this.a * Math.cos(s)));
|
|
@@ -9387,17 +9403,17 @@ function uc(i) {
|
|
|
9387
9403
|
var o = Math.asin(n);
|
|
9388
9404
|
return i.x = r, i.y = o, i;
|
|
9389
9405
|
}
|
|
9390
|
-
var
|
|
9391
|
-
const
|
|
9392
|
-
init:
|
|
9393
|
-
forward:
|
|
9394
|
-
inverse:
|
|
9395
|
-
names:
|
|
9406
|
+
var dc = ["Mollweide", "moll"];
|
|
9407
|
+
const _c = {
|
|
9408
|
+
init: uc,
|
|
9409
|
+
forward: cc,
|
|
9410
|
+
inverse: fc,
|
|
9411
|
+
names: dc
|
|
9396
9412
|
};
|
|
9397
|
-
function
|
|
9398
|
-
Math.abs(this.lat1 + this.lat2) < S || (this.lat2 = this.lat2 || this.lat1, this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 =
|
|
9413
|
+
function mc() {
|
|
9414
|
+
Math.abs(this.lat1 + this.lat2) < S || (this.lat2 = this.lat2 || this.lat1, this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = re(this.es), this.e1 = he(this.es), this.e2 = le(this.es), this.e3 = ue(this.es), this.sinphi = Math.sin(this.lat1), this.cosphi = Math.cos(this.lat1), this.ms1 = jt(this.e, this.sinphi, this.cosphi), this.ml1 = yt(this.e0, this.e1, this.e2, this.e3, this.lat1), Math.abs(this.lat1 - this.lat2) < S ? this.ns = this.sinphi : (this.sinphi = Math.sin(this.lat2), this.cosphi = Math.cos(this.lat2), this.ms2 = jt(this.e, this.sinphi, this.cosphi), this.ml2 = yt(this.e0, this.e1, this.e2, this.e3, this.lat2), this.ns = (this.ms1 - this.ms2) / (this.ml2 - this.ml1)), this.g = this.ml1 + this.ms1 / this.ns, this.ml0 = yt(this.e0, this.e1, this.e2, this.e3, this.lat0), this.rh = this.a * (this.g - this.ml0));
|
|
9399
9415
|
}
|
|
9400
|
-
function
|
|
9416
|
+
function pc(i) {
|
|
9401
9417
|
var s = i.x, n = i.y, r;
|
|
9402
9418
|
if (this.sphere)
|
|
9403
9419
|
r = this.a * (this.g - n);
|
|
@@ -9408,7 +9424,7 @@ function _c(i) {
|
|
|
9408
9424
|
var l = this.ns * O(s - this.long0), f = this.x0 + r * Math.sin(l), c = this.y0 + this.rh - r * Math.cos(l);
|
|
9409
9425
|
return i.x = f, i.y = c, i;
|
|
9410
9426
|
}
|
|
9411
|
-
function
|
|
9427
|
+
function gc(i) {
|
|
9412
9428
|
i.x -= this.x0, i.y = this.rh - i.y + this.y0;
|
|
9413
9429
|
var s, n, r, o;
|
|
9414
9430
|
this.ns >= 0 ? (n = Math.sqrt(i.x * i.x + i.y * i.y), s = 1) : (n = -Math.sqrt(i.x * i.x + i.y * i.y), s = -1);
|
|
@@ -9416,19 +9432,19 @@ function mc(i) {
|
|
|
9416
9432
|
if (n !== 0 && (l = Math.atan2(s * i.x, s * i.y)), this.sphere)
|
|
9417
9433
|
return o = O(this.long0 + l / this.ns), r = ni(this.g - n / this.a), i.x = o, i.y = r, i;
|
|
9418
9434
|
var f = this.g - n / this.a;
|
|
9419
|
-
return r =
|
|
9420
|
-
}
|
|
9421
|
-
var
|
|
9422
|
-
const
|
|
9423
|
-
init:
|
|
9424
|
-
forward:
|
|
9425
|
-
inverse:
|
|
9426
|
-
names:
|
|
9435
|
+
return r = Fe(f, this.e0, this.e1, this.e2, this.e3), o = O(this.long0 + l / this.ns), i.x = o, i.y = r, i;
|
|
9436
|
+
}
|
|
9437
|
+
var vc = ["Equidistant_Conic", "eqdc"];
|
|
9438
|
+
const yc = {
|
|
9439
|
+
init: mc,
|
|
9440
|
+
forward: pc,
|
|
9441
|
+
inverse: gc,
|
|
9442
|
+
names: vc
|
|
9427
9443
|
};
|
|
9428
|
-
function
|
|
9444
|
+
function Mc() {
|
|
9429
9445
|
this.R = this.a;
|
|
9430
9446
|
}
|
|
9431
|
-
function
|
|
9447
|
+
function xc(i) {
|
|
9432
9448
|
var s = i.x, n = i.y, r = O(s - this.long0), o, l;
|
|
9433
9449
|
Math.abs(n) <= S && (o = this.x0 + this.R * r, l = this.y0);
|
|
9434
9450
|
var f = si(2 * Math.abs(n / Math.PI));
|
|
@@ -9438,53 +9454,53 @@ function yc(i) {
|
|
|
9438
9454
|
var E = d + p;
|
|
9439
9455
|
return P = Math.PI * this.R * (b * E - c * Math.sqrt((A + d) * (d + 1) - E * E)) / (A + d), n >= 0 ? l = this.y0 + P : l = this.y0 - P, i.x = o, i.y = l, i;
|
|
9440
9456
|
}
|
|
9441
|
-
function
|
|
9457
|
+
function wc(i) {
|
|
9442
9458
|
var s, n, r, o, l, f, c, d, m, v, p, y, b;
|
|
9443
9459
|
return i.x -= this.x0, i.y -= this.y0, p = Math.PI * this.R, r = i.x / p, o = i.y / p, l = r * r + o * o, f = -Math.abs(o) * (1 + l), c = f - 2 * o * o + r * r, d = -2 * f + 1 + 2 * o * o + l * l, b = o * o / d + (2 * c * c * c / d / d / d - 9 * f * c / d / d) / 27, m = (f - c * c / 3 / d) / d, v = 2 * Math.sqrt(-m / 3), p = 3 * b / m / v, Math.abs(p) > 1 && (p >= 0 ? p = 1 : p = -1), y = Math.acos(p) / 3, i.y >= 0 ? n = (-v * Math.cos(y + Math.PI / 3) - c / 3 / d) * Math.PI : n = -(-v * Math.cos(y + Math.PI / 3) - c / 3 / d) * Math.PI, Math.abs(r) < S ? s = this.long0 : s = O(this.long0 + Math.PI * (l - 1 + Math.sqrt(1 + 2 * (r * r - o * o) + l * l)) / 2 / r), i.x = s, i.y = n, i;
|
|
9444
9460
|
}
|
|
9445
|
-
var
|
|
9446
|
-
const
|
|
9447
|
-
init:
|
|
9448
|
-
forward:
|
|
9449
|
-
inverse:
|
|
9450
|
-
names:
|
|
9461
|
+
var bc = ["Van_der_Grinten_I", "VanDerGrinten", "vandg"];
|
|
9462
|
+
const Lc = {
|
|
9463
|
+
init: Mc,
|
|
9464
|
+
forward: xc,
|
|
9465
|
+
inverse: wc,
|
|
9466
|
+
names: bc
|
|
9451
9467
|
};
|
|
9452
|
-
function
|
|
9468
|
+
function Pc() {
|
|
9453
9469
|
this.sin_p12 = Math.sin(this.lat0), this.cos_p12 = Math.cos(this.lat0);
|
|
9454
9470
|
}
|
|
9455
|
-
function
|
|
9471
|
+
function Ac(i) {
|
|
9456
9472
|
var s = i.x, n = i.y, r = Math.sin(i.y), o = Math.cos(i.y), l = O(s - this.long0), f, c, d, m, v, p, y, b, A, P, E, z, B, k, j, H, W, ut, tt, Mt, Bt, nt, dt;
|
|
9457
|
-
return this.sphere ? Math.abs(this.sin_p12 - 1) <= S ? (i.x = this.x0 + this.a * (C - n) * Math.sin(l), i.y = this.y0 - this.a * (C - n) * Math.cos(l), i) : Math.abs(this.sin_p12 + 1) <= S ? (i.x = this.x0 + this.a * (C + n) * Math.sin(l), i.y = this.y0 + this.a * (C + n) * Math.cos(l), i) : (ut = this.sin_p12 * r + this.cos_p12 * o * Math.cos(l), H = Math.acos(ut), W = H ? H / Math.sin(H) : 1, i.x = this.x0 + this.a * W * o * Math.sin(l), i.y = this.y0 + this.a * W * (this.cos_p12 * r - this.sin_p12 * o * Math.cos(l)), i) : (f =
|
|
9473
|
+
return this.sphere ? Math.abs(this.sin_p12 - 1) <= S ? (i.x = this.x0 + this.a * (C - n) * Math.sin(l), i.y = this.y0 - this.a * (C - n) * Math.cos(l), i) : Math.abs(this.sin_p12 + 1) <= S ? (i.x = this.x0 + this.a * (C + n) * Math.sin(l), i.y = this.y0 + this.a * (C + n) * Math.cos(l), i) : (ut = this.sin_p12 * r + this.cos_p12 * o * Math.cos(l), H = Math.acos(ut), W = H ? H / Math.sin(H) : 1, i.x = this.x0 + this.a * W * o * Math.sin(l), i.y = this.y0 + this.a * W * (this.cos_p12 * r - this.sin_p12 * o * Math.cos(l)), i) : (f = re(this.es), c = he(this.es), d = le(this.es), m = ue(this.es), Math.abs(this.sin_p12 - 1) <= S ? (v = this.a * yt(f, c, d, m, C), p = this.a * yt(f, c, d, m, n), i.x = this.x0 + (v - p) * Math.sin(l), i.y = this.y0 - (v - p) * Math.cos(l), i) : Math.abs(this.sin_p12 + 1) <= S ? (v = this.a * yt(f, c, d, m, C), p = this.a * yt(f, c, d, m, n), i.x = this.x0 + (v + p) * Math.sin(l), i.y = this.y0 + (v + p) * Math.cos(l), i) : (y = r / o, b = Si(this.a, this.e, this.sin_p12), A = Si(this.a, this.e, r), P = Math.atan((1 - this.es) * y + this.es * b * this.sin_p12 / (A * o)), E = Math.atan2(Math.sin(l), this.cos_p12 * Math.tan(P) - this.sin_p12 * Math.cos(l)), E === 0 ? tt = Math.asin(this.cos_p12 * Math.sin(P) - this.sin_p12 * Math.cos(P)) : Math.abs(Math.abs(E) - Math.PI) <= S ? tt = -Math.asin(this.cos_p12 * Math.sin(P) - this.sin_p12 * Math.cos(P)) : tt = Math.asin(Math.sin(l) * Math.cos(P) / Math.sin(E)), z = this.e * this.sin_p12 / Math.sqrt(1 - this.es), B = this.e * this.cos_p12 * Math.cos(E) / Math.sqrt(1 - this.es), k = z * B, j = B * B, Mt = tt * tt, Bt = Mt * tt, nt = Bt * tt, dt = nt * tt, H = b * tt * (1 - Mt * j * (1 - j) / 6 + Bt / 8 * k * (1 - 2 * j) + nt / 120 * (j * (4 - 7 * j) - 3 * z * z * (1 - 7 * j)) - dt / 48 * k), i.x = this.x0 + H * Math.sin(E), i.y = this.y0 + H * Math.cos(E), i));
|
|
9458
9474
|
}
|
|
9459
|
-
function
|
|
9475
|
+
function Tc(i) {
|
|
9460
9476
|
i.x -= this.x0, i.y -= this.y0;
|
|
9461
9477
|
var s, n, r, o, l, f, c, d, m, v, p, y, b, A, P, E, z, B, k, j, H, W, ut, tt;
|
|
9462
|
-
return this.sphere ? (s = Math.sqrt(i.x * i.x + i.y * i.y), s > 2 * C * this.a ? void 0 : (n = s / this.a, r = Math.sin(n), o = Math.cos(n), l = this.long0, Math.abs(s) <= S ? f = this.lat0 : (f = si(o * this.sin_p12 + i.y * r * this.cos_p12 / s), c = Math.abs(this.lat0) - C, Math.abs(c) <= S ? this.lat0 >= 0 ? l = O(this.long0 + Math.atan2(i.x, -i.y)) : l = O(this.long0 - Math.atan2(-i.x, i.y)) : l = O(this.long0 + Math.atan2(i.x * r, s * this.cos_p12 * o - i.y * this.sin_p12 * r))), i.x = l, i.y = f, i)) : (d =
|
|
9463
|
-
}
|
|
9464
|
-
var
|
|
9465
|
-
const
|
|
9466
|
-
init:
|
|
9467
|
-
forward:
|
|
9468
|
-
inverse:
|
|
9469
|
-
names:
|
|
9478
|
+
return this.sphere ? (s = Math.sqrt(i.x * i.x + i.y * i.y), s > 2 * C * this.a ? void 0 : (n = s / this.a, r = Math.sin(n), o = Math.cos(n), l = this.long0, Math.abs(s) <= S ? f = this.lat0 : (f = si(o * this.sin_p12 + i.y * r * this.cos_p12 / s), c = Math.abs(this.lat0) - C, Math.abs(c) <= S ? this.lat0 >= 0 ? l = O(this.long0 + Math.atan2(i.x, -i.y)) : l = O(this.long0 - Math.atan2(-i.x, i.y)) : l = O(this.long0 + Math.atan2(i.x * r, s * this.cos_p12 * o - i.y * this.sin_p12 * r))), i.x = l, i.y = f, i)) : (d = re(this.es), m = he(this.es), v = le(this.es), p = ue(this.es), Math.abs(this.sin_p12 - 1) <= S ? (y = this.a * yt(d, m, v, p, C), s = Math.sqrt(i.x * i.x + i.y * i.y), b = y - s, f = Fe(b / this.a, d, m, v, p), l = O(this.long0 + Math.atan2(i.x, -1 * i.y)), i.x = l, i.y = f, i) : Math.abs(this.sin_p12 + 1) <= S ? (y = this.a * yt(d, m, v, p, C), s = Math.sqrt(i.x * i.x + i.y * i.y), b = s - y, f = Fe(b / this.a, d, m, v, p), l = O(this.long0 + Math.atan2(i.x, i.y)), i.x = l, i.y = f, i) : (s = Math.sqrt(i.x * i.x + i.y * i.y), E = Math.atan2(i.x, i.y), A = Si(this.a, this.e, this.sin_p12), z = Math.cos(E), B = this.e * this.cos_p12 * z, k = -B * B / (1 - this.es), j = 3 * this.es * (1 - k) * this.sin_p12 * this.cos_p12 * z / (1 - this.es), H = s / A, W = H - k * (1 + k) * Math.pow(H, 3) / 6 - j * (1 + 3 * k) * Math.pow(H, 4) / 24, ut = 1 - k * W * W / 2 - H * W * W * W / 6, P = Math.asin(this.sin_p12 * Math.cos(W) + this.cos_p12 * Math.sin(W) * z), l = O(this.long0 + Math.asin(Math.sin(E) * Math.sin(W) / Math.cos(P))), tt = Math.sin(P), f = Math.atan2((tt - this.es * ut * this.sin_p12) * Math.tan(P), tt * (1 - this.es)), i.x = l, i.y = f, i));
|
|
9479
|
+
}
|
|
9480
|
+
var Cc = ["Azimuthal_Equidistant", "aeqd"];
|
|
9481
|
+
const Ec = {
|
|
9482
|
+
init: Pc,
|
|
9483
|
+
forward: Ac,
|
|
9484
|
+
inverse: Tc,
|
|
9485
|
+
names: Cc
|
|
9470
9486
|
};
|
|
9471
|
-
function
|
|
9487
|
+
function Sc() {
|
|
9472
9488
|
this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0);
|
|
9473
9489
|
}
|
|
9474
|
-
function
|
|
9490
|
+
function Oc(i) {
|
|
9475
9491
|
var s, n, r, o, l, f, c, d, m = i.x, v = i.y;
|
|
9476
9492
|
return r = O(m - this.long0), s = Math.sin(v), n = Math.cos(v), o = Math.cos(r), f = this.sin_p14 * s + this.cos_p14 * n * o, l = 1, (f > 0 || Math.abs(f) <= S) && (c = this.a * l * n * Math.sin(r), d = this.y0 + this.a * l * (this.cos_p14 * s - this.sin_p14 * n * o)), i.x = c, i.y = d, i;
|
|
9477
9493
|
}
|
|
9478
|
-
function
|
|
9494
|
+
function Ic(i) {
|
|
9479
9495
|
var s, n, r, o, l, f, c;
|
|
9480
9496
|
return i.x -= this.x0, i.y -= this.y0, s = Math.sqrt(i.x * i.x + i.y * i.y), n = si(s / this.a), r = Math.sin(n), o = Math.cos(n), f = this.long0, Math.abs(s) <= S ? (c = this.lat0, i.x = f, i.y = c, i) : (c = si(o * this.sin_p14 + i.y * r * this.cos_p14 / s), l = Math.abs(this.lat0) - C, Math.abs(l) <= S ? (this.lat0 >= 0 ? f = O(this.long0 + Math.atan2(i.x, -i.y)) : f = O(this.long0 - Math.atan2(-i.x, i.y)), i.x = f, i.y = c, i) : (f = O(this.long0 + Math.atan2(i.x * r, s * this.cos_p14 * o - i.y * this.sin_p14 * r)), i.x = f, i.y = c, i));
|
|
9481
9497
|
}
|
|
9482
|
-
var
|
|
9483
|
-
const
|
|
9484
|
-
init:
|
|
9485
|
-
forward:
|
|
9486
|
-
inverse:
|
|
9487
|
-
names:
|
|
9498
|
+
var zc = ["ortho"];
|
|
9499
|
+
const Nc = {
|
|
9500
|
+
init: Sc,
|
|
9501
|
+
forward: Oc,
|
|
9502
|
+
inverse: Ic,
|
|
9503
|
+
names: zc
|
|
9488
9504
|
};
|
|
9489
9505
|
var st = {
|
|
9490
9506
|
FRONT: 1,
|
|
@@ -9499,10 +9515,10 @@ var st = {
|
|
|
9499
9515
|
AREA_2: 3,
|
|
9500
9516
|
AREA_3: 4
|
|
9501
9517
|
};
|
|
9502
|
-
function
|
|
9518
|
+
function kc() {
|
|
9503
9519
|
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.lat_ts = this.lat_ts || 0, this.title = this.title || "Quadrilateralized Spherical Cube", this.lat0 >= C - X / 2 ? this.face = st.TOP : this.lat0 <= -(C - X / 2) ? this.face = st.BOTTOM : Math.abs(this.long0) <= X ? this.face = st.FRONT : Math.abs(this.long0) <= C + X ? this.face = this.long0 > 0 ? st.RIGHT : st.LEFT : this.face = st.BACK, this.es !== 0 && (this.one_minus_f = 1 - (this.a - this.b) / this.a, this.one_minus_f_squared = this.one_minus_f * this.one_minus_f);
|
|
9504
9520
|
}
|
|
9505
|
-
function
|
|
9521
|
+
function Bc(i) {
|
|
9506
9522
|
var s = { x: 0, y: 0 }, n, r, o, l, f, c, d = { value: 0 };
|
|
9507
9523
|
if (i.x -= this.long0, this.es !== 0 ? n = Math.atan(this.one_minus_f_squared * Math.tan(i.y)) : n = i.y, r = i.x, this.face === st.TOP)
|
|
9508
9524
|
l = C - n, r >= X && r <= C + X ? (d.value = K.AREA_0, o = r - C) : r > C + X || r <= -(C + X) ? (d.value = K.AREA_1, o = r > 0 ? r - ot : r + ot) : r > -(C + X) && r <= -X ? (d.value = K.AREA_2, o = r + C) : (d.value = K.AREA_3, o = r);
|
|
@@ -9510,11 +9526,11 @@ function Nc(i) {
|
|
|
9510
9526
|
l = C + n, r >= X && r <= C + X ? (d.value = K.AREA_0, o = -r + C) : r < X && r >= -X ? (d.value = K.AREA_1, o = -r) : r < -X && r >= -(C + X) ? (d.value = K.AREA_2, o = -r - C) : (d.value = K.AREA_3, o = r > 0 ? -r + ot : -r - ot);
|
|
9511
9527
|
else {
|
|
9512
9528
|
var m, v, p, y, b, A, P;
|
|
9513
|
-
this.face === st.RIGHT ? r = Ci(r, +C) : this.face === st.BACK ? r = Ci(r, +ot) : this.face === st.LEFT && (r = Ci(r, -C)), y = Math.sin(n), b = Math.cos(n), A = Math.sin(r), P = Math.cos(r), m = b * P, v = b * A, p = y, this.face === st.FRONT ? (l = Math.acos(m), o =
|
|
9529
|
+
this.face === st.RIGHT ? r = Ci(r, +C) : this.face === st.BACK ? r = Ci(r, +ot) : this.face === st.LEFT && (r = Ci(r, -C)), y = Math.sin(n), b = Math.cos(n), A = Math.sin(r), P = Math.cos(r), m = b * P, v = b * A, p = y, this.face === st.FRONT ? (l = Math.acos(m), o = Ie(l, p, v, d)) : this.face === st.RIGHT ? (l = Math.acos(v), o = Ie(l, p, -m, d)) : this.face === st.BACK ? (l = Math.acos(-m), o = Ie(l, p, -v, d)) : this.face === st.LEFT ? (l = Math.acos(-v), o = Ie(l, p, m, d)) : (l = o = 0, d.value = K.AREA_0);
|
|
9514
9530
|
}
|
|
9515
9531
|
return c = Math.atan(12 / ot * (o + Math.acos(Math.sin(o) * Math.cos(X)) - C)), f = Math.sqrt((1 - Math.cos(l)) / (Math.cos(c) * Math.cos(c)) / (1 - Math.cos(Math.atan(1 / Math.cos(o))))), d.value === K.AREA_1 ? c += C : d.value === K.AREA_2 ? c += ot : d.value === K.AREA_3 && (c += 1.5 * ot), s.x = f * Math.cos(c), s.y = f * Math.sin(c), s.x = s.x * this.a + this.x0, s.y = s.y * this.a + this.y0, i.x = s.x, i.y = s.y, i;
|
|
9516
9532
|
}
|
|
9517
|
-
function
|
|
9533
|
+
function Rc(i) {
|
|
9518
9534
|
var s = { lam: 0, phi: 0 }, n, r, o, l, f, c, d, m, v, p = { value: 0 };
|
|
9519
9535
|
if (i.x = (i.x - this.x0) / this.a, i.y = (i.y - this.y0) / this.a, r = Math.atan(Math.sqrt(i.x * i.x + i.y * i.y)), n = Math.atan2(i.y, i.x), i.x >= 0 && i.x >= Math.abs(i.y) ? p.value = K.AREA_0 : i.y >= 0 && i.y >= Math.abs(i.x) ? (p.value = K.AREA_1, n -= C) : i.x < 0 && -i.x >= Math.abs(i.y) ? (p.value = K.AREA_2, n = n < 0 ? n + ot : n - ot) : (p.value = K.AREA_3, n += C), v = ot / 12 * Math.tan(n), f = Math.sin(v) / (Math.cos(v) - 1 / Math.sqrt(2)), c = Math.atan(f), o = Math.cos(n), l = Math.tan(r), d = 1 - o * o * l * l * (1 - Math.cos(Math.atan(1 / Math.cos(c)))), d < -1 ? d = -1 : d > 1 && (d = 1), this.face === st.TOP)
|
|
9520
9536
|
m = Math.acos(d), s.phi = C - m, p.value === K.AREA_0 ? s.lam = c + C : p.value === K.AREA_1 ? s.lam = c < 0 ? c + ot : c - ot : p.value === K.AREA_2 ? s.lam = c - C : s.lam = c;
|
|
@@ -9530,22 +9546,22 @@ function kc(i) {
|
|
|
9530
9546
|
}
|
|
9531
9547
|
return s.lam += this.long0, i.x = s.lam, i.y = s.phi, i;
|
|
9532
9548
|
}
|
|
9533
|
-
function
|
|
9549
|
+
function Ie(i, s, n, r) {
|
|
9534
9550
|
var o;
|
|
9535
9551
|
return i < S ? (r.value = K.AREA_0, o = 0) : (o = Math.atan2(s, n), Math.abs(o) <= X ? r.value = K.AREA_0 : o > X && o <= C + X ? (r.value = K.AREA_1, o -= C) : o > C + X || o <= -(C + X) ? (r.value = K.AREA_2, o = o >= 0 ? o - ot : o + ot) : (r.value = K.AREA_3, o += C)), o;
|
|
9536
9552
|
}
|
|
9537
9553
|
function Ci(i, s) {
|
|
9538
9554
|
var n = i + s;
|
|
9539
|
-
return n < -ot ? n +=
|
|
9540
|
-
}
|
|
9541
|
-
var
|
|
9542
|
-
const
|
|
9543
|
-
init:
|
|
9544
|
-
forward:
|
|
9545
|
-
inverse:
|
|
9546
|
-
names:
|
|
9555
|
+
return n < -ot ? n += ee : n > +ot && (n -= ee), n;
|
|
9556
|
+
}
|
|
9557
|
+
var Dc = ["Quadrilateralized Spherical Cube", "Quadrilateralized_Spherical_Cube", "qsc"];
|
|
9558
|
+
const Zc = {
|
|
9559
|
+
init: kc,
|
|
9560
|
+
forward: Bc,
|
|
9561
|
+
inverse: Rc,
|
|
9562
|
+
names: Dc
|
|
9547
9563
|
};
|
|
9548
|
-
var
|
|
9564
|
+
var Is = [
|
|
9549
9565
|
[1, 22199e-21, -715515e-10, 31103e-10],
|
|
9550
9566
|
[0.9986, -482243e-9, -24897e-9, -13309e-10],
|
|
9551
9567
|
[0.9954, -83103e-8, -448605e-10, -986701e-12],
|
|
@@ -9585,12 +9601,12 @@ var Ns = [
|
|
|
9585
9601
|
[0.9394, 840947e-8, -192841e-9, -42106e-10],
|
|
9586
9602
|
[0.9761, 616527e-8, -256e-6, -42106e-10],
|
|
9587
9603
|
[1, 328947e-8, -319159e-9, -42106e-10]
|
|
9588
|
-
], Ua = 0.8487, ja = 1.3523, Ha = qt / 5,
|
|
9604
|
+
], Ua = 0.8487, ja = 1.3523, Ha = qt / 5, Fc = 1 / Ha, Ai = 18, Ge = function(i, s) {
|
|
9589
9605
|
return i[0] + s * (i[1] + s * (i[2] + s * i[3]));
|
|
9590
|
-
},
|
|
9606
|
+
}, Gc = function(i, s) {
|
|
9591
9607
|
return i[1] + s * (2 * i[2] + s * 3 * i[3]);
|
|
9592
9608
|
};
|
|
9593
|
-
function
|
|
9609
|
+
function qc(i, s, n, r) {
|
|
9594
9610
|
for (var o = s; r; --r) {
|
|
9595
9611
|
var l = i(o);
|
|
9596
9612
|
if (o -= l, Math.abs(l) < n)
|
|
@@ -9598,25 +9614,25 @@ function Fc(i, s, n, r) {
|
|
|
9598
9614
|
}
|
|
9599
9615
|
return o;
|
|
9600
9616
|
}
|
|
9601
|
-
function
|
|
9617
|
+
function Uc() {
|
|
9602
9618
|
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.long0 = this.long0 || 0, this.es = 0, this.title = this.title || "Robinson";
|
|
9603
9619
|
}
|
|
9604
|
-
function
|
|
9620
|
+
function jc(i) {
|
|
9605
9621
|
var s = O(i.x - this.long0), n = Math.abs(i.y), r = Math.floor(n * Ha);
|
|
9606
|
-
r < 0 ? r = 0 : r >= Ai && (r = Ai - 1), n = qt * (n -
|
|
9622
|
+
r < 0 ? r = 0 : r >= Ai && (r = Ai - 1), n = qt * (n - Fc * r);
|
|
9607
9623
|
var o = {
|
|
9608
|
-
x:
|
|
9609
|
-
y:
|
|
9624
|
+
x: Ge(Is[r], n) * s,
|
|
9625
|
+
y: Ge(Xi[r], n)
|
|
9610
9626
|
};
|
|
9611
9627
|
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;
|
|
9612
9628
|
}
|
|
9613
|
-
function
|
|
9629
|
+
function Hc(i) {
|
|
9614
9630
|
var s = {
|
|
9615
9631
|
x: (i.x - this.x0) / (this.a * Ua),
|
|
9616
9632
|
y: Math.abs(i.y - this.y0) / (this.a * ja)
|
|
9617
9633
|
};
|
|
9618
9634
|
if (s.y >= 1)
|
|
9619
|
-
s.x /=
|
|
9635
|
+
s.x /= Is[Ai][0], s.y = i.y < 0 ? -C : C;
|
|
9620
9636
|
else {
|
|
9621
9637
|
var n = Math.floor(s.y * Ai);
|
|
9622
9638
|
for (n < 0 ? n = 0 : n >= Ai && (n = Ai - 1); ; )
|
|
@@ -9627,36 +9643,36 @@ function Uc(i) {
|
|
|
9627
9643
|
else
|
|
9628
9644
|
break;
|
|
9629
9645
|
var r = Xi[n], o = 5 * (s.y - r[0]) / (Xi[n + 1][0] - r[0]);
|
|
9630
|
-
o =
|
|
9631
|
-
return (
|
|
9632
|
-
}, o, S, 100), s.x /=
|
|
9646
|
+
o = qc(function(l) {
|
|
9647
|
+
return (Ge(r, l) - s.y) / Gc(r, l);
|
|
9648
|
+
}, o, S, 100), s.x /= Ge(Is[n], o), s.y = (5 * n + o) * mt, i.y < 0 && (s.y = -s.y);
|
|
9633
9649
|
}
|
|
9634
9650
|
return s.x = O(s.x + this.long0), s;
|
|
9635
9651
|
}
|
|
9636
|
-
var
|
|
9637
|
-
const
|
|
9638
|
-
init:
|
|
9639
|
-
forward:
|
|
9640
|
-
inverse:
|
|
9641
|
-
names:
|
|
9652
|
+
var Wc = ["Robinson", "robin"];
|
|
9653
|
+
const $c = {
|
|
9654
|
+
init: Uc,
|
|
9655
|
+
forward: jc,
|
|
9656
|
+
inverse: Hc,
|
|
9657
|
+
names: Wc
|
|
9642
9658
|
};
|
|
9643
|
-
function
|
|
9659
|
+
function Vc() {
|
|
9644
9660
|
this.name = "geocent";
|
|
9645
9661
|
}
|
|
9646
|
-
function
|
|
9662
|
+
function Qc(i) {
|
|
9647
9663
|
var s = Ia(i, this.es, this.a);
|
|
9648
9664
|
return s;
|
|
9649
9665
|
}
|
|
9650
|
-
function
|
|
9666
|
+
function Xc(i) {
|
|
9651
9667
|
var s = za(i, this.es, this.a, this.b);
|
|
9652
9668
|
return s;
|
|
9653
9669
|
}
|
|
9654
|
-
var
|
|
9655
|
-
const
|
|
9656
|
-
init:
|
|
9657
|
-
forward:
|
|
9658
|
-
inverse:
|
|
9659
|
-
names:
|
|
9670
|
+
var Kc = ["Geocentric", "geocentric", "geocent", "Geocent"];
|
|
9671
|
+
const Yc = {
|
|
9672
|
+
init: Vc,
|
|
9673
|
+
forward: Qc,
|
|
9674
|
+
inverse: Xc,
|
|
9675
|
+
names: Kc
|
|
9660
9676
|
};
|
|
9661
9677
|
var pt = {
|
|
9662
9678
|
N_POLE: 0,
|
|
@@ -9675,7 +9691,7 @@ var pt = {
|
|
|
9675
9691
|
lat0: { def: 0, num: !0 }
|
|
9676
9692
|
// default is Equator, conversion to rad is automatic
|
|
9677
9693
|
};
|
|
9678
|
-
function
|
|
9694
|
+
function Jc() {
|
|
9679
9695
|
if (Object.keys($i).forEach((function(n) {
|
|
9680
9696
|
if (typeof this[n] > "u")
|
|
9681
9697
|
this[n] = $i[n].def;
|
|
@@ -9691,7 +9707,7 @@ function Kc() {
|
|
|
9691
9707
|
var i = this.tilt, s = this.azi;
|
|
9692
9708
|
this.cg = Math.cos(s), this.sg = Math.sin(s), this.cw = Math.cos(i), this.sw = Math.sin(i);
|
|
9693
9709
|
}
|
|
9694
|
-
function
|
|
9710
|
+
function tf(i) {
|
|
9695
9711
|
i.x -= this.long0;
|
|
9696
9712
|
var s = Math.sin(i.y), n = Math.cos(i.y), r = Math.cos(i.x), o, l;
|
|
9697
9713
|
switch (this.mode) {
|
|
@@ -9725,7 +9741,7 @@ function Yc(i) {
|
|
|
9725
9741
|
var f, c;
|
|
9726
9742
|
return f = l * this.cg + o * this.sg, c = 1 / (f * this.sw * this.h1 + this.cw), o = (o * this.cg - l * this.sg) * this.cw * c, l = f * c, i.x = o * this.a, i.y = l * this.a, i;
|
|
9727
9743
|
}
|
|
9728
|
-
function
|
|
9744
|
+
function ef(i) {
|
|
9729
9745
|
i.x /= this.a, i.y /= this.a;
|
|
9730
9746
|
var s = { x: i.x, y: i.y }, n, r, o;
|
|
9731
9747
|
o = 1 / (this.pn1 - i.y * this.sw), n = this.pn1 * i.x * o, r = this.pn1 * i.y * this.cw * o, i.x = n * this.cg + r * this.sg, i.y = r * this.cg - n * this.sg;
|
|
@@ -9752,14 +9768,14 @@ function Jc(i) {
|
|
|
9752
9768
|
}
|
|
9753
9769
|
return i.x = s.x + this.long0, i.y = s.y, i;
|
|
9754
9770
|
}
|
|
9755
|
-
var
|
|
9756
|
-
const
|
|
9757
|
-
init:
|
|
9758
|
-
forward:
|
|
9759
|
-
inverse:
|
|
9760
|
-
names:
|
|
9771
|
+
var sf = ["Tilted_Perspective", "tpers"];
|
|
9772
|
+
const nf = {
|
|
9773
|
+
init: Jc,
|
|
9774
|
+
forward: tf,
|
|
9775
|
+
inverse: ef,
|
|
9776
|
+
names: sf
|
|
9761
9777
|
};
|
|
9762
|
-
function
|
|
9778
|
+
function af() {
|
|
9763
9779
|
if (this.flip_axis = this.sweep === "x" ? 1 : 0, this.h = Number(this.h), this.radius_g_1 = this.h / this.a, this.radius_g_1 <= 0 || this.radius_g_1 > 1e10)
|
|
9764
9780
|
throw new Error();
|
|
9765
9781
|
if (this.radius_g = 1 + this.radius_g_1, this.C = this.radius_g * this.radius_g - 1, this.es !== 0) {
|
|
@@ -9769,7 +9785,7 @@ function sf() {
|
|
|
9769
9785
|
this.radius_p = 1, this.radius_p2 = 1, this.radius_p_inv2 = 1, this.shape = "sphere";
|
|
9770
9786
|
this.title || (this.title = "Geostationary Satellite View");
|
|
9771
9787
|
}
|
|
9772
|
-
function
|
|
9788
|
+
function of(i) {
|
|
9773
9789
|
var s = i.x, n = i.y, r, o, l, f;
|
|
9774
9790
|
if (s = s - this.long0, this.shape === "ellipse") {
|
|
9775
9791
|
n = Math.atan(this.radius_p2 * Math.tan(n));
|
|
@@ -9780,7 +9796,7 @@ function nf(i) {
|
|
|
9780
9796
|
} else this.shape === "sphere" && (r = Math.cos(n), o = Math.cos(s) * r, l = Math.sin(s) * r, f = Math.sin(n), r = this.radius_g - o, this.flip_axis ? (i.x = this.radius_g_1 * Math.atan(l / Pt(f, r)), i.y = this.radius_g_1 * Math.atan(f / r)) : (i.x = this.radius_g_1 * Math.atan(l / r), i.y = this.radius_g_1 * Math.atan(f / Pt(l, r))));
|
|
9781
9797
|
return i.x = i.x * this.a, i.y = i.y * this.a, i;
|
|
9782
9798
|
}
|
|
9783
|
-
function
|
|
9799
|
+
function rf(i) {
|
|
9784
9800
|
var s = -1, n = 0, r = 0, o, l, f, c;
|
|
9785
9801
|
if (i.x = i.x / this.a, i.y = i.y / this.a, this.shape === "ellipse") {
|
|
9786
9802
|
this.flip_axis ? (r = Math.tan(i.y / this.radius_g_1), n = Math.tan(i.x / this.radius_g_1) * Pt(1, r)) : (n = Math.tan(i.x / this.radius_g_1), r = Math.tan(i.y / this.radius_g_1) * Pt(1, n));
|
|
@@ -9795,80 +9811,80 @@ function af(i) {
|
|
|
9795
9811
|
}
|
|
9796
9812
|
return i.x = i.x + this.long0, i;
|
|
9797
9813
|
}
|
|
9798
|
-
var
|
|
9799
|
-
const
|
|
9800
|
-
init:
|
|
9801
|
-
forward:
|
|
9802
|
-
inverse:
|
|
9803
|
-
names:
|
|
9814
|
+
var hf = ["Geostationary Satellite View", "Geostationary_Satellite", "geos"];
|
|
9815
|
+
const lf = {
|
|
9816
|
+
init: af,
|
|
9817
|
+
forward: of,
|
|
9818
|
+
inverse: rf,
|
|
9819
|
+
names: hf
|
|
9804
9820
|
};
|
|
9805
|
-
var
|
|
9806
|
-
function
|
|
9821
|
+
var Yi = 1.340264, Ji = -0.081106, te = 893e-6, ie = 3796e-6, qe = Math.sqrt(3) / 2;
|
|
9822
|
+
function uf() {
|
|
9807
9823
|
this.es = 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0;
|
|
9808
9824
|
}
|
|
9809
|
-
function
|
|
9810
|
-
var s = O(i.x - this.long0), n = i.y, r = Math.asin(
|
|
9811
|
-
return i.x = s * Math.cos(r) / (
|
|
9825
|
+
function cf(i) {
|
|
9826
|
+
var s = O(i.x - this.long0), n = i.y, r = Math.asin(qe * Math.sin(n)), o = r * r, l = o * o * o;
|
|
9827
|
+
return i.x = s * Math.cos(r) / (qe * (Yi + 3 * Ji * o + l * (7 * te + 9 * ie * o))), i.y = r * (Yi + Ji * o + l * (te + ie * o)), i.x = this.a * i.x + this.x0, i.y = this.a * i.y + this.y0, i;
|
|
9812
9828
|
}
|
|
9813
|
-
function
|
|
9829
|
+
function ff(i) {
|
|
9814
9830
|
i.x = (i.x - this.x0) / this.a, i.y = (i.y - this.y0) / this.a;
|
|
9815
9831
|
var s = 1e-9, n = 12, r = i.y, o, l, f, c, d, m;
|
|
9816
|
-
for (m = 0; m < n && (o = r * r, l = o * o * o, f = r * (
|
|
9832
|
+
for (m = 0; m < n && (o = r * r, l = o * o * o, f = r * (Yi + Ji * o + l * (te + ie * o)) - i.y, c = Yi + 3 * Ji * o + l * (7 * te + 9 * ie * o), r -= d = f / c, !(Math.abs(d) < s)); ++m)
|
|
9817
9833
|
;
|
|
9818
|
-
return o = r * r, l = o * o * o, i.x =
|
|
9819
|
-
}
|
|
9820
|
-
var
|
|
9821
|
-
const
|
|
9822
|
-
init:
|
|
9823
|
-
forward:
|
|
9824
|
-
inverse:
|
|
9825
|
-
names:
|
|
9834
|
+
return o = r * r, l = o * o * o, i.x = qe * i.x * (Yi + 3 * Ji * o + l * (7 * te + 9 * ie * o)) / Math.cos(r), i.y = Math.asin(Math.sin(r) / qe), i.x = O(i.x + this.long0), i;
|
|
9835
|
+
}
|
|
9836
|
+
var df = ["eqearth", "Equal Earth", "Equal_Earth"];
|
|
9837
|
+
const _f = {
|
|
9838
|
+
init: uf,
|
|
9839
|
+
forward: cf,
|
|
9840
|
+
inverse: ff,
|
|
9841
|
+
names: df
|
|
9826
9842
|
};
|
|
9827
|
-
var
|
|
9828
|
-
function
|
|
9843
|
+
var ae = 1e-10;
|
|
9844
|
+
function mf() {
|
|
9829
9845
|
var i;
|
|
9830
|
-
if (this.phi1 = this.lat1, Math.abs(this.phi1) <
|
|
9846
|
+
if (this.phi1 = this.lat1, Math.abs(this.phi1) < ae)
|
|
9831
9847
|
throw new Error();
|
|
9832
|
-
this.es ? (this.en =
|
|
9848
|
+
this.es ? (this.en = Bs(this.es), this.m1 = Oi(
|
|
9833
9849
|
this.phi1,
|
|
9834
9850
|
this.am1 = Math.sin(this.phi1),
|
|
9835
9851
|
i = Math.cos(this.phi1),
|
|
9836
9852
|
this.en
|
|
9837
|
-
), this.am1 = i / (Math.sqrt(1 - this.es * this.am1 * this.am1) * this.am1), this.inverse =
|
|
9853
|
+
), this.am1 = i / (Math.sqrt(1 - this.es * this.am1 * this.am1) * this.am1), this.inverse = gf, this.forward = pf) : (Math.abs(this.phi1) + ae >= C ? this.cphi1 = 0 : this.cphi1 = 1 / Math.tan(this.phi1), this.inverse = yf, this.forward = vf);
|
|
9838
9854
|
}
|
|
9839
|
-
function
|
|
9855
|
+
function pf(i) {
|
|
9840
9856
|
var s = O(i.x - (this.long0 || 0)), n = i.y, r, o, l;
|
|
9841
9857
|
return r = this.am1 + this.m1 - Oi(n, o = Math.sin(n), l = Math.cos(n), this.en), o = l * s / (r * Math.sqrt(1 - this.es * o * o)), i.x = r * Math.sin(o), i.y = this.am1 - r * Math.cos(o), i.x = this.a * i.x + (this.x0 || 0), i.y = this.a * i.y + (this.y0 || 0), i;
|
|
9842
9858
|
}
|
|
9843
|
-
function
|
|
9859
|
+
function gf(i) {
|
|
9844
9860
|
i.x = (i.x - (this.x0 || 0)) / this.a, i.y = (i.y - (this.y0 || 0)) / this.a;
|
|
9845
9861
|
var s, n, r, o;
|
|
9846
|
-
if (n = Pt(i.x, i.y = this.am1 - i.y), o =
|
|
9862
|
+
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
9863
|
s = Math.sin(o), r = n * Math.atan2(i.x, i.y) * Math.sqrt(1 - this.es * s * s) / Math.cos(o);
|
|
9848
|
-
else if (Math.abs(s - C) <=
|
|
9864
|
+
else if (Math.abs(s - C) <= ae)
|
|
9849
9865
|
r = 0;
|
|
9850
9866
|
else
|
|
9851
9867
|
throw new Error();
|
|
9852
9868
|
return i.x = O(r + (this.long0 || 0)), i.y = ni(o), i;
|
|
9853
9869
|
}
|
|
9854
|
-
function
|
|
9870
|
+
function vf(i) {
|
|
9855
9871
|
var s = O(i.x - (this.long0 || 0)), n = i.y, r, o;
|
|
9856
|
-
return o = this.cphi1 + this.phi1 - n, Math.abs(o) >
|
|
9872
|
+
return o = this.cphi1 + this.phi1 - n, Math.abs(o) > ae ? (i.x = o * Math.sin(r = s * Math.cos(n) / o), i.y = this.cphi1 - o * Math.cos(r)) : i.x = i.y = 0, i.x = this.a * i.x + (this.x0 || 0), i.y = this.a * i.y + (this.y0 || 0), i;
|
|
9857
9873
|
}
|
|
9858
|
-
function
|
|
9874
|
+
function yf(i) {
|
|
9859
9875
|
i.x = (i.x - (this.x0 || 0)) / this.a, i.y = (i.y - (this.y0 || 0)) / this.a;
|
|
9860
9876
|
var s, n, r = Pt(i.x, i.y = this.cphi1 - i.y);
|
|
9861
9877
|
if (n = this.cphi1 + this.phi1 - r, Math.abs(n) > C)
|
|
9862
9878
|
throw new Error();
|
|
9863
|
-
return Math.abs(Math.abs(n) - C) <=
|
|
9879
|
+
return Math.abs(Math.abs(n) - C) <= ae ? s = 0 : s = r * Math.atan2(i.x, i.y) / Math.cos(n), i.x = O(s + (this.long0 || 0)), i.y = ni(n), i;
|
|
9864
9880
|
}
|
|
9865
|
-
var
|
|
9866
|
-
const
|
|
9867
|
-
init:
|
|
9868
|
-
names:
|
|
9881
|
+
var Mf = ["bonne", "Bonne (Werner lat_1=90)"];
|
|
9882
|
+
const xf = {
|
|
9883
|
+
init: mf,
|
|
9884
|
+
names: Mf
|
|
9869
9885
|
};
|
|
9870
|
-
function
|
|
9871
|
-
i.Proj.projections.add(
|
|
9886
|
+
function wf(i) {
|
|
9887
|
+
i.Proj.projections.add(ke), i.Proj.projections.add(Be), i.Proj.projections.add(ml), i.Proj.projections.add(Pl), i.Proj.projections.add(Ol), i.Proj.projections.add(Bl), i.Proj.projections.add(ql), i.Proj.projections.add($l), i.Proj.projections.add(Yl), i.Proj.projections.add(su), i.Proj.projections.add(Mu), i.Proj.projections.add(Au), i.Proj.projections.add(Ou), i.Proj.projections.add(Ru), i.Proj.projections.add(qu), i.Proj.projections.add($u), i.Proj.projections.add(Yu), i.Proj.projections.add(sc), i.Proj.projections.add(lc), i.Proj.projections.add(_c), i.Proj.projections.add(yc), i.Proj.projections.add(Lc), i.Proj.projections.add(Ec), i.Proj.projections.add(Nc), i.Proj.projections.add(Zc), i.Proj.projections.add($c), i.Proj.projections.add(Yc), i.Proj.projections.add(nf), i.Proj.projections.add(lf), i.Proj.projections.add(_f), i.Proj.projections.add(xf);
|
|
9872
9888
|
}
|
|
9873
9889
|
Ct.defaultDatum = "WGS84";
|
|
9874
9890
|
Ct.Proj = Ut;
|
|
@@ -9876,19 +9892,19 @@ Ct.WGS84 = new Ct.Proj("WGS84");
|
|
|
9876
9892
|
Ct.Point = Ei;
|
|
9877
9893
|
Ct.toPoint = Na;
|
|
9878
9894
|
Ct.defs = vt;
|
|
9879
|
-
Ct.nadgrid =
|
|
9880
|
-
Ct.transform =
|
|
9881
|
-
Ct.mgrs =
|
|
9895
|
+
Ct.nadgrid = gh;
|
|
9896
|
+
Ct.transform = Ze;
|
|
9897
|
+
Ct.mgrs = zh;
|
|
9882
9898
|
Ct.version = "__VERSION__";
|
|
9883
|
-
|
|
9884
|
-
const
|
|
9899
|
+
wf(Ct);
|
|
9900
|
+
const bf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9885
9901
|
__proto__: null,
|
|
9886
9902
|
default: Ct
|
|
9887
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
9903
|
+
}, Symbol.toStringTag, { value: "Module" })), Lf = /* @__PURE__ */ Lr(bf);
|
|
9888
9904
|
(function(i) {
|
|
9889
9905
|
(function(s) {
|
|
9890
9906
|
var n, r;
|
|
9891
|
-
n =
|
|
9907
|
+
n = xa(), r = Lf, i.exports = s(n, r);
|
|
9892
9908
|
})(function(s, n) {
|
|
9893
9909
|
return n.__esModule && n.default && (n = n.default), s.Proj = {}, s.Proj._isProj4Obj = function(r) {
|
|
9894
9910
|
return typeof r.inverse < "u" && typeof r.forward < "u";
|
|
@@ -10001,7 +10017,7 @@ const xf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10001
10017
|
return new s.Proj.ImageOverlay(r, o, l);
|
|
10002
10018
|
}, s.Proj;
|
|
10003
10019
|
});
|
|
10004
|
-
})(
|
|
10020
|
+
})(Or);
|
|
10005
10021
|
const Wa = new M.Proj.CRS(
|
|
10006
10022
|
"EPSG:900913",
|
|
10007
10023
|
"+proj=merc +a=6378206 +b=6356584.314245179 +lat_ts=0.0 +lon_0=0.0 +x_0=0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs",
|
|
@@ -10016,7 +10032,7 @@ const Wa = new M.Proj.CRS(
|
|
|
10016
10032
|
origin: [0, 0],
|
|
10017
10033
|
bounds: M.bounds([20037508342789244e-9, 0], [0, 20037508342789244e-9])
|
|
10018
10034
|
}
|
|
10019
|
-
),
|
|
10035
|
+
), Pf = M.Layer.extend({
|
|
10020
10036
|
provide: {
|
|
10021
10037
|
TDT: "tdt",
|
|
10022
10038
|
BAIDU: "bd",
|
|
@@ -10079,13 +10095,13 @@ const Wa = new M.Proj.CRS(
|
|
|
10079
10095
|
}
|
|
10080
10096
|
}), this.options.provide) {
|
|
10081
10097
|
case this.provide.TDT:
|
|
10082
|
-
s = { subdomains:
|
|
10098
|
+
s = { subdomains: Ps.create(8), maxNativeZoom: 18, minZoom: 0, maxZoom: this.map.getMaxZoom() };
|
|
10083
10099
|
break;
|
|
10084
10100
|
case this.provide.BAIDU:
|
|
10085
|
-
s = { subdomains:
|
|
10101
|
+
s = { subdomains: Ps.create(10), tms: !0, corrdType: "bd09", maxNativeZoom: 19, minZoom: 0, maxZoom: this.map.getMaxZoom() };
|
|
10086
10102
|
break;
|
|
10087
10103
|
case this.provide.GAODE:
|
|
10088
|
-
s = { subdomains:
|
|
10104
|
+
s = { subdomains: Ps.create(4).map((n) => n + 1), corrdType: "gcj02", maxNativeZoom: 18, minZoom: 0, maxZoom: this.map.getMaxZoom() };
|
|
10089
10105
|
break;
|
|
10090
10106
|
case this.provide.YANDEX:
|
|
10091
10107
|
s = { maxNativeZoom: 18, minZoom: 0, maxZoom: this.map.getMaxZoom() };
|
|
@@ -10223,7 +10239,7 @@ const Wa = new M.Proj.CRS(
|
|
|
10223
10239
|
this.replaceProjection(), this.tileLayers = s.addTo(this.map);
|
|
10224
10240
|
}, 500);
|
|
10225
10241
|
}
|
|
10226
|
-
}),
|
|
10242
|
+
}), Af = M.ImageOverlay.extend({
|
|
10227
10243
|
initialize(i, s, n, r) {
|
|
10228
10244
|
typeof i == "string" ? this._url = i : this._rawImage = i, this.topRightMarker = s, this.bottomLeftMarker = n, this.angle = 0, M.setOptions(this, r), this._topLeft = new M.LatLng(r.corners[0]), this._topRight = new M.LatLng(r.corners[1]), this._bottomLeft = new M.LatLng(r.corners[3]), s.on("drag dragend", this.reposition, this), n.on("drag dragend", this.reposition, this);
|
|
10229
10245
|
},
|
|
@@ -10271,7 +10287,7 @@ const Wa = new M.Proj.CRS(
|
|
|
10271
10287
|
getClockWiseRotate90DegreePoint(i) {
|
|
10272
10288
|
return new M.Point([i.y, -i.x]);
|
|
10273
10289
|
}
|
|
10274
|
-
}),
|
|
10290
|
+
}), Tf = M.Marker.extend({
|
|
10275
10291
|
options: {
|
|
10276
10292
|
fontSize: "12px",
|
|
10277
10293
|
color: "#f00",
|
|
@@ -10320,7 +10336,7 @@ const Wa = new M.Proj.CRS(
|
|
|
10320
10336
|
return this.setIcon(f), i && i(this), this;
|
|
10321
10337
|
}
|
|
10322
10338
|
}
|
|
10323
|
-
}),
|
|
10339
|
+
}), Cf = M.LayerGroup.extend({
|
|
10324
10340
|
initialize(i) {
|
|
10325
10341
|
M.Util.setOptions(this, i), M.LayerGroup.prototype.initialize.call(this, i);
|
|
10326
10342
|
},
|
|
@@ -10367,7 +10383,7 @@ const Wa = new M.Proj.CRS(
|
|
|
10367
10383
|
return i.length ? Math.max(...i.map((s) => s.options.zIndex)) + 1 : null;
|
|
10368
10384
|
}
|
|
10369
10385
|
});
|
|
10370
|
-
function
|
|
10386
|
+
function Ef(i) {
|
|
10371
10387
|
const s = document.createElement("style"), n = document.head || document.documentElement;
|
|
10372
10388
|
s.innerHTML = `
|
|
10373
10389
|
.${i}-statusbar {
|
|
@@ -10386,18 +10402,100 @@ function Tf(i) {
|
|
|
10386
10402
|
}
|
|
10387
10403
|
.${i}-statusbar-item + .${i}-statusbar-item {
|
|
10388
10404
|
margin-left: 10px
|
|
10405
|
+
}
|
|
10406
|
+
.${i}-eaglemap {
|
|
10407
|
+
border: solid rgba(13, 59, 54, 0.85) 1px;
|
|
10408
|
+
box-shadow: 0 1px 7px #999;
|
|
10409
|
+
background: rgba(13, 59, 54, 0.85);
|
|
10410
|
+
-moz-border-radius: 8px;
|
|
10411
|
+
-webkit-border-radius: 8px;
|
|
10412
|
+
border-radius: 3px;
|
|
10413
|
+
transition: all 0.5s;
|
|
10414
|
+
}
|
|
10415
|
+
|
|
10416
|
+
.${i}-eaglemap a {
|
|
10417
|
+
background-color: rgba(13, 59, 54, 0.85);
|
|
10418
|
+
background-position: -1px -1px;
|
|
10419
|
+
background-repeat: no-repeat;
|
|
10420
|
+
display: block;
|
|
10421
|
+
outline: none;
|
|
10422
|
+
z-index: 99999;
|
|
10423
|
+
transition: all 0.2s;
|
|
10424
|
+
}
|
|
10425
|
+
|
|
10426
|
+
.${i}-eaglemap a.minimized {
|
|
10427
|
+
-webkit-transform: rotate(180deg);
|
|
10428
|
+
transform: rotate(180deg);
|
|
10429
|
+
}
|
|
10430
|
+
|
|
10431
|
+
.${i}-eaglemap a.minimized-bottomright {
|
|
10432
|
+
-webkit-transform: rotate(180deg);
|
|
10433
|
+
transform: rotate(180deg);
|
|
10434
|
+
border-radius: 0px;
|
|
10435
|
+
}
|
|
10436
|
+
|
|
10437
|
+
.${i}-eaglemap a.minimized-topleft {
|
|
10438
|
+
-webkit-transform: rotate(0deg);
|
|
10439
|
+
transform: rotate(0deg);
|
|
10440
|
+
border-radius: 0px;
|
|
10441
|
+
}
|
|
10442
|
+
|
|
10443
|
+
.${i}-eaglemap a.minimized-bottomleft {
|
|
10444
|
+
-webkit-transform: rotate(270deg);
|
|
10445
|
+
transform: rotate(270deg);
|
|
10446
|
+
border-radius: 0px;
|
|
10447
|
+
}
|
|
10448
|
+
|
|
10449
|
+
.${i}-eaglemap a.minimized-topright {
|
|
10450
|
+
-webkit-transform: rotate(90deg);
|
|
10451
|
+
transform: rotate(90deg);
|
|
10452
|
+
border-radius: 0px;
|
|
10453
|
+
}
|
|
10454
|
+
|
|
10455
|
+
.${i}-eaglemap-toggle-display {
|
|
10456
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAMdJREFUOE/V0zEOQVEQheH/hMQqVDahREMreonKApCgUYkE67ANOhWJxga0WoXqyEuehBeP+0Lj1iffzNzMiB89/cjhTyDbOSAv6Ro6+svRbLeALtCUdElitgvJImnQFigDO6Ah6XzHbJeAiaT2Y4E0aAYM4+AeqEeY7SKwBk6Sqh+hKGB7Cozj8BHoACsg6mgTDMXYAJi/+PBsUIxFo1QSWDbI9hLofdWR7QXQT9mjsI5s14DRm2U8SHoq8ie3FnpfQQuZFbsB4idCE9J/7MkAAAAASUVORK5CYII=');
|
|
10457
|
+
background-size: cover;
|
|
10458
|
+
position: absolute;
|
|
10459
|
+
border-radius: 3px 0px 0px 0px;
|
|
10460
|
+
}
|
|
10461
|
+
|
|
10462
|
+
.${i}-eaglemap-toggle-display-bottomright {
|
|
10463
|
+
bottom: 0;
|
|
10464
|
+
right: 0;
|
|
10465
|
+
}
|
|
10466
|
+
|
|
10467
|
+
.${i}-eaglemap-toggle-display-topleft {
|
|
10468
|
+
top: 0;
|
|
10469
|
+
left: 0;
|
|
10470
|
+
-webkit-transform: rotate(180deg);
|
|
10471
|
+
transform: rotate(180deg);
|
|
10472
|
+
}
|
|
10473
|
+
|
|
10474
|
+
.${i}-eaglemap-toggle-display-bottomleft {
|
|
10475
|
+
bottom: 0;
|
|
10476
|
+
left: 0;
|
|
10477
|
+
-webkit-transform: rotate(90deg);
|
|
10478
|
+
transform: rotate(90deg);
|
|
10479
|
+
}
|
|
10480
|
+
|
|
10481
|
+
.${i}-eaglemap-toggle-display-topright {
|
|
10482
|
+
top: 0;
|
|
10483
|
+
right: 0;
|
|
10484
|
+
-webkit-transform: rotate(270deg);
|
|
10485
|
+
transform: rotate(270deg);
|
|
10389
10486
|
}`, n.appendChild(s);
|
|
10390
10487
|
}
|
|
10391
10488
|
((i) => {
|
|
10392
10489
|
const s = Object.create(Ar) || {};
|
|
10393
|
-
return s.LANG =
|
|
10490
|
+
return s.LANG = As, s.BaseMap = M.Map.extend({
|
|
10394
10491
|
options: {
|
|
10395
10492
|
doubleClickZoom: !1,
|
|
10396
10493
|
closePopupOnClick: !1,
|
|
10397
10494
|
zoomControl: !1,
|
|
10398
10495
|
attributionControl: !1,
|
|
10399
|
-
scaleControl:
|
|
10400
|
-
|
|
10496
|
+
scaleControl: {
|
|
10497
|
+
show: !0
|
|
10498
|
+
},
|
|
10401
10499
|
minZoom: 5,
|
|
10402
10500
|
maxZoom: 19,
|
|
10403
10501
|
contextmenu: !0,
|
|
@@ -10408,10 +10506,10 @@ function Tf(i) {
|
|
|
10408
10506
|
var l;
|
|
10409
10507
|
if (typeof n == "string" && (n = document.getElementById(n)), !n instanceof HTMLElement || !n.clientWidth || !n.clientHeight)
|
|
10410
10508
|
throw new Error("地图容器不存在或元素尺寸为0");
|
|
10411
|
-
this.lang = typeof r.lang == "string" ? r.lang : "zh_CN", this.clsPrefix = typeof r.clsPrefix == "string" ? r.clsPrefix : "gis2d",
|
|
10509
|
+
this.lang = typeof r.lang == "string" ? r.lang : "zh_CN", this.clsPrefix = typeof r.clsPrefix == "string" ? r.clsPrefix : "gis2d", Ef(this.clsPrefix), M.Util.setOptions(this, r), M.Control.Zoom.mergeOptions({
|
|
10412
10510
|
position: ((l = this.options.zoomControl) == null ? void 0 : l.position) || "topleft",
|
|
10413
|
-
zoomInTitle:
|
|
10414
|
-
zoomOutTitle:
|
|
10511
|
+
zoomInTitle: As[this.lang].zoomIn,
|
|
10512
|
+
zoomOutTitle: As[this.lang].zoomOut
|
|
10415
10513
|
}), M.Control.Attribution.mergeOptions({
|
|
10416
10514
|
prefix: `<a href="http://www.${this.clsPrefix}.com" target="_blank">Guo.Yan</a>`
|
|
10417
10515
|
}), M.Map.prototype.initialize.call(this, n, this.options), M.DomEvent.on(
|
|
@@ -10439,9 +10537,9 @@ function Tf(i) {
|
|
|
10439
10537
|
flyTo(n, r = 0, o = { animate: !1 }) {
|
|
10440
10538
|
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
10539
|
}
|
|
10442
|
-
}), s.StatusBar =
|
|
10540
|
+
}), s.StatusBar = wa, s.CRS.BaiDu = Wa, s.WebMercatorTiledLayer = Pf, s.Knob = Tr, s.EagleMap = ba, s.LayerManager = Cf, s.ImageOverlay.Rotated = Af, s.Text = Tf, s.VertexMarkers = La, s.Measurement = ze, i.L = s;
|
|
10443
10541
|
})(window);
|
|
10444
|
-
function
|
|
10542
|
+
function zs() {
|
|
10445
10543
|
if (typeof globalThis < "u")
|
|
10446
10544
|
return globalThis;
|
|
10447
10545
|
if (typeof self < "u")
|
|
@@ -10452,24 +10550,24 @@ function ks() {
|
|
|
10452
10550
|
return global;
|
|
10453
10551
|
throw new Error("未找到全局对象");
|
|
10454
10552
|
}
|
|
10455
|
-
const
|
|
10456
|
-
|
|
10553
|
+
const Gs = function(i, s = {}) {
|
|
10554
|
+
Gs.installed || (zs().Gis = yr);
|
|
10457
10555
|
};
|
|
10458
|
-
|
|
10459
|
-
const
|
|
10460
|
-
install:
|
|
10556
|
+
zs().Vue && Gs(zs().Vue);
|
|
10557
|
+
const Of = {
|
|
10558
|
+
install: Gs
|
|
10461
10559
|
};
|
|
10462
10560
|
export {
|
|
10463
10561
|
Wa as BaiDuCRS,
|
|
10464
10562
|
Cr as Draw,
|
|
10465
|
-
|
|
10563
|
+
ba as EagleMap,
|
|
10466
10564
|
Tr as Knob,
|
|
10467
|
-
|
|
10468
|
-
|
|
10469
|
-
|
|
10470
|
-
|
|
10471
|
-
|
|
10565
|
+
Cf as LayerManager,
|
|
10566
|
+
ze as MeasureMent,
|
|
10567
|
+
Af as RotatedImageOverLayer,
|
|
10568
|
+
wa as StatusBar,
|
|
10569
|
+
Tf as TextLayer,
|
|
10472
10570
|
La as VertexMarker,
|
|
10473
|
-
|
|
10474
|
-
|
|
10571
|
+
Pf as WebMercatorTiledLayer,
|
|
10572
|
+
Of as default
|
|
10475
10573
|
};
|