gis-leaflet-helper 2.1.24 → 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 +755 -744
- package/dist/gis-leaflet-helper.umd.js +5 -5
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
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
|
|
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,7 +39,7 @@ 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
|
|
@@ -158,7 +158,7 @@ function xa() {
|
|
|
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,
|
|
@@ -870,7 +870,7 @@ function xa() {
|
|
|
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
|
-
}), Us = 6378137,
|
|
873
|
+
}), Us = 6378137, He = {
|
|
874
874
|
R: Us,
|
|
875
875
|
MAX_LATITUDE: 85.0511287798,
|
|
876
876
|
project: function(t) {
|
|
@@ -892,14 +892,14 @@ function xa() {
|
|
|
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,16 +921,16 @@ function xa() {
|
|
|
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
936
|
function js(t) {
|
|
@@ -945,7 +945,7 @@ function xa() {
|
|
|
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 xa() {
|
|
|
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,14 +976,14 @@ function xa() {
|
|
|
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
981
|
edge: Ws,
|
|
982
|
-
webkit:
|
|
982
|
+
webkit: Qe,
|
|
983
983
|
android: $s,
|
|
984
984
|
android23: Vs,
|
|
985
985
|
androidStock: Ka,
|
|
986
|
-
opera:
|
|
986
|
+
opera: Xe,
|
|
987
987
|
chrome: Qs,
|
|
988
988
|
gecko: Xs,
|
|
989
989
|
safari: Ya,
|
|
@@ -991,7 +991,7 @@ function xa() {
|
|
|
991
991
|
opera12: Ys,
|
|
992
992
|
win: Ja,
|
|
993
993
|
ie3d: Js,
|
|
994
|
-
webkit3d:
|
|
994
|
+
webkit3d: Ke,
|
|
995
995
|
gecko3d: tn,
|
|
996
996
|
any3d: to,
|
|
997
997
|
mobile: Ni,
|
|
@@ -1006,31 +1006,31 @@ function xa() {
|
|
|
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
|
-
}, an = N.msPointer ? "MSPointerDown" : "pointerdown", on = N.msPointer ? "MSPointerMove" : "pointermove", rn = N.msPointer ? "MSPointerUp" : "pointerup", hn = N.msPointer ? "MSPointerCancel" : "pointercancel",
|
|
1014
|
+
}, an = N.msPointer ? "MSPointerDown" : "pointerdown", on = N.msPointer ? "MSPointerMove" : "pointermove", rn = N.msPointer ? "MSPointerUp" : "pointerup", hn = N.msPointer ? "MSPointerCancel" : "pointercancel", Je = {
|
|
1015
1015
|
touchstart: an,
|
|
1016
1016
|
touchmove: on,
|
|
1017
1017
|
touchend: rn,
|
|
1018
1018
|
touchcancel: hn
|
|
1019
1019
|
}, ln = {
|
|
1020
1020
|
touchstart: yo,
|
|
1021
|
-
touchmove:
|
|
1022
|
-
touchend:
|
|
1023
|
-
touchcancel:
|
|
1021
|
+
touchmove: fe,
|
|
1022
|
+
touchend: fe,
|
|
1023
|
+
touchcancel: fe
|
|
1024
1024
|
}, fi = {}, un = !1;
|
|
1025
1025
|
function _o(t, e, a) {
|
|
1026
|
-
return e === "touchstart" && vo(), ln[e] ? (a = ln[e].bind(this, a), t.addEventListener(
|
|
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;
|
|
@@ -1044,7 +1044,7 @@ function xa() {
|
|
|
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 xa() {
|
|
|
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;
|
|
@@ -1090,9 +1090,9 @@ function xa() {
|
|
|
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
1097
|
), fn = ki === "webkitTransition" || ki === "OTransition" ? ki + "End" : "transitionend";
|
|
1098
1098
|
function dn(t) {
|
|
@@ -1114,7 +1114,7 @@ function xa() {
|
|
|
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 xa() {
|
|
|
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 xa() {
|
|
|
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 xa() {
|
|
|
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 xa() {
|
|
|
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,32 +1187,32 @@ function xa() {
|
|
|
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
1217
|
function _n(t) {
|
|
1218
1218
|
do
|
|
@@ -1220,7 +1220,7 @@ function xa() {
|
|
|
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 xa() {
|
|
|
1230
1230
|
}
|
|
1231
1231
|
var Po = {
|
|
1232
1232
|
__proto__: null,
|
|
1233
|
-
TRANSFORM:
|
|
1233
|
+
TRANSFORM: ts,
|
|
1234
1234
|
TRANSITION: ki,
|
|
1235
1235
|
TRANSITION_END: fn,
|
|
1236
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,21 +1256,21 @@ function xa() {
|
|
|
1256
1256
|
get enableTextSelection() {
|
|
1257
1257
|
return Di;
|
|
1258
1258
|
},
|
|
1259
|
-
disableImageDrag:
|
|
1260
|
-
enableImageDrag:
|
|
1261
|
-
preventOutline:
|
|
1262
|
-
restoreOutline:
|
|
1259
|
+
disableImageDrag: ns,
|
|
1260
|
+
enableImageDrag: as,
|
|
1261
|
+
preventOutline: rs,
|
|
1262
|
+
restoreOutline: ge,
|
|
1263
1263
|
getSizedParentNode: _n,
|
|
1264
|
-
getScale:
|
|
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
|
}
|
|
@@ -1280,50 +1280,50 @@ function xa() {
|
|
|
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
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;
|
|
@@ -1344,7 +1344,7 @@ function xa() {
|
|
|
1344
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).
|
|
@@ -1380,7 +1380,7 @@ function xa() {
|
|
|
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,14 +1397,14 @@ function xa() {
|
|
|
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
1404
|
getPropagationPath: pn,
|
|
1405
1405
|
getMousePosition: gn,
|
|
1406
1406
|
getWheelDelta: vn,
|
|
1407
|
-
isExternalTarget:
|
|
1407
|
+
isExternalTarget: ds,
|
|
1408
1408
|
addListener: G,
|
|
1409
1409
|
removeListener: J
|
|
1410
1410
|
}, yn = Ii.extend({
|
|
@@ -1444,7 +1444,7 @@ function xa() {
|
|
|
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,
|
|
@@ -1619,7 +1619,7 @@ function xa() {
|
|
|
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) {
|
|
@@ -1643,10 +1643,10 @@ function xa() {
|
|
|
1643
1643
|
}
|
|
1644
1644
|
var dr = Date.now(), Kn = (U(1) - bt) / I, _r = a.duration ? 1e3 * a.duration : 1e3 * Kn * 0.8;
|
|
1645
1645
|
function Yn() {
|
|
1646
|
-
var lt = (Date.now() - dr) / _r,
|
|
1646
|
+
var lt = (Date.now() - dr) / _r, Ee = fr(lt) * Kn;
|
|
1647
1647
|
lt <= 1 ? (this._flyToFrame = nt(Yn, this), this._move(
|
|
1648
|
-
this.unproject(h.add(u.subtract(h).multiplyBy(cr(
|
|
1649
|
-
this.getScaleZoom(x / Mi(
|
|
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
|
}
|
|
@@ -2105,7 +2105,7 @@ function xa() {
|
|
|
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 xa() {
|
|
|
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 xa() {
|
|
|
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
|
},
|
|
@@ -2441,7 +2441,7 @@ function xa() {
|
|
|
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 xa() {
|
|
|
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;
|
|
@@ -2531,7 +2531,7 @@ function xa() {
|
|
|
2531
2531
|
}
|
|
2532
2532
|
}), Eo = function(t, e, a) {
|
|
2533
2533
|
return new Mn(t, e, a);
|
|
2534
|
-
},
|
|
2534
|
+
}, _s = zt.extend({
|
|
2535
2535
|
// @section
|
|
2536
2536
|
// @aka Control.Zoom options
|
|
2537
2537
|
options: {
|
|
@@ -2592,10 +2592,10 @@ function xa() {
|
|
|
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
|
|
2598
|
+
return new _s(t);
|
|
2599
2599
|
}, xn = zt.extend({
|
|
2600
2600
|
// @section
|
|
2601
2601
|
// @aka Control.Scale options
|
|
@@ -2650,7 +2650,7 @@ function xa() {
|
|
|
2650
2650
|
}
|
|
2651
2651
|
}), Oo = function(t) {
|
|
2652
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>',
|
|
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 xa() {
|
|
|
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 = Mn, zt.Zoom =
|
|
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;
|
|
@@ -2764,15 +2764,15 @@ function xa() {
|
|
|
2764
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
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 =
|
|
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 xa() {
|
|
|
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,
|
|
@@ -2810,7 +2810,7 @@ function xa() {
|
|
|
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;
|
|
@@ -2821,7 +2821,7 @@ function xa() {
|
|
|
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 xa() {
|
|
|
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++;
|
|
@@ -2844,7 +2844,7 @@ function xa() {
|
|
|
2844
2844
|
__proto__: null,
|
|
2845
2845
|
clipPolygon: bn,
|
|
2846
2846
|
polygonCenter: Ln,
|
|
2847
|
-
centroid:
|
|
2847
|
+
centroid: ps
|
|
2848
2848
|
};
|
|
2849
2849
|
function Pn(t, e) {
|
|
2850
2850
|
if (!e || !t.length)
|
|
@@ -2860,17 +2860,17 @@ function xa() {
|
|
|
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++)
|
|
@@ -2885,10 +2885,10 @@ function xa() {
|
|
|
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
|
}
|
|
@@ -2916,7 +2916,7 @@ function xa() {
|
|
|
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]);
|
|
@@ -2944,13 +2944,13 @@ function xa() {
|
|
|
2944
2944
|
pointToSegmentDistance: An,
|
|
2945
2945
|
closestPointOnSegment: Bo,
|
|
2946
2946
|
clipSegment: Cn,
|
|
2947
|
-
_getEdgeIntersection:
|
|
2947
|
+
_getEdgeIntersection: ve,
|
|
2948
2948
|
_getBitCode: li,
|
|
2949
2949
|
_sqClosestPointOnSegment: qi,
|
|
2950
2950
|
isFlat: St,
|
|
2951
2951
|
_flat: En,
|
|
2952
2952
|
polylineCenter: Sn
|
|
2953
|
-
},
|
|
2953
|
+
}, vs = {
|
|
2954
2954
|
project: function(t) {
|
|
2955
2955
|
return new F(t.lng, t.lat);
|
|
2956
2956
|
},
|
|
@@ -2958,7 +2958,7 @@ function xa() {
|
|
|
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 xa() {
|
|
|
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 xa() {
|
|
|
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: {
|
|
@@ -3409,7 +3409,7 @@ function xa() {
|
|
|
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: {
|
|
@@ -3595,7 +3595,7 @@ function xa() {
|
|
|
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 xa() {
|
|
|
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 xa() {
|
|
|
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 xa() {
|
|
|
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
|
|
@@ -4037,8 +4037,8 @@ function xa() {
|
|
|
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,8 +4057,8 @@ function xa() {
|
|
|
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) {
|
|
@@ -4070,13 +4070,13 @@ function xa() {
|
|
|
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 xa() {
|
|
|
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);
|
|
@@ -4095,45 +4095,45 @@ function xa() {
|
|
|
4095
4095
|
}
|
|
4096
4096
|
}
|
|
4097
4097
|
function zn(t, e, a, h) {
|
|
4098
|
-
return t ? t(e, a) : new
|
|
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 xa() {
|
|
|
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 xa() {
|
|
|
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
|
}
|
|
@@ -4187,7 +4187,7 @@ function xa() {
|
|
|
4187
4187
|
function Nn(t, e) {
|
|
4188
4188
|
return new Qt(t, e);
|
|
4189
4189
|
}
|
|
4190
|
-
var Yo = Nn,
|
|
4190
|
+
var Yo = Nn, Pe = Nt.extend({
|
|
4191
4191
|
// @section
|
|
4192
4192
|
// @aka ImageOverlay options
|
|
4193
4193
|
options: {
|
|
@@ -4311,8 +4311,8 @@ function xa() {
|
|
|
4311
4311
|
return this._bounds.getCenter();
|
|
4312
4312
|
}
|
|
4313
4313
|
}), Jo = function(t, e, a) {
|
|
4314
|
-
return new
|
|
4315
|
-
}, kn =
|
|
4314
|
+
return new Pe(t, e, a);
|
|
4315
|
+
}, kn = Pe.extend({
|
|
4316
4316
|
// @section
|
|
4317
4317
|
// @aka VideoOverlay options
|
|
4318
4318
|
options: {
|
|
@@ -4355,7 +4355,7 @@ function xa() {
|
|
|
4355
4355
|
function tr(t, e, a) {
|
|
4356
4356
|
return new kn(t, e, a);
|
|
4357
4357
|
}
|
|
4358
|
-
var Bn =
|
|
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;
|
|
@@ -4535,7 +4535,7 @@ function xa() {
|
|
|
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 xa() {
|
|
|
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 xa() {
|
|
|
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 xa() {
|
|
|
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 xa() {
|
|
|
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 xa() {
|
|
|
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 xa() {
|
|
|
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 xa() {
|
|
|
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 xa() {
|
|
|
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`.
|
|
@@ -4922,7 +4922,7 @@ function xa() {
|
|
|
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
|
}
|
|
@@ -5811,9 +5811,9 @@ function xa() {
|
|
|
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 xa() {
|
|
|
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) {
|
|
@@ -5905,7 +5905,7 @@ function xa() {
|
|
|
5905
5905
|
function hr(t, e) {
|
|
5906
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.
|
|
@@ -5936,7 +5936,7 @@ function xa() {
|
|
|
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 xa() {
|
|
|
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,
|
|
@@ -6346,13 +6346,13 @@ function xa() {
|
|
|
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", 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 =
|
|
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
6357
|
var M = xa();
|
|
6358
6358
|
const Pr = /* @__PURE__ */ br(M), Ar = /* @__PURE__ */ xr({
|
|
@@ -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,13 +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",
|
|
6481
|
-
FPS: "FPS"
|
|
6496
|
+
lat: "Latitude"
|
|
6482
6497
|
},
|
|
6483
6498
|
zh_CN: {
|
|
6484
6499
|
home: "回到初始位置",
|
|
@@ -6495,13 +6510,8 @@ const Pr = /* @__PURE__ */ br(M), Ar = /* @__PURE__ */ xr({
|
|
|
6495
6510
|
more: "更多",
|
|
6496
6511
|
draw: "标绘",
|
|
6497
6512
|
layer: "图层管理",
|
|
6498
|
-
showEagle: "显示鹰眼图",
|
|
6499
|
-
hideEagle: "隐藏鹰眼图",
|
|
6500
|
-
coordinate: "坐标",
|
|
6501
6513
|
lng: "经度",
|
|
6502
|
-
lat: "纬度"
|
|
6503
|
-
zoomLevel: "层级",
|
|
6504
|
-
FPS: "每秒帧数"
|
|
6514
|
+
lat: "纬度"
|
|
6505
6515
|
}
|
|
6506
6516
|
}, wa = M.Control.extend({
|
|
6507
6517
|
options: {
|
|
@@ -6515,15 +6525,15 @@ const Pr = /* @__PURE__ */ br(M), Ar = /* @__PURE__ */ xr({
|
|
|
6515
6525
|
M.setOptions(this, i), this.lastTime = +/* @__PURE__ */ new Date(), this.frames = 0, M.Control.prototype.initialize.call(this, this.options);
|
|
6516
6526
|
},
|
|
6517
6527
|
onAdd(i) {
|
|
6518
|
-
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();
|
|
6519
6529
|
const s = i.getCenter();
|
|
6520
|
-
return this.lng = s.lng, this.lat = s.lat, this.options.showCoordinate && (this._latlngContainer = M.DomUtil.create("div", `${i.clsPrefix}-statusbar-item coordinate`, this._container), this._latlngContainer.innerHTML = `<b>${this.langDic.coordinate}:</b>${this.getCoordinate(this.lng)},${this.getCoordinate(this.lat)}`), this.options.showLevel && (this._levelContainer = M.DomUtil.create("div", `${i.clsPrefix}-statusbar-item level`, this._container), this._levelContainer.innerHTML = `<b>${this.langDic.zoomLevel}:</b>${this.zoom + 1}`), this.options.showFPS && (this._fpsContainer = M.DomUtil.create("div", `${i.clsPrefix}-statusbar-item fps`, this._container), this._fpsContainer.innerHTML = `<b>${this.langDic.FPS}:</b>60`), this.initEvt(), this._container;
|
|
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;
|
|
6521
6531
|
},
|
|
6522
6532
|
initEvt() {
|
|
6523
6533
|
this.map.on("mousemove", (i) => {
|
|
6524
|
-
this.lat = i.latlng.lat, this.lng = i.latlng.lng, this._latlngContainer && (this._latlngContainer.innerHTML = `<b>${this.langDic.coordinate}:</b>${this.getCoordinate(this.lng)},${this.getCoordinate(this.lat)}`);
|
|
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)}`);
|
|
6525
6535
|
}), this.map.on("zoomend", () => {
|
|
6526
|
-
this.zoom = this.map.getZoom(), this._levelContainer && (this._levelContainer.innerHTML = `<b>${this.langDic.zoomLevel}:</b>${this.zoom + 1}`);
|
|
6536
|
+
this.zoom = this.map.getZoom(), this._levelContainer && (this._levelContainer.innerHTML = `<b>${this.langDic[this.lang].zoomLevel}:</b>${this.zoom + 1}`);
|
|
6527
6537
|
}), this.options.showFPS && this.calcFPS();
|
|
6528
6538
|
},
|
|
6529
6539
|
getCoordinate(i) {
|
|
@@ -6544,7 +6554,7 @@ const Pr = /* @__PURE__ */ br(M), Ar = /* @__PURE__ */ xr({
|
|
|
6544
6554
|
calcFPS() {
|
|
6545
6555
|
if (this.frames++, this.frames >= 30) {
|
|
6546
6556
|
const i = Date.now() - this.lastTime, s = Math.round(1e3 / (i / this.frames));
|
|
6547
|
-
this._fpsContainer && (this.frames = 0, this.lastTime = Date.now(), this._fpsContainer.innerHTML = `<b>${this.langDic.FPS}:</b><span>${s}</span>`);
|
|
6557
|
+
this._fpsContainer && (this.frames = 0, this.lastTime = Date.now(), this._fpsContainer.innerHTML = `<b>${this.langDic[this.lang].FPS}:</b><span>${s}</span>`);
|
|
6548
6558
|
}
|
|
6549
6559
|
requestAnimationFrame(this.calcFPS.bind(this));
|
|
6550
6560
|
}
|
|
@@ -6565,13 +6575,14 @@ const Pr = /* @__PURE__ */ br(M), Ar = /* @__PURE__ */ xr({
|
|
|
6565
6575
|
collapsedHeight: 22,
|
|
6566
6576
|
aimingRectOptions: { color: "#ff7800", weight: 1, interactive: !1 },
|
|
6567
6577
|
shadowRectOptions: { color: "#000000", weight: 1, interactive: !1, opacity: 0, fillOpacity: 0 },
|
|
6578
|
+
strings: {},
|
|
6568
6579
|
mapOptions: {}
|
|
6569
6580
|
},
|
|
6570
6581
|
initialize(i, s) {
|
|
6571
6582
|
M.Util.setOptions(this, s), this.options.aimingRectOptions.interactive = !1, this.options.shadowRectOptions.interactive = !1, this._layer = i;
|
|
6572
6583
|
},
|
|
6573
6584
|
onAdd(i) {
|
|
6574
|
-
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);
|
|
6575
6586
|
let s = {
|
|
6576
6587
|
attributionControl: !1,
|
|
6577
6588
|
dragging: !this.options.centerFixed,
|
|
@@ -6612,7 +6623,7 @@ const Pr = /* @__PURE__ */ br(M), Ar = /* @__PURE__ */ xr({
|
|
|
6612
6623
|
) : void 0, this._toggleDisplayButton.style.width = this.options.collapsedWidth + "px", this._toggleDisplayButton.style.height = this.options.collapsedHeight + "px";
|
|
6613
6624
|
},
|
|
6614
6625
|
_toggleButtonInitialTitleText() {
|
|
6615
|
-
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;
|
|
6616
6627
|
},
|
|
6617
6628
|
_createButton(i, s, n, r, o, l) {
|
|
6618
6629
|
const f = M.DomUtil.create("a", n, r);
|
|
@@ -6717,7 +6728,7 @@ const Pr = /* @__PURE__ */ br(M), Ar = /* @__PURE__ */ xr({
|
|
|
6717
6728
|
}), L.FeatureGroup.prototype.onRemove.call(this, i);
|
|
6718
6729
|
}
|
|
6719
6730
|
});
|
|
6720
|
-
class
|
|
6731
|
+
class ze extends L[L.Layer ? "Layer" : "Class"] {
|
|
6721
6732
|
constructor(s, n, r, o, l) {
|
|
6722
6733
|
super(), L.setOptions(this, l), this._latlng = s, this._measurement = n, this._title = r, this._rotation = o, this.MEASUREDDATA = null, this.tempAcCurrDrawPoints = null;
|
|
6723
6734
|
}
|
|
@@ -6745,8 +6756,7 @@ function ea(i, s, n) {
|
|
|
6745
6756
|
}
|
|
6746
6757
|
M.Map.addInitHook("addHandler", "drawHandler", Cr);
|
|
6747
6758
|
M.Map.addInitHook(function() {
|
|
6748
|
-
|
|
6749
|
-
(i = this.options.eagleMapControl) != null && i.show && (this.eagleMapControl = new ba(this.options.eagleMapControl), this.addControl(this.eagleMapControl)), (s = this.options.statusBarControl) != null && s.show && (this.statusBarControl = new wa(this.options.statusBarControl), this.addControl(this.statusBarControl)), (n = this.options.scaleControl) != null && n.show && (this.scaleControl = new M.Control.Scale(
|
|
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(
|
|
6750
6760
|
Object.assign(
|
|
6751
6761
|
{
|
|
6752
6762
|
position: "bottomleft",
|
|
@@ -6969,7 +6979,7 @@ M.Polyline.include({
|
|
|
6969
6979
|
for (let v = 1, p = n.length; r && v <= p || v < p; v++)
|
|
6970
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) {
|
|
6971
6981
|
const y = this.tempMoveFormatDistance(l, f);
|
|
6972
|
-
new
|
|
6982
|
+
new ze(
|
|
6973
6983
|
this._map.layerPointToLatLng([(c.x + d.x) / 2, (c.y + d.y) / 2]),
|
|
6974
6984
|
y,
|
|
6975
6985
|
o.lang.segmentLength,
|
|
@@ -6977,9 +6987,9 @@ M.Polyline.include({
|
|
|
6977
6987
|
o
|
|
6978
6988
|
).addTo(this._measurementLayer);
|
|
6979
6989
|
}
|
|
6980
|
-
!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));
|
|
6981
6991
|
}
|
|
6982
|
-
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;
|
|
6983
6993
|
},
|
|
6984
6994
|
_getRotation(i, s) {
|
|
6985
6995
|
const n = this._map.project(i), r = this._map.project(s);
|
|
@@ -7010,11 +7020,11 @@ M.Path.include({
|
|
|
7010
7020
|
return l;
|
|
7011
7021
|
}
|
|
7012
7022
|
});
|
|
7013
|
-
var
|
|
7014
|
-
function
|
|
7023
|
+
var Or = { exports: {} };
|
|
7024
|
+
function Ir(i) {
|
|
7015
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"];
|
|
7016
7026
|
}
|
|
7017
|
-
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 = {};
|
|
7018
7028
|
At.greenwich = 0;
|
|
7019
7029
|
At.lisbon = -9.131906111111;
|
|
7020
7030
|
At.paris = 2.337229166667;
|
|
@@ -7028,7 +7038,7 @@ At.brussels = 4.367975;
|
|
|
7028
7038
|
At.stockholm = 18.058277777778;
|
|
7029
7039
|
At.athens = 23.7163375;
|
|
7030
7040
|
At.oslo = 10.722916666667;
|
|
7031
|
-
const
|
|
7041
|
+
const Dr = {
|
|
7032
7042
|
ft: { to_meter: 0.3048 },
|
|
7033
7043
|
"us-ft": { to_meter: 1200 / 3937 }
|
|
7034
7044
|
};
|
|
@@ -7124,7 +7134,7 @@ function Ss(i) {
|
|
|
7124
7134
|
},
|
|
7125
7135
|
units: function(c) {
|
|
7126
7136
|
s.units = c;
|
|
7127
|
-
var d = ei(
|
|
7137
|
+
var d = ei(Dr, c);
|
|
7128
7138
|
d && (s.to_meter = d.to_meter);
|
|
7129
7139
|
},
|
|
7130
7140
|
from_greenwich: function(c) {
|
|
@@ -7149,26 +7159,26 @@ function Ss(i) {
|
|
|
7149
7159
|
o = n[r], r in f ? (l = f[r], typeof l == "function" ? l(o) : s[l] = o) : s[r] = o;
|
|
7150
7160
|
return typeof s.datumCode == "string" && s.datumCode !== "WGS84" && (s.datumCode = s.datumCode.toLowerCase()), s;
|
|
7151
7161
|
}
|
|
7152
|
-
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\-\+]/;
|
|
7153
7163
|
function Kt(i) {
|
|
7154
7164
|
if (typeof i != "string")
|
|
7155
7165
|
throw new Error("not a string");
|
|
7156
|
-
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;
|
|
7157
7167
|
}
|
|
7158
7168
|
Kt.prototype.readCharicter = function() {
|
|
7159
7169
|
var i = this.text[this.place++];
|
|
7160
|
-
if (this.state !==
|
|
7161
|
-
for (;
|
|
7170
|
+
if (this.state !== Re)
|
|
7171
|
+
for (; Zr.test(i); ) {
|
|
7162
7172
|
if (this.place >= this.text.length)
|
|
7163
7173
|
return;
|
|
7164
7174
|
i = this.text[this.place++];
|
|
7165
7175
|
}
|
|
7166
7176
|
switch (this.state) {
|
|
7167
|
-
case
|
|
7177
|
+
case se:
|
|
7168
7178
|
return this.neutral(i);
|
|
7169
7179
|
case Pa:
|
|
7170
7180
|
return this.keyword(i);
|
|
7171
|
-
case
|
|
7181
|
+
case Re:
|
|
7172
7182
|
return this.quoted(i);
|
|
7173
7183
|
case Ta:
|
|
7174
7184
|
return this.afterquote(i);
|
|
@@ -7180,10 +7190,10 @@ Kt.prototype.readCharicter = function() {
|
|
|
7180
7190
|
};
|
|
7181
7191
|
Kt.prototype.afterquote = function(i) {
|
|
7182
7192
|
if (i === '"') {
|
|
7183
|
-
this.word += '"', this.state =
|
|
7193
|
+
this.word += '"', this.state = Re;
|
|
7184
7194
|
return;
|
|
7185
7195
|
}
|
|
7186
|
-
if (
|
|
7196
|
+
if (Ue.test(i)) {
|
|
7187
7197
|
this.word = this.word.trim(), this.afterItem(i);
|
|
7188
7198
|
return;
|
|
7189
7199
|
}
|
|
@@ -7191,11 +7201,11 @@ Kt.prototype.afterquote = function(i) {
|
|
|
7191
7201
|
};
|
|
7192
7202
|
Kt.prototype.afterItem = function(i) {
|
|
7193
7203
|
if (i === ",") {
|
|
7194
|
-
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;
|
|
7195
7205
|
return;
|
|
7196
7206
|
}
|
|
7197
7207
|
if (i === "]") {
|
|
7198
|
-
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);
|
|
7199
7209
|
return;
|
|
7200
7210
|
}
|
|
7201
7211
|
};
|
|
@@ -7204,7 +7214,7 @@ Kt.prototype.number = function(i) {
|
|
|
7204
7214
|
this.word += i;
|
|
7205
7215
|
return;
|
|
7206
7216
|
}
|
|
7207
|
-
if (
|
|
7217
|
+
if (Ue.test(i)) {
|
|
7208
7218
|
this.word = parseFloat(this.word), this.afterItem(i);
|
|
7209
7219
|
return;
|
|
7210
7220
|
}
|
|
@@ -7218,35 +7228,35 @@ Kt.prototype.quoted = function(i) {
|
|
|
7218
7228
|
this.word += i;
|
|
7219
7229
|
};
|
|
7220
7230
|
Kt.prototype.keyword = function(i) {
|
|
7221
|
-
if (
|
|
7231
|
+
if (Gr.test(i)) {
|
|
7222
7232
|
this.word += i;
|
|
7223
7233
|
return;
|
|
7224
7234
|
}
|
|
7225
7235
|
if (i === "[") {
|
|
7226
7236
|
var s = [];
|
|
7227
|
-
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;
|
|
7228
7238
|
return;
|
|
7229
7239
|
}
|
|
7230
|
-
if (
|
|
7240
|
+
if (Ue.test(i)) {
|
|
7231
7241
|
this.afterItem(i);
|
|
7232
7242
|
return;
|
|
7233
7243
|
}
|
|
7234
7244
|
throw new Error(`havn't handled "` + i + '" in keyword yet, index ' + this.place);
|
|
7235
7245
|
};
|
|
7236
7246
|
Kt.prototype.neutral = function(i) {
|
|
7237
|
-
if (
|
|
7247
|
+
if (Fr.test(i)) {
|
|
7238
7248
|
this.word = i, this.state = Pa;
|
|
7239
7249
|
return;
|
|
7240
7250
|
}
|
|
7241
7251
|
if (i === '"') {
|
|
7242
|
-
this.word = "", this.state =
|
|
7252
|
+
this.word = "", this.state = Re;
|
|
7243
7253
|
return;
|
|
7244
7254
|
}
|
|
7245
7255
|
if (Ca.test(i)) {
|
|
7246
7256
|
this.word = i, this.state = Aa;
|
|
7247
7257
|
return;
|
|
7248
7258
|
}
|
|
7249
|
-
if (
|
|
7259
|
+
if (Ue.test(i)) {
|
|
7250
7260
|
this.afterItem(i);
|
|
7251
7261
|
return;
|
|
7252
7262
|
}
|
|
@@ -7259,7 +7269,7 @@ Kt.prototype.output = function() {
|
|
|
7259
7269
|
return this.root;
|
|
7260
7270
|
throw new Error('unable to parse string "' + this.text + '". State is ' + this.state);
|
|
7261
7271
|
};
|
|
7262
|
-
function
|
|
7272
|
+
function qr(i) {
|
|
7263
7273
|
var s = new Kt(i);
|
|
7264
7274
|
return s.output();
|
|
7265
7275
|
}
|
|
@@ -7345,15 +7355,15 @@ function bi(i, s) {
|
|
|
7345
7355
|
return oa(s, n, i);
|
|
7346
7356
|
}
|
|
7347
7357
|
}
|
|
7348
|
-
var
|
|
7349
|
-
function
|
|
7358
|
+
var Ur = 0.017453292519943295;
|
|
7359
|
+
function jr(i, s) {
|
|
7350
7360
|
var n = s[0], r = s[1];
|
|
7351
7361
|
!(n in i) && r in i && (i[n] = i[r], s.length === 3 && (i[n] = s[2](i[n])));
|
|
7352
7362
|
}
|
|
7353
7363
|
function Gt(i) {
|
|
7354
|
-
return i *
|
|
7364
|
+
return i * Ur;
|
|
7355
7365
|
}
|
|
7356
|
-
function
|
|
7366
|
+
function Hr(i) {
|
|
7357
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) {
|
|
7358
7368
|
for (var s = "", n = 0, r = i.AXIS.length; n < r; ++n) {
|
|
7359
7369
|
var o = [i.AXIS[n][0].toLowerCase(), i.AXIS[n][1].toLowerCase()];
|
|
@@ -7369,7 +7379,7 @@ function Ur(i) {
|
|
|
7369
7379
|
return m * v;
|
|
7370
7380
|
}
|
|
7371
7381
|
var c = function(m) {
|
|
7372
|
-
return
|
|
7382
|
+
return jr(i, m);
|
|
7373
7383
|
}, d = [
|
|
7374
7384
|
["standard_parallel_1", "Standard_Parallel_1"],
|
|
7375
7385
|
["standard_parallel_1", "Latitude of 1st standard parallel"],
|
|
@@ -7410,10 +7420,10 @@ function Ur(i) {
|
|
|
7410
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));
|
|
7411
7421
|
}
|
|
7412
7422
|
function Ea(i) {
|
|
7413
|
-
var s =
|
|
7423
|
+
var s = qr(i), n = s.shift(), r = s.shift();
|
|
7414
7424
|
s.unshift(["name", r]), s.unshift(["type", n]);
|
|
7415
7425
|
var o = {};
|
|
7416
|
-
return bi(s, o),
|
|
7426
|
+
return bi(s, o), Hr(o), o;
|
|
7417
7427
|
}
|
|
7418
7428
|
function vt(i) {
|
|
7419
7429
|
var s = this;
|
|
@@ -7432,47 +7442,47 @@ function vt(i) {
|
|
|
7432
7442
|
return;
|
|
7433
7443
|
}
|
|
7434
7444
|
}
|
|
7435
|
-
|
|
7436
|
-
function
|
|
7445
|
+
Ir(vt);
|
|
7446
|
+
function Wr(i) {
|
|
7437
7447
|
return typeof i == "string";
|
|
7438
7448
|
}
|
|
7439
|
-
function
|
|
7449
|
+
function $r(i) {
|
|
7440
7450
|
return i in vt;
|
|
7441
7451
|
}
|
|
7442
|
-
var
|
|
7443
|
-
function
|
|
7444
|
-
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) {
|
|
7445
7455
|
return i.indexOf(s) > -1;
|
|
7446
7456
|
});
|
|
7447
7457
|
}
|
|
7448
|
-
var
|
|
7449
|
-
function
|
|
7458
|
+
var Xr = ["3857", "900913", "3785", "102113"];
|
|
7459
|
+
function Kr(i) {
|
|
7450
7460
|
var s = ei(i, "authority");
|
|
7451
7461
|
if (s) {
|
|
7452
7462
|
var n = ei(s, "epsg");
|
|
7453
|
-
return n &&
|
|
7463
|
+
return n && Xr.indexOf(n) > -1;
|
|
7454
7464
|
}
|
|
7455
7465
|
}
|
|
7456
|
-
function
|
|
7466
|
+
function Yr(i) {
|
|
7457
7467
|
var s = ei(i, "extension");
|
|
7458
7468
|
if (s)
|
|
7459
7469
|
return ei(s, "proj4");
|
|
7460
7470
|
}
|
|
7461
|
-
function
|
|
7471
|
+
function Jr(i) {
|
|
7462
7472
|
return i[0] === "+";
|
|
7463
7473
|
}
|
|
7464
|
-
function
|
|
7465
|
-
if (
|
|
7466
|
-
if (
|
|
7474
|
+
function th(i) {
|
|
7475
|
+
if (Wr(i)) {
|
|
7476
|
+
if ($r(i))
|
|
7467
7477
|
return vt[i];
|
|
7468
|
-
if (
|
|
7478
|
+
if (Qr(i)) {
|
|
7469
7479
|
var s = Ea(i);
|
|
7470
|
-
if (
|
|
7480
|
+
if (Kr(s))
|
|
7471
7481
|
return vt["EPSG:3857"];
|
|
7472
|
-
var n =
|
|
7482
|
+
var n = Yr(s);
|
|
7473
7483
|
return n ? Ss(n) : s;
|
|
7474
7484
|
}
|
|
7475
|
-
if (
|
|
7485
|
+
if (Jr(i))
|
|
7476
7486
|
return Ss(i);
|
|
7477
7487
|
} else
|
|
7478
7488
|
return i;
|
|
@@ -7490,27 +7500,27 @@ function jt(i, s, n) {
|
|
|
7490
7500
|
var r = i * s;
|
|
7491
7501
|
return n / Math.sqrt(1 - r * r);
|
|
7492
7502
|
}
|
|
7493
|
-
function
|
|
7503
|
+
function oe(i) {
|
|
7494
7504
|
return i < 0 ? -1 : 1;
|
|
7495
7505
|
}
|
|
7496
7506
|
function O(i) {
|
|
7497
|
-
return Math.abs(i) <= ot ? i : i -
|
|
7507
|
+
return Math.abs(i) <= ot ? i : i - oe(i) * ee;
|
|
7498
7508
|
}
|
|
7499
7509
|
function kt(i, s, n) {
|
|
7500
7510
|
var r = i * n, o = 0.5 * i;
|
|
7501
7511
|
return r = Math.pow((1 - r) / (1 + r), o), Math.tan(0.5 * (C - s)) / r;
|
|
7502
7512
|
}
|
|
7503
|
-
function
|
|
7513
|
+
function ne(i, s) {
|
|
7504
7514
|
for (var n = 0.5 * i, r, o, l = C - 2 * Math.atan(s), f = 0; f <= 15; f++)
|
|
7505
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)
|
|
7506
7516
|
return l;
|
|
7507
7517
|
return -9999;
|
|
7508
7518
|
}
|
|
7509
|
-
function
|
|
7519
|
+
function ih() {
|
|
7510
7520
|
var i = this.b / this.a;
|
|
7511
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);
|
|
7512
7522
|
}
|
|
7513
|
-
function
|
|
7523
|
+
function eh(i) {
|
|
7514
7524
|
var s = i.x, n = i.y;
|
|
7515
7525
|
if (n * qt > 90 && n * qt < -90 && s * qt > 180 && s * qt < -180)
|
|
7516
7526
|
return null;
|
|
@@ -7525,57 +7535,57 @@ function th(i) {
|
|
|
7525
7535
|
}
|
|
7526
7536
|
return i.x = r, i.y = o, i;
|
|
7527
7537
|
}
|
|
7528
|
-
function
|
|
7538
|
+
function sh(i) {
|
|
7529
7539
|
var s = i.x - this.x0, n = i.y - this.y0, r, o;
|
|
7530
7540
|
if (this.sphere)
|
|
7531
7541
|
o = C - 2 * Math.atan(Math.exp(-n / (this.a * this.k0)));
|
|
7532
7542
|
else {
|
|
7533
7543
|
var l = Math.exp(-n / (this.a * this.k0));
|
|
7534
|
-
if (o =
|
|
7544
|
+
if (o = ne(this.e, l), o === -9999)
|
|
7535
7545
|
return null;
|
|
7536
7546
|
}
|
|
7537
7547
|
return r = O(this.long0 + s / (this.a * this.k0)), i.x = r, i.y = o, i;
|
|
7538
7548
|
}
|
|
7539
|
-
var
|
|
7540
|
-
const
|
|
7541
|
-
init:
|
|
7542
|
-
forward:
|
|
7543
|
-
inverse:
|
|
7544
|
-
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
|
|
7545
7555
|
};
|
|
7546
|
-
function
|
|
7556
|
+
function oh() {
|
|
7547
7557
|
}
|
|
7548
7558
|
function ha(i) {
|
|
7549
7559
|
return i;
|
|
7550
7560
|
}
|
|
7551
|
-
var
|
|
7552
|
-
const
|
|
7553
|
-
init:
|
|
7561
|
+
var rh = ["longlat", "identity"];
|
|
7562
|
+
const hh = {
|
|
7563
|
+
init: oh,
|
|
7554
7564
|
forward: ha,
|
|
7555
7565
|
inverse: ha,
|
|
7556
|
-
names:
|
|
7566
|
+
names: rh
|
|
7557
7567
|
};
|
|
7558
|
-
var
|
|
7568
|
+
var lh = [ah, hh], Ne = {}, De = [];
|
|
7559
7569
|
function Sa(i, s) {
|
|
7560
|
-
var n =
|
|
7561
|
-
return i.names ? (
|
|
7562
|
-
|
|
7570
|
+
var n = De.length;
|
|
7571
|
+
return i.names ? (De[n] = i, i.names.forEach(function(r) {
|
|
7572
|
+
Ne[r.toLowerCase()] = n;
|
|
7563
7573
|
}), this) : (console.log(s), !0);
|
|
7564
7574
|
}
|
|
7565
|
-
function
|
|
7575
|
+
function uh(i) {
|
|
7566
7576
|
if (!i)
|
|
7567
7577
|
return !1;
|
|
7568
7578
|
var s = i.toLowerCase();
|
|
7569
|
-
if (typeof
|
|
7570
|
-
return
|
|
7579
|
+
if (typeof Ne[s] < "u" && De[Ne[s]])
|
|
7580
|
+
return De[Ne[s]];
|
|
7571
7581
|
}
|
|
7572
|
-
function
|
|
7573
|
-
|
|
7582
|
+
function ch() {
|
|
7583
|
+
lh.forEach(Sa);
|
|
7574
7584
|
}
|
|
7575
|
-
const
|
|
7576
|
-
start:
|
|
7585
|
+
const fh = {
|
|
7586
|
+
start: ch,
|
|
7577
7587
|
add: Sa,
|
|
7578
|
-
get:
|
|
7588
|
+
get: uh
|
|
7579
7589
|
};
|
|
7580
7590
|
var D = {};
|
|
7581
7591
|
D.MERIT = {
|
|
@@ -7789,7 +7799,7 @@ D.WGS7 = {
|
|
|
7789
7799
|
rf: 298.26,
|
|
7790
7800
|
ellipseName: "WGS 72"
|
|
7791
7801
|
};
|
|
7792
|
-
var
|
|
7802
|
+
var dh = D.WGS84 = {
|
|
7793
7803
|
a: 6378137,
|
|
7794
7804
|
rf: 298.257223563,
|
|
7795
7805
|
ellipseName: "WGS 84"
|
|
@@ -7799,9 +7809,9 @@ D.sphere = {
|
|
|
7799
7809
|
b: 6370997,
|
|
7800
7810
|
ellipseName: "Normal Sphere (r=6370997)"
|
|
7801
7811
|
};
|
|
7802
|
-
function
|
|
7812
|
+
function _h(i, s, n, r) {
|
|
7803
7813
|
var o = i * i, l = s * s, f = (o - l) / o, c = 0;
|
|
7804
|
-
r ? (i *= 1 - f * (
|
|
7814
|
+
r ? (i *= 1 - f * (kr + f * (Br + f * Rr)), o = i * i, f = 0) : c = Math.sqrt(f);
|
|
7805
7815
|
var d = (o - l) / l;
|
|
7806
7816
|
return {
|
|
7807
7817
|
es: f,
|
|
@@ -7809,10 +7819,10 @@ function fh(i, s, n, r) {
|
|
|
7809
7819
|
ep2: d
|
|
7810
7820
|
};
|
|
7811
7821
|
}
|
|
7812
|
-
function
|
|
7822
|
+
function mh(i, s, n, r, o) {
|
|
7813
7823
|
if (!i) {
|
|
7814
7824
|
var l = ei(D, r);
|
|
7815
|
-
l || (l =
|
|
7825
|
+
l || (l = dh), i = l.a, s = l.b, n = l.rf;
|
|
7816
7826
|
}
|
|
7817
7827
|
return n && !s && (s = (1 - 1 / n) * i), (n === 0 || Math.abs(i - s) < S) && (o = !0, s = i), {
|
|
7818
7828
|
a: i,
|
|
@@ -7912,22 +7922,22 @@ ct.rnb72 = {
|
|
|
7912
7922
|
ellipse: "intl",
|
|
7913
7923
|
datumName: "Reseau National Belge 1972"
|
|
7914
7924
|
};
|
|
7915
|
-
function
|
|
7925
|
+
function ph(i, s, n, r, o, l, f) {
|
|
7916
7926
|
var c = {};
|
|
7917
|
-
return i === void 0 || i === "none" ? c.datum_type = Es : 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;
|
|
7918
7928
|
}
|
|
7919
7929
|
var Oa = {};
|
|
7920
|
-
function
|
|
7921
|
-
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 };
|
|
7922
7932
|
return Oa[i] = f, f;
|
|
7923
7933
|
}
|
|
7924
|
-
function
|
|
7934
|
+
function vh(i) {
|
|
7925
7935
|
if (i === void 0)
|
|
7926
7936
|
return null;
|
|
7927
7937
|
var s = i.split(",");
|
|
7928
|
-
return s.map(
|
|
7938
|
+
return s.map(yh);
|
|
7929
7939
|
}
|
|
7930
|
-
function
|
|
7940
|
+
function yh(i) {
|
|
7931
7941
|
if (i.length === 0)
|
|
7932
7942
|
return null;
|
|
7933
7943
|
var s = i[0] === "@";
|
|
@@ -7941,11 +7951,11 @@ function gh(i) {
|
|
|
7941
7951
|
function Li(i) {
|
|
7942
7952
|
return i / 3600 * Math.PI / 180;
|
|
7943
7953
|
}
|
|
7944
|
-
function
|
|
7954
|
+
function Mh(i) {
|
|
7945
7955
|
var s = i.getInt32(8, !1);
|
|
7946
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);
|
|
7947
7957
|
}
|
|
7948
|
-
function
|
|
7958
|
+
function xh(i, s) {
|
|
7949
7959
|
return {
|
|
7950
7960
|
nFields: i.getInt32(8, s),
|
|
7951
7961
|
nSubgridFields: i.getInt32(24, s),
|
|
@@ -7960,9 +7970,9 @@ function yh(i, s) {
|
|
|
7960
7970
|
function Os(i, s, n) {
|
|
7961
7971
|
return String.fromCharCode.apply(null, new Uint8Array(i.buffer.slice(s, n)));
|
|
7962
7972
|
}
|
|
7963
|
-
function
|
|
7973
|
+
function wh(i, s, n) {
|
|
7964
7974
|
for (var r = 176, o = [], l = 0; l < s.nSubgrids; l++) {
|
|
7965
|
-
var f =
|
|
7975
|
+
var f = Lh(i, r, n), c = Ph(i, r, f, n), d = Math.round(
|
|
7966
7976
|
1 + (f.upperLongitude - f.lowerLongitude) / f.longitudeInterval
|
|
7967
7977
|
), m = Math.round(
|
|
7968
7978
|
1 + (f.upperLatitude - f.lowerLatitude) / f.latitudeInterval
|
|
@@ -7972,17 +7982,17 @@ function Mh(i, s, n) {
|
|
|
7972
7982
|
del: [Li(f.longitudeInterval), Li(f.latitudeInterval)],
|
|
7973
7983
|
lim: [d, m],
|
|
7974
7984
|
count: f.gridNodeCount,
|
|
7975
|
-
cvs:
|
|
7985
|
+
cvs: bh(c)
|
|
7976
7986
|
}), r += 176 + f.gridNodeCount * 16;
|
|
7977
7987
|
}
|
|
7978
7988
|
return o;
|
|
7979
7989
|
}
|
|
7980
|
-
function
|
|
7990
|
+
function bh(i) {
|
|
7981
7991
|
return i.map(function(s) {
|
|
7982
7992
|
return [Li(s.longitudeShift), Li(s.latitudeShift)];
|
|
7983
7993
|
});
|
|
7984
7994
|
}
|
|
7985
|
-
function
|
|
7995
|
+
function Lh(i, s, n) {
|
|
7986
7996
|
return {
|
|
7987
7997
|
name: Os(i, s + 8, s + 16).trim(),
|
|
7988
7998
|
parent: Os(i, s + 24, s + 24 + 8).trim(),
|
|
@@ -7995,7 +8005,7 @@ function wh(i, s, n) {
|
|
|
7995
8005
|
gridNodeCount: i.getInt32(s + 168, n)
|
|
7996
8006
|
};
|
|
7997
8007
|
}
|
|
7998
|
-
function
|
|
8008
|
+
function Ph(i, s, n, r) {
|
|
7999
8009
|
for (var o = s + 176, l = 16, f = [], c = 0; c < n.gridNodeCount; c++) {
|
|
8000
8010
|
var d = {
|
|
8001
8011
|
latitudeShift: i.getFloat32(o + c * l, r),
|
|
@@ -8014,7 +8024,7 @@ function Ut(i, s) {
|
|
|
8014
8024
|
if (m)
|
|
8015
8025
|
throw m;
|
|
8016
8026
|
};
|
|
8017
|
-
var n =
|
|
8027
|
+
var n = th(i);
|
|
8018
8028
|
if (typeof n != "object") {
|
|
8019
8029
|
s("Could not parse to valid json: " + i);
|
|
8020
8030
|
return;
|
|
@@ -8029,7 +8039,7 @@ function Ut(i, s) {
|
|
|
8029
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);
|
|
8030
8040
|
}
|
|
8031
8041
|
n.k0 = n.k0 || 1, n.axis = n.axis || "enu", n.ellps = n.ellps || "wgs84", n.lat1 = n.lat1 || n.lat0;
|
|
8032
|
-
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(
|
|
8033
8043
|
n.datumCode,
|
|
8034
8044
|
n.datum_params,
|
|
8035
8045
|
l.a,
|
|
@@ -8040,9 +8050,9 @@ function Ut(i, s) {
|
|
|
8040
8050
|
);
|
|
8041
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);
|
|
8042
8052
|
}
|
|
8043
|
-
Ut.projections =
|
|
8053
|
+
Ut.projections = fh;
|
|
8044
8054
|
Ut.projections.start();
|
|
8045
|
-
function
|
|
8055
|
+
function Ah(i, s) {
|
|
8046
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;
|
|
8047
8057
|
}
|
|
8048
8058
|
function Ia(i, s, n) {
|
|
@@ -8084,7 +8094,7 @@ function za(i, s, n, r) {
|
|
|
8084
8094
|
z: Mt
|
|
8085
8095
|
};
|
|
8086
8096
|
}
|
|
8087
|
-
function
|
|
8097
|
+
function Th(i, s, n) {
|
|
8088
8098
|
if (s === ui)
|
|
8089
8099
|
return {
|
|
8090
8100
|
x: i.x + n[0],
|
|
@@ -8100,7 +8110,7 @@ function Ph(i, s, n) {
|
|
|
8100
8110
|
};
|
|
8101
8111
|
}
|
|
8102
8112
|
}
|
|
8103
|
-
function
|
|
8113
|
+
function Ch(i, s, n) {
|
|
8104
8114
|
if (s === ui)
|
|
8105
8115
|
return {
|
|
8106
8116
|
x: i.x - n[0],
|
|
@@ -8116,11 +8126,11 @@ function Ah(i, s, n) {
|
|
|
8116
8126
|
};
|
|
8117
8127
|
}
|
|
8118
8128
|
}
|
|
8119
|
-
function
|
|
8129
|
+
function Oe(i) {
|
|
8120
8130
|
return i === ui || i === ci;
|
|
8121
8131
|
}
|
|
8122
|
-
function
|
|
8123
|
-
if (
|
|
8132
|
+
function Eh(i, s, n) {
|
|
8133
|
+
if (Ah(i, s) || i.datum_type === Es || s.datum_type === Es)
|
|
8124
8134
|
return n;
|
|
8125
8135
|
var r = i.a, o = i.es;
|
|
8126
8136
|
if (i.datum_type === Ti) {
|
|
@@ -8130,9 +8140,9 @@ function Th(i, s, n) {
|
|
|
8130
8140
|
r = sa, o = na;
|
|
8131
8141
|
}
|
|
8132
8142
|
var f = s.a, c = s.b, d = s.es;
|
|
8133
|
-
if (s.datum_type === Ti && (f = sa, c =
|
|
8143
|
+
if (s.datum_type === Ti && (f = sa, c = Nr, d = na), o === d && r === f && !Oe(i.datum_type) && !Oe(s.datum_type))
|
|
8134
8144
|
return n;
|
|
8135
|
-
if (n = Ia(n, o, r),
|
|
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) {
|
|
8136
8146
|
var m = la(s, !0, n);
|
|
8137
8147
|
if (m !== 0)
|
|
8138
8148
|
return;
|
|
@@ -8157,13 +8167,13 @@ function la(i, s, n) {
|
|
|
8157
8167
|
}
|
|
8158
8168
|
for (var d = c.grid.subgrids, m = 0, v = d.length; m < v; m++) {
|
|
8159
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;
|
|
8160
|
-
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)))
|
|
8161
8171
|
break t;
|
|
8162
8172
|
}
|
|
8163
8173
|
}
|
|
8164
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);
|
|
8165
8175
|
}
|
|
8166
|
-
function
|
|
8176
|
+
function Sh(i, s, n) {
|
|
8167
8177
|
var r = { x: Number.NaN, y: Number.NaN };
|
|
8168
8178
|
if (isNaN(i.x))
|
|
8169
8179
|
return r;
|
|
@@ -8238,7 +8248,7 @@ function Na(i) {
|
|
|
8238
8248
|
};
|
|
8239
8249
|
return i.length > 2 && (s.z = i[2]), i.length > 3 && (s.m = i[3]), s;
|
|
8240
8250
|
}
|
|
8241
|
-
function
|
|
8251
|
+
function Oh(i) {
|
|
8242
8252
|
fa(i.x), fa(i.y);
|
|
8243
8253
|
}
|
|
8244
8254
|
function fa(i) {
|
|
@@ -8250,10 +8260,10 @@ function fa(i) {
|
|
|
8250
8260
|
if (typeof i != "number" || i !== i || !isFinite(i))
|
|
8251
8261
|
throw new TypeError("coordinates must be finite numbers");
|
|
8252
8262
|
}
|
|
8253
|
-
function
|
|
8263
|
+
function Ih(i, s) {
|
|
8254
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";
|
|
8255
8265
|
}
|
|
8256
|
-
function
|
|
8266
|
+
function Ze(i, s, n, r) {
|
|
8257
8267
|
var o;
|
|
8258
8268
|
Array.isArray(n) ? n = Na(n) : n = {
|
|
8259
8269
|
x: n.x,
|
|
@@ -8262,7 +8272,7 @@ function Fe(i, s, n, r) {
|
|
|
8262
8272
|
m: n.m
|
|
8263
8273
|
};
|
|
8264
8274
|
var l = n.z !== void 0;
|
|
8265
|
-
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")
|
|
8266
8276
|
n = {
|
|
8267
8277
|
x: n.x * mt,
|
|
8268
8278
|
y: n.y * mt,
|
|
@@ -8274,7 +8284,7 @@ function Fe(i, s, n, r) {
|
|
|
8274
8284
|
z: n.z || 0
|
|
8275
8285
|
}), n = i.inverse(n), !n)
|
|
8276
8286
|
return;
|
|
8277
|
-
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)
|
|
8278
8288
|
return s.from_greenwich && (n = {
|
|
8279
8289
|
x: n.x - s.from_greenwich,
|
|
8280
8290
|
y: n.y,
|
|
@@ -8292,7 +8302,7 @@ function Fe(i, s, n, r) {
|
|
|
8292
8302
|
var da = Ut("WGS84");
|
|
8293
8303
|
function Ts(i, s, n, r) {
|
|
8294
8304
|
var o, l, f;
|
|
8295
|
-
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) {
|
|
8296
8306
|
if (typeof i.name < "u" && i.name === "geocent" || typeof s.name < "u" && s.name === "geocent") {
|
|
8297
8307
|
if (c === "x" || c === "y" || c === "z")
|
|
8298
8308
|
return;
|
|
@@ -8317,18 +8327,18 @@ function Ct(i, s, n) {
|
|
|
8317
8327
|
}, r && (o.oProj = s), o);
|
|
8318
8328
|
}
|
|
8319
8329
|
var ma = 6, ka = "AJSAJS", Ba = "AFAFAF", Pi = 65, Lt = 73, It = 79, Vi = 86, Qi = 90;
|
|
8320
|
-
const
|
|
8330
|
+
const zh = {
|
|
8321
8331
|
forward: Ra,
|
|
8322
|
-
inverse:
|
|
8332
|
+
inverse: Nh,
|
|
8323
8333
|
toPoint: Da
|
|
8324
8334
|
};
|
|
8325
8335
|
function Ra(i, s) {
|
|
8326
|
-
return s = s || 5, kh(
|
|
8336
|
+
return s = s || 5, Rh(kh({
|
|
8327
8337
|
lat: i[1],
|
|
8328
8338
|
lon: i[0]
|
|
8329
8339
|
}), s);
|
|
8330
8340
|
}
|
|
8331
|
-
function
|
|
8341
|
+
function Nh(i) {
|
|
8332
8342
|
var s = ks(Fa(i.toUpperCase()));
|
|
8333
8343
|
return s.lat && s.lon ? [s.lon, s.lat, s.lon, s.lat] : [s.left, s.bottom, s.right, s.top];
|
|
8334
8344
|
}
|
|
@@ -8342,7 +8352,7 @@ function Cs(i) {
|
|
|
8342
8352
|
function pa(i) {
|
|
8343
8353
|
return 180 * (i / Math.PI);
|
|
8344
8354
|
}
|
|
8345
|
-
function
|
|
8355
|
+
function kh(i) {
|
|
8346
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;
|
|
8347
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));
|
|
8348
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));
|
|
@@ -8350,7 +8360,7 @@ function zh(i) {
|
|
|
8350
8360
|
northing: Math.round(B),
|
|
8351
8361
|
easting: Math.round(z),
|
|
8352
8362
|
zoneNumber: E,
|
|
8353
|
-
zoneLetter:
|
|
8363
|
+
zoneLetter: Bh(s)
|
|
8354
8364
|
};
|
|
8355
8365
|
}
|
|
8356
8366
|
function ks(i) {
|
|
@@ -8384,23 +8394,23 @@ function ks(i) {
|
|
|
8384
8394
|
};
|
|
8385
8395
|
return ut;
|
|
8386
8396
|
}
|
|
8387
|
-
function
|
|
8397
|
+
function Bh(i) {
|
|
8388
8398
|
var s = "Z";
|
|
8389
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;
|
|
8390
8400
|
}
|
|
8391
|
-
function
|
|
8401
|
+
function Rh(i, s) {
|
|
8392
8402
|
var n = "00000" + i.easting, r = "00000" + i.northing;
|
|
8393
|
-
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);
|
|
8394
8404
|
}
|
|
8395
|
-
function
|
|
8405
|
+
function Dh(i, s, n) {
|
|
8396
8406
|
var r = Za(n), o = Math.floor(i / 1e5), l = Math.floor(s / 1e5) % 20;
|
|
8397
|
-
return
|
|
8407
|
+
return Zh(o, l, r);
|
|
8398
8408
|
}
|
|
8399
8409
|
function Za(i) {
|
|
8400
8410
|
var s = i % ma;
|
|
8401
8411
|
return s === 0 && (s = ma), s;
|
|
8402
8412
|
}
|
|
8403
|
-
function
|
|
8413
|
+
function Zh(i, s, n) {
|
|
8404
8414
|
var r = n - 1, o = ka.charCodeAt(r), l = Ba.charCodeAt(r), f = o + i - 1, c = l + s, d = !1;
|
|
8405
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);
|
|
8406
8416
|
var m = String.fromCharCode(f) + String.fromCharCode(c);
|
|
@@ -8421,7 +8431,7 @@ function Fa(i) {
|
|
|
8421
8431
|
if (c <= "A" || c === "B" || c === "Y" || c >= "Z" || c === "I" || c === "O")
|
|
8422
8432
|
throw "MGRSPoint zone letter " + c + " not handled: " + i;
|
|
8423
8433
|
n = i.substring(l, l += 2);
|
|
8424
|
-
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); )
|
|
8425
8435
|
v += 2e6;
|
|
8426
8436
|
var p = s - l;
|
|
8427
8437
|
if (p % 2 !== 0)
|
|
@@ -8438,7 +8448,7 @@ northing meters` + i;
|
|
|
8438
8448
|
accuracy: P
|
|
8439
8449
|
};
|
|
8440
8450
|
}
|
|
8441
|
-
function
|
|
8451
|
+
function Fh(i, s) {
|
|
8442
8452
|
for (var n = ka.charCodeAt(s - 1), r = 1e5, o = !1; n !== i.charCodeAt(0); ) {
|
|
8443
8453
|
if (n++, n === Lt && n++, n === It && n++, n > Qi) {
|
|
8444
8454
|
if (o)
|
|
@@ -8449,7 +8459,7 @@ function Dh(i, s) {
|
|
|
8449
8459
|
}
|
|
8450
8460
|
return r;
|
|
8451
8461
|
}
|
|
8452
|
-
function
|
|
8462
|
+
function Gh(i, s) {
|
|
8453
8463
|
if (i > "V")
|
|
8454
8464
|
throw "MGRSPoint given invalid Northing " + i;
|
|
8455
8465
|
for (var n = Ba.charCodeAt(s - 1), r = 0, o = !1; n !== i.charCodeAt(0); ) {
|
|
@@ -8462,7 +8472,7 @@ function Zh(i, s) {
|
|
|
8462
8472
|
}
|
|
8463
8473
|
return r;
|
|
8464
8474
|
}
|
|
8465
|
-
function
|
|
8475
|
+
function qh(i) {
|
|
8466
8476
|
var s;
|
|
8467
8477
|
switch (i) {
|
|
8468
8478
|
case "C":
|
|
@@ -8552,29 +8562,29 @@ Ei.fromMGRS = function(i) {
|
|
|
8552
8562
|
Ei.prototype.toMGRS = function(i) {
|
|
8553
8563
|
return Ra([this.x, this.y], i);
|
|
8554
8564
|
};
|
|
8555
|
-
var
|
|
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;
|
|
8556
8566
|
function Bs(i) {
|
|
8557
8567
|
var s = [];
|
|
8558
|
-
s[0] =
|
|
8568
|
+
s[0] = Uh - i * (jh + i * (ga + i * (va + i * ya))), s[1] = i * (Hh - i * (ga + i * (va + i * ya)));
|
|
8559
8569
|
var n = i * i;
|
|
8560
|
-
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;
|
|
8561
8571
|
}
|
|
8562
8572
|
function Oi(i, s, n, r) {
|
|
8563
8573
|
return n *= s, s *= s, r[0] * i - n * (r[1] + s * (r[2] + s * (r[3] + s * r[4])));
|
|
8564
8574
|
}
|
|
8565
|
-
var
|
|
8575
|
+
var Yh = 20;
|
|
8566
8576
|
function Rs(i, s, n) {
|
|
8567
|
-
for (var r = 1 / (1 - s), o = i, l =
|
|
8577
|
+
for (var r = 1 / (1 - s), o = i, l = Yh; l; --l) {
|
|
8568
8578
|
var f = Math.sin(o), c = 1 - s * f * f;
|
|
8569
8579
|
if (c = (Oi(o, f, Math.cos(o), n) - i) * (c * Math.sqrt(c)) * r, o -= c, Math.abs(c) < S)
|
|
8570
8580
|
return o;
|
|
8571
8581
|
}
|
|
8572
8582
|
return o;
|
|
8573
8583
|
}
|
|
8574
|
-
function
|
|
8584
|
+
function Jh() {
|
|
8575
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));
|
|
8576
8586
|
}
|
|
8577
|
-
function
|
|
8587
|
+
function tl(i) {
|
|
8578
8588
|
var s = i.x, n = i.y, r = O(s - this.long0), o, l, f, c = Math.sin(n), d = Math.cos(n);
|
|
8579
8589
|
if (this.es) {
|
|
8580
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);
|
|
@@ -8595,7 +8605,7 @@ function Yh(i) {
|
|
|
8595
8605
|
}
|
|
8596
8606
|
return i.x = l, i.y = f, i;
|
|
8597
8607
|
}
|
|
8598
|
-
function
|
|
8608
|
+
function il(i) {
|
|
8599
8609
|
var s, n, r, o, l = (i.x - this.x0) * (1 / this.a), f = (i.y - this.y0) * (1 / this.a);
|
|
8600
8610
|
if (this.es)
|
|
8601
8611
|
if (s = this.ml0 + f / this.k0, n = Rs(s, this.es, this.en), Math.abs(n) < C) {
|
|
@@ -8604,19 +8614,19 @@ function Jh(i) {
|
|
|
8604
8614
|
var B = l * Math.sqrt(s) / this.k0, k = Math.pow(B, 2);
|
|
8605
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);
|
|
8606
8616
|
} else
|
|
8607
|
-
r = C *
|
|
8617
|
+
r = C * oe(f), o = 0;
|
|
8608
8618
|
else {
|
|
8609
8619
|
var c = Math.exp(l / this.k0), d = 0.5 * (c - 1 / c), m = this.lat0 + f / this.k0, v = Math.cos(m);
|
|
8610
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);
|
|
8611
8621
|
}
|
|
8612
8622
|
return i.x = o, i.y = r, i;
|
|
8613
8623
|
}
|
|
8614
|
-
var
|
|
8615
|
-
const
|
|
8616
|
-
init:
|
|
8617
|
-
forward:
|
|
8618
|
-
inverse:
|
|
8619
|
-
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
|
|
8620
8630
|
};
|
|
8621
8631
|
function Ga(i) {
|
|
8622
8632
|
var s = Math.exp(i);
|
|
@@ -8627,53 +8637,53 @@ function Pt(i, s) {
|
|
|
8627
8637
|
var n = Math.max(i, s), r = Math.min(i, s) / (n || 1);
|
|
8628
8638
|
return n * Math.sqrt(1 + Math.pow(r, 2));
|
|
8629
8639
|
}
|
|
8630
|
-
function
|
|
8640
|
+
function sl(i) {
|
|
8631
8641
|
var s = 1 + i, n = s - 1;
|
|
8632
8642
|
return n === 0 ? i : i * Math.log(s) / n;
|
|
8633
8643
|
}
|
|
8634
|
-
function
|
|
8644
|
+
function nl(i) {
|
|
8635
8645
|
var s = Math.abs(i);
|
|
8636
|
-
return s =
|
|
8646
|
+
return s = sl(s * (1 + s / (Pt(1, s) + 1))), i < 0 ? -s : s;
|
|
8637
8647
|
}
|
|
8638
8648
|
function Ds(i, s) {
|
|
8639
8649
|
for (var n = 2 * Math.cos(2 * s), r = i.length - 1, o = i[r], l = 0, f; --r >= 0; )
|
|
8640
8650
|
f = -l + n * o + i[r], l = o, o = f;
|
|
8641
8651
|
return s + f * Math.sin(2 * s);
|
|
8642
8652
|
}
|
|
8643
|
-
function
|
|
8653
|
+
function al(i, s) {
|
|
8644
8654
|
for (var n = 2 * Math.cos(s), r = i.length - 1, o = i[r], l = 0, f; --r >= 0; )
|
|
8645
8655
|
f = -l + n * o + i[r], l = o, o = f;
|
|
8646
8656
|
return Math.sin(s) * f;
|
|
8647
8657
|
}
|
|
8648
|
-
function
|
|
8658
|
+
function ol(i) {
|
|
8649
8659
|
var s = Math.exp(i);
|
|
8650
8660
|
return s = (s + 1 / s) / 2, s;
|
|
8651
8661
|
}
|
|
8652
8662
|
function qa(i, s, n) {
|
|
8653
|
-
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; )
|
|
8654
8664
|
A = y, P = p, y = v, p = b, v = -A + c * y - d * p + i[m], b = -P + d * y + c * p;
|
|
8655
8665
|
return c = r * f, d = o * l, [c * v - d * b, c * b + d * v];
|
|
8656
8666
|
}
|
|
8657
|
-
function
|
|
8667
|
+
function rl() {
|
|
8658
8668
|
if (!this.approx && (isNaN(this.es) || this.es <= 0))
|
|
8659
8669
|
throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');
|
|
8660
|
-
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 = [];
|
|
8661
8671
|
var i = this.es / (1 + Math.sqrt(1 - this.es)), s = i / (2 - i), n = s;
|
|
8662
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);
|
|
8663
8673
|
var r = Ds(this.cbg, this.lat0);
|
|
8664
|
-
this.Zb = -this.Qn * (r +
|
|
8674
|
+
this.Zb = -this.Qn * (r + al(this.gtu, 2 * r));
|
|
8665
8675
|
}
|
|
8666
|
-
function
|
|
8676
|
+
function hl(i) {
|
|
8667
8677
|
var s = O(i.x - this.long0), n = i.y;
|
|
8668
8678
|
n = Ds(this.cbg, n);
|
|
8669
8679
|
var r = Math.sin(n), o = Math.cos(n), l = Math.sin(s), f = Math.cos(s);
|
|
8670
|
-
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));
|
|
8671
8681
|
var c = qa(this.gtu, 2 * n, 2 * s);
|
|
8672
8682
|
n = n + c[0], s = s + c[1];
|
|
8673
8683
|
var d, m;
|
|
8674
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;
|
|
8675
8685
|
}
|
|
8676
|
-
function
|
|
8686
|
+
function ll(i) {
|
|
8677
8687
|
var s = (i.x - this.x0) * (1 / this.a), n = (i.y - this.y0) * (1 / this.a);
|
|
8678
8688
|
n = (n - this.Zb) / this.Qn, s = s / this.Qn;
|
|
8679
8689
|
var r, o;
|
|
@@ -8686,14 +8696,14 @@ function rl(i) {
|
|
|
8686
8696
|
r = 1 / 0, o = 1 / 0;
|
|
8687
8697
|
return i.x = r, i.y = o, i;
|
|
8688
8698
|
}
|
|
8689
|
-
var
|
|
8690
|
-
const
|
|
8691
|
-
init:
|
|
8692
|
-
forward:
|
|
8693
|
-
inverse:
|
|
8694
|
-
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
|
|
8695
8705
|
};
|
|
8696
|
-
function
|
|
8706
|
+
function cl(i, s) {
|
|
8697
8707
|
if (i === void 0) {
|
|
8698
8708
|
if (i = Math.floor((O(s) + Math.PI) * 30 / Math.PI) + 1, i < 0)
|
|
8699
8709
|
return 0;
|
|
@@ -8702,51 +8712,51 @@ function ll(i, s) {
|
|
|
8702
8712
|
}
|
|
8703
8713
|
return i;
|
|
8704
8714
|
}
|
|
8705
|
-
var
|
|
8706
|
-
function
|
|
8707
|
-
var i =
|
|
8715
|
+
var fl = "etmerc";
|
|
8716
|
+
function dl() {
|
|
8717
|
+
var i = cl(this.zone, this.long0);
|
|
8708
8718
|
if (i === void 0)
|
|
8709
8719
|
throw new Error("unknown utm zone");
|
|
8710
|
-
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;
|
|
8711
8721
|
}
|
|
8712
|
-
var
|
|
8713
|
-
const
|
|
8714
|
-
init:
|
|
8715
|
-
names:
|
|
8716
|
-
dependsOn:
|
|
8722
|
+
var _l = ["Universal Transverse Mercator System", "utm"];
|
|
8723
|
+
const ml = {
|
|
8724
|
+
init: dl,
|
|
8725
|
+
names: _l,
|
|
8726
|
+
dependsOn: fl
|
|
8717
8727
|
};
|
|
8718
8728
|
function Zs(i, s) {
|
|
8719
8729
|
return Math.pow((1 - i) / (1 + i), s);
|
|
8720
8730
|
}
|
|
8721
|
-
var
|
|
8722
|
-
function
|
|
8731
|
+
var pl = 20;
|
|
8732
|
+
function gl() {
|
|
8723
8733
|
var i = Math.sin(this.lat0), s = Math.cos(this.lat0);
|
|
8724
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));
|
|
8725
8735
|
}
|
|
8726
|
-
function
|
|
8736
|
+
function vl(i) {
|
|
8727
8737
|
var s = i.x, n = i.y;
|
|
8728
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;
|
|
8729
8739
|
}
|
|
8730
|
-
function
|
|
8731
|
-
for (var s = 1e-14, n = i.x / this.C, r = i.y, o = Math.pow(Math.tan(0.5 * r + X) / this.K, 1 / this.C), l =
|
|
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)
|
|
8732
8742
|
i.y = r;
|
|
8733
8743
|
return l ? (i.x = n, i.y = r, i) : null;
|
|
8734
8744
|
}
|
|
8735
|
-
var
|
|
8745
|
+
var Ml = ["gauss"];
|
|
8736
8746
|
const Fs = {
|
|
8737
|
-
init:
|
|
8738
|
-
forward:
|
|
8739
|
-
inverse:
|
|
8740
|
-
names:
|
|
8747
|
+
init: gl,
|
|
8748
|
+
forward: vl,
|
|
8749
|
+
inverse: yl,
|
|
8750
|
+
names: Ml
|
|
8741
8751
|
};
|
|
8742
|
-
function
|
|
8752
|
+
function xl() {
|
|
8743
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"));
|
|
8744
8754
|
}
|
|
8745
|
-
function
|
|
8755
|
+
function wl(i) {
|
|
8746
8756
|
var s, n, r, o;
|
|
8747
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;
|
|
8748
8758
|
}
|
|
8749
|
-
function
|
|
8759
|
+
function bl(i) {
|
|
8750
8760
|
var s, n, r, o, l;
|
|
8751
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)) {
|
|
8752
8762
|
var f = 2 * Math.atan2(l, this.R2);
|
|
@@ -8755,24 +8765,24 @@ function xl(i) {
|
|
|
8755
8765
|
o = this.phic0, r = 0;
|
|
8756
8766
|
return i.x = r, i.y = o, Fs.inverse.apply(this, [i]), i.x = O(i.x + this.long0), i;
|
|
8757
8767
|
}
|
|
8758
|
-
var
|
|
8759
|
-
const
|
|
8760
|
-
init:
|
|
8761
|
-
forward:
|
|
8762
|
-
inverse:
|
|
8763
|
-
names:
|
|
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
|
|
8764
8774
|
};
|
|
8765
|
-
function
|
|
8775
|
+
function Al(i, s, n) {
|
|
8766
8776
|
return s *= n, Math.tan(0.5 * (C + i)) * Math.pow((1 - s) / (1 + s), 0.5 * n);
|
|
8767
8777
|
}
|
|
8768
|
-
function
|
|
8769
|
-
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));
|
|
8770
8780
|
}
|
|
8771
|
-
function
|
|
8781
|
+
function Cl(i) {
|
|
8772
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);
|
|
8773
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));
|
|
8774
8784
|
}
|
|
8775
|
-
function
|
|
8785
|
+
function El(i) {
|
|
8776
8786
|
i.x -= this.x0, i.y -= this.y0;
|
|
8777
8787
|
var s, n, r, o, l, f = Math.sqrt(i.x * i.x + i.y * i.y);
|
|
8778
8788
|
if (this.sphere) {
|
|
@@ -8781,20 +8791,20 @@ function Tl(i) {
|
|
|
8781
8791
|
} else if (Math.abs(this.coslat0) <= S) {
|
|
8782
8792
|
if (f <= S)
|
|
8783
8793
|
return n = this.lat0, s = this.long0, i.x = s, i.y = n, i;
|
|
8784
|
-
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));
|
|
8785
8795
|
} else
|
|
8786
|
-
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)));
|
|
8787
8797
|
return i.x = s, i.y = n, i;
|
|
8788
8798
|
}
|
|
8789
|
-
var
|
|
8790
|
-
const
|
|
8791
|
-
init:
|
|
8792
|
-
forward:
|
|
8793
|
-
inverse:
|
|
8794
|
-
names:
|
|
8795
|
-
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
|
|
8796
8806
|
};
|
|
8797
|
-
function
|
|
8807
|
+
function Il() {
|
|
8798
8808
|
var i = this.lat0;
|
|
8799
8809
|
this.lambda0 = this.long0;
|
|
8800
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);
|
|
@@ -8802,11 +8812,11 @@ function Sl() {
|
|
|
8802
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));
|
|
8803
8813
|
this.K = c - this.alpha * d + this.alpha * f / 2 * m;
|
|
8804
8814
|
}
|
|
8805
|
-
function
|
|
8815
|
+
function zl(i) {
|
|
8806
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));
|
|
8807
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;
|
|
8808
8818
|
}
|
|
8809
|
-
function
|
|
8819
|
+
function Nl(i) {
|
|
8810
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; ) {
|
|
8811
8821
|
if (++p > 20)
|
|
8812
8822
|
return;
|
|
@@ -8814,21 +8824,21 @@ function Il(i) {
|
|
|
8814
8824
|
}
|
|
8815
8825
|
return i.x = c, i.y = m, i;
|
|
8816
8826
|
}
|
|
8817
|
-
var
|
|
8818
|
-
const
|
|
8819
|
-
init:
|
|
8820
|
-
forward:
|
|
8821
|
-
inverse:
|
|
8822
|
-
names:
|
|
8827
|
+
var kl = ["somerc"];
|
|
8828
|
+
const Bl = {
|
|
8829
|
+
init: Il,
|
|
8830
|
+
forward: zl,
|
|
8831
|
+
inverse: Nl,
|
|
8832
|
+
names: kl
|
|
8823
8833
|
};
|
|
8824
8834
|
var wi = 1e-7;
|
|
8825
|
-
function
|
|
8835
|
+
function Rl(i) {
|
|
8826
8836
|
var s = ["Hotine_Oblique_Mercator", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin"], n = typeof i.PROJECTION == "object" ? Object.keys(i.PROJECTION)[0] : i.PROJECTION;
|
|
8827
8837
|
return "no_uoff" in i || "no_off" in i || s.indexOf(n) !== -1;
|
|
8828
8838
|
}
|
|
8829
|
-
function
|
|
8839
|
+
function Dl() {
|
|
8830
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;
|
|
8831
|
-
this.no_off =
|
|
8841
|
+
this.no_off = Rl(this), this.no_rot = "no_rot" in this;
|
|
8832
8842
|
var B = !1;
|
|
8833
8843
|
"alpha" in this && (B = !0);
|
|
8834
8844
|
var k = !1;
|
|
@@ -8837,9 +8847,9 @@ function Bl() {
|
|
|
8837
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)
|
|
8838
8848
|
throw new Error();
|
|
8839
8849
|
var j = 1 - this.es;
|
|
8840
|
-
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));
|
|
8841
8851
|
}
|
|
8842
|
-
function
|
|
8852
|
+
function Zl(i) {
|
|
8843
8853
|
var s = {}, n, r, o, l, f, c, d, m;
|
|
8844
8854
|
if (i.x = i.x - this.lam0, Math.abs(Math.abs(i.y) - C) > S) {
|
|
8845
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)
|
|
@@ -8849,25 +8859,25 @@ function Rl(i) {
|
|
|
8849
8859
|
m = i.y > 0 ? this.v_pole_n : this.v_pole_s, d = this.ArB * i.y;
|
|
8850
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;
|
|
8851
8861
|
}
|
|
8852
|
-
function
|
|
8862
|
+
function Fl(i) {
|
|
8853
8863
|
var s, n, r, o, l, f, c, d = {};
|
|
8854
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)
|
|
8855
8865
|
d.x = 0, d.y = c < 0 ? -C : C;
|
|
8856
8866
|
else {
|
|
8857
|
-
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)
|
|
8858
8868
|
throw new Error();
|
|
8859
8869
|
d.x = -this.rB * Math.atan2(o * this.cosgam - f * this.singam, Math.cos(this.BrA * s));
|
|
8860
8870
|
}
|
|
8861
8871
|
return d.x += this.lam0, d;
|
|
8862
8872
|
}
|
|
8863
|
-
var
|
|
8864
|
-
const
|
|
8865
|
-
init:
|
|
8866
|
-
forward:
|
|
8867
|
-
inverse:
|
|
8868
|
-
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
|
|
8869
8879
|
};
|
|
8870
|
-
function
|
|
8880
|
+
function Ul() {
|
|
8871
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)) {
|
|
8872
8882
|
var i = this.b / this.a;
|
|
8873
8883
|
this.e = Math.sqrt(1 - i * i);
|
|
@@ -8875,9 +8885,9 @@ function Gl() {
|
|
|
8875
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");
|
|
8876
8886
|
}
|
|
8877
8887
|
}
|
|
8878
|
-
function
|
|
8888
|
+
function jl(i) {
|
|
8879
8889
|
var s = i.x, n = i.y;
|
|
8880
|
-
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));
|
|
8881
8891
|
var r = Math.abs(Math.abs(n) - C), o, l;
|
|
8882
8892
|
if (r > S)
|
|
8883
8893
|
o = kt(this.e, n, Math.sin(n)), l = this.a * this.f0 * Math.pow(o, this.ns);
|
|
@@ -8889,18 +8899,18 @@ function ql(i) {
|
|
|
8889
8899
|
var f = this.ns * O(s - this.long0);
|
|
8890
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;
|
|
8891
8901
|
}
|
|
8892
|
-
function
|
|
8902
|
+
function Hl(i) {
|
|
8893
8903
|
var s, n, r, o, l, f = (i.x - this.x0) / this.k0, c = this.rh - (i.y - this.y0) / this.k0;
|
|
8894
8904
|
this.ns > 0 ? (s = Math.sqrt(f * f + c * c), n = 1) : (s = -Math.sqrt(f * f + c * c), n = -1);
|
|
8895
8905
|
var d = 0;
|
|
8896
8906
|
if (s !== 0 && (d = Math.atan2(n * f, n * c)), s !== 0 || this.ns > 0) {
|
|
8897
|
-
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)
|
|
8898
8908
|
return null;
|
|
8899
8909
|
} else
|
|
8900
8910
|
o = -C;
|
|
8901
8911
|
return l = O(d / this.ns + this.long0), i.x = l, i.y = o, i;
|
|
8902
8912
|
}
|
|
8903
|
-
var
|
|
8913
|
+
var Wl = [
|
|
8904
8914
|
"Lambert Tangential Conformal Conic Projection",
|
|
8905
8915
|
"Lambert_Conformal_Conic",
|
|
8906
8916
|
"Lambert_Conformal_Conic_1SP",
|
|
@@ -8909,20 +8919,20 @@ var jl = [
|
|
|
8909
8919
|
"Lambert Conic Conformal (1SP)",
|
|
8910
8920
|
"Lambert Conic Conformal (2SP)"
|
|
8911
8921
|
];
|
|
8912
|
-
const
|
|
8913
|
-
init:
|
|
8914
|
-
forward:
|
|
8915
|
-
inverse:
|
|
8916
|
-
names:
|
|
8922
|
+
const $l = {
|
|
8923
|
+
init: Ul,
|
|
8924
|
+
forward: jl,
|
|
8925
|
+
inverse: Hl,
|
|
8926
|
+
names: Wl
|
|
8917
8927
|
};
|
|
8918
|
-
function
|
|
8928
|
+
function Vl() {
|
|
8919
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;
|
|
8920
8930
|
}
|
|
8921
|
-
function
|
|
8931
|
+
function Ql(i) {
|
|
8922
8932
|
var s, n, r, o, l, f, c, d = i.x, m = i.y, v = O(d - this.long0);
|
|
8923
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;
|
|
8924
8934
|
}
|
|
8925
|
-
function
|
|
8935
|
+
function Xl(i) {
|
|
8926
8936
|
var s, n, r, o, l, f, c, d, m = i.x;
|
|
8927
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;
|
|
8928
8938
|
var v = 0;
|
|
@@ -8931,26 +8941,26 @@ function Vl(i) {
|
|
|
8931
8941
|
while (d === 0 && v < 15);
|
|
8932
8942
|
return v >= 15 ? null : i;
|
|
8933
8943
|
}
|
|
8934
|
-
var
|
|
8935
|
-
const
|
|
8936
|
-
init:
|
|
8937
|
-
forward:
|
|
8938
|
-
inverse:
|
|
8939
|
-
names:
|
|
8944
|
+
var Kl = ["Krovak", "krovak"];
|
|
8945
|
+
const Yl = {
|
|
8946
|
+
init: Vl,
|
|
8947
|
+
forward: Ql,
|
|
8948
|
+
inverse: Xl,
|
|
8949
|
+
names: Kl
|
|
8940
8950
|
};
|
|
8941
8951
|
function yt(i, s, n, r, o) {
|
|
8942
8952
|
return i * o - s * Math.sin(2 * o) + n * Math.sin(4 * o) - r * Math.sin(6 * o);
|
|
8943
8953
|
}
|
|
8944
|
-
function
|
|
8954
|
+
function re(i) {
|
|
8945
8955
|
return 1 - 0.25 * i * (1 + i / 16 * (3 + 1.25 * i));
|
|
8946
8956
|
}
|
|
8947
|
-
function
|
|
8957
|
+
function he(i) {
|
|
8948
8958
|
return 0.375 * i * (1 + 0.25 * i * (1 + 0.46875 * i));
|
|
8949
8959
|
}
|
|
8950
|
-
function
|
|
8960
|
+
function le(i) {
|
|
8951
8961
|
return 0.05859375 * i * i * (1 + 0.75 * i);
|
|
8952
8962
|
}
|
|
8953
|
-
function
|
|
8963
|
+
function ue(i) {
|
|
8954
8964
|
return i * i * i * (35 / 3072);
|
|
8955
8965
|
}
|
|
8956
8966
|
function Si(i, s, n) {
|
|
@@ -8958,9 +8968,9 @@ function Si(i, s, n) {
|
|
|
8958
8968
|
return i / Math.sqrt(1 - r * r);
|
|
8959
8969
|
}
|
|
8960
8970
|
function ni(i) {
|
|
8961
|
-
return Math.abs(i) < C ? i : i -
|
|
8971
|
+
return Math.abs(i) < C ? i : i - oe(i) * Math.PI;
|
|
8962
8972
|
}
|
|
8963
|
-
function
|
|
8973
|
+
function Fe(i, s, n, r, o) {
|
|
8964
8974
|
var l, f;
|
|
8965
8975
|
l = i / s;
|
|
8966
8976
|
for (var c = 0; c < 15; c++)
|
|
@@ -8968,10 +8978,10 @@ function Ge(i, s, n, r, o) {
|
|
|
8968
8978
|
return l;
|
|
8969
8979
|
return NaN;
|
|
8970
8980
|
}
|
|
8971
|
-
function
|
|
8972
|
-
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));
|
|
8973
8983
|
}
|
|
8974
|
-
function
|
|
8984
|
+
function tu(i) {
|
|
8975
8985
|
var s, n, r = i.x, o = i.y;
|
|
8976
8986
|
if (r = O(r - this.long0), this.sphere)
|
|
8977
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);
|
|
@@ -8981,14 +8991,14 @@ function Yl(i) {
|
|
|
8981
8991
|
}
|
|
8982
8992
|
return i.x = s + this.x0, i.y = n + this.y0, i;
|
|
8983
8993
|
}
|
|
8984
|
-
function
|
|
8994
|
+
function iu(i) {
|
|
8985
8995
|
i.x -= this.x0, i.y -= this.y0;
|
|
8986
8996
|
var s = i.x / this.a, n = i.y / this.a, r, o;
|
|
8987
8997
|
if (this.sphere) {
|
|
8988
8998
|
var l = n + this.lat0;
|
|
8989
8999
|
r = Math.asin(Math.sin(l) * Math.cos(s)), o = Math.atan2(Math.tan(s), Math.cos(l));
|
|
8990
9000
|
} else {
|
|
8991
|
-
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);
|
|
8992
9002
|
if (Math.abs(Math.abs(c) - C) <= S)
|
|
8993
9003
|
return i.x = this.long0, i.y = C, n < 0 && (i.y *= -1), i;
|
|
8994
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;
|
|
@@ -8996,23 +9006,23 @@ function Jl(i) {
|
|
|
8996
9006
|
}
|
|
8997
9007
|
return i.x = O(o + this.long0), i.y = ni(r), i;
|
|
8998
9008
|
}
|
|
8999
|
-
var
|
|
9000
|
-
const
|
|
9001
|
-
init:
|
|
9002
|
-
forward:
|
|
9003
|
-
inverse:
|
|
9004
|
-
names:
|
|
9009
|
+
var eu = ["Cassini", "Cassini_Soldner", "cass"];
|
|
9010
|
+
const su = {
|
|
9011
|
+
init: Jl,
|
|
9012
|
+
forward: tu,
|
|
9013
|
+
inverse: iu,
|
|
9014
|
+
names: eu
|
|
9005
9015
|
};
|
|
9006
9016
|
function ii(i, s) {
|
|
9007
9017
|
var n;
|
|
9008
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;
|
|
9009
9019
|
}
|
|
9010
|
-
var
|
|
9011
|
-
function
|
|
9020
|
+
var nu = 1, au = 2, ou = 3, ru = 4;
|
|
9021
|
+
function hu() {
|
|
9012
9022
|
var i = Math.abs(this.lat0);
|
|
9013
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) {
|
|
9014
9024
|
var s;
|
|
9015
|
-
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) {
|
|
9016
9026
|
case this.N_POLE:
|
|
9017
9027
|
this.dd = 1;
|
|
9018
9028
|
break;
|
|
@@ -9029,7 +9039,7 @@ function ou() {
|
|
|
9029
9039
|
} else
|
|
9030
9040
|
this.mode === this.OBLIQ && (this.sinph0 = Math.sin(this.lat0), this.cosph0 = Math.cos(this.lat0));
|
|
9031
9041
|
}
|
|
9032
|
-
function
|
|
9042
|
+
function lu(i) {
|
|
9033
9043
|
var s, n, r, o, l, f, c, d, m, v, p = i.x, y = i.y;
|
|
9034
9044
|
if (p = O(p - this.long0), this.sphere) {
|
|
9035
9045
|
if (l = Math.sin(y), v = Math.cos(y), r = Math.cos(p), this.mode === this.OBLIQ || this.mode === this.EQUIT) {
|
|
@@ -9071,7 +9081,7 @@ function ru(i) {
|
|
|
9071
9081
|
}
|
|
9072
9082
|
return i.x = this.a * s + this.x0, i.y = this.a * n + this.y0, i;
|
|
9073
9083
|
}
|
|
9074
|
-
function
|
|
9084
|
+
function uu(i) {
|
|
9075
9085
|
i.x -= this.x0, i.y -= this.y0;
|
|
9076
9086
|
var s = i.x / this.a, n = i.y / this.a, r, o, l, f, c, d, m;
|
|
9077
9087
|
if (this.sphere) {
|
|
@@ -9103,47 +9113,47 @@ function hu(i) {
|
|
|
9103
9113
|
return i.x = this.long0, i.y = this.lat0, i;
|
|
9104
9114
|
m = 1 - c / this.qp, this.mode === this.S_POLE && (m = -m);
|
|
9105
9115
|
}
|
|
9106
|
-
r = Math.atan2(s, n), o =
|
|
9116
|
+
r = Math.atan2(s, n), o = vu(Math.asin(m), this.apa);
|
|
9107
9117
|
}
|
|
9108
9118
|
return i.x = O(this.long0 + r), i.y = o, i;
|
|
9109
9119
|
}
|
|
9110
|
-
var
|
|
9111
|
-
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) {
|
|
9112
9122
|
var s, n = [];
|
|
9113
|
-
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;
|
|
9114
9124
|
}
|
|
9115
|
-
function
|
|
9125
|
+
function vu(i, s) {
|
|
9116
9126
|
var n = i + i;
|
|
9117
9127
|
return i + s[0] * Math.sin(n) + s[1] * Math.sin(n + n) + s[2] * Math.sin(n + n + n);
|
|
9118
9128
|
}
|
|
9119
|
-
var
|
|
9120
|
-
const
|
|
9121
|
-
init:
|
|
9122
|
-
forward:
|
|
9123
|
-
inverse:
|
|
9124
|
-
names:
|
|
9125
|
-
S_POLE:
|
|
9126
|
-
N_POLE:
|
|
9127
|
-
EQUIT:
|
|
9128
|
-
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
|
|
9129
9139
|
};
|
|
9130
9140
|
function si(i) {
|
|
9131
9141
|
return Math.abs(i) > 1 && (i = i > 1 ? 1 : -1), Math.asin(i);
|
|
9132
9142
|
}
|
|
9133
|
-
function
|
|
9143
|
+
function xu() {
|
|
9134
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);
|
|
9135
9145
|
}
|
|
9136
|
-
function
|
|
9146
|
+
function wu(i) {
|
|
9137
9147
|
var s = i.x, n = i.y;
|
|
9138
9148
|
this.sin_phi = Math.sin(n), this.cos_phi = Math.cos(n);
|
|
9139
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;
|
|
9140
9150
|
return i.x = f, i.y = c, i;
|
|
9141
9151
|
}
|
|
9142
|
-
function
|
|
9152
|
+
function bu(i) {
|
|
9143
9153
|
var s, n, r, o, l, f;
|
|
9144
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;
|
|
9145
9155
|
}
|
|
9146
|
-
function
|
|
9156
|
+
function Lu(i, s) {
|
|
9147
9157
|
var n, r, o, l, f, c = si(0.5 * s);
|
|
9148
9158
|
if (i < S)
|
|
9149
9159
|
return c;
|
|
@@ -9152,33 +9162,33 @@ function wu(i, s) {
|
|
|
9152
9162
|
return c;
|
|
9153
9163
|
return null;
|
|
9154
9164
|
}
|
|
9155
|
-
var
|
|
9156
|
-
const
|
|
9157
|
-
init:
|
|
9158
|
-
forward:
|
|
9159
|
-
inverse:
|
|
9160
|
-
names:
|
|
9161
|
-
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
|
|
9162
9172
|
};
|
|
9163
|
-
function
|
|
9173
|
+
function Tu() {
|
|
9164
9174
|
this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0), this.infinity_dist = 1e3 * this.a, this.rc = 1;
|
|
9165
9175
|
}
|
|
9166
|
-
function
|
|
9176
|
+
function Cu(i) {
|
|
9167
9177
|
var s, n, r, o, l, f, c, d, m = i.x, v = i.y;
|
|
9168
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;
|
|
9169
9179
|
}
|
|
9170
|
-
function
|
|
9180
|
+
function Eu(i) {
|
|
9171
9181
|
var s, n, r, o, l, f;
|
|
9172
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;
|
|
9173
9183
|
}
|
|
9174
|
-
var
|
|
9175
|
-
const
|
|
9176
|
-
init:
|
|
9177
|
-
forward:
|
|
9178
|
-
inverse:
|
|
9179
|
-
names:
|
|
9184
|
+
var Su = ["gnom"];
|
|
9185
|
+
const Ou = {
|
|
9186
|
+
init: Tu,
|
|
9187
|
+
forward: Cu,
|
|
9188
|
+
inverse: Eu,
|
|
9189
|
+
names: Su
|
|
9180
9190
|
};
|
|
9181
|
-
function
|
|
9191
|
+
function Iu(i, s) {
|
|
9182
9192
|
var n = 1 - (1 - i * i) / (2 * i) * Math.log((1 - i) / (1 + i));
|
|
9183
9193
|
if (Math.abs(Math.abs(s) - n) < 1e-6)
|
|
9184
9194
|
return s < 0 ? -1 * C : C;
|
|
@@ -9187,10 +9197,10 @@ function Su(i, s) {
|
|
|
9187
9197
|
return r;
|
|
9188
9198
|
return NaN;
|
|
9189
9199
|
}
|
|
9190
|
-
function
|
|
9200
|
+
function zu() {
|
|
9191
9201
|
this.sphere || (this.k0 = jt(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)));
|
|
9192
9202
|
}
|
|
9193
|
-
function
|
|
9203
|
+
function Nu(i) {
|
|
9194
9204
|
var s = i.x, n = i.y, r, o, l = O(s - this.long0);
|
|
9195
9205
|
if (this.sphere)
|
|
9196
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);
|
|
@@ -9200,41 +9210,41 @@ function Iu(i) {
|
|
|
9200
9210
|
}
|
|
9201
9211
|
return i.x = r, i.y = o, i;
|
|
9202
9212
|
}
|
|
9203
|
-
function
|
|
9213
|
+
function ku(i) {
|
|
9204
9214
|
i.x -= this.x0, i.y -= this.y0;
|
|
9205
9215
|
var s, n;
|
|
9206
|
-
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 =
|
|
9207
|
-
}
|
|
9208
|
-
var
|
|
9209
|
-
const
|
|
9210
|
-
init:
|
|
9211
|
-
forward:
|
|
9212
|
-
inverse:
|
|
9213
|
-
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
|
|
9214
9224
|
};
|
|
9215
|
-
function
|
|
9225
|
+
function Du() {
|
|
9216
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);
|
|
9217
9227
|
}
|
|
9218
|
-
function
|
|
9228
|
+
function Zu(i) {
|
|
9219
9229
|
var s = i.x, n = i.y, r = O(s - this.long0), o = ni(n - this.lat0);
|
|
9220
9230
|
return i.x = this.x0 + this.a * r * this.rc, i.y = this.y0 + this.a * o, i;
|
|
9221
9231
|
}
|
|
9222
|
-
function
|
|
9232
|
+
function Fu(i) {
|
|
9223
9233
|
var s = i.x, n = i.y;
|
|
9224
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;
|
|
9225
9235
|
}
|
|
9226
|
-
var
|
|
9227
|
-
const
|
|
9228
|
-
init:
|
|
9229
|
-
forward:
|
|
9230
|
-
inverse:
|
|
9231
|
-
names:
|
|
9236
|
+
var Gu = ["Equirectangular", "Equidistant_Cylindrical", "eqc"];
|
|
9237
|
+
const qu = {
|
|
9238
|
+
init: Du,
|
|
9239
|
+
forward: Zu,
|
|
9240
|
+
inverse: Fu,
|
|
9241
|
+
names: Gu
|
|
9232
9242
|
};
|
|
9233
9243
|
var Ma = 20;
|
|
9234
|
-
function
|
|
9235
|
-
this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 =
|
|
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);
|
|
9236
9246
|
}
|
|
9237
|
-
function
|
|
9247
|
+
function ju(i) {
|
|
9238
9248
|
var s = i.x, n = i.y, r, o, l, f = O(s - this.long0);
|
|
9239
9249
|
if (l = f * Math.sin(n), this.sphere)
|
|
9240
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)));
|
|
@@ -9246,7 +9256,7 @@ function qu(i) {
|
|
|
9246
9256
|
}
|
|
9247
9257
|
return i.x = r + this.x0, i.y = o + this.y0, i;
|
|
9248
9258
|
}
|
|
9249
|
-
function
|
|
9259
|
+
function Hu(i) {
|
|
9250
9260
|
var s, n, r, o, l, f, c, d, m;
|
|
9251
9261
|
if (r = i.x - this.x0, o = i.y - this.y0, this.sphere)
|
|
9252
9262
|
if (Math.abs(o + this.a * this.lat0) <= S)
|
|
@@ -9275,18 +9285,18 @@ function Uu(i) {
|
|
|
9275
9285
|
}
|
|
9276
9286
|
return i.x = s, i.y = n, i;
|
|
9277
9287
|
}
|
|
9278
|
-
var
|
|
9279
|
-
const
|
|
9280
|
-
init:
|
|
9281
|
-
forward:
|
|
9282
|
-
inverse:
|
|
9283
|
-
names:
|
|
9288
|
+
var Wu = ["Polyconic", "poly"];
|
|
9289
|
+
const $u = {
|
|
9290
|
+
init: Uu,
|
|
9291
|
+
forward: ju,
|
|
9292
|
+
inverse: Hu,
|
|
9293
|
+
names: Wu
|
|
9284
9294
|
};
|
|
9285
|
-
function
|
|
9295
|
+
function Vu() {
|
|
9286
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;
|
|
9287
9297
|
}
|
|
9288
|
-
function
|
|
9289
|
-
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;
|
|
9290
9300
|
for (s = 1; s <= 10; s++)
|
|
9291
9301
|
d = d * f, m = m + this.A[s] * d;
|
|
9292
9302
|
var v = m, p = c, y = 1, b = 0, A, P, E = 0, z = 0;
|
|
@@ -9294,7 +9304,7 @@ function $u(i) {
|
|
|
9294
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;
|
|
9295
9305
|
return i.x = z * this.a + this.x0, i.y = E * this.a + this.y0, i;
|
|
9296
9306
|
}
|
|
9297
|
-
function
|
|
9307
|
+
function Xu(i) {
|
|
9298
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;
|
|
9299
9309
|
for (s = 1; s <= 6; s++)
|
|
9300
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;
|
|
@@ -9312,45 +9322,45 @@ function Vu(i) {
|
|
|
9312
9322
|
var tt = y, Mt = b, Bt = 1, nt = 0;
|
|
9313
9323
|
for (s = 1; s <= 9; s++)
|
|
9314
9324
|
Bt = Bt * tt, nt = nt + this.D[s] * Bt;
|
|
9315
|
-
var dt = this.lat0 + nt *
|
|
9316
|
-
return i.x =
|
|
9317
|
-
}
|
|
9318
|
-
var
|
|
9319
|
-
const
|
|
9320
|
-
init:
|
|
9321
|
-
forward:
|
|
9322
|
-
inverse:
|
|
9323
|
-
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
|
|
9324
9334
|
};
|
|
9325
|
-
function
|
|
9335
|
+
function Ju() {
|
|
9326
9336
|
}
|
|
9327
|
-
function
|
|
9337
|
+
function tc(i) {
|
|
9328
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;
|
|
9329
9339
|
return i.x = o, i.y = l, i;
|
|
9330
9340
|
}
|
|
9331
|
-
function
|
|
9341
|
+
function ic(i) {
|
|
9332
9342
|
i.x -= this.x0, i.y -= this.y0;
|
|
9333
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);
|
|
9334
9344
|
return i.x = s, i.y = n, i;
|
|
9335
9345
|
}
|
|
9336
|
-
var
|
|
9337
|
-
const
|
|
9338
|
-
init:
|
|
9339
|
-
forward:
|
|
9340
|
-
inverse:
|
|
9341
|
-
names:
|
|
9346
|
+
var ec = ["Miller_Cylindrical", "mill"];
|
|
9347
|
+
const sc = {
|
|
9348
|
+
init: Ju,
|
|
9349
|
+
forward: tc,
|
|
9350
|
+
inverse: ic,
|
|
9351
|
+
names: ec
|
|
9342
9352
|
};
|
|
9343
|
-
var
|
|
9344
|
-
function
|
|
9353
|
+
var nc = 20;
|
|
9354
|
+
function ac() {
|
|
9345
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);
|
|
9346
9356
|
}
|
|
9347
|
-
function
|
|
9357
|
+
function oc(i) {
|
|
9348
9358
|
var s, n, r = i.x, o = i.y;
|
|
9349
9359
|
if (r = O(r - this.long0), this.sphere) {
|
|
9350
9360
|
if (!this.m)
|
|
9351
9361
|
o = this.n !== 1 ? Math.asin(this.n * Math.sin(o)) : o;
|
|
9352
9362
|
else
|
|
9353
|
-
for (var l = this.n * Math.sin(o), f =
|
|
9363
|
+
for (var l = this.n * Math.sin(o), f = nc; f; --f) {
|
|
9354
9364
|
var c = (this.m * o + Math.sin(o) - l) / (this.m + Math.cos(o));
|
|
9355
9365
|
if (o -= c, Math.abs(c) < S)
|
|
9356
9366
|
break;
|
|
@@ -9362,20 +9372,20 @@ function nc(i) {
|
|
|
9362
9372
|
}
|
|
9363
9373
|
return i.x = s, i.y = n, i;
|
|
9364
9374
|
}
|
|
9365
|
-
function
|
|
9375
|
+
function rc(i) {
|
|
9366
9376
|
var s, n, r, o;
|
|
9367
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;
|
|
9368
9378
|
}
|
|
9369
|
-
var
|
|
9370
|
-
const
|
|
9371
|
-
init:
|
|
9372
|
-
forward:
|
|
9373
|
-
inverse:
|
|
9374
|
-
names:
|
|
9379
|
+
var hc = ["Sinusoidal", "sinu"];
|
|
9380
|
+
const lc = {
|
|
9381
|
+
init: ac,
|
|
9382
|
+
forward: oc,
|
|
9383
|
+
inverse: rc,
|
|
9384
|
+
names: hc
|
|
9375
9385
|
};
|
|
9376
|
-
function
|
|
9386
|
+
function uc() {
|
|
9377
9387
|
}
|
|
9378
|
-
function
|
|
9388
|
+
function cc(i) {
|
|
9379
9389
|
for (var s = i.x, n = i.y, r = O(s - this.long0), o = n, l = Math.PI * Math.sin(n); ; ) {
|
|
9380
9390
|
var f = -(o + Math.sin(o) - l) / (1 + Math.cos(o));
|
|
9381
9391
|
if (o += f, Math.abs(f) < S)
|
|
@@ -9385,7 +9395,7 @@ function lc(i) {
|
|
|
9385
9395
|
var c = 0.900316316158 * this.a * r * Math.cos(o) + this.x0, d = 1.4142135623731 * this.a * Math.sin(o) + this.y0;
|
|
9386
9396
|
return i.x = c, i.y = d, i;
|
|
9387
9397
|
}
|
|
9388
|
-
function
|
|
9398
|
+
function fc(i) {
|
|
9389
9399
|
var s, n;
|
|
9390
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);
|
|
9391
9401
|
var r = O(this.long0 + i.x / (0.900316316158 * this.a * Math.cos(s)));
|
|
@@ -9393,17 +9403,17 @@ function uc(i) {
|
|
|
9393
9403
|
var o = Math.asin(n);
|
|
9394
9404
|
return i.x = r, i.y = o, i;
|
|
9395
9405
|
}
|
|
9396
|
-
var
|
|
9397
|
-
const
|
|
9398
|
-
init:
|
|
9399
|
-
forward:
|
|
9400
|
-
inverse:
|
|
9401
|
-
names:
|
|
9406
|
+
var dc = ["Mollweide", "moll"];
|
|
9407
|
+
const _c = {
|
|
9408
|
+
init: uc,
|
|
9409
|
+
forward: cc,
|
|
9410
|
+
inverse: fc,
|
|
9411
|
+
names: dc
|
|
9402
9412
|
};
|
|
9403
|
-
function
|
|
9404
|
-
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));
|
|
9405
9415
|
}
|
|
9406
|
-
function
|
|
9416
|
+
function pc(i) {
|
|
9407
9417
|
var s = i.x, n = i.y, r;
|
|
9408
9418
|
if (this.sphere)
|
|
9409
9419
|
r = this.a * (this.g - n);
|
|
@@ -9414,7 +9424,7 @@ function _c(i) {
|
|
|
9414
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);
|
|
9415
9425
|
return i.x = f, i.y = c, i;
|
|
9416
9426
|
}
|
|
9417
|
-
function
|
|
9427
|
+
function gc(i) {
|
|
9418
9428
|
i.x -= this.x0, i.y = this.rh - i.y + this.y0;
|
|
9419
9429
|
var s, n, r, o;
|
|
9420
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);
|
|
@@ -9422,19 +9432,19 @@ function mc(i) {
|
|
|
9422
9432
|
if (n !== 0 && (l = Math.atan2(s * i.x, s * i.y)), this.sphere)
|
|
9423
9433
|
return o = O(this.long0 + l / this.ns), r = ni(this.g - n / this.a), i.x = o, i.y = r, i;
|
|
9424
9434
|
var f = this.g - n / this.a;
|
|
9425
|
-
return r =
|
|
9426
|
-
}
|
|
9427
|
-
var
|
|
9428
|
-
const
|
|
9429
|
-
init:
|
|
9430
|
-
forward:
|
|
9431
|
-
inverse:
|
|
9432
|
-
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
|
|
9433
9443
|
};
|
|
9434
|
-
function
|
|
9444
|
+
function Mc() {
|
|
9435
9445
|
this.R = this.a;
|
|
9436
9446
|
}
|
|
9437
|
-
function
|
|
9447
|
+
function xc(i) {
|
|
9438
9448
|
var s = i.x, n = i.y, r = O(s - this.long0), o, l;
|
|
9439
9449
|
Math.abs(n) <= S && (o = this.x0 + this.R * r, l = this.y0);
|
|
9440
9450
|
var f = si(2 * Math.abs(n / Math.PI));
|
|
@@ -9444,53 +9454,53 @@ function yc(i) {
|
|
|
9444
9454
|
var E = d + p;
|
|
9445
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;
|
|
9446
9456
|
}
|
|
9447
|
-
function
|
|
9457
|
+
function wc(i) {
|
|
9448
9458
|
var s, n, r, o, l, f, c, d, m, v, p, y, b;
|
|
9449
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;
|
|
9450
9460
|
}
|
|
9451
|
-
var
|
|
9452
|
-
const
|
|
9453
|
-
init:
|
|
9454
|
-
forward:
|
|
9455
|
-
inverse:
|
|
9456
|
-
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
|
|
9457
9467
|
};
|
|
9458
|
-
function
|
|
9468
|
+
function Pc() {
|
|
9459
9469
|
this.sin_p12 = Math.sin(this.lat0), this.cos_p12 = Math.cos(this.lat0);
|
|
9460
9470
|
}
|
|
9461
|
-
function
|
|
9471
|
+
function Ac(i) {
|
|
9462
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;
|
|
9463
|
-
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));
|
|
9464
9474
|
}
|
|
9465
|
-
function
|
|
9475
|
+
function Tc(i) {
|
|
9466
9476
|
i.x -= this.x0, i.y -= this.y0;
|
|
9467
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;
|
|
9468
|
-
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 =
|
|
9469
|
-
}
|
|
9470
|
-
var
|
|
9471
|
-
const
|
|
9472
|
-
init:
|
|
9473
|
-
forward:
|
|
9474
|
-
inverse:
|
|
9475
|
-
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
|
|
9476
9486
|
};
|
|
9477
|
-
function
|
|
9487
|
+
function Sc() {
|
|
9478
9488
|
this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0);
|
|
9479
9489
|
}
|
|
9480
|
-
function
|
|
9490
|
+
function Oc(i) {
|
|
9481
9491
|
var s, n, r, o, l, f, c, d, m = i.x, v = i.y;
|
|
9482
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;
|
|
9483
9493
|
}
|
|
9484
|
-
function
|
|
9494
|
+
function Ic(i) {
|
|
9485
9495
|
var s, n, r, o, l, f, c;
|
|
9486
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));
|
|
9487
9497
|
}
|
|
9488
|
-
var
|
|
9489
|
-
const
|
|
9490
|
-
init:
|
|
9491
|
-
forward:
|
|
9492
|
-
inverse:
|
|
9493
|
-
names:
|
|
9498
|
+
var zc = ["ortho"];
|
|
9499
|
+
const Nc = {
|
|
9500
|
+
init: Sc,
|
|
9501
|
+
forward: Oc,
|
|
9502
|
+
inverse: Ic,
|
|
9503
|
+
names: zc
|
|
9494
9504
|
};
|
|
9495
9505
|
var st = {
|
|
9496
9506
|
FRONT: 1,
|
|
@@ -9505,10 +9515,10 @@ var st = {
|
|
|
9505
9515
|
AREA_2: 3,
|
|
9506
9516
|
AREA_3: 4
|
|
9507
9517
|
};
|
|
9508
|
-
function
|
|
9518
|
+
function kc() {
|
|
9509
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);
|
|
9510
9520
|
}
|
|
9511
|
-
function
|
|
9521
|
+
function Bc(i) {
|
|
9512
9522
|
var s = { x: 0, y: 0 }, n, r, o, l, f, c, d = { value: 0 };
|
|
9513
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)
|
|
9514
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);
|
|
@@ -9516,11 +9526,11 @@ function Nc(i) {
|
|
|
9516
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);
|
|
9517
9527
|
else {
|
|
9518
9528
|
var m, v, p, y, b, A, P;
|
|
9519
|
-
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);
|
|
9520
9530
|
}
|
|
9521
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;
|
|
9522
9532
|
}
|
|
9523
|
-
function
|
|
9533
|
+
function Rc(i) {
|
|
9524
9534
|
var s = { lam: 0, phi: 0 }, n, r, o, l, f, c, d, m, v, p = { value: 0 };
|
|
9525
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)
|
|
9526
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;
|
|
@@ -9536,20 +9546,20 @@ function kc(i) {
|
|
|
9536
9546
|
}
|
|
9537
9547
|
return s.lam += this.long0, i.x = s.lam, i.y = s.phi, i;
|
|
9538
9548
|
}
|
|
9539
|
-
function
|
|
9549
|
+
function Ie(i, s, n, r) {
|
|
9540
9550
|
var o;
|
|
9541
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;
|
|
9542
9552
|
}
|
|
9543
9553
|
function Ci(i, s) {
|
|
9544
9554
|
var n = i + s;
|
|
9545
|
-
return n < -ot ? n +=
|
|
9546
|
-
}
|
|
9547
|
-
var
|
|
9548
|
-
const
|
|
9549
|
-
init:
|
|
9550
|
-
forward:
|
|
9551
|
-
inverse:
|
|
9552
|
-
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
|
|
9553
9563
|
};
|
|
9554
9564
|
var Is = [
|
|
9555
9565
|
[1, 22199e-21, -715515e-10, 31103e-10],
|
|
@@ -9591,12 +9601,12 @@ var Is = [
|
|
|
9591
9601
|
[0.9394, 840947e-8, -192841e-9, -42106e-10],
|
|
9592
9602
|
[0.9761, 616527e-8, -256e-6, -42106e-10],
|
|
9593
9603
|
[1, 328947e-8, -319159e-9, -42106e-10]
|
|
9594
|
-
], 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) {
|
|
9595
9605
|
return i[0] + s * (i[1] + s * (i[2] + s * i[3]));
|
|
9596
|
-
},
|
|
9606
|
+
}, Gc = function(i, s) {
|
|
9597
9607
|
return i[1] + s * (2 * i[2] + s * 3 * i[3]);
|
|
9598
9608
|
};
|
|
9599
|
-
function
|
|
9609
|
+
function qc(i, s, n, r) {
|
|
9600
9610
|
for (var o = s; r; --r) {
|
|
9601
9611
|
var l = i(o);
|
|
9602
9612
|
if (o -= l, Math.abs(l) < n)
|
|
@@ -9604,19 +9614,19 @@ function Fc(i, s, n, r) {
|
|
|
9604
9614
|
}
|
|
9605
9615
|
return o;
|
|
9606
9616
|
}
|
|
9607
|
-
function
|
|
9617
|
+
function Uc() {
|
|
9608
9618
|
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.long0 = this.long0 || 0, this.es = 0, this.title = this.title || "Robinson";
|
|
9609
9619
|
}
|
|
9610
|
-
function
|
|
9620
|
+
function jc(i) {
|
|
9611
9621
|
var s = O(i.x - this.long0), n = Math.abs(i.y), r = Math.floor(n * Ha);
|
|
9612
|
-
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);
|
|
9613
9623
|
var o = {
|
|
9614
|
-
x:
|
|
9615
|
-
y:
|
|
9624
|
+
x: Ge(Is[r], n) * s,
|
|
9625
|
+
y: Ge(Xi[r], n)
|
|
9616
9626
|
};
|
|
9617
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;
|
|
9618
9628
|
}
|
|
9619
|
-
function
|
|
9629
|
+
function Hc(i) {
|
|
9620
9630
|
var s = {
|
|
9621
9631
|
x: (i.x - this.x0) / (this.a * Ua),
|
|
9622
9632
|
y: Math.abs(i.y - this.y0) / (this.a * ja)
|
|
@@ -9633,36 +9643,36 @@ function Uc(i) {
|
|
|
9633
9643
|
else
|
|
9634
9644
|
break;
|
|
9635
9645
|
var r = Xi[n], o = 5 * (s.y - r[0]) / (Xi[n + 1][0] - r[0]);
|
|
9636
|
-
o =
|
|
9637
|
-
return (
|
|
9638
|
-
}, 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);
|
|
9639
9649
|
}
|
|
9640
9650
|
return s.x = O(s.x + this.long0), s;
|
|
9641
9651
|
}
|
|
9642
|
-
var
|
|
9643
|
-
const
|
|
9644
|
-
init:
|
|
9645
|
-
forward:
|
|
9646
|
-
inverse:
|
|
9647
|
-
names:
|
|
9652
|
+
var Wc = ["Robinson", "robin"];
|
|
9653
|
+
const $c = {
|
|
9654
|
+
init: Uc,
|
|
9655
|
+
forward: jc,
|
|
9656
|
+
inverse: Hc,
|
|
9657
|
+
names: Wc
|
|
9648
9658
|
};
|
|
9649
|
-
function
|
|
9659
|
+
function Vc() {
|
|
9650
9660
|
this.name = "geocent";
|
|
9651
9661
|
}
|
|
9652
|
-
function
|
|
9662
|
+
function Qc(i) {
|
|
9653
9663
|
var s = Ia(i, this.es, this.a);
|
|
9654
9664
|
return s;
|
|
9655
9665
|
}
|
|
9656
|
-
function
|
|
9666
|
+
function Xc(i) {
|
|
9657
9667
|
var s = za(i, this.es, this.a, this.b);
|
|
9658
9668
|
return s;
|
|
9659
9669
|
}
|
|
9660
|
-
var
|
|
9661
|
-
const
|
|
9662
|
-
init:
|
|
9663
|
-
forward:
|
|
9664
|
-
inverse:
|
|
9665
|
-
names:
|
|
9670
|
+
var Kc = ["Geocentric", "geocentric", "geocent", "Geocent"];
|
|
9671
|
+
const Yc = {
|
|
9672
|
+
init: Vc,
|
|
9673
|
+
forward: Qc,
|
|
9674
|
+
inverse: Xc,
|
|
9675
|
+
names: Kc
|
|
9666
9676
|
};
|
|
9667
9677
|
var pt = {
|
|
9668
9678
|
N_POLE: 0,
|
|
@@ -9681,7 +9691,7 @@ var pt = {
|
|
|
9681
9691
|
lat0: { def: 0, num: !0 }
|
|
9682
9692
|
// default is Equator, conversion to rad is automatic
|
|
9683
9693
|
};
|
|
9684
|
-
function
|
|
9694
|
+
function Jc() {
|
|
9685
9695
|
if (Object.keys($i).forEach((function(n) {
|
|
9686
9696
|
if (typeof this[n] > "u")
|
|
9687
9697
|
this[n] = $i[n].def;
|
|
@@ -9697,7 +9707,7 @@ function Kc() {
|
|
|
9697
9707
|
var i = this.tilt, s = this.azi;
|
|
9698
9708
|
this.cg = Math.cos(s), this.sg = Math.sin(s), this.cw = Math.cos(i), this.sw = Math.sin(i);
|
|
9699
9709
|
}
|
|
9700
|
-
function
|
|
9710
|
+
function tf(i) {
|
|
9701
9711
|
i.x -= this.long0;
|
|
9702
9712
|
var s = Math.sin(i.y), n = Math.cos(i.y), r = Math.cos(i.x), o, l;
|
|
9703
9713
|
switch (this.mode) {
|
|
@@ -9731,7 +9741,7 @@ function Yc(i) {
|
|
|
9731
9741
|
var f, c;
|
|
9732
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;
|
|
9733
9743
|
}
|
|
9734
|
-
function
|
|
9744
|
+
function ef(i) {
|
|
9735
9745
|
i.x /= this.a, i.y /= this.a;
|
|
9736
9746
|
var s = { x: i.x, y: i.y }, n, r, o;
|
|
9737
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;
|
|
@@ -9758,14 +9768,14 @@ function Jc(i) {
|
|
|
9758
9768
|
}
|
|
9759
9769
|
return i.x = s.x + this.long0, i.y = s.y, i;
|
|
9760
9770
|
}
|
|
9761
|
-
var
|
|
9762
|
-
const
|
|
9763
|
-
init:
|
|
9764
|
-
forward:
|
|
9765
|
-
inverse:
|
|
9766
|
-
names:
|
|
9771
|
+
var sf = ["Tilted_Perspective", "tpers"];
|
|
9772
|
+
const nf = {
|
|
9773
|
+
init: Jc,
|
|
9774
|
+
forward: tf,
|
|
9775
|
+
inverse: ef,
|
|
9776
|
+
names: sf
|
|
9767
9777
|
};
|
|
9768
|
-
function
|
|
9778
|
+
function af() {
|
|
9769
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)
|
|
9770
9780
|
throw new Error();
|
|
9771
9781
|
if (this.radius_g = 1 + this.radius_g_1, this.C = this.radius_g * this.radius_g - 1, this.es !== 0) {
|
|
@@ -9775,7 +9785,7 @@ function sf() {
|
|
|
9775
9785
|
this.radius_p = 1, this.radius_p2 = 1, this.radius_p_inv2 = 1, this.shape = "sphere";
|
|
9776
9786
|
this.title || (this.title = "Geostationary Satellite View");
|
|
9777
9787
|
}
|
|
9778
|
-
function
|
|
9788
|
+
function of(i) {
|
|
9779
9789
|
var s = i.x, n = i.y, r, o, l, f;
|
|
9780
9790
|
if (s = s - this.long0, this.shape === "ellipse") {
|
|
9781
9791
|
n = Math.atan(this.radius_p2 * Math.tan(n));
|
|
@@ -9786,7 +9796,7 @@ function nf(i) {
|
|
|
9786
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))));
|
|
9787
9797
|
return i.x = i.x * this.a, i.y = i.y * this.a, i;
|
|
9788
9798
|
}
|
|
9789
|
-
function
|
|
9799
|
+
function rf(i) {
|
|
9790
9800
|
var s = -1, n = 0, r = 0, o, l, f, c;
|
|
9791
9801
|
if (i.x = i.x / this.a, i.y = i.y / this.a, this.shape === "ellipse") {
|
|
9792
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));
|
|
@@ -9801,80 +9811,80 @@ function af(i) {
|
|
|
9801
9811
|
}
|
|
9802
9812
|
return i.x = i.x + this.long0, i;
|
|
9803
9813
|
}
|
|
9804
|
-
var
|
|
9805
|
-
const
|
|
9806
|
-
init:
|
|
9807
|
-
forward:
|
|
9808
|
-
inverse:
|
|
9809
|
-
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
|
|
9810
9820
|
};
|
|
9811
|
-
var
|
|
9812
|
-
function
|
|
9821
|
+
var Yi = 1.340264, Ji = -0.081106, te = 893e-6, ie = 3796e-6, qe = Math.sqrt(3) / 2;
|
|
9822
|
+
function uf() {
|
|
9813
9823
|
this.es = 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0;
|
|
9814
9824
|
}
|
|
9815
|
-
function
|
|
9816
|
-
var s = O(i.x - this.long0), n = i.y, r = Math.asin(
|
|
9817
|
-
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;
|
|
9818
9828
|
}
|
|
9819
|
-
function
|
|
9829
|
+
function ff(i) {
|
|
9820
9830
|
i.x = (i.x - this.x0) / this.a, i.y = (i.y - this.y0) / this.a;
|
|
9821
9831
|
var s = 1e-9, n = 12, r = i.y, o, l, f, c, d, m;
|
|
9822
|
-
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)
|
|
9823
9833
|
;
|
|
9824
|
-
return o = r * r, l = o * o * o, i.x =
|
|
9825
|
-
}
|
|
9826
|
-
var
|
|
9827
|
-
const
|
|
9828
|
-
init:
|
|
9829
|
-
forward:
|
|
9830
|
-
inverse:
|
|
9831
|
-
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
|
|
9832
9842
|
};
|
|
9833
|
-
var
|
|
9834
|
-
function
|
|
9843
|
+
var ae = 1e-10;
|
|
9844
|
+
function mf() {
|
|
9835
9845
|
var i;
|
|
9836
|
-
if (this.phi1 = this.lat1, Math.abs(this.phi1) <
|
|
9846
|
+
if (this.phi1 = this.lat1, Math.abs(this.phi1) < ae)
|
|
9837
9847
|
throw new Error();
|
|
9838
9848
|
this.es ? (this.en = Bs(this.es), this.m1 = Oi(
|
|
9839
9849
|
this.phi1,
|
|
9840
9850
|
this.am1 = Math.sin(this.phi1),
|
|
9841
9851
|
i = Math.cos(this.phi1),
|
|
9842
9852
|
this.en
|
|
9843
|
-
), 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);
|
|
9844
9854
|
}
|
|
9845
|
-
function
|
|
9855
|
+
function pf(i) {
|
|
9846
9856
|
var s = O(i.x - (this.long0 || 0)), n = i.y, r, o, l;
|
|
9847
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;
|
|
9848
9858
|
}
|
|
9849
|
-
function
|
|
9859
|
+
function gf(i) {
|
|
9850
9860
|
i.x = (i.x - (this.x0 || 0)) / this.a, i.y = (i.y - (this.y0 || 0)) / this.a;
|
|
9851
9861
|
var s, n, r, o;
|
|
9852
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)
|
|
9853
9863
|
s = Math.sin(o), r = n * Math.atan2(i.x, i.y) * Math.sqrt(1 - this.es * s * s) / Math.cos(o);
|
|
9854
|
-
else if (Math.abs(s - C) <=
|
|
9864
|
+
else if (Math.abs(s - C) <= ae)
|
|
9855
9865
|
r = 0;
|
|
9856
9866
|
else
|
|
9857
9867
|
throw new Error();
|
|
9858
9868
|
return i.x = O(r + (this.long0 || 0)), i.y = ni(o), i;
|
|
9859
9869
|
}
|
|
9860
|
-
function
|
|
9870
|
+
function vf(i) {
|
|
9861
9871
|
var s = O(i.x - (this.long0 || 0)), n = i.y, r, o;
|
|
9862
|
-
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;
|
|
9863
9873
|
}
|
|
9864
|
-
function
|
|
9874
|
+
function yf(i) {
|
|
9865
9875
|
i.x = (i.x - (this.x0 || 0)) / this.a, i.y = (i.y - (this.y0 || 0)) / this.a;
|
|
9866
9876
|
var s, n, r = Pt(i.x, i.y = this.cphi1 - i.y);
|
|
9867
9877
|
if (n = this.cphi1 + this.phi1 - r, Math.abs(n) > C)
|
|
9868
9878
|
throw new Error();
|
|
9869
|
-
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;
|
|
9870
9880
|
}
|
|
9871
|
-
var
|
|
9872
|
-
const
|
|
9873
|
-
init:
|
|
9874
|
-
names:
|
|
9881
|
+
var Mf = ["bonne", "Bonne (Werner lat_1=90)"];
|
|
9882
|
+
const xf = {
|
|
9883
|
+
init: mf,
|
|
9884
|
+
names: Mf
|
|
9875
9885
|
};
|
|
9876
|
-
function
|
|
9877
|
-
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);
|
|
9878
9888
|
}
|
|
9879
9889
|
Ct.defaultDatum = "WGS84";
|
|
9880
9890
|
Ct.Proj = Ut;
|
|
@@ -9882,19 +9892,19 @@ Ct.WGS84 = new Ct.Proj("WGS84");
|
|
|
9882
9892
|
Ct.Point = Ei;
|
|
9883
9893
|
Ct.toPoint = Na;
|
|
9884
9894
|
Ct.defs = vt;
|
|
9885
|
-
Ct.nadgrid =
|
|
9886
|
-
Ct.transform =
|
|
9887
|
-
Ct.mgrs =
|
|
9895
|
+
Ct.nadgrid = gh;
|
|
9896
|
+
Ct.transform = Ze;
|
|
9897
|
+
Ct.mgrs = zh;
|
|
9888
9898
|
Ct.version = "__VERSION__";
|
|
9889
|
-
|
|
9890
|
-
const
|
|
9899
|
+
wf(Ct);
|
|
9900
|
+
const bf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9891
9901
|
__proto__: null,
|
|
9892
9902
|
default: Ct
|
|
9893
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
9903
|
+
}, Symbol.toStringTag, { value: "Module" })), Lf = /* @__PURE__ */ Lr(bf);
|
|
9894
9904
|
(function(i) {
|
|
9895
9905
|
(function(s) {
|
|
9896
9906
|
var n, r;
|
|
9897
|
-
n = xa(), r =
|
|
9907
|
+
n = xa(), r = Lf, i.exports = s(n, r);
|
|
9898
9908
|
})(function(s, n) {
|
|
9899
9909
|
return n.__esModule && n.default && (n = n.default), s.Proj = {}, s.Proj._isProj4Obj = function(r) {
|
|
9900
9910
|
return typeof r.inverse < "u" && typeof r.forward < "u";
|
|
@@ -10007,7 +10017,7 @@ const xf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10007
10017
|
return new s.Proj.ImageOverlay(r, o, l);
|
|
10008
10018
|
}, s.Proj;
|
|
10009
10019
|
});
|
|
10010
|
-
})(
|
|
10020
|
+
})(Or);
|
|
10011
10021
|
const Wa = new M.Proj.CRS(
|
|
10012
10022
|
"EPSG:900913",
|
|
10013
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",
|
|
@@ -10022,7 +10032,7 @@ const Wa = new M.Proj.CRS(
|
|
|
10022
10032
|
origin: [0, 0],
|
|
10023
10033
|
bounds: M.bounds([20037508342789244e-9, 0], [0, 20037508342789244e-9])
|
|
10024
10034
|
}
|
|
10025
|
-
),
|
|
10035
|
+
), Pf = M.Layer.extend({
|
|
10026
10036
|
provide: {
|
|
10027
10037
|
TDT: "tdt",
|
|
10028
10038
|
BAIDU: "bd",
|
|
@@ -10085,13 +10095,13 @@ const Wa = new M.Proj.CRS(
|
|
|
10085
10095
|
}
|
|
10086
10096
|
}), this.options.provide) {
|
|
10087
10097
|
case this.provide.TDT:
|
|
10088
|
-
s = { subdomains:
|
|
10098
|
+
s = { subdomains: Ps.create(8), maxNativeZoom: 18, minZoom: 0, maxZoom: this.map.getMaxZoom() };
|
|
10089
10099
|
break;
|
|
10090
10100
|
case this.provide.BAIDU:
|
|
10091
|
-
s = { subdomains:
|
|
10101
|
+
s = { subdomains: Ps.create(10), tms: !0, corrdType: "bd09", maxNativeZoom: 19, minZoom: 0, maxZoom: this.map.getMaxZoom() };
|
|
10092
10102
|
break;
|
|
10093
10103
|
case this.provide.GAODE:
|
|
10094
|
-
s = { subdomains:
|
|
10104
|
+
s = { subdomains: Ps.create(4).map((n) => n + 1), corrdType: "gcj02", maxNativeZoom: 18, minZoom: 0, maxZoom: this.map.getMaxZoom() };
|
|
10095
10105
|
break;
|
|
10096
10106
|
case this.provide.YANDEX:
|
|
10097
10107
|
s = { maxNativeZoom: 18, minZoom: 0, maxZoom: this.map.getMaxZoom() };
|
|
@@ -10229,7 +10239,7 @@ const Wa = new M.Proj.CRS(
|
|
|
10229
10239
|
this.replaceProjection(), this.tileLayers = s.addTo(this.map);
|
|
10230
10240
|
}, 500);
|
|
10231
10241
|
}
|
|
10232
|
-
}),
|
|
10242
|
+
}), Af = M.ImageOverlay.extend({
|
|
10233
10243
|
initialize(i, s, n, r) {
|
|
10234
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);
|
|
10235
10245
|
},
|
|
@@ -10277,7 +10287,7 @@ const Wa = new M.Proj.CRS(
|
|
|
10277
10287
|
getClockWiseRotate90DegreePoint(i) {
|
|
10278
10288
|
return new M.Point([i.y, -i.x]);
|
|
10279
10289
|
}
|
|
10280
|
-
}),
|
|
10290
|
+
}), Tf = M.Marker.extend({
|
|
10281
10291
|
options: {
|
|
10282
10292
|
fontSize: "12px",
|
|
10283
10293
|
color: "#f00",
|
|
@@ -10326,7 +10336,7 @@ const Wa = new M.Proj.CRS(
|
|
|
10326
10336
|
return this.setIcon(f), i && i(this), this;
|
|
10327
10337
|
}
|
|
10328
10338
|
}
|
|
10329
|
-
}),
|
|
10339
|
+
}), Cf = M.LayerGroup.extend({
|
|
10330
10340
|
initialize(i) {
|
|
10331
10341
|
M.Util.setOptions(this, i), M.LayerGroup.prototype.initialize.call(this, i);
|
|
10332
10342
|
},
|
|
@@ -10373,7 +10383,7 @@ const Wa = new M.Proj.CRS(
|
|
|
10373
10383
|
return i.length ? Math.max(...i.map((s) => s.options.zIndex)) + 1 : null;
|
|
10374
10384
|
}
|
|
10375
10385
|
});
|
|
10376
|
-
function
|
|
10386
|
+
function Ef(i) {
|
|
10377
10387
|
const s = document.createElement("style"), n = document.head || document.documentElement;
|
|
10378
10388
|
s.innerHTML = `
|
|
10379
10389
|
.${i}-statusbar {
|
|
@@ -10477,14 +10487,15 @@ function Tf(i) {
|
|
|
10477
10487
|
}
|
|
10478
10488
|
((i) => {
|
|
10479
10489
|
const s = Object.create(Ar) || {};
|
|
10480
|
-
return s.LANG =
|
|
10490
|
+
return s.LANG = As, s.BaseMap = M.Map.extend({
|
|
10481
10491
|
options: {
|
|
10482
10492
|
doubleClickZoom: !1,
|
|
10483
10493
|
closePopupOnClick: !1,
|
|
10484
10494
|
zoomControl: !1,
|
|
10485
10495
|
attributionControl: !1,
|
|
10486
|
-
scaleControl:
|
|
10487
|
-
|
|
10496
|
+
scaleControl: {
|
|
10497
|
+
show: !0
|
|
10498
|
+
},
|
|
10488
10499
|
minZoom: 5,
|
|
10489
10500
|
maxZoom: 19,
|
|
10490
10501
|
contextmenu: !0,
|
|
@@ -10495,10 +10506,10 @@ function Tf(i) {
|
|
|
10495
10506
|
var l;
|
|
10496
10507
|
if (typeof n == "string" && (n = document.getElementById(n)), !n instanceof HTMLElement || !n.clientWidth || !n.clientHeight)
|
|
10497
10508
|
throw new Error("地图容器不存在或元素尺寸为0");
|
|
10498
|
-
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({
|
|
10499
10510
|
position: ((l = this.options.zoomControl) == null ? void 0 : l.position) || "topleft",
|
|
10500
|
-
zoomInTitle:
|
|
10501
|
-
zoomOutTitle:
|
|
10511
|
+
zoomInTitle: As[this.lang].zoomIn,
|
|
10512
|
+
zoomOutTitle: As[this.lang].zoomOut
|
|
10502
10513
|
}), M.Control.Attribution.mergeOptions({
|
|
10503
10514
|
prefix: `<a href="http://www.${this.clsPrefix}.com" target="_blank">Guo.Yan</a>`
|
|
10504
10515
|
}), M.Map.prototype.initialize.call(this, n, this.options), M.DomEvent.on(
|
|
@@ -10526,7 +10537,7 @@ function Tf(i) {
|
|
|
10526
10537
|
flyTo(n, r = 0, o = { animate: !1 }) {
|
|
10527
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);
|
|
10528
10539
|
}
|
|
10529
|
-
}), s.StatusBar = wa, s.CRS.BaiDu = Wa, s.WebMercatorTiledLayer =
|
|
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;
|
|
10530
10541
|
})(window);
|
|
10531
10542
|
function zs() {
|
|
10532
10543
|
if (typeof globalThis < "u")
|
|
@@ -10543,7 +10554,7 @@ const Gs = function(i, s = {}) {
|
|
|
10543
10554
|
Gs.installed || (zs().Gis = yr);
|
|
10544
10555
|
};
|
|
10545
10556
|
zs().Vue && Gs(zs().Vue);
|
|
10546
|
-
const
|
|
10557
|
+
const Of = {
|
|
10547
10558
|
install: Gs
|
|
10548
10559
|
};
|
|
10549
10560
|
export {
|
|
@@ -10551,12 +10562,12 @@ export {
|
|
|
10551
10562
|
Cr as Draw,
|
|
10552
10563
|
ba as EagleMap,
|
|
10553
10564
|
Tr as Knob,
|
|
10554
|
-
|
|
10555
|
-
|
|
10556
|
-
|
|
10565
|
+
Cf as LayerManager,
|
|
10566
|
+
ze as MeasureMent,
|
|
10567
|
+
Af as RotatedImageOverLayer,
|
|
10557
10568
|
wa as StatusBar,
|
|
10558
|
-
|
|
10569
|
+
Tf as TextLayer,
|
|
10559
10570
|
La as VertexMarker,
|
|
10560
|
-
|
|
10561
|
-
|
|
10571
|
+
Pf as WebMercatorTiledLayer,
|
|
10572
|
+
Of as default
|
|
10562
10573
|
};
|