@nasa-terra/components 0.0.176 → 0.0.178
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/README.md +5 -5
- package/cdn/chunks/GeoTIFF.JELT3HNY.js +21252 -0
- package/cdn/chunks/chunk.22JAM2GR.js +149 -0
- package/cdn/chunks/chunk.27AZYXPZ.js +117 -0
- package/cdn/chunks/chunk.27TKCFF2.js +610 -0
- package/cdn/chunks/chunk.2AVV335P.js +29 -0
- package/cdn/chunks/chunk.2BVVH35U.js +19 -0
- package/cdn/chunks/chunk.2FMZQ3MM.js +359 -0
- package/cdn/chunks/chunk.2FSXSUSO.js +39 -0
- package/cdn/chunks/chunk.2GHI5NEA.js +287 -0
- package/cdn/chunks/chunk.2HT23ATY.js +662 -0
- package/cdn/chunks/chunk.2JS3DDEI.js +19 -0
- package/cdn/chunks/chunk.2XOZ4RKI.js +19 -0
- package/cdn/chunks/chunk.2Z67IQBD.js +19 -0
- package/cdn/chunks/chunk.32D3TWJQ.js +104 -0
- package/cdn/chunks/chunk.36PBCUIK.js +19 -0
- package/cdn/chunks/chunk.3BT76KBA.js +33 -0
- package/cdn/chunks/chunk.3DI7O3WX.js +123 -0
- package/cdn/chunks/chunk.3DMP7BK5.js +10 -0
- package/cdn/chunks/chunk.3LFKLVCQ.js +16671 -0
- package/cdn/chunks/chunk.3LZWARYL.js +128 -0
- package/cdn/chunks/chunk.3MFQHCTU.js +306 -0
- package/cdn/chunks/chunk.3OEDETZ7.js +29 -0
- package/cdn/chunks/chunk.3PZB6AVW.js +283 -0
- package/cdn/chunks/chunk.3QUK4QBT.js +60 -0
- package/cdn/chunks/chunk.3SIWYPHZ.js +304 -0
- package/cdn/chunks/chunk.3TY6KXKL.js +74 -0
- package/cdn/chunks/chunk.3X2FJVEK.js +99 -0
- package/cdn/chunks/chunk.3YEXAAFK.js +35 -0
- package/cdn/chunks/chunk.3ZQGAH53.js +373 -0
- package/cdn/chunks/chunk.42DMRGGV.js +235 -0
- package/cdn/chunks/chunk.42QHUFLT.js +35 -0
- package/cdn/chunks/chunk.43LTOGUS.js +35 -0
- package/cdn/chunks/chunk.45XFWGEL.js +110 -0
- package/cdn/chunks/chunk.4CONQBMV.js +247 -0
- package/cdn/chunks/chunk.4CYB2GMV.js +27 -0
- package/cdn/chunks/chunk.4EKARCDF.js +1317 -0
- package/cdn/chunks/chunk.4HIHTL3R.js +113 -0
- package/cdn/chunks/chunk.4HZ2S3M3.js +74 -0
- package/cdn/chunks/chunk.4K2NAKDG.js +172 -0
- package/cdn/chunks/chunk.4LU3KPCC.js +99 -0
- package/cdn/chunks/chunk.4MTIWNAT.js +205 -0
- package/cdn/chunks/chunk.4QXCJIOI.js +49 -0
- package/cdn/chunks/chunk.4UL4WO5H.js +146 -0
- package/cdn/chunks/chunk.52HUMX2R.js +19 -0
- package/cdn/chunks/chunk.557CP4PN.js +45 -0
- package/cdn/chunks/chunk.57WCCSRP.js +621 -0
- package/cdn/chunks/chunk.5B6C4AKF.js +454 -0
- package/cdn/chunks/chunk.5F5WT5T7.js +161 -0
- package/cdn/chunks/chunk.5HL6H5BD.js +49 -0
- package/cdn/chunks/chunk.5LEWFPJT.js +19 -0
- package/cdn/chunks/chunk.5NHAWGVC.js +201 -0
- package/cdn/chunks/chunk.5NHXMCXD.js +348 -0
- package/cdn/chunks/chunk.5PG3ZRA7.js +83 -0
- package/cdn/chunks/chunk.5T5GKZIL.js +19 -0
- package/cdn/chunks/chunk.5UHQKJDB.js +86 -0
- package/cdn/chunks/chunk.5WMSKURU.js +43 -0
- package/cdn/chunks/chunk.5ZYF77IP.js +19 -0
- package/cdn/chunks/chunk.66HZOZJX.js +668 -0
- package/cdn/chunks/chunk.67BXRY2G.js +19 -0
- package/cdn/chunks/chunk.6F6BC7HB.js +83 -0
- package/cdn/chunks/chunk.6FRDJUTC.js +1025 -0
- package/cdn/chunks/chunk.6PDKWTOW.js +279 -0
- package/cdn/chunks/chunk.6VLMX7GJ.js +368 -0
- package/cdn/chunks/chunk.74QD2Y2N.js +493 -0
- package/cdn/chunks/chunk.7B6SOOLO.js +313 -0
- package/cdn/chunks/chunk.7EVJ2RAF.js +1225 -0
- package/cdn/chunks/chunk.7EYXDHB7.js +158 -0
- package/cdn/chunks/chunk.7KQFIUV4.js +231 -0
- package/cdn/chunks/chunk.7LYB4PLQ.js +29 -0
- package/cdn/chunks/chunk.7P5RC3RV.js +94 -0
- package/cdn/chunks/chunk.7YO6CQJA.js +19 -0
- package/cdn/chunks/chunk.A3CGO5AH.js +19 -0
- package/cdn/chunks/chunk.A6DRN2V3.js +29 -0
- package/cdn/chunks/chunk.AGEVURBT.js +29 -0
- package/cdn/chunks/chunk.AH6W6EGS.js +77 -0
- package/cdn/chunks/chunk.AHVOJHAZ.js +132 -0
- package/cdn/chunks/chunk.AKJBHBED.js +4179 -0
- package/cdn/chunks/chunk.AMHZJEIF.js +106 -0
- package/cdn/chunks/chunk.B3HLZTDJ.js +101 -0
- package/cdn/chunks/chunk.B5ETCKLX.js +188 -0
- package/cdn/chunks/chunk.BD7S26QN.js +19 -0
- package/cdn/chunks/chunk.BISXE6ZN.js +538 -0
- package/cdn/chunks/chunk.BITC6KE3.js +19 -0
- package/cdn/chunks/chunk.BITUWHVL.js +54 -0
- package/cdn/chunks/chunk.BJ3E7ERE.js +288 -0
- package/cdn/chunks/chunk.BNIAPFYJ.js +278 -0
- package/cdn/chunks/chunk.BQGE3JSB.js +29 -0
- package/cdn/chunks/chunk.BQSYX5RT.js +19 -0
- package/cdn/chunks/chunk.BVNU2X7N.js +99 -0
- package/cdn/chunks/chunk.BZNRBGO6.js +34 -0
- package/cdn/chunks/chunk.CBCT272T.js +29 -0
- package/cdn/chunks/chunk.CEQIBUWO.js +29 -0
- package/cdn/chunks/chunk.CEY53EQU.js +259 -0
- package/cdn/chunks/chunk.CL7GJUFT.js +19 -0
- package/cdn/chunks/chunk.CLAAYWZA.js +51 -0
- package/cdn/chunks/chunk.CMEFD5PL.js +60 -0
- package/cdn/chunks/chunk.CQMD53WQ.js +19 -0
- package/cdn/chunks/chunk.CRAEGWNP.js +99 -0
- package/cdn/chunks/chunk.CVEPLMA2.js +19 -0
- package/cdn/chunks/chunk.CWE7S2N2.js +103 -0
- package/cdn/chunks/chunk.CZA6CSBG.js +2416 -0
- package/cdn/chunks/chunk.CZW6FRUZ.js +19 -0
- package/cdn/chunks/chunk.D2NLVIWA.js +47 -0
- package/cdn/chunks/chunk.DEXHHPVY.js +29 -0
- package/cdn/chunks/chunk.DFBLDLFE.js +25 -0
- package/cdn/chunks/chunk.DKCGE7UN.js +749 -0
- package/cdn/chunks/chunk.DLH646O5.js +156 -0
- package/cdn/chunks/chunk.DLQNZ2FX.js +201 -0
- package/cdn/chunks/chunk.DNSNZJ7C.js +239 -0
- package/cdn/chunks/chunk.DS3U5WCV.js +117 -0
- package/cdn/chunks/chunk.E2NDXN6R.js +302 -0
- package/cdn/chunks/chunk.E3OTUJQM.js +29 -0
- package/cdn/chunks/chunk.E623X4NU.js +19 -0
- package/cdn/chunks/chunk.E75H6GHG.js +29 -0
- package/cdn/chunks/chunk.EFYZYWRI.js +19 -0
- package/cdn/chunks/chunk.EN5KPTOG.js +68 -0
- package/cdn/chunks/chunk.EVAZHYFT.js +293 -0
- package/cdn/chunks/chunk.EZVBUHLK.js +19 -0
- package/cdn/chunks/chunk.F5PSG3XO.js +19 -0
- package/cdn/chunks/chunk.F73O5LKK.js +134 -0
- package/cdn/chunks/chunk.FCQ7WBH3.js +230 -0
- package/cdn/chunks/chunk.FDPACZVB.js +1966 -0
- package/cdn/chunks/chunk.FFMGGA5O.js +19 -0
- package/cdn/chunks/chunk.FFPQG36A.js +346 -0
- package/cdn/chunks/chunk.FLNH3DEZ.js +539 -0
- package/cdn/chunks/chunk.FOS4VEOT.js +29 -0
- package/cdn/chunks/chunk.FQVBY6CM.js +214 -0
- package/cdn/chunks/chunk.FYVCEOIF.js +34 -0
- package/cdn/chunks/chunk.G6IKI6DD.js +36 -0
- package/cdn/chunks/chunk.GALT5XHF.js +139 -0
- package/cdn/chunks/chunk.GB2X43ZS.js +19 -0
- package/cdn/chunks/chunk.GC6ROUDW.js +109 -0
- package/cdn/chunks/chunk.GI23DNYB.js +32 -0
- package/cdn/chunks/chunk.GIFC7EIO.js +29 -0
- package/cdn/chunks/chunk.GIPVJRIS.js +19 -0
- package/cdn/chunks/chunk.GNFKFHVB.js +67 -0
- package/cdn/chunks/chunk.GQ2BIBBY.js +117 -0
- package/cdn/chunks/chunk.H57JUKFF.js +33 -0
- package/cdn/chunks/chunk.H6IIPI2C.js +108 -0
- package/cdn/chunks/chunk.H7INCL32.js +32 -0
- package/cdn/chunks/chunk.HBXT6FV6.js +19 -0
- package/cdn/chunks/chunk.HCVVVZ5J.js +4968 -0
- package/cdn/chunks/chunk.HGDCOEDY.js +373 -0
- package/cdn/chunks/chunk.HGNDNCT6.js +165 -0
- package/cdn/chunks/chunk.HINOHSWI.js +19 -0
- package/cdn/chunks/chunk.HL43BUGA.js +477 -0
- package/cdn/chunks/chunk.HLOPKNNF.js +46 -0
- package/cdn/chunks/chunk.HOITYWZW.js +81 -0
- package/cdn/chunks/chunk.HQRDHH65.js +35 -0
- package/cdn/chunks/chunk.I373DBBC.js +88164 -0
- package/cdn/chunks/chunk.I6CIJ3AX.js +32 -0
- package/cdn/chunks/chunk.IKORGFE7.js +19 -0
- package/cdn/chunks/chunk.IMIYTEBX.js +29 -0
- package/cdn/chunks/chunk.IMPZQNKC.js +19 -0
- package/cdn/chunks/chunk.IPDHWZVM.js +357 -0
- package/cdn/chunks/chunk.ITCNMUXT.js +56 -0
- package/cdn/chunks/chunk.IZ57YTCD.js +445 -0
- package/cdn/chunks/chunk.J4Y55YWM.js +32 -0
- package/cdn/chunks/chunk.J7I3DOXG.js +272 -0
- package/cdn/chunks/chunk.JCWMB3DZ.js +19 -0
- package/cdn/chunks/chunk.JDBB7GR4.js +161 -0
- package/cdn/chunks/chunk.JK6H3P3F.js +29 -0
- package/cdn/chunks/chunk.JLIAPPXF.js +43 -0
- package/cdn/chunks/chunk.JNW7NR6G.js +19 -0
- package/cdn/chunks/chunk.JVQAVHRB.js +83 -0
- package/cdn/chunks/chunk.K22S5U4I.js +100 -0
- package/cdn/chunks/chunk.K3YMC4GK.js +19 -0
- package/cdn/chunks/chunk.K62KPFWP.js +19 -0
- package/cdn/chunks/chunk.K6SKQZRX.js +157 -0
- package/cdn/chunks/chunk.KCZYTXMI.js +39 -0
- package/cdn/chunks/chunk.KECYNSJO.js +32 -0
- package/cdn/chunks/chunk.KELDIHN7.js +75 -0
- package/cdn/chunks/chunk.KGQXF5BH.js +29 -0
- package/cdn/chunks/chunk.KNV6LK2U.js +19 -0
- package/cdn/chunks/chunk.KRXVXNX6.js +19 -0
- package/cdn/chunks/chunk.KS33TJQ3.js +29 -0
- package/cdn/chunks/chunk.KVRPAPVE.js +36 -0
- package/cdn/chunks/chunk.L5Y4JVOE.js +31 -0
- package/cdn/chunks/chunk.LC2QEKC7.js +19 -0
- package/cdn/chunks/chunk.LIKPLLCC.js +107 -0
- package/cdn/chunks/chunk.LJAO2OBI.js +29 -0
- package/cdn/chunks/chunk.LNAXIKVI.js +136 -0
- package/cdn/chunks/chunk.LQISJ4XG.js +155 -0
- package/cdn/chunks/chunk.LYKRCKL2.js +19 -0
- package/cdn/chunks/chunk.M3TUVN5Y.js +238 -0
- package/cdn/chunks/chunk.M5B656LH.js +32 -0
- package/cdn/chunks/chunk.MHFJ4UCV.js +33 -0
- package/cdn/chunks/chunk.MLHB7NJZ.js +34 -0
- package/cdn/chunks/chunk.MMRB62WK.js +33 -0
- package/cdn/chunks/chunk.MXULQKRE.js +19 -0
- package/cdn/chunks/chunk.MZBEU2IT.js +54 -0
- package/cdn/chunks/chunk.N73P56F2.js +30 -0
- package/cdn/chunks/chunk.NDXQQSOT.js +33 -0
- package/cdn/chunks/chunk.NEKQDM7X.js +372 -0
- package/cdn/chunks/chunk.NFOKAXEJ.js +37 -0
- package/cdn/chunks/chunk.NG5SRO5R.js +19 -0
- package/cdn/chunks/chunk.NN4NBQQB.js +121 -0
- package/cdn/chunks/chunk.NQ5LXTKN.js +29 -0
- package/cdn/chunks/chunk.NTP6MMEK.js +19 -0
- package/cdn/chunks/chunk.NU3XX242.js +93 -0
- package/cdn/chunks/chunk.NWFIMN2X.js +19 -0
- package/cdn/chunks/chunk.O5HYKIYC.js +19 -0
- package/cdn/chunks/chunk.O5KMVJI7.js +616 -0
- package/cdn/chunks/chunk.OI3ZA2XB.js +29 -0
- package/cdn/chunks/chunk.OMTCS2GC.js +315 -0
- package/cdn/chunks/chunk.OODBPQ4B.js +32 -0
- package/cdn/chunks/chunk.OYZZMKEU.js +435 -0
- package/cdn/chunks/chunk.OZSRONYH.js +37 -0
- package/cdn/chunks/chunk.OZZJMMZT.js +19 -0
- package/cdn/chunks/chunk.P2C4J2CO.js +189 -0
- package/cdn/chunks/chunk.P37E4RLB.js +26 -0
- package/cdn/chunks/chunk.P3JNZDXP.js +150 -0
- package/cdn/chunks/chunk.P3OLQVQM.js +63 -0
- package/cdn/chunks/chunk.P4OWV3H2.js +412 -0
- package/cdn/chunks/chunk.PBKMNUYF.js +270 -0
- package/cdn/chunks/chunk.PD3MHQ2K.js +19 -0
- package/cdn/chunks/chunk.PJUZIIXX.js +99 -0
- package/cdn/chunks/chunk.PL2AO7PI.js +286 -0
- package/cdn/chunks/chunk.PZ2ODGEF.js +36 -0
- package/cdn/chunks/chunk.Q67OTTO2.js +145 -0
- package/cdn/chunks/chunk.Q6M5ZXUN.js +151 -0
- package/cdn/chunks/chunk.QCB2B3CT.js +29 -0
- package/cdn/chunks/chunk.QHR2O7AV.js +29 -0
- package/cdn/chunks/chunk.QKMZVEVH.js +277 -0
- package/cdn/chunks/chunk.QLVO7A53.js +29 -0
- package/cdn/chunks/chunk.QPEDBBDQ.js +51 -0
- package/cdn/chunks/chunk.QPHDIORI.js +161 -0
- package/cdn/chunks/chunk.QPIWU7ZX.js +276 -0
- package/cdn/chunks/chunk.QQFBLEJD.js +32 -0
- package/cdn/chunks/chunk.QSDOLP4K.js +47 -0
- package/cdn/chunks/chunk.QUBV2SRA.js +338 -0
- package/cdn/chunks/chunk.QVP4KBG3.js +127 -0
- package/cdn/chunks/chunk.R3O7RMJA.js +19 -0
- package/cdn/chunks/chunk.R6Z5TIFB.js +78 -0
- package/cdn/chunks/chunk.RDKNH7AB.js +41 -0
- package/cdn/chunks/chunk.RLFRG4VE.js +233 -0
- package/cdn/chunks/chunk.RMGUKJMN.js +138 -0
- package/cdn/chunks/chunk.RRMWEZNW.js +33 -0
- package/cdn/chunks/chunk.RRPJMP3C.js +35 -0
- package/cdn/chunks/chunk.RRY4ZOQ3.js +36 -0
- package/cdn/chunks/chunk.RVY5D2X3.js +35 -0
- package/cdn/chunks/chunk.RYEHJXOO.js +349 -0
- package/cdn/chunks/chunk.RYGC63YH.js +19 -0
- package/cdn/chunks/chunk.RZZHOKXL.js +230 -0
- package/cdn/chunks/chunk.SCR3ZWIR.js +390 -0
- package/cdn/chunks/chunk.SDERXP3T.js +22 -0
- package/cdn/chunks/chunk.SGQ3SAWT.js +62 -0
- package/cdn/chunks/chunk.SGZ73PFJ.js +32 -0
- package/cdn/chunks/chunk.SJO2RKAL.js +30 -0
- package/cdn/chunks/chunk.SKS4DYOE.js +19 -0
- package/cdn/chunks/chunk.SLPZU6ID.js +121 -0
- package/cdn/chunks/chunk.SQ4FFTEO.js +81 -0
- package/cdn/chunks/chunk.STI7JX26.js +42 -0
- package/cdn/chunks/chunk.STMBSAF5.js +26 -0
- package/cdn/chunks/chunk.STZHCX2L.js +19 -0
- package/cdn/chunks/chunk.T2WQSSCT.js +151 -0
- package/cdn/chunks/chunk.T7SV2UAX.js +1830 -0
- package/cdn/chunks/chunk.T7WLLNRR.js +27 -0
- package/cdn/chunks/chunk.TF5WXJIH.js +791 -0
- package/cdn/chunks/chunk.THNEGED3.js +19 -0
- package/cdn/chunks/chunk.THQBLNQL.js +224 -0
- package/cdn/chunks/chunk.TJEFTJAX.js +19 -0
- package/cdn/chunks/chunk.TJQK5YAU.js +19 -0
- package/cdn/chunks/chunk.TLGXE7WV.js +52 -0
- package/cdn/chunks/chunk.TPCMTIU4.js +29 -0
- package/cdn/chunks/chunk.TRUBFWMF.js +92 -0
- package/cdn/chunks/chunk.TSLZA2FP.js +79 -0
- package/cdn/chunks/chunk.TVDMMEGB.js +32 -0
- package/cdn/chunks/chunk.TZZ5NI6I.js +19 -0
- package/cdn/chunks/chunk.U6QYVRXP.js +29 -0
- package/cdn/chunks/chunk.UEYJIQSM.js +264 -0
- package/cdn/chunks/chunk.UIC2Q62Z.js +134 -0
- package/cdn/chunks/chunk.UJVF7AJF.js +32 -0
- package/cdn/chunks/chunk.UPT6DHPH.js +77 -0
- package/cdn/chunks/chunk.UPVJ52AW.js +19 -0
- package/cdn/chunks/chunk.UTEDJXOP.js +82 -0
- package/cdn/chunks/chunk.UTR2L5L3.js +190 -0
- package/cdn/chunks/chunk.UWJWL6GC.js +32 -0
- package/cdn/chunks/chunk.UZC6GLZV.js +19 -0
- package/cdn/chunks/chunk.V6GKBS2N.js +138 -0
- package/cdn/chunks/chunk.VA7AQEP7.js +54 -0
- package/cdn/chunks/chunk.VBKKALHR.js +37 -0
- package/cdn/chunks/chunk.VCESNCXS.js +599 -0
- package/cdn/chunks/chunk.VHQQMEMZ.js +19 -0
- package/cdn/chunks/chunk.VKXXCCRB.js +154 -0
- package/cdn/chunks/chunk.VUVF3KED.js +19 -0
- package/cdn/chunks/chunk.VVOORPYD.js +82 -0
- package/cdn/chunks/chunk.VXZOUP3Y.js +29 -0
- package/cdn/chunks/chunk.VYXINK3L.js +524 -0
- package/cdn/chunks/chunk.WCQGA3HK.js +19 -0
- package/cdn/chunks/chunk.WE52YORO.js +1699 -0
- package/cdn/chunks/chunk.WHJICWSG.js +2332 -0
- package/cdn/chunks/chunk.WIVXANPA.js +1056 -0
- package/cdn/chunks/chunk.WMA5MWN7.js +19 -0
- package/cdn/chunks/chunk.WQPCK3PB.js +126 -0
- package/cdn/chunks/chunk.WVVQ6RKA.js +17 -0
- package/cdn/chunks/chunk.WXP5OUQO.js +696 -0
- package/cdn/chunks/chunk.WY4WKU7H.js +19 -0
- package/cdn/chunks/chunk.WZSGQVJ3.js +110 -0
- package/cdn/chunks/chunk.X2U4SIZ4.js +19 -0
- package/cdn/chunks/chunk.X4WA5YB7.js +71 -0
- package/cdn/chunks/chunk.X57DG2OV.js +55346 -0
- package/cdn/chunks/chunk.X77H5U32.js +304 -0
- package/cdn/chunks/chunk.XCB7WJR3.js +282 -0
- package/cdn/chunks/chunk.XHVXO6NI.js +51 -0
- package/cdn/chunks/chunk.XI7P34NI.js +326 -0
- package/cdn/chunks/chunk.XICNAH3B.js +234 -0
- package/cdn/chunks/chunk.XOUBBWXK.js +29 -0
- package/cdn/chunks/chunk.XPHN3U7W.js +19 -0
- package/cdn/chunks/chunk.XS4SYR6U.js +653 -0
- package/cdn/chunks/chunk.XTQVIF4W.js +93 -0
- package/cdn/chunks/chunk.XUTNRU3T.js +29 -0
- package/cdn/chunks/chunk.XZVFFQYE.js +68 -0
- package/cdn/chunks/chunk.Y24FPHA6.js +48 -0
- package/cdn/chunks/chunk.YEINMQD6.js +74 -0
- package/cdn/chunks/chunk.YI4UNXI7.js +19 -0
- package/cdn/chunks/chunk.YKIPJHTA.js +29 -0
- package/cdn/chunks/chunk.YQ22R3TL.js +32 -0
- package/cdn/chunks/chunk.YRHVJ4VI.js +33 -0
- package/cdn/chunks/chunk.YSWPBMTM.js +19 -0
- package/cdn/chunks/chunk.YTA66SS5.js +30 -0
- package/cdn/chunks/chunk.YTY4DQKX.js +72 -0
- package/cdn/chunks/chunk.ZALYW5YQ.js +33863 -0
- package/cdn/chunks/chunk.ZAR54NPI.js +135 -0
- package/cdn/chunks/chunk.ZDCYL2TJ.js +2262 -0
- package/cdn/chunks/chunk.ZEH7NHP6.js +29 -0
- package/cdn/chunks/chunk.ZFEQ76LI.js +904 -0
- package/cdn/chunks/chunk.ZGYVCQH3.js +32 -0
- package/cdn/chunks/chunk.ZOHWWM5H.js +32 -0
- package/cdn/chunks/chunk.ZOPDDQPM.js +19 -0
- package/cdn/chunks/chunk.ZU4IFY53.js +29 -0
- package/cdn/chunks/chunk.ZVQIG4FI.js +10729 -0
- package/cdn/chunks/chunk.ZZFZH7YX.js +74 -0
- package/cdn/chunks/colormap.PSXLZVCC.js +181 -0
- package/cdn/chunks/decoder.OWCCL5B2.js +26 -0
- package/cdn/chunks/deflate.42Z3TDWB.js +24 -0
- package/cdn/chunks/jpeg.JA7FYY66.js +851 -0
- package/cdn/chunks/lerc.Z34XHY2I.js +2092 -0
- package/cdn/chunks/lzw.MELZRR6C.js +137 -0
- package/cdn/chunks/packbits.R5GFFSWX.js +39 -0
- package/cdn/chunks/raw.MV3ZALRS.js +21 -0
- package/cdn/chunks/webimage.AUQDYSFO.js +41 -0
- package/cdn/components/accordion/accordion.component.js +15 -15
- package/cdn/components/accordion/accordion.js +16 -16
- package/cdn/components/accordion/accordion.styles.js +4 -4
- package/cdn/components/alert/alert.component.js +12 -12
- package/cdn/components/alert/alert.js +13 -13
- package/cdn/components/alert/alert.styles.js +4 -4
- package/cdn/components/avatar/avatar.component.js +17 -17
- package/cdn/components/avatar/avatar.js +18 -18
- package/cdn/components/avatar/avatar.styles.js +4 -4
- package/cdn/components/badge/badge.component.js +9 -9
- package/cdn/components/badge/badge.js +10 -10
- package/cdn/components/badge/badge.styles.js +4 -4
- package/cdn/components/banner/banner.component.d.ts +45 -0
- package/cdn/components/banner/banner.component.js +17 -0
- package/cdn/components/banner/banner.d.ts +8 -0
- package/cdn/components/banner/banner.js +18 -0
- package/cdn/components/banner/banner.styles.d.ts +2 -0
- package/cdn/components/banner/banner.styles.js +9 -0
- package/cdn/components/breadcrumb/breadcrumb.component.js +9 -9
- package/cdn/components/breadcrumb/breadcrumb.js +10 -10
- package/cdn/components/breadcrumb/breadcrumb.styles.js +4 -4
- package/cdn/components/breadcrumbs/breadcrumbs.component.js +7 -7
- package/cdn/components/breadcrumbs/breadcrumbs.js +8 -8
- package/cdn/components/breadcrumbs/breadcrumbs.styles.js +4 -4
- package/cdn/components/browse-variables/browse-variables.component.js +44 -44
- package/cdn/components/browse-variables/browse-variables.controller.js +9 -9
- package/cdn/components/browse-variables/browse-variables.js +45 -45
- package/cdn/components/browse-variables/browse-variables.styles.js +4 -4
- package/cdn/components/browse-variables/browse-variables.types.js +1 -1
- package/cdn/components/button/button.component.js +20 -20
- package/cdn/components/button/button.js +21 -21
- package/cdn/components/button/button.styles.js +4 -4
- package/cdn/components/button-group/button-group.component.js +8 -8
- package/cdn/components/button-group/button-group.js +9 -9
- package/cdn/components/button-group/button-group.styles.js +4 -4
- package/cdn/components/caption/caption.component.js +7 -7
- package/cdn/components/caption/caption.js +8 -8
- package/cdn/components/caption/caption.styles.js +4 -4
- package/cdn/components/card/card.component.js +10 -10
- package/cdn/components/card/card.js +11 -11
- package/cdn/components/card/card.styles.js +4 -4
- package/cdn/components/checkbox/checkbox.component.js +22 -22
- package/cdn/components/checkbox/checkbox.js +23 -23
- package/cdn/components/checkbox/checkbox.styles.js +4 -4
- package/cdn/components/chip/chip.component.js +9 -9
- package/cdn/components/chip/chip.js +10 -10
- package/cdn/components/chip/chip.styles.js +4 -4
- package/cdn/components/combobox/combobox.component.d.ts +1 -4
- package/cdn/components/combobox/combobox.component.js +17 -17
- package/cdn/components/combobox/combobox.js +18 -18
- package/cdn/components/combobox/combobox.styles.js +4 -4
- package/cdn/components/combobox/lib.js +2 -2
- package/cdn/components/combobox/type.js +2 -2
- package/cdn/components/data-access/data-access.component.d.ts +10 -10
- package/cdn/components/data-access/data-access.component.js +72 -78
- package/cdn/components/data-access/data-access.controller.js +8 -8
- package/cdn/components/data-access/data-access.js +73 -79
- package/cdn/components/data-access/data-access.styles.js +4 -4
- package/cdn/components/data-access/notebooks/data-access-notebook.js +2 -2
- package/cdn/components/data-grid/data-grid.component.js +13 -13
- package/cdn/components/data-grid/data-grid.js +14 -14
- package/cdn/components/data-grid/data-grid.styles.js +4 -4
- package/cdn/components/data-rods/data-rods.component.d.ts +1 -1
- package/cdn/components/data-rods/data-rods.component.js +87 -94
- package/cdn/components/data-rods/data-rods.js +88 -95
- package/cdn/components/data-rods/data-rods.styles.js +4 -4
- package/cdn/components/data-subsetter/data-subsetter.component.d.ts +9 -24
- package/cdn/components/data-subsetter/data-subsetter.component.js +93 -100
- package/cdn/components/data-subsetter/data-subsetter.controller.d.ts +4 -3
- package/cdn/components/data-subsetter/data-subsetter.controller.js +12 -15
- package/cdn/components/data-subsetter/data-subsetter.js +94 -101
- package/cdn/components/data-subsetter/data-subsetter.styles.js +4 -4
- package/cdn/components/data-subsetter/notebooks/subsetter-notebook.js +2 -2
- package/cdn/components/data-subsetter-history/data-subsetter-history.component.js +96 -103
- package/cdn/components/data-subsetter-history/data-subsetter-history.controller.js +6 -6
- package/cdn/components/data-subsetter-history/data-subsetter-history.js +97 -104
- package/cdn/components/data-subsetter-history/data-subsetter-history.styles.js +4 -4
- package/cdn/components/date-picker/date-picker.component.d.ts +1 -0
- package/cdn/components/date-picker/date-picker.component.js +36 -36
- package/cdn/components/date-picker/date-picker.js +37 -37
- package/cdn/components/date-picker/date-picker.styles.js +4 -4
- package/cdn/components/date-range-slider/date-range-slider.component.js +12 -12
- package/cdn/components/date-range-slider/date-range-slider.js +13 -13
- package/cdn/components/date-range-slider/date-range-slider.styles.js +4 -4
- package/cdn/components/date-range-slider/noui-slider-utilities.js +2 -2
- package/cdn/components/dialog/dialog.component.js +27 -27
- package/cdn/components/dialog/dialog.js +28 -28
- package/cdn/components/dialog/dialog.styles.js +4 -4
- package/cdn/components/divider/divider.component.js +8 -8
- package/cdn/components/divider/divider.js +9 -9
- package/cdn/components/divider/divider.styles.js +4 -4
- package/cdn/components/dropdown/dropdown.component.js +17 -17
- package/cdn/components/dropdown/dropdown.js +18 -18
- package/cdn/components/dropdown/dropdown.styles.js +4 -4
- package/cdn/components/earthdata-login/earthdata-login.component.js +34 -34
- package/cdn/components/earthdata-login/earthdata-login.js +35 -35
- package/cdn/components/earthdata-login/earthdata-login.styles.js +4 -4
- package/cdn/components/file-upload/file-upload.component.js +10 -10
- package/cdn/components/file-upload/file-upload.js +11 -11
- package/cdn/components/file-upload/file-upload.styles.js +4 -4
- package/cdn/components/icon/icon.component.js +13 -13
- package/cdn/components/icon/icon.js +14 -14
- package/cdn/components/icon/icon.styles.js +4 -4
- package/cdn/components/icon/library.default.js +2 -2
- package/cdn/components/icon/library.heroicons.js +3 -3
- package/cdn/components/icon/library.js +5 -5
- package/cdn/components/input/input.component.js +22 -22
- package/cdn/components/input/input.js +23 -23
- package/cdn/components/input/input.styles.js +4 -4
- package/cdn/components/loader/loader.component.js +9 -9
- package/cdn/components/loader/loader.js +10 -10
- package/cdn/components/loader/loader.styles.js +4 -4
- package/cdn/components/login/login.component.js +29 -29
- package/cdn/components/login/login.js +30 -30
- package/cdn/components/login/login.styles.js +4 -4
- package/cdn/components/map/leaflet-draw.styles.d.ts +2 -0
- package/cdn/components/map/leaflet-draw.styles.js +9 -0
- package/cdn/components/map/leaflet-utils.d.ts +45 -0
- package/cdn/components/map/leaflet-utils.js +13 -0
- package/cdn/components/map/leaflet.styles.d.ts +2 -0
- package/cdn/components/map/leaflet.styles.js +9 -0
- package/cdn/components/map/map.component.d.ts +11 -32
- package/cdn/components/map/map.component.js +19 -24
- package/cdn/components/map/map.controller.js +4 -4
- package/cdn/components/map/map.js +20 -25
- package/cdn/components/map/map.styles.js +4 -4
- package/cdn/components/map/type.d.ts +3 -12
- package/cdn/components/map/type.js +2 -2
- package/cdn/components/menu/menu.component.js +7 -7
- package/cdn/components/menu/menu.js +8 -8
- package/cdn/components/menu/menu.styles.js +4 -4
- package/cdn/components/menu-item/menu-item.component.js +24 -24
- package/cdn/components/menu-item/menu-item.js +25 -25
- package/cdn/components/menu-item/menu-item.styles.js +4 -4
- package/cdn/components/menu-item/submenu-controller.js +8 -8
- package/cdn/components/option/option.component.js +17 -17
- package/cdn/components/option/option.js +18 -18
- package/cdn/components/option/option.styles.js +4 -4
- package/cdn/components/pagination/pagination.component.js +17 -17
- package/cdn/components/pagination/pagination.js +18 -18
- package/cdn/components/pagination/pagination.styles.js +4 -4
- package/cdn/components/plot/plot.component.js +9 -9
- package/cdn/components/plot/plot.js +10 -10
- package/cdn/components/plot/plot.styles.js +4 -4
- package/cdn/components/plot/plot.types.js +1 -1
- package/cdn/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +2 -2
- package/cdn/components/plot-toolbar/notebooks/time-series-notebook.js +2 -2
- package/cdn/components/plot-toolbar/plot-toolbar.component.d.ts +2 -0
- package/cdn/components/plot-toolbar/plot-toolbar.component.js +44 -50
- package/cdn/components/plot-toolbar/plot-toolbar.controller.js +7 -7
- package/cdn/components/plot-toolbar/plot-toolbar.js +45 -51
- package/cdn/components/plot-toolbar/plot-toolbar.styles.js +4 -4
- package/cdn/components/plot-toolbar/plot-toolbar.types.js +1 -1
- package/cdn/components/popup/popup.component.js +9 -9
- package/cdn/components/popup/popup.js +10 -10
- package/cdn/components/popup/popup.styles.js +4 -4
- package/cdn/components/progress-bar/progress-bar.component.js +10 -10
- package/cdn/components/progress-bar/progress-bar.js +11 -11
- package/cdn/components/progress-bar/progress-bar.styles.js +4 -4
- package/cdn/components/radio/radio.component.js +15 -15
- package/cdn/components/radio/radio.js +16 -16
- package/cdn/components/radio/radio.styles.js +4 -4
- package/cdn/components/radio-group/radio-group.component.js +13 -13
- package/cdn/components/radio-group/radio-group.js +14 -14
- package/cdn/components/radio-group/radio-group.styles.js +4 -4
- package/cdn/components/scroll-hint/scroll-hint.component.js +15 -15
- package/cdn/components/scroll-hint/scroll-hint.js +16 -16
- package/cdn/components/scroll-hint/scroll-hint.styles.js +4 -4
- package/cdn/components/select/select.component.js +28 -28
- package/cdn/components/select/select.js +29 -29
- package/cdn/components/select/select.styles.js +4 -4
- package/cdn/components/site-header/site-header.component.js +16 -16
- package/cdn/components/site-header/site-header.js +16 -16
- package/cdn/components/site-header/site-header.styles.js +4 -4
- package/cdn/components/site-navigation/site-navigation.component.js +7 -7
- package/cdn/components/site-navigation/site-navigation.js +7 -7
- package/cdn/components/site-navigation/site-navigation.styles.js +4 -4
- package/cdn/components/skeleton/skeleton.component.js +8 -8
- package/cdn/components/skeleton/skeleton.js +9 -9
- package/cdn/components/skeleton/skeleton.styles.js +4 -4
- package/cdn/components/slider/slider.component.d.ts +0 -1
- package/cdn/components/slider/slider.component.js +10 -10
- package/cdn/components/slider/slider.js +11 -11
- package/cdn/components/slider/slider.styles.js +4 -4
- package/cdn/components/spatial-picker/spatial-picker.component.d.ts +70 -47
- package/cdn/components/spatial-picker/spatial-picker.component.js +44 -50
- package/cdn/components/spatial-picker/spatial-picker.js +45 -51
- package/cdn/components/spatial-picker/spatial-picker.styles.js +4 -4
- package/cdn/components/status-indicator/status-indicator.component.js +9 -9
- package/cdn/components/status-indicator/status-indicator.js +10 -10
- package/cdn/components/status-indicator/status-indicator.styles.js +4 -4
- package/cdn/components/stepper/stepper.component.js +9 -9
- package/cdn/components/stepper/stepper.js +10 -10
- package/cdn/components/stepper/stepper.styles.js +4 -4
- package/cdn/components/stepper-step/stepper-step.component.js +17 -17
- package/cdn/components/stepper-step/stepper-step.js +18 -18
- package/cdn/components/stepper-step/stepper-step.styles.js +4 -4
- package/cdn/components/tab/tab.component.js +17 -17
- package/cdn/components/tab/tab.js +18 -18
- package/cdn/components/tab/tab.styles.js +4 -4
- package/cdn/components/tab-panel/tab-panel.component.js +10 -10
- package/cdn/components/tab-panel/tab-panel.js +11 -11
- package/cdn/components/tab-panel/tab-panel.styles.js +4 -4
- package/cdn/components/tabs/tabs.component.js +18 -18
- package/cdn/components/tabs/tabs.js +19 -19
- package/cdn/components/tabs/tabs.styles.js +4 -4
- package/cdn/components/tag/tag.component.js +17 -17
- package/cdn/components/tag/tag.js +18 -18
- package/cdn/components/tag/tag.styles.js +4 -4
- package/cdn/components/textarea/textarea.component.js +16 -16
- package/cdn/components/textarea/textarea.js +17 -17
- package/cdn/components/textarea/textarea.styles.js +4 -4
- package/cdn/components/time-average-map/time-average-map.component.d.ts +2 -1
- package/cdn/components/time-average-map/time-average-map.component.js +60 -65
- package/cdn/components/time-average-map/time-average-map.controller.js +11 -12
- package/cdn/components/time-average-map/time-average-map.js +61 -66
- package/cdn/components/time-average-map/time-average-map.styles.js +4 -4
- package/cdn/components/time-series/time-series.component.d.ts +2 -1
- package/cdn/components/time-series/time-series.component.js +59 -65
- package/cdn/components/time-series/time-series.controller.js +11 -12
- package/cdn/components/time-series/time-series.js +60 -66
- package/cdn/components/time-series/time-series.styles.js +4 -4
- package/cdn/components/time-series/time-series.types.js +1 -1
- package/cdn/components/toast/toast.component.js +14 -14
- package/cdn/components/toast/toast.js +15 -15
- package/cdn/components/toast/toast.styles.js +4 -4
- package/cdn/components/toggle/toggle.component.js +16 -16
- package/cdn/components/toggle/toggle.js +17 -17
- package/cdn/components/toggle/toggle.styles.js +4 -4
- package/cdn/components/tooltip/tooltip.component.js +15 -15
- package/cdn/components/tooltip/tooltip.js +16 -16
- package/cdn/components/tooltip/tooltip.styles.js +4 -4
- package/cdn/components/variable-combobox/lib.js +7 -7
- package/cdn/components/variable-combobox/variable-combobox.component.d.ts +1 -4
- package/cdn/components/variable-combobox/variable-combobox.component.js +32 -32
- package/cdn/components/variable-combobox/variable-combobox.controller.js +9 -9
- package/cdn/components/variable-combobox/variable-combobox.js +33 -33
- package/cdn/components/variable-combobox/variable-combobox.styles.js +4 -4
- package/cdn/components/variable-combobox/variable-combobox.types.js +1 -1
- package/cdn/components/variable-keyword-search/lib.js +4 -4
- package/cdn/components/variable-keyword-search/variable-keyword-search.component.d.ts +1 -4
- package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +35 -35
- package/cdn/components/variable-keyword-search/variable-keyword-search.controller.js +9 -9
- package/cdn/components/variable-keyword-search/variable-keyword-search.js +36 -36
- package/cdn/components/variable-keyword-search/variable-keyword-search.styles.js +4 -4
- package/cdn/components/variable-keyword-search/variable-keyword-search.types.js +1 -1
- package/cdn/custom-elements.json +743 -520
- package/cdn/internal/animate.d.ts +3 -3
- package/cdn/metadata-catalog/tasks.d.ts +1 -1
- package/cdn/react/accordion/index.js +16 -16
- package/cdn/react/alert/index.js +13 -13
- package/cdn/react/avatar/index.js +18 -18
- package/cdn/react/badge/index.js +10 -10
- package/cdn/react/banner/index.d.ts +37 -0
- package/cdn/react/banner/index.js +18 -0
- package/cdn/react/breadcrumb/index.js +10 -10
- package/cdn/react/breadcrumbs/index.js +8 -8
- package/cdn/react/browse-variables/index.js +45 -45
- package/cdn/react/button/index.js +21 -21
- package/cdn/react/button-group/index.js +9 -9
- package/cdn/react/caption/index.js +8 -8
- package/cdn/react/card/index.js +11 -11
- package/cdn/react/checkbox/index.js +23 -23
- package/cdn/react/chip/index.js +10 -10
- package/cdn/react/combobox/index.js +18 -18
- package/cdn/react/data-access/index.js +73 -79
- package/cdn/react/data-grid/index.js +14 -14
- package/cdn/react/data-rods/index.js +88 -95
- package/cdn/react/data-subsetter/index.js +94 -101
- package/cdn/react/data-subsetter-history/index.js +97 -104
- package/cdn/react/date-picker/index.js +37 -37
- package/cdn/react/date-range-slider/index.js +13 -13
- package/cdn/react/dialog/index.js +28 -28
- package/cdn/react/divider/index.js +9 -9
- package/cdn/react/dropdown/index.js +18 -18
- package/cdn/react/earthdata-login/index.js +35 -35
- package/cdn/react/file-upload/index.js +11 -11
- package/cdn/react/icon/index.js +14 -14
- package/cdn/react/index.d.ts +2 -1
- package/cdn/react/index.js +285 -285
- package/cdn/react/input/index.js +23 -23
- package/cdn/react/loader/index.js +10 -10
- package/cdn/react/login/index.js +30 -30
- package/cdn/react/map/index.js +20 -25
- package/cdn/react/menu/index.js +8 -8
- package/cdn/react/menu-item/index.js +25 -25
- package/cdn/react/option/index.js +18 -18
- package/cdn/react/pagination/index.js +18 -18
- package/cdn/react/plot/index.js +10 -10
- package/cdn/react/plot-toolbar/index.js +45 -51
- package/cdn/react/popup/index.js +10 -10
- package/cdn/react/progress-bar/index.js +11 -11
- package/cdn/react/radio/index.js +16 -16
- package/cdn/react/radio-group/index.js +14 -14
- package/cdn/react/scroll-hint/index.js +16 -16
- package/cdn/react/select/index.js +29 -29
- package/cdn/react/site-header/index.js +17 -17
- package/cdn/react/site-navigation/index.js +8 -8
- package/cdn/react/skeleton/index.js +9 -9
- package/cdn/react/slider/index.js +11 -11
- package/cdn/react/spatial-picker/index.d.ts +1 -0
- package/cdn/react/spatial-picker/index.js +45 -51
- package/cdn/react/status-indicator/index.js +10 -10
- package/cdn/react/stepper/index.js +10 -10
- package/cdn/react/stepper-step/index.js +18 -18
- package/cdn/react/tab/index.js +18 -18
- package/cdn/react/tab-panel/index.js +11 -11
- package/cdn/react/tabs/index.js +19 -19
- package/cdn/react/tag/index.js +18 -18
- package/cdn/react/textarea/index.js +17 -17
- package/cdn/react/time-average-map/index.js +61 -66
- package/cdn/react/time-series/index.js +60 -66
- package/cdn/react/toast/index.js +15 -15
- package/cdn/react/toggle/index.js +17 -17
- package/cdn/react/tooltip/index.js +16 -16
- package/cdn/react/variable-combobox/index.js +33 -33
- package/cdn/react/variable-keyword-search/index.js +36 -36
- package/cdn/terra-ui-components-autoloader.js +2 -2
- package/cdn/terra-ui-components.d.ts +1 -0
- package/cdn/terra-ui-components.js +292 -292
- package/cdn/themes/horizon.css +2 -0
- package/cdn/themes/horizon.styles.js +2 -0
- package/cdn/types/vue/index.d.ts +208 -173
- package/cdn/utilities/animation-registry.js +2 -2
- package/cdn/utilities/base-path.js +2 -2
- package/cdn/utilities/date.js +3 -3
- package/cdn/utilities/debounce.js +1 -1
- package/cdn/utilities/environment.js +2 -2
- package/cdn/utilities/form.js +3 -3
- package/cdn/utilities/giovanni.js +2 -2
- package/cdn/utilities/harmony.js +4 -4
- package/cdn/utilities/icon-library.js +6 -6
- package/cdn/utilities/mimetypes.js +2 -2
- package/cdn/utilities/number.js +2 -2
- package/cdn/utilities/sort.js +2 -2
- package/cdn/vscode.html-custom-data.json +122 -62
- package/cdn/web-types.json +288 -164
- package/dist/chunks/chunk.23LMPXPJ.js +214 -0
- package/dist/chunks/chunk.26ECQZFX.js +21 -0
- package/dist/chunks/chunk.2EYRPHGL.js +10 -0
- package/dist/chunks/chunk.2L3532KH.js +24 -0
- package/dist/chunks/chunk.2OEP2XVV.js +11 -0
- package/dist/chunks/chunk.2OZDKPBL.js +21 -0
- package/dist/chunks/chunk.2PCYAFDR.js +1008 -0
- package/dist/chunks/chunk.2SQ6KLPN.js +1209 -0
- package/dist/chunks/chunk.2UG4WDJO.js +27 -0
- package/dist/chunks/chunk.37I6WAMP.js +770 -0
- package/dist/chunks/chunk.3E6XLFHJ.js +31 -0
- package/dist/chunks/chunk.3FT46B5J.js +92 -0
- package/dist/chunks/chunk.3K7B4VM7.js +245 -0
- package/dist/chunks/chunk.3NOU5S4K.js +91 -0
- package/dist/chunks/chunk.3SAYRVCE.js +21 -0
- package/dist/chunks/chunk.3WCANEX4.js +11 -0
- package/dist/chunks/chunk.436WESMY.js +592 -0
- package/dist/chunks/chunk.445A7YVG.js +271 -0
- package/dist/chunks/chunk.47J3FSMM.js +280 -0
- package/dist/chunks/chunk.4BFY5C7Z.js +11 -0
- package/dist/chunks/chunk.4BRHJBL7.js +362 -0
- package/dist/chunks/chunk.4EAOYZ4Y.js +90 -0
- package/dist/chunks/chunk.4EPS3DTP.js +11 -0
- package/dist/chunks/chunk.4JCMVK2I.js +26 -0
- package/dist/chunks/chunk.4L24AT4E.js +21 -0
- package/dist/chunks/chunk.4MDKLIS6.js +190 -0
- package/dist/chunks/chunk.546LT6MS.js +264 -0
- package/dist/chunks/chunk.5CAKOM7D.js +153 -0
- package/dist/chunks/chunk.5CEVBUAV.js +2319 -0
- package/dist/chunks/chunk.5HKA7CP4.js +11 -0
- package/dist/chunks/chunk.5UXU74DM.js +11 -0
- package/dist/chunks/chunk.6356MHU2.js +11 -0
- package/dist/chunks/chunk.66E73JL3.js +11 -0
- package/dist/chunks/chunk.6AVQFT4P.js +48 -0
- package/dist/chunks/chunk.6BLDYUYE.js +11 -0
- package/dist/chunks/chunk.6CAQCKUP.js +24 -0
- package/dist/chunks/chunk.6CIABMY5.js +11 -0
- package/dist/chunks/chunk.6D2G5ALH.js +247 -0
- package/dist/chunks/chunk.6GVJNAWC.js +74 -0
- package/dist/chunks/chunk.6IEJIHV7.js +33 -0
- package/dist/chunks/chunk.6NI3YPRS.js +150 -0
- package/dist/chunks/chunk.6OZMYR4M.js +355 -0
- package/dist/chunks/chunk.6PTW3KAY.js +22 -0
- package/dist/chunks/chunk.6RW5OQCP.js +108 -0
- package/dist/chunks/chunk.73KRYIWH.js +11 -0
- package/dist/chunks/chunk.75ZYV4D5.js +21 -0
- package/dist/chunks/chunk.7AEQ2LX4.js +335 -0
- package/dist/chunks/chunk.7B6X7DHL.js +295 -0
- package/dist/chunks/chunk.7C67ZMHT.js +24 -0
- package/dist/chunks/chunk.7CMA526Q.js +14 -0
- package/dist/chunks/chunk.7D4GRC5S.js +43 -0
- package/dist/chunks/chunk.7EUHCWQK.js +21 -0
- package/dist/chunks/chunk.7HJLROM4.js +11 -0
- package/dist/chunks/chunk.7PHX65NG.js +609 -0
- package/dist/chunks/chunk.7SDWLS73.js +11 -0
- package/dist/chunks/chunk.7YQPXOC7.js +48 -0
- package/dist/chunks/chunk.7YRJKZ6R.js +63 -0
- package/dist/chunks/chunk.7YSNIUE2.js +11 -0
- package/dist/chunks/chunk.A3DB425J.js +67 -0
- package/dist/chunks/chunk.AA3RARYK.js +11 -0
- package/dist/chunks/chunk.AAZ2T5I4.js +11 -0
- package/dist/chunks/chunk.ADTHXB2Z.js +85 -0
- package/dist/chunks/chunk.AGQWOIRU.js +11 -0
- package/dist/chunks/chunk.AGVSZX3L.js +11 -0
- package/dist/chunks/chunk.ARIV4CPX.js +24 -0
- package/dist/chunks/chunk.AU4PC3WS.js +21 -0
- package/dist/chunks/chunk.AUKJJNAV.js +70 -0
- package/dist/chunks/chunk.AVJOOXXQ.js +25 -0
- package/dist/chunks/chunk.AZ6MIDIS.js +272 -0
- package/dist/chunks/chunk.AZHRXJ6O.js +101 -0
- package/dist/chunks/chunk.B4FARRKK.js +11 -0
- package/dist/chunks/chunk.BKD5GVCC.js +28 -0
- package/dist/chunks/chunk.BNQNGJ63.js +277 -0
- package/dist/chunks/chunk.BNWT5XOA.js +11 -0
- package/dist/chunks/chunk.BROIAC6I.js +327 -0
- package/dist/chunks/chunk.BTCCRLW3.js +72 -0
- package/dist/chunks/chunk.BTZTI4XJ.js +58 -0
- package/dist/chunks/chunk.C3ZW37SO.js +80 -0
- package/dist/chunks/chunk.C56TUFG2.js +11 -0
- package/dist/chunks/chunk.C7WBCFZF.js +11 -0
- package/dist/chunks/chunk.CJAPGH2L.js +140 -0
- package/dist/chunks/chunk.CLALHUIJ.js +28 -0
- package/dist/chunks/chunk.COKWU5CH.js +220 -0
- package/dist/chunks/chunk.CPN76CAR.js +11 -0
- package/dist/chunks/chunk.CT3D4NYC.js +11 -0
- package/dist/chunks/chunk.CZCYUSJE.js +21 -0
- package/dist/chunks/chunk.D3DPGMVW.js +222 -0
- package/dist/chunks/chunk.D74V2Y4N.js +203 -0
- package/dist/chunks/chunk.DAVAGDVN.js +11 -0
- package/dist/chunks/chunk.DHM36JBP.js +259 -0
- package/dist/chunks/chunk.DVKVBXHC.js +106 -0
- package/dist/chunks/chunk.EA655PLI.js +48 -0
- package/dist/chunks/chunk.EDBRDLAQ.js +21 -0
- package/dist/chunks/chunk.EIZ2WUAZ.js +11 -0
- package/dist/chunks/chunk.EKU6JNBY.js +11 -0
- package/dist/chunks/chunk.EOHFT652.js +21 -0
- package/dist/chunks/chunk.EREJTHM4.js +66 -0
- package/dist/chunks/chunk.ESNQNQUJ.js +150 -0
- package/dist/chunks/chunk.ETGKMYPQ.js +64 -0
- package/dist/chunks/chunk.ETNOCBXV.js +259 -0
- package/dist/chunks/chunk.F3KBUEPT.js +10 -0
- package/dist/chunks/chunk.F4BY2ABV.js +99 -0
- package/dist/chunks/chunk.FDIMGAJI.js +10 -0
- package/dist/chunks/chunk.FKON3QJJ.js +117 -0
- package/dist/chunks/chunk.FO5QTEF6.js +83 -0
- package/dist/chunks/chunk.FQ2OQVX6.js +26 -0
- package/dist/chunks/chunk.FQFJCEW7.js +402 -0
- package/dist/chunks/chunk.FTSD7MDF.js +75 -0
- package/dist/chunks/chunk.FUU57PWY.js +36 -0
- package/dist/chunks/chunk.FWIUL463.js +143 -0
- package/dist/chunks/chunk.FXTZ7FHL.js +21 -0
- package/dist/chunks/chunk.G2SLMYNZ.js +1127 -0
- package/dist/chunks/chunk.G4AEZRDP.js +41 -0
- package/dist/chunks/chunk.GF5IAPOY.js +265 -0
- package/dist/chunks/chunk.GKQAPUQ2.js +21 -0
- package/dist/chunks/chunk.GLYX6PG2.js +22 -0
- package/dist/chunks/chunk.GMHCSLEL.js +24 -0
- package/dist/chunks/chunk.GV47GIPP.js +61 -0
- package/dist/chunks/chunk.GWPR4BJA.js +124 -0
- package/dist/chunks/chunk.GYKLIVKP.js +21 -0
- package/dist/chunks/chunk.GZ4HOM2F.js +43 -0
- package/dist/chunks/chunk.H2JZ7STG.js +21 -0
- package/dist/chunks/chunk.H2OAHZM7.js +27 -0
- package/dist/chunks/chunk.H4PHZP66.js +91 -0
- package/dist/chunks/chunk.H5CDOEIC.js +11 -0
- package/dist/chunks/chunk.HCC3SGE2.js +219 -0
- package/dist/chunks/chunk.HG54HSQX.js +581 -0
- package/dist/chunks/chunk.HGLI6LJN.js +20 -0
- package/dist/chunks/chunk.HHPZ7XOA.js +21 -0
- package/dist/chunks/chunk.HIAQCSIH.js +25 -0
- package/dist/chunks/chunk.HIJ7YLQN.js +11 -0
- package/dist/chunks/chunk.HLFWOJ7D.js +443 -0
- package/dist/chunks/chunk.HLZSPJVC.js +67 -0
- package/dist/chunks/chunk.HNQMK3PU.js +685 -0
- package/dist/chunks/chunk.HOSAIEGB.js +357 -0
- package/dist/chunks/chunk.HTG6S7JP.js +345 -0
- package/dist/chunks/chunk.HTMQKXQS.js +230 -0
- package/dist/chunks/chunk.I2OGX6YJ.js +434 -0
- package/dist/chunks/chunk.ICJLWHNZ.js +11 -0
- package/dist/chunks/chunk.IGEIUBF3.js +11 -0
- package/dist/chunks/chunk.IKRCBUCO.js +29 -0
- package/dist/chunks/chunk.INXE5RBS.js +70 -0
- package/dist/chunks/chunk.IQYKE5EC.js +70 -0
- package/dist/chunks/chunk.J2DFA4AS.js +180 -0
- package/dist/chunks/chunk.J5LLBYXG.js +112 -0
- package/dist/chunks/chunk.JB5255IQ.js +298 -0
- package/dist/chunks/chunk.JBQVW4OZ.js +21 -0
- package/dist/chunks/chunk.JS3NLOAP.js +21 -0
- package/dist/chunks/chunk.JYANJSE7.js +97 -0
- package/dist/chunks/chunk.JYAY276T.js +252 -0
- package/dist/chunks/chunk.JYKXSRHP.js +266 -0
- package/dist/chunks/chunk.K2FV6DFO.js +21 -0
- package/dist/chunks/chunk.K5TY6PYA.js +180 -0
- package/dist/chunks/chunk.KE3HD5BU.js +24 -0
- package/dist/chunks/chunk.KKORT3I6.js +11 -0
- package/dist/chunks/chunk.KPP2DAGE.js +11 -0
- package/dist/chunks/chunk.KQAAZMLR.js +27 -0
- package/dist/chunks/chunk.KT52MHEF.js +320 -0
- package/dist/chunks/chunk.KUSRVQBO.js +20 -0
- package/dist/chunks/chunk.L2VAWNDS.js +844 -0
- package/dist/chunks/chunk.L4QGQTCF.js +11 -0
- package/dist/chunks/chunk.L63WM7I3.js +65 -0
- package/dist/chunks/chunk.LBWTXVIW.js +21 -0
- package/dist/chunks/chunk.LCV6WZ5X.js +17 -0
- package/dist/chunks/chunk.LH3ZIESF.js +11 -0
- package/dist/chunks/chunk.LKULEWJA.js +97 -0
- package/dist/chunks/chunk.LO722BLM.js +90 -0
- package/dist/chunks/chunk.LSDBESKP.js +21 -0
- package/dist/chunks/chunk.LVMQSKIX.js +11 -0
- package/dist/chunks/chunk.LYRWYQEB.js +11 -0
- package/dist/chunks/chunk.M22NM4I2.js +596 -0
- package/dist/chunks/chunk.M2WUDCFE.js +11 -0
- package/dist/chunks/chunk.M5TWOOXK.js +110 -0
- package/dist/chunks/chunk.MH2V655T.js +213 -0
- package/dist/chunks/chunk.MLJKAT2G.js +40 -0
- package/dist/chunks/chunk.MNZJRSIS.js +127 -0
- package/dist/chunks/chunk.MP5LGGXC.js +139 -0
- package/dist/chunks/chunk.MPVERP43.js +89 -0
- package/dist/chunks/chunk.MTYCAM7Q.js +24 -0
- package/dist/chunks/chunk.MXDP6DTM.js +27 -0
- package/dist/chunks/chunk.MYZZL47Y.js +11 -0
- package/dist/chunks/chunk.MZ4FDVFI.js +139 -0
- package/dist/chunks/chunk.N4U2YGPQ.js +11 -0
- package/dist/chunks/chunk.N5ZOPEYQ.js +16 -0
- package/dist/chunks/chunk.NCZVWYJH.js +11 -0
- package/dist/chunks/chunk.NEI6ESI4.js +443 -0
- package/dist/chunks/chunk.NMCBYHGI.js +474 -0
- package/dist/chunks/chunk.NP7CH4PH.js +150 -0
- package/dist/chunks/chunk.NUC7DD7Y.js +11 -0
- package/dist/chunks/chunk.NV6VEZ3C.js +124 -0
- package/dist/chunks/chunk.NWXJOH5T.js +37 -0
- package/dist/chunks/chunk.NYOKJMDF.js +262 -0
- package/dist/chunks/chunk.O2ZWYER4.js +123 -0
- package/dist/chunks/chunk.O7X2BVWL.js +451 -0
- package/dist/chunks/chunk.OAWTV6OW.js +135 -0
- package/dist/chunks/chunk.OB7L6J2P.js +21 -0
- package/dist/chunks/chunk.OBB2ASLO.js +21 -0
- package/dist/chunks/chunk.OKE6DVWX.js +24 -0
- package/dist/chunks/chunk.OKSVCCML.js +121 -0
- package/dist/chunks/chunk.ON3YVM46.js +138 -0
- package/dist/chunks/chunk.OQEIOAPT.js +11 -0
- package/dist/chunks/chunk.OVH5G3RJ.js +110 -0
- package/dist/chunks/chunk.P2DV3WHV.js +11 -0
- package/dist/chunks/chunk.P2EFRIK5.js +220 -0
- package/dist/chunks/chunk.P4YX4DEQ.js +21 -0
- package/dist/chunks/chunk.P6HJLUPH.js +11 -0
- package/dist/chunks/chunk.PAR3SU7T.js +230 -0
- package/dist/chunks/chunk.PBC3S6IG.js +33 -0
- package/dist/chunks/chunk.PISQ7QC4.js +24 -0
- package/dist/chunks/chunk.PJP62E5Q.js +56 -0
- package/dist/chunks/chunk.PTE2DINN.js +21 -0
- package/dist/chunks/chunk.PUXKWMMZ.js +78 -0
- package/dist/chunks/chunk.PZUZL3LG.js +24 -0
- package/dist/chunks/chunk.Q5ADS6UN.js +143 -0
- package/dist/chunks/chunk.Q5XUVDMW.js +642 -0
- package/dist/chunks/chunk.QBD5IAAG.js +11 -0
- package/dist/chunks/chunk.QFLXNLU3.js +16 -0
- package/dist/chunks/chunk.QLF2XLPF.js +21 -0
- package/dist/chunks/chunk.QQMW6GT2.js +1045 -0
- package/dist/chunks/chunk.QSTR4FLH.js +52 -0
- package/dist/chunks/chunk.QY3MIOMU.js +25 -0
- package/dist/chunks/chunk.R5SCRQSJ.js +24 -0
- package/dist/chunks/chunk.RANEKL2E.js +127 -0
- package/dist/chunks/chunk.RBEQPKUF.js +11 -0
- package/dist/chunks/chunk.RC4PW2AL.js +64 -0
- package/dist/chunks/chunk.RGVKW43A.js +104 -0
- package/dist/chunks/chunk.RICWPNO4.js +27 -0
- package/dist/chunks/chunk.RQEPF7OZ.js +88 -0
- package/dist/chunks/chunk.RVQ7T44G.js +28 -0
- package/dist/chunks/chunk.SBGZPKIA.js +124 -0
- package/dist/chunks/chunk.SEABQZE3.js +52 -0
- package/dist/chunks/chunk.SGFD3ORP.js +293 -0
- package/dist/chunks/chunk.SHKVBVTI.js +117 -0
- package/dist/chunks/chunk.SJVXFIWD.js +43 -0
- package/dist/chunks/chunk.SM2GF5DG.js +161 -0
- package/dist/chunks/chunk.SMVBJMBE.js +11 -0
- package/dist/chunks/chunk.SOWK5CSF.js +236 -0
- package/dist/chunks/chunk.SRIJX4P5.js +21 -0
- package/dist/chunks/chunk.T2KMTQBP.js +145 -0
- package/dist/chunks/chunk.T63PHAZS.js +477 -0
- package/dist/chunks/chunk.TCEJ3MS6.js +97 -0
- package/dist/chunks/chunk.TEYALPS4.js +657 -0
- package/dist/chunks/chunk.TGGVEO3I.js +128 -0
- package/dist/chunks/chunk.TIPP7LOP.js +25 -0
- package/dist/chunks/chunk.TR2IR2XU.js +21 -0
- package/dist/chunks/chunk.TVOUNZKB.js +21 -0
- package/dist/chunks/chunk.U2CI26QW.js +29 -0
- package/dist/chunks/chunk.U3XIKOX7.js +73 -0
- package/dist/chunks/chunk.U4O45ZC6.js +39 -0
- package/dist/chunks/chunk.UEGNNPAH.js +738 -0
- package/dist/chunks/chunk.UH5KWAU3.js +21 -0
- package/dist/chunks/chunk.ULRKSOBB.js +11 -0
- package/dist/chunks/chunk.UU2S72KN.js +30 -0
- package/dist/chunks/chunk.UWQHLB6N.js +37 -0
- package/dist/chunks/chunk.UY4TA55L.js +11 -0
- package/dist/chunks/chunk.UZAIWUWC.js +8 -0
- package/dist/chunks/chunk.V2Z7ZBTD.js +293 -0
- package/dist/chunks/chunk.V3NHH2XO.js +338 -0
- package/dist/chunks/chunk.V4SH3FLC.js +272 -0
- package/dist/chunks/chunk.V7HC7572.js +11 -0
- package/dist/chunks/chunk.VBM2B3KX.js +2246 -0
- package/dist/chunks/chunk.VD3ZG27N.js +291 -0
- package/dist/chunks/chunk.VHK56IML.js +26 -0
- package/dist/chunks/chunk.VIW4LXVO.js +25 -0
- package/dist/chunks/chunk.VO6PUK24.js +23 -0
- package/dist/chunks/chunk.VOYW6ZBM.js +345 -0
- package/dist/chunks/chunk.VQS7YXPC.js +11 -0
- package/dist/chunks/chunk.VXCSGT3L.js +48 -0
- package/dist/chunks/chunk.WE7FF2QS.js +11 -0
- package/dist/chunks/chunk.WMZXCTBJ.js +21 -0
- package/dist/chunks/chunk.WO5OWSDX.js +180 -0
- package/dist/chunks/chunk.WP27ZMIV.js +11 -0
- package/dist/chunks/chunk.WQANURYB.js +11 -0
- package/dist/chunks/chunk.WTUZLKBY.js +43 -0
- package/dist/chunks/chunk.WVJDTT7W.js +74 -0
- package/dist/chunks/chunk.WW5X6HRC.js +145 -0
- package/dist/chunks/chunk.WYS6GUW7.js +11 -0
- package/dist/chunks/chunk.X2SOML6L.js +21 -0
- package/dist/chunks/chunk.X3XBLLUJ.js +278 -0
- package/dist/chunks/chunk.X53YRWID.js +89 -0
- package/dist/chunks/chunk.XH5QDMDC.js +524 -0
- package/dist/chunks/chunk.XJICV2UH.js +11 -0
- package/dist/chunks/chunk.XJRDI2TX.js +224 -0
- package/dist/chunks/chunk.XL6GOIUB.js +422 -0
- package/dist/chunks/chunk.XLVVVXCQ.js +40 -0
- package/dist/chunks/chunk.XMQDBISU.js +24 -0
- package/dist/chunks/chunk.XOQA7V7H.js +525 -0
- package/dist/chunks/chunk.XPWCLXJI.js +11 -0
- package/dist/chunks/chunk.XQU5BZC4.js +194 -0
- package/dist/chunks/chunk.XYQ5OEQP.js +190 -0
- package/dist/chunks/chunk.XZ7N2YTI.js +409 -0
- package/dist/chunks/chunk.Y43MNKM2.js +93 -0
- package/dist/chunks/chunk.Y4QEHGFE.js +76 -0
- package/dist/chunks/chunk.Y4ZWTPEA.js +19 -0
- package/dist/chunks/chunk.Y6E3L66U.js +63 -0
- package/dist/chunks/chunk.YGAPARSY.js +24 -0
- package/dist/chunks/chunk.YGNBR4ML.js +11 -0
- package/dist/chunks/chunk.YJOOWARF.js +21 -0
- package/dist/chunks/chunk.YLLE7U4B.js +374 -0
- package/dist/chunks/chunk.YN3VX3XW.js +24 -0
- package/dist/chunks/chunk.YNGZK5NG.js +98 -0
- package/dist/chunks/chunk.YPJBWQ6S.js +104 -0
- package/dist/chunks/chunk.YQSWJQXT.js +24 -0
- package/dist/chunks/chunk.YUAI7DJT.js +21 -0
- package/dist/chunks/chunk.YXBUPVH7.js +15 -0
- package/dist/chunks/chunk.YY65ZHR5.js +35 -0
- package/dist/chunks/chunk.YZNY2IG7.js +28 -0
- package/dist/chunks/chunk.Z2H7IRYZ.js +57 -0
- package/dist/chunks/chunk.Z5KQCEVF.js +11 -0
- package/dist/chunks/chunk.ZEKMHKZD.js +86 -0
- package/dist/chunks/chunk.ZGIEEOTS.js +11 -0
- package/dist/chunks/chunk.ZZS73M3T.js +11 -0
- package/dist/components/accordion/accordion.component.js +17 -1
- package/dist/components/accordion/accordion.js +18 -1
- package/dist/components/accordion/accordion.styles.js +7 -1
- package/dist/components/alert/alert.component.js +13 -1
- package/dist/components/alert/alert.js +14 -1
- package/dist/components/alert/alert.styles.js +7 -1
- package/dist/components/avatar/avatar.component.js +17 -1
- package/dist/components/avatar/avatar.js +18 -1
- package/dist/components/avatar/avatar.styles.js +7 -1
- package/dist/components/badge/badge.component.js +10 -1
- package/dist/components/badge/badge.js +11 -1
- package/dist/components/badge/badge.styles.js +7 -1
- package/dist/components/banner/banner.component.d.ts +45 -0
- package/dist/components/banner/banner.component.js +13 -0
- package/dist/components/banner/banner.d.ts +8 -0
- package/dist/components/banner/banner.js +14 -0
- package/dist/components/banner/banner.styles.d.ts +2 -0
- package/dist/components/banner/banner.styles.js +7 -0
- package/dist/components/breadcrumb/breadcrumb.component.js +10 -1
- package/dist/components/breadcrumb/breadcrumb.js +11 -1
- package/dist/components/breadcrumb/breadcrumb.styles.js +7 -1
- package/dist/components/breadcrumbs/breadcrumbs.component.js +10 -1
- package/dist/components/breadcrumbs/breadcrumbs.js +11 -1
- package/dist/components/breadcrumbs/breadcrumbs.styles.js +7 -1
- package/dist/components/browse-variables/browse-variables.component.js +38 -1
- package/dist/components/browse-variables/browse-variables.controller.js +11 -1
- package/dist/components/browse-variables/browse-variables.js +39 -1
- package/dist/components/browse-variables/browse-variables.styles.js +7 -1
- package/dist/components/button/button.component.js +19 -1
- package/dist/components/button/button.js +20 -1
- package/dist/components/button/button.styles.js +7 -1
- package/dist/components/button-group/button-group.component.js +10 -1
- package/dist/components/button-group/button-group.js +11 -1
- package/dist/components/button-group/button-group.styles.js +7 -1
- package/dist/components/caption/caption.component.js +10 -1
- package/dist/components/caption/caption.js +11 -1
- package/dist/components/caption/caption.styles.js +7 -1
- package/dist/components/card/card.component.js +11 -1
- package/dist/components/card/card.js +12 -1
- package/dist/components/card/card.styles.js +7 -1
- package/dist/components/checkbox/checkbox.component.js +21 -1
- package/dist/components/checkbox/checkbox.js +22 -1
- package/dist/components/checkbox/checkbox.styles.js +7 -1
- package/dist/components/chip/chip.component.js +10 -1
- package/dist/components/chip/chip.js +11 -1
- package/dist/components/chip/chip.styles.js +7 -1
- package/dist/components/combobox/combobox.component.d.ts +1 -4
- package/dist/components/combobox/combobox.component.js +13 -1
- package/dist/components/combobox/combobox.js +14 -1
- package/dist/components/combobox/combobox.styles.js +7 -1
- package/dist/components/combobox/lib.js +9 -1
- package/dist/components/combobox/type.js +7 -1
- package/dist/components/data-access/data-access.component.d.ts +10 -10
- package/dist/components/data-access/data-access.component.js +65 -1
- package/dist/components/data-access/data-access.controller.js +11 -1
- package/dist/components/data-access/data-access.js +66 -1
- package/dist/components/data-access/data-access.styles.js +7 -1
- package/dist/components/data-access/notebooks/data-access-notebook.js +7 -1
- package/dist/components/data-grid/data-grid.component.js +12 -1
- package/dist/components/data-grid/data-grid.js +13 -1
- package/dist/components/data-grid/data-grid.styles.js +7 -1
- package/dist/components/data-rods/data-rods.component.d.ts +1 -1
- package/dist/components/data-rods/data-rods.component.js +77 -1
- package/dist/components/data-rods/data-rods.js +78 -1
- package/dist/components/data-rods/data-rods.styles.js +7 -1
- package/dist/components/data-subsetter/data-subsetter.component.d.ts +9 -24
- package/dist/components/data-subsetter/data-subsetter.component.js +85 -1
- package/dist/components/data-subsetter/data-subsetter.controller.d.ts +4 -3
- package/dist/components/data-subsetter/data-subsetter.controller.js +13 -1
- package/dist/components/data-subsetter/data-subsetter.js +86 -1
- package/dist/components/data-subsetter/data-subsetter.styles.js +7 -1
- package/dist/components/data-subsetter/notebooks/subsetter-notebook.js +7 -1
- package/dist/components/data-subsetter-history/data-subsetter-history.component.js +88 -1
- package/dist/components/data-subsetter-history/data-subsetter-history.controller.js +9 -1
- package/dist/components/data-subsetter-history/data-subsetter-history.js +89 -1
- package/dist/components/data-subsetter-history/data-subsetter-history.styles.js +7 -1
- package/dist/components/date-picker/date-picker.component.d.ts +1 -0
- package/dist/components/date-picker/date-picker.component.js +33 -1
- package/dist/components/date-picker/date-picker.js +34 -1
- package/dist/components/date-picker/date-picker.styles.js +7 -1
- package/dist/components/date-range-slider/date-range-slider.component.js +13 -1
- package/dist/components/date-range-slider/date-range-slider.js +14 -1
- package/dist/components/date-range-slider/date-range-slider.styles.js +7 -1
- package/dist/components/date-range-slider/noui-slider-utilities.js +7 -1
- package/dist/components/dialog/dialog.component.js +26 -1
- package/dist/components/dialog/dialog.js +27 -1
- package/dist/components/dialog/dialog.styles.js +7 -1
- package/dist/components/divider/divider.component.js +11 -1
- package/dist/components/divider/divider.js +12 -1
- package/dist/components/divider/divider.styles.js +7 -1
- package/dist/components/dropdown/dropdown.component.js +17 -1
- package/dist/components/dropdown/dropdown.js +18 -1
- package/dist/components/dropdown/dropdown.styles.js +7 -1
- package/dist/components/earthdata-login/earthdata-login.component.js +32 -1
- package/dist/components/earthdata-login/earthdata-login.js +33 -1
- package/dist/components/earthdata-login/earthdata-login.styles.js +7 -1
- package/dist/components/file-upload/file-upload.component.js +10 -1
- package/dist/components/file-upload/file-upload.js +11 -1
- package/dist/components/file-upload/file-upload.styles.js +7 -1
- package/dist/components/icon/icon.component.js +15 -1
- package/dist/components/icon/icon.js +16 -1
- package/dist/components/icon/icon.styles.js +7 -1
- package/dist/components/icon/library.default.js +7 -1
- package/dist/components/icon/library.heroicons.js +8 -1
- package/dist/components/icon/library.js +18 -1
- package/dist/components/input/input.component.js +21 -1
- package/dist/components/input/input.js +22 -1
- package/dist/components/input/input.styles.js +7 -1
- package/dist/components/loader/loader.component.js +10 -1
- package/dist/components/loader/loader.js +11 -1
- package/dist/components/loader/loader.styles.js +7 -1
- package/dist/components/login/login.component.js +27 -1
- package/dist/components/login/login.js +28 -1
- package/dist/components/login/login.styles.js +7 -1
- package/dist/components/map/leaflet-draw.styles.d.ts +2 -0
- package/dist/components/map/leaflet-draw.styles.js +7 -0
- package/dist/components/map/leaflet-utils.d.ts +45 -0
- package/dist/components/map/leaflet-utils.js +13 -0
- package/dist/components/map/leaflet.styles.d.ts +2 -0
- package/dist/components/map/leaflet.styles.js +7 -0
- package/dist/components/map/map.component.d.ts +11 -32
- package/dist/components/map/map.component.js +18 -1
- package/dist/components/map/map.controller.js +9 -1
- package/dist/components/map/map.js +19 -1
- package/dist/components/map/map.styles.js +7 -1
- package/dist/components/map/type.d.ts +3 -12
- package/dist/components/map/type.js +7 -1
- package/dist/components/menu/menu.component.js +10 -1
- package/dist/components/menu/menu.js +11 -1
- package/dist/components/menu/menu.styles.js +7 -1
- package/dist/components/menu-item/menu-item.component.js +23 -1
- package/dist/components/menu-item/menu-item.js +24 -1
- package/dist/components/menu-item/menu-item.styles.js +7 -1
- package/dist/components/menu-item/submenu-controller.js +8 -1
- package/dist/components/option/option.component.js +17 -1
- package/dist/components/option/option.js +18 -1
- package/dist/components/option/option.styles.js +7 -1
- package/dist/components/pagination/pagination.component.js +17 -1
- package/dist/components/pagination/pagination.js +18 -1
- package/dist/components/pagination/pagination.styles.js +7 -1
- package/dist/components/plot/plot.component.js +11 -1
- package/dist/components/plot/plot.js +12 -1
- package/dist/components/plot/plot.styles.js +7 -1
- package/dist/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +7 -1
- package/dist/components/plot-toolbar/notebooks/time-series-notebook.js +7 -1
- package/dist/components/plot-toolbar/plot-toolbar.component.d.ts +2 -0
- package/dist/components/plot-toolbar/plot-toolbar.component.js +38 -1
- package/dist/components/plot-toolbar/plot-toolbar.controller.js +10 -1
- package/dist/components/plot-toolbar/plot-toolbar.js +39 -1
- package/dist/components/plot-toolbar/plot-toolbar.styles.js +7 -1
- package/dist/components/popup/popup.component.js +10 -1
- package/dist/components/popup/popup.js +11 -1
- package/dist/components/popup/popup.styles.js +7 -1
- package/dist/components/progress-bar/progress-bar.component.js +10 -1
- package/dist/components/progress-bar/progress-bar.js +11 -1
- package/dist/components/progress-bar/progress-bar.styles.js +7 -1
- package/dist/components/radio/radio.component.js +14 -1
- package/dist/components/radio/radio.js +15 -1
- package/dist/components/radio/radio.styles.js +7 -1
- package/dist/components/radio-group/radio-group.component.js +14 -1
- package/dist/components/radio-group/radio-group.js +15 -1
- package/dist/components/radio-group/radio-group.styles.js +7 -1
- package/dist/components/scroll-hint/scroll-hint.component.js +17 -1
- package/dist/components/scroll-hint/scroll-hint.js +18 -1
- package/dist/components/scroll-hint/scroll-hint.styles.js +7 -1
- package/dist/components/select/select.component.js +28 -1
- package/dist/components/select/select.js +29 -1
- package/dist/components/select/select.styles.js +7 -1
- package/dist/components/site-header/site-header.component.js +18 -1
- package/dist/components/site-header/site-header.js +22 -1
- package/dist/components/site-header/site-header.styles.js +7 -1
- package/dist/components/site-navigation/site-navigation.component.js +10 -1
- package/dist/components/site-navigation/site-navigation.js +14 -1
- package/dist/components/site-navigation/site-navigation.styles.js +7 -1
- package/dist/components/skeleton/skeleton.component.js +11 -1
- package/dist/components/skeleton/skeleton.js +12 -1
- package/dist/components/skeleton/skeleton.styles.js +7 -1
- package/dist/components/slider/slider.component.d.ts +0 -1
- package/dist/components/slider/slider.component.js +12 -1
- package/dist/components/slider/slider.js +13 -1
- package/dist/components/slider/slider.styles.js +7 -1
- package/dist/components/spatial-picker/spatial-picker.component.d.ts +70 -47
- package/dist/components/spatial-picker/spatial-picker.component.js +40 -1
- package/dist/components/spatial-picker/spatial-picker.js +41 -1
- package/dist/components/spatial-picker/spatial-picker.styles.js +7 -1
- package/dist/components/status-indicator/status-indicator.component.js +10 -1
- package/dist/components/status-indicator/status-indicator.js +11 -1
- package/dist/components/status-indicator/status-indicator.styles.js +7 -1
- package/dist/components/stepper/stepper.component.js +10 -1
- package/dist/components/stepper/stepper.js +11 -1
- package/dist/components/stepper/stepper.styles.js +7 -1
- package/dist/components/stepper-step/stepper-step.component.js +17 -1
- package/dist/components/stepper-step/stepper-step.js +18 -1
- package/dist/components/stepper-step/stepper-step.styles.js +7 -1
- package/dist/components/tab/tab.component.js +17 -1
- package/dist/components/tab/tab.js +18 -1
- package/dist/components/tab/tab.styles.js +7 -1
- package/dist/components/tab-panel/tab-panel.component.js +11 -1
- package/dist/components/tab-panel/tab-panel.js +12 -1
- package/dist/components/tab-panel/tab-panel.styles.js +7 -1
- package/dist/components/tabs/tabs.component.js +18 -1
- package/dist/components/tabs/tabs.js +19 -1
- package/dist/components/tabs/tabs.styles.js +7 -1
- package/dist/components/tag/tag.component.js +17 -1
- package/dist/components/tag/tag.js +18 -1
- package/dist/components/tag/tag.styles.js +7 -1
- package/dist/components/textarea/textarea.component.js +15 -1
- package/dist/components/textarea/textarea.js +16 -1
- package/dist/components/textarea/textarea.styles.js +7 -1
- package/dist/components/time-average-map/time-average-map.component.d.ts +2 -1
- package/dist/components/time-average-map/time-average-map.component.js +53 -1
- package/dist/components/time-average-map/time-average-map.controller.js +12 -1
- package/dist/components/time-average-map/time-average-map.js +54 -1
- package/dist/components/time-average-map/time-average-map.styles.js +7 -1
- package/dist/components/time-series/time-series.component.d.ts +2 -1
- package/dist/components/time-series/time-series.component.js +53 -1
- package/dist/components/time-series/time-series.controller.js +14 -1
- package/dist/components/time-series/time-series.js +54 -1
- package/dist/components/time-series/time-series.styles.js +7 -1
- package/dist/components/toast/toast.component.js +15 -1
- package/dist/components/toast/toast.js +16 -1
- package/dist/components/toast/toast.styles.js +7 -1
- package/dist/components/toggle/toggle.component.js +15 -1
- package/dist/components/toggle/toggle.js +16 -1
- package/dist/components/toggle/toggle.styles.js +7 -1
- package/dist/components/tooltip/tooltip.component.js +16 -1
- package/dist/components/tooltip/tooltip.js +17 -1
- package/dist/components/tooltip/tooltip.styles.js +7 -1
- package/dist/components/variable-combobox/lib.js +19 -1
- package/dist/components/variable-combobox/variable-combobox.component.d.ts +1 -4
- package/dist/components/variable-combobox/variable-combobox.component.js +25 -1
- package/dist/components/variable-combobox/variable-combobox.controller.js +8 -1
- package/dist/components/variable-combobox/variable-combobox.js +26 -1
- package/dist/components/variable-combobox/variable-combobox.styles.js +7 -1
- package/dist/components/variable-keyword-search/lib.js +13 -1
- package/dist/components/variable-keyword-search/variable-keyword-search.component.d.ts +1 -4
- package/dist/components/variable-keyword-search/variable-keyword-search.component.js +29 -1
- package/dist/components/variable-keyword-search/variable-keyword-search.controller.js +11 -1
- package/dist/components/variable-keyword-search/variable-keyword-search.js +30 -1
- package/dist/components/variable-keyword-search/variable-keyword-search.styles.js +7 -1
- package/dist/custom-elements.json +743 -520
- package/dist/internal/animate.d.ts +3 -3
- package/dist/metadata-catalog/tasks.d.ts +1 -1
- package/dist/react/accordion/index.js +18 -1
- package/dist/react/alert/index.js +14 -1
- package/dist/react/avatar/index.js +18 -1
- package/dist/react/badge/index.js +11 -1
- package/dist/react/banner/index.d.ts +37 -0
- package/dist/react/banner/index.js +14 -0
- package/dist/react/breadcrumb/index.js +11 -1
- package/dist/react/breadcrumbs/index.js +11 -1
- package/dist/react/browse-variables/index.js +39 -1
- package/dist/react/button/index.js +20 -1
- package/dist/react/button-group/index.js +11 -1
- package/dist/react/caption/index.js +11 -1
- package/dist/react/card/index.js +12 -1
- package/dist/react/checkbox/index.js +22 -1
- package/dist/react/chip/index.js +11 -1
- package/dist/react/combobox/index.js +14 -1
- package/dist/react/data-access/index.js +66 -1
- package/dist/react/data-grid/index.js +13 -1
- package/dist/react/data-rods/index.js +78 -1
- package/dist/react/data-subsetter/index.js +86 -1
- package/dist/react/data-subsetter-history/index.js +89 -1
- package/dist/react/date-picker/index.js +34 -1
- package/dist/react/date-range-slider/index.js +14 -1
- package/dist/react/dialog/index.js +27 -1
- package/dist/react/divider/index.js +12 -1
- package/dist/react/dropdown/index.js +18 -1
- package/dist/react/earthdata-login/index.js +33 -1
- package/dist/react/file-upload/index.js +11 -1
- package/dist/react/icon/index.js +16 -1
- package/dist/react/index.d.ts +2 -1
- package/dist/react/index.js +447 -1
- package/dist/react/input/index.js +22 -1
- package/dist/react/loader/index.js +11 -1
- package/dist/react/login/index.js +28 -1
- package/dist/react/map/index.js +19 -1
- package/dist/react/menu/index.js +11 -1
- package/dist/react/menu-item/index.js +24 -1
- package/dist/react/option/index.js +18 -1
- package/dist/react/pagination/index.js +18 -1
- package/dist/react/plot/index.js +12 -1
- package/dist/react/plot-toolbar/index.js +39 -1
- package/dist/react/popup/index.js +11 -1
- package/dist/react/progress-bar/index.js +11 -1
- package/dist/react/radio/index.js +15 -1
- package/dist/react/radio-group/index.js +15 -1
- package/dist/react/scroll-hint/index.js +18 -1
- package/dist/react/select/index.js +29 -1
- package/dist/react/site-header/index.js +19 -1
- package/dist/react/site-navigation/index.js +11 -1
- package/dist/react/skeleton/index.js +12 -1
- package/dist/react/slider/index.js +13 -1
- package/dist/react/spatial-picker/index.d.ts +1 -0
- package/dist/react/spatial-picker/index.js +41 -1
- package/dist/react/status-indicator/index.js +11 -1
- package/dist/react/stepper/index.js +11 -1
- package/dist/react/stepper-step/index.js +18 -1
- package/dist/react/tab/index.js +18 -1
- package/dist/react/tab-panel/index.js +12 -1
- package/dist/react/tabs/index.js +19 -1
- package/dist/react/tag/index.js +18 -1
- package/dist/react/textarea/index.js +16 -1
- package/dist/react/time-average-map/index.js +54 -1
- package/dist/react/time-series/index.js +54 -1
- package/dist/react/toast/index.js +16 -1
- package/dist/react/toggle/index.js +16 -1
- package/dist/react/tooltip/index.js +17 -1
- package/dist/react/variable-combobox/index.js +26 -1
- package/dist/react/variable-keyword-search/index.js +30 -1
- package/dist/terra-ui-components-autoloader.js +42 -1
- package/dist/terra-ui-components.d.ts +1 -0
- package/dist/terra-ui-components.js +448 -1
- package/dist/terra_ui_components-0.0.177-py3-none-any.whl +0 -0
- package/dist/terra_ui_components-0.0.177.tar.gz +0 -0
- package/dist/themes/horizon.css +2 -0
- package/dist/themes/horizon.styles.js +2 -0
- package/dist/types/vue/index.d.ts +208 -173
- package/dist/utilities/animation-registry.js +11 -1
- package/dist/utilities/base-path.js +9 -1
- package/dist/utilities/date.js +13 -1
- package/dist/utilities/debounce.js +17 -1
- package/dist/utilities/environment.js +9 -1
- package/dist/utilities/form.js +10 -1
- package/dist/utilities/giovanni.js +7 -1
- package/dist/utilities/harmony.js +11 -1
- package/dist/utilities/icon-library.js +13 -1
- package/dist/utilities/mimetypes.js +9 -1
- package/dist/utilities/number.js +7 -1
- package/dist/utilities/sort.js +9 -1
- package/dist/vscode.html-custom-data.json +122 -62
- package/dist/web-types.json +288 -164
- package/package.json +8 -8
- package/cdn/apis/cmr.api.d.ts +0 -55
- package/cdn/apis/gesdisc.api.d.ts +0 -17
- package/cdn/apis/types/cmr/umm-c.d.ts +0 -795
- package/cdn/apis/types/cmr/umm-g.d.ts +0 -466
- package/cdn/apis/types/cmr/umm-var.d.ts +0 -547
- package/cdn/chunks/GeoTIFF.K52FKRIY.js +0 -21958
- package/cdn/chunks/chunk.23S4HDSJ.js +0 -149
- package/cdn/chunks/chunk.2K56JH2C.js +0 -19
- package/cdn/chunks/chunk.2KIRSUMB.js +0 -81
- package/cdn/chunks/chunk.2KUBKA4J.js +0 -19
- package/cdn/chunks/chunk.2LDOWI64.js +0 -368
- package/cdn/chunks/chunk.2NJ4FVCJ.js +0 -270
- package/cdn/chunks/chunk.2PHGZVS7.js +0 -29
- package/cdn/chunks/chunk.2PUTY7T2.js +0 -390
- package/cdn/chunks/chunk.2S2I3XCJ.js +0 -635
- package/cdn/chunks/chunk.2TFILCQO.js +0 -41
- package/cdn/chunks/chunk.2XVRMJAS.js +0 -99
- package/cdn/chunks/chunk.37JJKQR3.js +0 -82
- package/cdn/chunks/chunk.3HPCVLRD.js +0 -19
- package/cdn/chunks/chunk.3IJMW6CS.js +0 -19
- package/cdn/chunks/chunk.3NETFT7J.js +0 -78
- package/cdn/chunks/chunk.3QBJETHV.js +0 -161
- package/cdn/chunks/chunk.3QKXPORV.js +0 -276
- package/cdn/chunks/chunk.3RQRUNDE.js +0 -454
- package/cdn/chunks/chunk.3TKV2VNC.js +0 -161
- package/cdn/chunks/chunk.3WMCCZLC.js +0 -48
- package/cdn/chunks/chunk.3Y6FJXFQ.js +0 -36
- package/cdn/chunks/chunk.3Y7HZ5CS.js +0 -110
- package/cdn/chunks/chunk.42EUDXAT.js +0 -81
- package/cdn/chunks/chunk.432XUQVD.js +0 -117
- package/cdn/chunks/chunk.4A5VRGX3.js +0 -19
- package/cdn/chunks/chunk.4EK5O2DR.js +0 -19
- package/cdn/chunks/chunk.4G7BHBRM.js +0 -32
- package/cdn/chunks/chunk.4H3RQQZX.js +0 -21
- package/cdn/chunks/chunk.4OXXDGNA.js +0 -29
- package/cdn/chunks/chunk.4R55M5FT.js +0 -523
- package/cdn/chunks/chunk.4TWNGATS.js +0 -74
- package/cdn/chunks/chunk.4ZHQROR2.js +0 -19
- package/cdn/chunks/chunk.53SYG366.js +0 -230
- package/cdn/chunks/chunk.54FZLPJP.js +0 -146
- package/cdn/chunks/chunk.57IQ7PEY.js +0 -19
- package/cdn/chunks/chunk.57ZIC75S.js +0 -100
- package/cdn/chunks/chunk.5II7PIFZ.js +0 -19
- package/cdn/chunks/chunk.5J6QDY7A.js +0 -19
- package/cdn/chunks/chunk.5PH4EI7K.js +0 -51
- package/cdn/chunks/chunk.5Q3WDKUW.js +0 -106
- package/cdn/chunks/chunk.5Q7FF53M.js +0 -443
- package/cdn/chunks/chunk.5RRKLQ53.js +0 -26
- package/cdn/chunks/chunk.5WBC77BZ.js +0 -50
- package/cdn/chunks/chunk.625EMDPI.js +0 -149
- package/cdn/chunks/chunk.62DQB2LU.js +0 -29
- package/cdn/chunks/chunk.63I5CLB5.js +0 -423
- package/cdn/chunks/chunk.63OVZYG7.js +0 -134
- package/cdn/chunks/chunk.64MJYU4S.js +0 -94
- package/cdn/chunks/chunk.64Z4HDI3.js +0 -19
- package/cdn/chunks/chunk.6FITJZ7P.js +0 -19
- package/cdn/chunks/chunk.6GNSMNJB.js +0 -19
- package/cdn/chunks/chunk.6JD3FVUX.js +0 -29
- package/cdn/chunks/chunk.6P5ZFZXZ.js +0 -25
- package/cdn/chunks/chunk.6WXX4PGK.js +0 -987
- package/cdn/chunks/chunk.6XQMSL3B.js +0 -19
- package/cdn/chunks/chunk.72FHGBM6.js +0 -32
- package/cdn/chunks/chunk.72FZJG2J.js +0 -346
- package/cdn/chunks/chunk.7C7TR5B4.js +0 -32
- package/cdn/chunks/chunk.7DRUZWQ6.js +0 -283
- package/cdn/chunks/chunk.7EZRIC7E.js +0 -189
- package/cdn/chunks/chunk.7KTCMH32.js +0 -29
- package/cdn/chunks/chunk.7M5WGULI.js +0 -19
- package/cdn/chunks/chunk.7NJYVBGM.js +0 -47
- package/cdn/chunks/chunk.7OPH6HSB.js +0 -54
- package/cdn/chunks/chunk.7PBZXNDM.js +0 -286
- package/cdn/chunks/chunk.7WB3R775.js +0 -29
- package/cdn/chunks/chunk.7YQZMFUG.js +0 -259
- package/cdn/chunks/chunk.ANCJAOFB.js +0 -107
- package/cdn/chunks/chunk.ANUEITLZ.js +0 -19
- package/cdn/chunks/chunk.ASJLND3B.js +0 -77
- package/cdn/chunks/chunk.ASYH5HKC.js +0 -239
- package/cdn/chunks/chunk.AZX5GARH.js +0 -19
- package/cdn/chunks/chunk.B42N7DPY.js +0 -30
- package/cdn/chunks/chunk.B4FFHQEU.js +0 -19
- package/cdn/chunks/chunk.B66SLK6W.js +0 -93
- package/cdn/chunks/chunk.B6HDWTYU.js +0 -121
- package/cdn/chunks/chunk.BBQWRFMA.js +0 -19
- package/cdn/chunks/chunk.BBUUOD5M.js +0 -83
- package/cdn/chunks/chunk.BEZMW5XA.js +0 -19
- package/cdn/chunks/chunk.BIN6CEW5.js +0 -359
- package/cdn/chunks/chunk.BJIN2WV3.js +0 -326
- package/cdn/chunks/chunk.BNE3HPHN.js +0 -473
- package/cdn/chunks/chunk.BNM7CQLY.js +0 -285
- package/cdn/chunks/chunk.BNYV5MJU.js +0 -19
- package/cdn/chunks/chunk.BP2GLWKL.js +0 -54
- package/cdn/chunks/chunk.BPFFXXUU.js +0 -791
- package/cdn/chunks/chunk.BPWJOFJV.js +0 -19
- package/cdn/chunks/chunk.BQDEKCXK.js +0 -129
- package/cdn/chunks/chunk.BQUO6YX3.js +0 -117
- package/cdn/chunks/chunk.BYEGTGI4.js +0 -161
- package/cdn/chunks/chunk.CEMCEZ4R.js +0 -19
- package/cdn/chunks/chunk.CFMR3CLA.js +0 -71
- package/cdn/chunks/chunk.CFYNE3YV.js +0 -288
- package/cdn/chunks/chunk.COQEK24I.js +0 -19
- package/cdn/chunks/chunk.CQAF2DLU.js +0 -1975
- package/cdn/chunks/chunk.CUZPBIVS.js +0 -19
- package/cdn/chunks/chunk.D6ICWI6Z.js +0 -29
- package/cdn/chunks/chunk.D6NLCDQR.js +0 -151
- package/cdn/chunks/chunk.D7QZHISG.js +0 -32
- package/cdn/chunks/chunk.DAB5AYJ3.js +0 -19
- package/cdn/chunks/chunk.DBESYITC.js +0 -19
- package/cdn/chunks/chunk.DDYHB7YZ.js +0 -29
- package/cdn/chunks/chunk.DFBL44SH.js +0 -372
- package/cdn/chunks/chunk.DJCQWV77.js +0 -79
- package/cdn/chunks/chunk.DTDHZ6G4.js +0 -29
- package/cdn/chunks/chunk.DU3TBVXO.js +0 -19
- package/cdn/chunks/chunk.DV26VTJ6.js +0 -36
- package/cdn/chunks/chunk.DVKHFPAZ.js +0 -19
- package/cdn/chunks/chunk.E4C7NITR.js +0 -29
- package/cdn/chunks/chunk.E6MGOFS6.js +0 -33
- package/cdn/chunks/chunk.EAFQKMZ6.js +0 -60
- package/cdn/chunks/chunk.ECHFPVLW.js +0 -662
- package/cdn/chunks/chunk.EH3JEGQO.js +0 -136
- package/cdn/chunks/chunk.ELT22S3K.js +0 -139
- package/cdn/chunks/chunk.EOE53N4D.js +0 -19
- package/cdn/chunks/chunk.EZRUPP3N.js +0 -24555
- package/cdn/chunks/chunk.F7QE3QNK.js +0 -93
- package/cdn/chunks/chunk.FBQK3I4M.js +0 -251
- package/cdn/chunks/chunk.FFTQ2VD7.js +0 -610
- package/cdn/chunks/chunk.FGEGM75M.js +0 -19
- package/cdn/chunks/chunk.FGEVVJNQ.js +0 -24
- package/cdn/chunks/chunk.FH2IYJ6C.js +0 -19
- package/cdn/chunks/chunk.FLDINIKU.js +0 -45
- package/cdn/chunks/chunk.FRJSNW36.js +0 -4179
- package/cdn/chunks/chunk.FSYEZEIJ.js +0 -19
- package/cdn/chunks/chunk.FXO66O5A.js +0 -19
- package/cdn/chunks/chunk.FYC3ZB3Q.js +0 -29
- package/cdn/chunks/chunk.GBYKMMSD.js +0 -49
- package/cdn/chunks/chunk.GCT6YJNA.js +0 -19
- package/cdn/chunks/chunk.GDXR3VYP.js +0 -102
- package/cdn/chunks/chunk.GIG3YQL2.js +0 -30
- package/cdn/chunks/chunk.GMRERJMI.js +0 -99
- package/cdn/chunks/chunk.GN3S4QW4.js +0 -83
- package/cdn/chunks/chunk.GPQPCP6B.js +0 -1060
- package/cdn/chunks/chunk.GREJIXMV.js +0 -43
- package/cdn/chunks/chunk.GRESODRO.js +0 -668
- package/cdn/chunks/chunk.GUIILQUZ.js +0 -37
- package/cdn/chunks/chunk.GVR32Q7Z.js +0 -19
- package/cdn/chunks/chunk.GWVXU5WI.js +0 -108
- package/cdn/chunks/chunk.H4I7XKQG.js +0 -19
- package/cdn/chunks/chunk.HBHLBI3N.js +0 -1881
- package/cdn/chunks/chunk.HCGS5ZUW.js +0 -75
- package/cdn/chunks/chunk.HPM2H4NS.js +0 -49
- package/cdn/chunks/chunk.HTSMDZSX.js +0 -904
- package/cdn/chunks/chunk.HYXHP435.js +0 -104
- package/cdn/chunks/chunk.I2DORGVR.js +0 -99
- package/cdn/chunks/chunk.I5N6NE7Y.js +0 -32
- package/cdn/chunks/chunk.I7Q7QOTF.js +0 -19
- package/cdn/chunks/chunk.IBIJAKO4.js +0 -19
- package/cdn/chunks/chunk.IHVDCLQW.js +0 -19
- package/cdn/chunks/chunk.IL42CKDQ.js +0 -35
- package/cdn/chunks/chunk.IY4U7JFH.js +0 -231
- package/cdn/chunks/chunk.IYZOHIBX.js +0 -113
- package/cdn/chunks/chunk.J3X6X5OR.js +0 -34
- package/cdn/chunks/chunk.J7YS7AX6.js +0 -19
- package/cdn/chunks/chunk.JFAXLGEJ.js +0 -264
- package/cdn/chunks/chunk.JPMBV4LX.js +0 -29
- package/cdn/chunks/chunk.JS5TDQ5C.js +0 -348
- package/cdn/chunks/chunk.JSLR72XV.js +0 -32
- package/cdn/chunks/chunk.JZVOY66X.js +0 -19
- package/cdn/chunks/chunk.JZY4SIOS.js +0 -32
- package/cdn/chunks/chunk.KGXAA5I2.js +0 -63
- package/cdn/chunks/chunk.L2DEGX2T.js +0 -29
- package/cdn/chunks/chunk.LBHEG35U.js +0 -121
- package/cdn/chunks/chunk.LCIPMWLA.js +0 -29
- package/cdn/chunks/chunk.LDHAKRYB.js +0 -29
- package/cdn/chunks/chunk.LGYKACLK.js +0 -154
- package/cdn/chunks/chunk.LLHRSRSN.js +0 -32
- package/cdn/chunks/chunk.LNM5ZU6K.js +0 -74
- package/cdn/chunks/chunk.LNRAHD2B.js +0 -36
- package/cdn/chunks/chunk.LNTSGA5L.js +0 -1184
- package/cdn/chunks/chunk.LP27FGW5.js +0 -33
- package/cdn/chunks/chunk.LPKSQA35.js +0 -135
- package/cdn/chunks/chunk.LPNN7K23.js +0 -293
- package/cdn/chunks/chunk.LRNZULDG.js +0 -19
- package/cdn/chunks/chunk.LRZIT4M2.js +0 -157
- package/cdn/chunks/chunk.LWP22CHY.js +0 -29
- package/cdn/chunks/chunk.LWTX5IN4.js +0 -272
- package/cdn/chunks/chunk.LWXRUSS3.js +0 -1330
- package/cdn/chunks/chunk.M54TGBGR.js +0 -188
- package/cdn/chunks/chunk.M5NGQIPJ.js +0 -302
- package/cdn/chunks/chunk.MA7BWYH5.js +0 -29
- package/cdn/chunks/chunk.MAHUWVEN.js +0 -279
- package/cdn/chunks/chunk.MBNHU6HG.js +0 -31
- package/cdn/chunks/chunk.MBP4VYFB.js +0 -538
- package/cdn/chunks/chunk.MJOYRLAB.js +0 -110
- package/cdn/chunks/chunk.MPVZOQYA.js +0 -43
- package/cdn/chunks/chunk.MV7KNTAC.js +0 -37
- package/cdn/chunks/chunk.NA3PMKZ7.js +0 -62
- package/cdn/chunks/chunk.NFI5NVW6.js +0 -33
- package/cdn/chunks/chunk.NJ2NEFTI.js +0 -19
- package/cdn/chunks/chunk.NJ3TPG7D.js +0 -26
- package/cdn/chunks/chunk.NPCTDW7V.js +0 -108071
- package/cdn/chunks/chunk.NWENTFAC.js +0 -22
- package/cdn/chunks/chunk.O2FPV4EJ.js +0 -86
- package/cdn/chunks/chunk.OCME7C2N.js +0 -52
- package/cdn/chunks/chunk.OCREMSN2.js +0 -29
- package/cdn/chunks/chunk.OEEK7IGM.js +0 -247
- package/cdn/chunks/chunk.OFAIUKN5.js +0 -99
- package/cdn/chunks/chunk.OHOWAUBQ.js +0 -35
- package/cdn/chunks/chunk.OII2ASA5.js +0 -477
- package/cdn/chunks/chunk.OQUKADIT.js +0 -68
- package/cdn/chunks/chunk.OQZR2P7I.js +0 -233
- package/cdn/chunks/chunk.OS5YGA3P.js +0 -35
- package/cdn/chunks/chunk.OUXEEEZS.js +0 -306
- package/cdn/chunks/chunk.OWLHZ24R.js +0 -34
- package/cdn/chunks/chunk.P2LHGJFR.js +0 -99
- package/cdn/chunks/chunk.P4PYSONI.js +0 -1985
- package/cdn/chunks/chunk.PACUQ7ID.js +0 -72
- package/cdn/chunks/chunk.PAIZRFGH.js +0 -29
- package/cdn/chunks/chunk.PKAWD2WO.js +0 -39
- package/cdn/chunks/chunk.PKHN4ND6.js +0 -32
- package/cdn/chunks/chunk.PMD3UQTU.js +0 -109
- package/cdn/chunks/chunk.PT6EC4PO.js +0 -37
- package/cdn/chunks/chunk.PTAFBWJ6.js +0 -49
- package/cdn/chunks/chunk.PZ5TY56D.js +0 -599
- package/cdn/chunks/chunk.Q2JJZEWT.js +0 -357
- package/cdn/chunks/chunk.Q3FRXA74.js +0 -138
- package/cdn/chunks/chunk.Q4DYXGDC.js +0 -29
- package/cdn/chunks/chunk.Q5PXEHTB.js +0 -32
- package/cdn/chunks/chunk.Q6XLUYTY.js +0 -2243
- package/cdn/chunks/chunk.QCZUWUCV.js +0 -205
- package/cdn/chunks/chunk.QDAXK6J5.js +0 -19
- package/cdn/chunks/chunk.QOHUVWMU.js +0 -33
- package/cdn/chunks/chunk.QOSLAEB3.js +0 -16977
- package/cdn/chunks/chunk.QWK2WVSU.js +0 -19
- package/cdn/chunks/chunk.QXMW7NDL.js +0 -145
- package/cdn/chunks/chunk.RCPXD7AS.js +0 -3155
- package/cdn/chunks/chunk.RDQ5PGLS.js +0 -165
- package/cdn/chunks/chunk.RDWER34K.js +0 -36
- package/cdn/chunks/chunk.REDWSMK2.js +0 -19
- package/cdn/chunks/chunk.REMKVLWP.js +0 -39
- package/cdn/chunks/chunk.RHAJW5JW.js +0 -17
- package/cdn/chunks/chunk.RLW2L6QO.js +0 -75
- package/cdn/chunks/chunk.ROAOI5AI.js +0 -238
- package/cdn/chunks/chunk.RPANLYZ3.js +0 -5773
- package/cdn/chunks/chunk.RRCYT4LP.js +0 -374
- package/cdn/chunks/chunk.RWGG5FYE.js +0 -83
- package/cdn/chunks/chunk.RXOKOV25.js +0 -27
- package/cdn/chunks/chunk.RY5NHJCN.js +0 -349
- package/cdn/chunks/chunk.S2J5KOFP.js +0 -32
- package/cdn/chunks/chunk.S3NVOH7F.js +0 -29
- package/cdn/chunks/chunk.SCI3IBDJ.js +0 -51
- package/cdn/chunks/chunk.SDPSAGS7.js +0 -35
- package/cdn/chunks/chunk.SHZWEPPK.js +0 -29
- package/cdn/chunks/chunk.SI62BLWL.js +0 -117
- package/cdn/chunks/chunk.SKG5CDYE.js +0 -445
- package/cdn/chunks/chunk.SKXILWUT.js +0 -47
- package/cdn/chunks/chunk.SLBDNI7Z.js +0 -224
- package/cdn/chunks/chunk.SR4CU2NR.js +0 -27
- package/cdn/chunks/chunk.SVHOMTJN.js +0 -134
- package/cdn/chunks/chunk.SVRKAPGR.js +0 -524
- package/cdn/chunks/chunk.SYQOGYTQ.js +0 -38
- package/cdn/chunks/chunk.TCQPIQJR.js +0 -123
- package/cdn/chunks/chunk.TDO35TAG.js +0 -10
- package/cdn/chunks/chunk.TKSEPVAL.js +0 -1697
- package/cdn/chunks/chunk.TOI4RMEC.js +0 -304
- package/cdn/chunks/chunk.TP6BGA4X.js +0 -19
- package/cdn/chunks/chunk.TRMVYTDG.js +0 -68
- package/cdn/chunks/chunk.TS5YD6DR.js +0 -33
- package/cdn/chunks/chunk.TSXJLTWJ.js +0 -77
- package/cdn/chunks/chunk.TVA2ZP4B.js +0 -201
- package/cdn/chunks/chunk.TXAARJ33.js +0 -161
- package/cdn/chunks/chunk.TYGUL5RK.js +0 -132
- package/cdn/chunks/chunk.U5HIJOMQ.js +0 -75
- package/cdn/chunks/chunk.UCNIPB5M.js +0 -56
- package/cdn/chunks/chunk.UDIPZUSU.js +0 -19
- package/cdn/chunks/chunk.UKLJA2MC.js +0 -32
- package/cdn/chunks/chunk.UKREJQKJ.js +0 -304
- package/cdn/chunks/chunk.ULTZMH2Y.js +0 -92
- package/cdn/chunks/chunk.UPUYME7M.js +0 -534
- package/cdn/chunks/chunk.US5W6F6V.js +0 -32
- package/cdn/chunks/chunk.USAL55Y7.js +0 -19
- package/cdn/chunks/chunk.UTPZGRBY.js +0 -190
- package/cdn/chunks/chunk.UTWCMYYE.js +0 -151
- package/cdn/chunks/chunk.UV4RU657.js +0 -19
- package/cdn/chunks/chunk.VH7AMLEP.js +0 -32
- package/cdn/chunks/chunk.VHWT3GER.js +0 -34
- package/cdn/chunks/chunk.VICFKGQG.js +0 -277
- package/cdn/chunks/chunk.VZ3QI7OX.js +0 -621
- package/cdn/chunks/chunk.W3K4AJEB.js +0 -19
- package/cdn/chunks/chunk.W5LKCAZH.js +0 -1145
- package/cdn/chunks/chunk.WFSXAREE.js +0 -51
- package/cdn/chunks/chunk.WHVL6LTL.js +0 -35
- package/cdn/chunks/chunk.WKGMON3Z.js +0 -30
- package/cdn/chunks/chunk.WVLE62B2.js +0 -230
- package/cdn/chunks/chunk.WVVRRJAP.js +0 -32
- package/cdn/chunks/chunk.WYKMURUT.js +0 -19
- package/cdn/chunks/chunk.WYWFIRTA.js +0 -278
- package/cdn/chunks/chunk.X226GWZ2.js +0 -155
- package/cdn/chunks/chunk.X3QL3ORK.js +0 -33
- package/cdn/chunks/chunk.X65JN2S4.js +0 -19
- package/cdn/chunks/chunk.XAA5OM3G.js +0 -616
- package/cdn/chunks/chunk.XCKCVTES.js +0 -19
- package/cdn/chunks/chunk.XCUZAOKR.js +0 -19
- package/cdn/chunks/chunk.XGXEUDFB.js +0 -19
- package/cdn/chunks/chunk.XHIHATE3.js +0 -29
- package/cdn/chunks/chunk.XKGDRVCH.js +0 -29
- package/cdn/chunks/chunk.XOCMISXQ.js +0 -19
- package/cdn/chunks/chunk.XPURD6HD.js +0 -9740
- package/cdn/chunks/chunk.XPZE3KH3.js +0 -512
- package/cdn/chunks/chunk.XTEXAJU3.js +0 -234
- package/cdn/chunks/chunk.XUWLADMP.js +0 -19
- package/cdn/chunks/chunk.XWFTM3O5.js +0 -172
- package/cdn/chunks/chunk.Y22F3MAC.js +0 -493
- package/cdn/chunks/chunk.Y26BYGIC.js +0 -29
- package/cdn/chunks/chunk.Y6VAVRJR.js +0 -19
- package/cdn/chunks/chunk.YFGSWD7H.js +0 -17
- package/cdn/chunks/chunk.YGA6VAV4.js +0 -373
- package/cdn/chunks/chunk.YJR6ZNZT.js +0 -29
- package/cdn/chunks/chunk.YKJ3JAVX.js +0 -201
- package/cdn/chunks/chunk.YMMKGSAJ.js +0 -150
- package/cdn/chunks/chunk.YNEP4FAY.js +0 -82
- package/cdn/chunks/chunk.YNIY33OW.js +0 -103
- package/cdn/chunks/chunk.YNVAOTNM.js +0 -128
- package/cdn/chunks/chunk.YSHSEQ7M.js +0 -46
- package/cdn/chunks/chunk.YX2HWNCK.js +0 -156
- package/cdn/chunks/chunk.YXSEOEGS.js +0 -56075
- package/cdn/chunks/chunk.YZ7ESZTY.js +0 -19
- package/cdn/chunks/chunk.Z2SC4DOK.js +0 -214
- package/cdn/chunks/chunk.Z6GJLM5H.js +0 -19
- package/cdn/chunks/chunk.Z6OVV7U6.js +0 -29
- package/cdn/chunks/chunk.Z76IOAWE.js +0 -33
- package/cdn/chunks/chunk.ZBAE6X2X.js +0 -29
- package/cdn/chunks/chunk.ZC4CG5BE.js +0 -60
- package/cdn/chunks/chunk.ZDNVO2UT.js +0 -29
- package/cdn/chunks/chunk.ZE7PFVST.js +0 -29
- package/cdn/chunks/chunk.ZEOVK2FE.js +0 -2425
- package/cdn/chunks/chunk.ZHCOO7YL.js +0 -92
- package/cdn/chunks/chunk.ZM6WMVSY.js +0 -235
- package/cdn/chunks/chunk.ZNHBBBRJ.js +0 -338
- package/cdn/chunks/chunk.ZNJMXV2V.js +0 -19
- package/cdn/chunks/chunk.ZQVMOVOT.js +0 -42
- package/cdn/chunks/chunk.ZZSMYCE4.js +0 -29
- package/cdn/chunks/colormap.BMZ7G2OU.js +0 -181
- package/cdn/chunks/deflate.4YGXVHTG.js +0 -25
- package/cdn/chunks/jpeg.QLYJCCTQ.js +0 -951
- package/cdn/chunks/lerc.WZVXX72L.js +0 -2097
- package/cdn/chunks/lzw.W45NHZM7.js +0 -143
- package/cdn/chunks/packbits.GCVUEGBB.js +0 -40
- package/cdn/chunks/raw.IV57MJNM.js +0 -22
- package/cdn/chunks/webimage.3RSBGL4X.js +0 -62
- package/cdn/chunks/zstd.FFSBUI4F.js +0 -136
- package/cdn/components/map/controls/draw-toolbar.control.d.ts +0 -28
- package/cdn/components/map/controls/draw-toolbar.control.js +0 -10
- package/cdn/components/map/map.service.d.ts +0 -41
- package/cdn/components/map/map.service.js +0 -17
- package/cdn/components/map/models/LatLng.d.ts +0 -7
- package/cdn/components/map/models/LatLng.js +0 -7
- package/cdn/components/map/models/LatLngBounds.d.ts +0 -14
- package/cdn/components/map/models/LatLngBounds.js +0 -8
- package/cdn/components/spatial-picker/spatial-picker.service.d.ts +0 -47
- package/cdn/components/spatial-picker/spatial-picker.service.js +0 -9
- package/cdn/controllers/query.controller.d.ts +0 -19
- package/cdn/exceptions/http.exception.d.ts +0 -22
- package/cdn/lib/api.client.d.ts +0 -15
- package/cdn/lib/harmony/harmony.request.d.ts +0 -54
- package/cdn/lib/indexeddb-persister.d.ts +0 -14
- package/cdn/mixins/query-client.mixin.d.ts +0 -8
- package/cdn/queries/cmr.queries.d.ts +0 -6
- package/cdn/queries/gesdisc.queries.d.ts +0 -7
- package/cdn/services/cmr-variable.service.d.ts +0 -15
- package/cdn/utilities/feature.d.ts +0 -1
- package/cdn/utilities/feature.js +0 -7
- package/dist/apis/cmr.api.d.ts +0 -55
- package/dist/apis/gesdisc.api.d.ts +0 -17
- package/dist/apis/types/cmr/umm-c.d.ts +0 -795
- package/dist/apis/types/cmr/umm-g.d.ts +0 -466
- package/dist/apis/types/cmr/umm-var.d.ts +0 -547
- package/dist/chunks/chunk.22K6ALK5.js +0 -1
- package/dist/chunks/chunk.272VDGT6.js +0 -5
- package/dist/chunks/chunk.2AOTNXQE.js +0 -1
- package/dist/chunks/chunk.2BKQXNED.js +0 -134
- package/dist/chunks/chunk.2NNF6S2I.js +0 -144
- package/dist/chunks/chunk.2YNCLCIH.js +0 -145
- package/dist/chunks/chunk.32TDAXC6.js +0 -118
- package/dist/chunks/chunk.37DTFMSG.js +0 -1
- package/dist/chunks/chunk.3B2FDGX7.js +0 -11
- package/dist/chunks/chunk.3EDA2HZU.js +0 -266
- package/dist/chunks/chunk.3G6QKB5Z.js +0 -58
- package/dist/chunks/chunk.3JIMAXOF.js +0 -91
- package/dist/chunks/chunk.3R4FAG5J.js +0 -1
- package/dist/chunks/chunk.3XAOS6LZ.js +0 -99
- package/dist/chunks/chunk.3Y6WWRX4.js +0 -1
- package/dist/chunks/chunk.3YUBQVYS.js +0 -137
- package/dist/chunks/chunk.3YVE2Q4C.js +0 -332
- package/dist/chunks/chunk.3ZFEHRX6.js +0 -1
- package/dist/chunks/chunk.42LXCLD6.js +0 -62
- package/dist/chunks/chunk.4DSW6VDK.js +0 -1
- package/dist/chunks/chunk.4H7EP4CT.js +0 -428
- package/dist/chunks/chunk.4IU4F4P4.js +0 -1
- package/dist/chunks/chunk.4LKD5QW2.js +0 -1
- package/dist/chunks/chunk.4LXRX32O.js +0 -35
- package/dist/chunks/chunk.4QPRUY6P.js +0 -1
- package/dist/chunks/chunk.4RLATCKG.js +0 -1
- package/dist/chunks/chunk.4V6DCO3K.js +0 -1
- package/dist/chunks/chunk.4YMEXXHA.js +0 -75
- package/dist/chunks/chunk.4YQUBACJ.js +0 -126
- package/dist/chunks/chunk.4YUBLS7L.js +0 -1
- package/dist/chunks/chunk.52AVSPQE.js +0 -1
- package/dist/chunks/chunk.57BZT3TV.js +0 -25
- package/dist/chunks/chunk.57XJDIGO.js +0 -55
- package/dist/chunks/chunk.5DO7ZJZ7.js +0 -8
- package/dist/chunks/chunk.5DVFWG6G.js +0 -356
- package/dist/chunks/chunk.5M53AMLQ.js +0 -37
- package/dist/chunks/chunk.5MRGSZQ6.js +0 -1
- package/dist/chunks/chunk.5SIVM4DR.js +0 -12
- package/dist/chunks/chunk.5TWRI4L4.js +0 -49
- package/dist/chunks/chunk.5VKFYJID.js +0 -1
- package/dist/chunks/chunk.6646NRZO.js +0 -1
- package/dist/chunks/chunk.66GZLMFM.js +0 -1
- package/dist/chunks/chunk.6EM3XPM3.js +0 -1
- package/dist/chunks/chunk.6ESJLYIE.js +0 -1
- package/dist/chunks/chunk.6M2JHZRJ.js +0 -20
- package/dist/chunks/chunk.6MJMMDNP.js +0 -1
- package/dist/chunks/chunk.6MKLT7FM.js +0 -1
- package/dist/chunks/chunk.6PEAAW4E.js +0 -1
- package/dist/chunks/chunk.6STA7JOH.js +0 -17
- package/dist/chunks/chunk.6VRE7YNG.js +0 -216
- package/dist/chunks/chunk.6WTTSLOK.js +0 -3
- package/dist/chunks/chunk.6ZQ5CYAA.js +0 -1
- package/dist/chunks/chunk.75G4UJIH.js +0 -38
- package/dist/chunks/chunk.76IIZ33F.js +0 -1
- package/dist/chunks/chunk.77X2UDZ7.js +0 -1
- package/dist/chunks/chunk.7CYIMHZ2.js +0 -1
- package/dist/chunks/chunk.7HOEKFDT.js +0 -22
- package/dist/chunks/chunk.7J2F6HQM.js +0 -1
- package/dist/chunks/chunk.7JZVKWGI.js +0 -60
- package/dist/chunks/chunk.7POSFBON.js +0 -1
- package/dist/chunks/chunk.7QPIUXSS.js +0 -1
- package/dist/chunks/chunk.7W27XF6C.js +0 -218
- package/dist/chunks/chunk.7XF2CVCO.js +0 -1
- package/dist/chunks/chunk.7XVQ23TB.js +0 -20
- package/dist/chunks/chunk.A2YE24KO.js +0 -30
- package/dist/chunks/chunk.A6SIGE3C.js +0 -19
- package/dist/chunks/chunk.A77DDYFZ.js +0 -14
- package/dist/chunks/chunk.ACIJ7WID.js +0 -122
- package/dist/chunks/chunk.ACN4XQ77.js +0 -1
- package/dist/chunks/chunk.ACPZYKOT.js +0 -155
- package/dist/chunks/chunk.AJNJDVFP.js +0 -1
- package/dist/chunks/chunk.AM3PBNU3.js +0 -64
- package/dist/chunks/chunk.ATR343ZS.js +0 -129
- package/dist/chunks/chunk.BJK2563Y.js +0 -43
- package/dist/chunks/chunk.BKGRXBHT.js +0 -230
- package/dist/chunks/chunk.BSHCXDDH.js +0 -9
- package/dist/chunks/chunk.BWCJXCND.js +0 -1
- package/dist/chunks/chunk.C7D3XVVW.js +0 -1
- package/dist/chunks/chunk.C7ILTTDA.js +0 -495
- package/dist/chunks/chunk.C7UFYVQU.js +0 -1
- package/dist/chunks/chunk.CBQTPZDL.js +0 -1
- package/dist/chunks/chunk.CCZ72TNH.js +0 -55
- package/dist/chunks/chunk.CD5ZQXGV.js +0 -17
- package/dist/chunks/chunk.CGYEUNVL.js +0 -1
- package/dist/chunks/chunk.CIWVH54V.js +0 -260
- package/dist/chunks/chunk.CM2L3MSA.js +0 -1
- package/dist/chunks/chunk.CUJNKBC6.js +0 -1
- package/dist/chunks/chunk.CV2D3MDN.js +0 -93
- package/dist/chunks/chunk.D2CKY5V2.js +0 -1
- package/dist/chunks/chunk.D2XGPQYA.js +0 -1
- package/dist/chunks/chunk.DAVBRVK2.js +0 -23
- package/dist/chunks/chunk.DJ4PTWRH.js +0 -1
- package/dist/chunks/chunk.DL6MUDGX.js +0 -1
- package/dist/chunks/chunk.DOTMQT7Y.js +0 -1
- package/dist/chunks/chunk.DPANPE2D.js +0 -47
- package/dist/chunks/chunk.DQB7QI7Z.js +0 -1
- package/dist/chunks/chunk.DQMGE5WA.js +0 -1
- package/dist/chunks/chunk.DS6LDOCJ.js +0 -35
- package/dist/chunks/chunk.DSG7TPJW.js +0 -10
- package/dist/chunks/chunk.DTEOHZYB.js +0 -1
- package/dist/chunks/chunk.DXAPDDPR.js +0 -8
- package/dist/chunks/chunk.DXQMQC77.js +0 -1
- package/dist/chunks/chunk.DZ5APGIF.js +0 -1
- package/dist/chunks/chunk.E3NUSTFU.js +0 -1
- package/dist/chunks/chunk.E4MVZA4I.js +0 -1
- package/dist/chunks/chunk.E63VFQJ5.js +0 -1
- package/dist/chunks/chunk.E6HNLV32.js +0 -1
- package/dist/chunks/chunk.E775SIZV.js +0 -48
- package/dist/chunks/chunk.EBWZJM3R.js +0 -1
- package/dist/chunks/chunk.EGAHGCRB.js +0 -1
- package/dist/chunks/chunk.EHV7SQX7.js +0 -1
- package/dist/chunks/chunk.EKKUPX5N.js +0 -1
- package/dist/chunks/chunk.EP7VZEIL.js +0 -197
- package/dist/chunks/chunk.ETDMZC7Z.js +0 -1
- package/dist/chunks/chunk.ETT4EB7D.js +0 -287
- package/dist/chunks/chunk.FASUF6VE.js +0 -1
- package/dist/chunks/chunk.FHNU4GHQ.js +0 -1
- package/dist/chunks/chunk.FL6IFTRN.js +0 -34
- package/dist/chunks/chunk.FUZXNBZH.js +0 -1
- package/dist/chunks/chunk.G5YTXJ3A.js +0 -32
- package/dist/chunks/chunk.G62N3PBV.js +0 -55
- package/dist/chunks/chunk.GMJ6SXWY.js +0 -1
- package/dist/chunks/chunk.GP4XGCT7.js +0 -1
- package/dist/chunks/chunk.GVQ3ULCA.js +0 -1
- package/dist/chunks/chunk.GXTFJZWR.js +0 -351
- package/dist/chunks/chunk.H2ISCJTL.js +0 -31
- package/dist/chunks/chunk.H2KDZ37H.js +0 -346
- package/dist/chunks/chunk.H7N37E2T.js +0 -30
- package/dist/chunks/chunk.HFOKXDGN.js +0 -1
- package/dist/chunks/chunk.HHVSKYSA.js +0 -1
- package/dist/chunks/chunk.HOJEGUPI.js +0 -1
- package/dist/chunks/chunk.HOKXEGUK.js +0 -1
- package/dist/chunks/chunk.HPEPPRLY.js +0 -1
- package/dist/chunks/chunk.HRTAILZX.js +0 -71
- package/dist/chunks/chunk.HSGYZLW4.js +0 -100
- package/dist/chunks/chunk.HW6HH7MI.js +0 -1
- package/dist/chunks/chunk.I3JUJ5A6.js +0 -1
- package/dist/chunks/chunk.I4P2RJNN.js +0 -6
- package/dist/chunks/chunk.I6F3QHZP.js +0 -170
- package/dist/chunks/chunk.I7GS2S35.js +0 -16
- package/dist/chunks/chunk.IF2XG3EP.js +0 -1
- package/dist/chunks/chunk.INFVQQSJ.js +0 -1
- package/dist/chunks/chunk.IRL3C5GO.js +0 -1
- package/dist/chunks/chunk.IVAJTYHP.js +0 -618
- package/dist/chunks/chunk.IVSTBD5C.js +0 -1
- package/dist/chunks/chunk.IYLOXJSX.js +0 -1
- package/dist/chunks/chunk.J5Q4TWEG.js +0 -1
- package/dist/chunks/chunk.JA65K32V.js +0 -1
- package/dist/chunks/chunk.JBPRUIZD.js +0 -170
- package/dist/chunks/chunk.JCCEWIY5.js +0 -1
- package/dist/chunks/chunk.JGLDXLC6.js +0 -1
- package/dist/chunks/chunk.JR4CVT6A.js +0 -15
- package/dist/chunks/chunk.JXE6DOO5.js +0 -16
- package/dist/chunks/chunk.KAEEI4RX.js +0 -121
- package/dist/chunks/chunk.KAZCKT5R.js +0 -1
- package/dist/chunks/chunk.KGZZ7BN3.js +0 -289
- package/dist/chunks/chunk.KINZD6XG.js +0 -1
- package/dist/chunks/chunk.KJB4OVGG.js +0 -329
- package/dist/chunks/chunk.KJKL7PGE.js +0 -1
- package/dist/chunks/chunk.KKXYNJ2C.js +0 -61
- package/dist/chunks/chunk.KT32JELO.js +0 -1
- package/dist/chunks/chunk.KVCUA7LO.js +0 -64
- package/dist/chunks/chunk.KXA6CEPI.js +0 -1043
- package/dist/chunks/chunk.KY2VIJQQ.js +0 -1
- package/dist/chunks/chunk.L2XC3RMT.js +0 -1
- package/dist/chunks/chunk.L4T3U7TN.js +0 -43
- package/dist/chunks/chunk.LAPXG4B4.js +0 -749
- package/dist/chunks/chunk.LDTSOPRY.js +0 -65
- package/dist/chunks/chunk.LFSJQRI2.js +0 -1
- package/dist/chunks/chunk.LNBL6PVF.js +0 -1
- package/dist/chunks/chunk.LPDAW6QT.js +0 -1
- package/dist/chunks/chunk.LUQMCRYL.js +0 -1
- package/dist/chunks/chunk.M24MU27S.js +0 -82
- package/dist/chunks/chunk.MCUSVDU6.js +0 -1
- package/dist/chunks/chunk.MFP5OMR5.js +0 -1
- package/dist/chunks/chunk.MJFEBDJV.js +0 -16
- package/dist/chunks/chunk.MPQ3Y2NR.js +0 -26
- package/dist/chunks/chunk.MR2JD62K.js +0 -437
- package/dist/chunks/chunk.N5H52YQU.js +0 -1
- package/dist/chunks/chunk.NDOFONSX.js +0 -49
- package/dist/chunks/chunk.NP2QG5W4.js +0 -51
- package/dist/chunks/chunk.NSJI2VIK.js +0 -82
- package/dist/chunks/chunk.NXDBHHXT.js +0 -1
- package/dist/chunks/chunk.NZ3FMGPQ.js +0 -1
- package/dist/chunks/chunk.O4RXDTS3.js +0 -154
- package/dist/chunks/chunk.OELVETHH.js +0 -157
- package/dist/chunks/chunk.OIUVQPNF.js +0 -287
- package/dist/chunks/chunk.OKFJJMG4.js +0 -1
- package/dist/chunks/chunk.ORDTW7XK.js +0 -1
- package/dist/chunks/chunk.P5X56AXV.js +0 -74
- package/dist/chunks/chunk.P5Z2X5RJ.js +0 -64
- package/dist/chunks/chunk.P6DENF5C.js +0 -1
- package/dist/chunks/chunk.PG2ZYFK6.js +0 -11
- package/dist/chunks/chunk.PG7RC2ZX.js +0 -1
- package/dist/chunks/chunk.PH4SRGKT.js +0 -1
- package/dist/chunks/chunk.PJ2G5T64.js +0 -144
- package/dist/chunks/chunk.PJ7EBH6V.js +0 -1
- package/dist/chunks/chunk.PPVV6FIT.js +0 -1
- package/dist/chunks/chunk.PZ3LO5EU.js +0 -1
- package/dist/chunks/chunk.PZJMME4N.js +0 -1
- package/dist/chunks/chunk.PZP3ZCWL.js +0 -67
- package/dist/chunks/chunk.Q2BQWN2W.js +0 -1
- package/dist/chunks/chunk.Q3FSQR6A.js +0 -1
- package/dist/chunks/chunk.Q3RQ2KGF.js +0 -34
- package/dist/chunks/chunk.QBK5HZ4F.js +0 -24
- package/dist/chunks/chunk.QMPKM2GA.js +0 -100
- package/dist/chunks/chunk.QU5FOMMA.js +0 -1
- package/dist/chunks/chunk.QXIJD2NP.js +0 -1
- package/dist/chunks/chunk.QZWCO7EF.js +0 -321
- package/dist/chunks/chunk.R254CYHA.js +0 -1
- package/dist/chunks/chunk.R4D7NLOS.js +0 -651
- package/dist/chunks/chunk.R5GP32K5.js +0 -1
- package/dist/chunks/chunk.R762OMYE.js +0 -9
- package/dist/chunks/chunk.RANPFHJA.js +0 -1
- package/dist/chunks/chunk.REK2YOIL.js +0 -92
- package/dist/chunks/chunk.RHMQH2SJ.js +0 -299
- package/dist/chunks/chunk.RKVLJUJG.js +0 -213
- package/dist/chunks/chunk.RRKWNEL7.js +0 -13
- package/dist/chunks/chunk.RTYCX4TD.js +0 -1
- package/dist/chunks/chunk.RVXZJDZ2.js +0 -1
- package/dist/chunks/chunk.S4NR73UF.js +0 -85
- package/dist/chunks/chunk.SA2DUZVH.js +0 -4
- package/dist/chunks/chunk.SG2ODBDX.js +0 -1
- package/dist/chunks/chunk.SL4GA6EW.js +0 -1
- package/dist/chunks/chunk.SQZJC6AM.js +0 -1
- package/dist/chunks/chunk.SRDW6MAE.js +0 -111
- package/dist/chunks/chunk.SSI2NOCQ.js +0 -1
- package/dist/chunks/chunk.STTAKOQG.js +0 -1
- package/dist/chunks/chunk.SUBBVKKD.js +0 -104
- package/dist/chunks/chunk.T2OPXB5J.js +0 -1
- package/dist/chunks/chunk.T2UN43AV.js +0 -1
- package/dist/chunks/chunk.T4AS6WRP.js +0 -19
- package/dist/chunks/chunk.TAUPNAFQ.js +0 -1
- package/dist/chunks/chunk.TJFKZESZ.js +0 -1
- package/dist/chunks/chunk.TKTLHZOK.js +0 -1
- package/dist/chunks/chunk.TMWWCJW2.js +0 -1
- package/dist/chunks/chunk.TNO76AGJ.js +0 -1
- package/dist/chunks/chunk.TO6MBBTP.js +0 -14
- package/dist/chunks/chunk.TPWN67PF.js +0 -80
- package/dist/chunks/chunk.TQGVPHUZ.js +0 -12
- package/dist/chunks/chunk.TV6ZTZU3.js +0 -1
- package/dist/chunks/chunk.TX7BKMH7.js +0 -1
- package/dist/chunks/chunk.U3CL3R4K.js +0 -1
- package/dist/chunks/chunk.U6R2SR47.js +0 -1
- package/dist/chunks/chunk.UAL5F7OB.js +0 -1
- package/dist/chunks/chunk.UD2MKM4G.js +0 -1
- package/dist/chunks/chunk.UFHVFIWI.js +0 -1158
- package/dist/chunks/chunk.UHC7B5GI.js +0 -1
- package/dist/chunks/chunk.UJR2HXIA.js +0 -1
- package/dist/chunks/chunk.UKKXMXFA.js +0 -1
- package/dist/chunks/chunk.UPRPWJYA.js +0 -1
- package/dist/chunks/chunk.UQP7CZY4.js +0 -1
- package/dist/chunks/chunk.URTV3MIW.js +0 -1
- package/dist/chunks/chunk.UTCZ523L.js +0 -1
- package/dist/chunks/chunk.UTJA3S5Z.js +0 -1
- package/dist/chunks/chunk.UXPPNGDD.js +0 -1
- package/dist/chunks/chunk.V5AAPSUF.js +0 -121
- package/dist/chunks/chunk.V5WDYBAK.js +0 -1
- package/dist/chunks/chunk.V5WMFIQ2.js +0 -1
- package/dist/chunks/chunk.VDANEJIW.js +0 -1
- package/dist/chunks/chunk.VENMBB5D.js +0 -184
- package/dist/chunks/chunk.VO4IGI5T.js +0 -1
- package/dist/chunks/chunk.VOQBVUDI.js +0 -1
- package/dist/chunks/chunk.VPGGMMCQ.js +0 -26
- package/dist/chunks/chunk.VPJ23ZYK.js +0 -1
- package/dist/chunks/chunk.VUSEM3NE.js +0 -115
- package/dist/chunks/chunk.VXFEQW3G.js +0 -1
- package/dist/chunks/chunk.VZX3SFGZ.js +0 -139
- package/dist/chunks/chunk.W2BB76HP.js +0 -83
- package/dist/chunks/chunk.W2IWPBL2.js +0 -1
- package/dist/chunks/chunk.W3SNAQZD.js +0 -5
- package/dist/chunks/chunk.W5CY3WNS.js +0 -33
- package/dist/chunks/chunk.W7O33DH5.js +0 -1
- package/dist/chunks/chunk.WCKJFDOD.js +0 -1
- package/dist/chunks/chunk.WEWANHUB.js +0 -6
- package/dist/chunks/chunk.WHBYRKKO.js +0 -1
- package/dist/chunks/chunk.WMBWSS2T.js +0 -1
- package/dist/chunks/chunk.WROJSEIO.js +0 -1
- package/dist/chunks/chunk.WS6AXYGF.js +0 -1
- package/dist/chunks/chunk.WUTUR775.js +0 -140
- package/dist/chunks/chunk.WW3WBNFI.js +0 -1
- package/dist/chunks/chunk.WXZVHMVF.js +0 -1
- package/dist/chunks/chunk.WYBCLASF.js +0 -1
- package/dist/chunks/chunk.X2MYSZWK.js +0 -267
- package/dist/chunks/chunk.X5OPH5X7.js +0 -57
- package/dist/chunks/chunk.X6RQO4XW.js +0 -37
- package/dist/chunks/chunk.XECIKHZD.js +0 -12
- package/dist/chunks/chunk.XHD3D54N.js +0 -1
- package/dist/chunks/chunk.XJ7SUTSV.js +0 -1
- package/dist/chunks/chunk.XLQCKXJN.js +0 -2
- package/dist/chunks/chunk.XOXHOZNI.js +0 -9
- package/dist/chunks/chunk.XR6E2FC4.js +0 -1
- package/dist/chunks/chunk.XSCZEJFV.js +0 -1
- package/dist/chunks/chunk.XWET63TO.js +0 -188
- package/dist/chunks/chunk.XWNGGMZ4.js +0 -1
- package/dist/chunks/chunk.XYVXFHBD.js +0 -1
- package/dist/chunks/chunk.XZ2EARJY.js +0 -1
- package/dist/chunks/chunk.YBSOYLL3.js +0 -1
- package/dist/chunks/chunk.YBWXZ5TQ.js +0 -20
- package/dist/chunks/chunk.YKTJVLGW.js +0 -1
- package/dist/chunks/chunk.YVU6PVSN.js +0 -1
- package/dist/chunks/chunk.YZOJBYJJ.js +0 -132
- package/dist/chunks/chunk.Z2RTZUUC.js +0 -1
- package/dist/chunks/chunk.Z3INEUNC.js +0 -1
- package/dist/chunks/chunk.Z47EAJ4R.js +0 -66
- package/dist/chunks/chunk.Z4MRB553.js +0 -1
- package/dist/chunks/chunk.Z5574EPY.js +0 -566
- package/dist/chunks/chunk.ZDSYFD3X.js +0 -133
- package/dist/chunks/chunk.ZKW5RVQL.js +0 -1
- package/dist/chunks/chunk.ZQCC5UD2.js +0 -1
- package/dist/chunks/chunk.ZXSLGF4Q.js +0 -86
- package/dist/chunks/chunk.ZZOWU7L2.js +0 -39
- package/dist/components/map/controls/draw-toolbar.control.d.ts +0 -28
- package/dist/components/map/controls/draw-toolbar.control.js +0 -1
- package/dist/components/map/map.service.d.ts +0 -41
- package/dist/components/map/map.service.js +0 -1
- package/dist/components/map/models/LatLng.d.ts +0 -7
- package/dist/components/map/models/LatLng.js +0 -1
- package/dist/components/map/models/LatLngBounds.d.ts +0 -14
- package/dist/components/map/models/LatLngBounds.js +0 -1
- package/dist/components/spatial-picker/spatial-picker.service.d.ts +0 -47
- package/dist/components/spatial-picker/spatial-picker.service.js +0 -1
- package/dist/controllers/query.controller.d.ts +0 -19
- package/dist/exceptions/http.exception.d.ts +0 -22
- package/dist/lib/api.client.d.ts +0 -15
- package/dist/lib/harmony/harmony.request.d.ts +0 -54
- package/dist/lib/indexeddb-persister.d.ts +0 -14
- package/dist/mixins/query-client.mixin.d.ts +0 -8
- package/dist/queries/cmr.queries.d.ts +0 -6
- package/dist/queries/gesdisc.queries.d.ts +0 -7
- package/dist/services/cmr-variable.service.d.ts +0 -15
- package/dist/terra_ui_components-0.0.175-py3-none-any.whl +0 -0
- package/dist/terra_ui_components-0.0.175.tar.gz +0 -0
- package/dist/utilities/feature.d.ts +0 -1
- package/dist/utilities/feature.js +0 -1
|
@@ -0,0 +1,4968 @@
|
|
|
1
|
+
import {
|
|
2
|
+
init_buffer,
|
|
3
|
+
init_dirname,
|
|
4
|
+
init_process
|
|
5
|
+
} from "./chunk.CZA6CSBG.js";
|
|
6
|
+
|
|
7
|
+
// node_modules/ol/extent.js
|
|
8
|
+
init_dirname();
|
|
9
|
+
init_buffer();
|
|
10
|
+
init_process();
|
|
11
|
+
|
|
12
|
+
// node_modules/ol/extent/Relationship.js
|
|
13
|
+
init_dirname();
|
|
14
|
+
init_buffer();
|
|
15
|
+
init_process();
|
|
16
|
+
var Relationship_default = {
|
|
17
|
+
UNKNOWN: 0,
|
|
18
|
+
INTERSECTING: 1,
|
|
19
|
+
ABOVE: 2,
|
|
20
|
+
RIGHT: 4,
|
|
21
|
+
BELOW: 8,
|
|
22
|
+
LEFT: 16
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
// node_modules/ol/extent.js
|
|
26
|
+
function boundingExtent(coordinates) {
|
|
27
|
+
const extent = createEmpty();
|
|
28
|
+
for (let i = 0, ii = coordinates.length; i < ii; ++i) {
|
|
29
|
+
extendCoordinate(extent, coordinates[i]);
|
|
30
|
+
}
|
|
31
|
+
return extent;
|
|
32
|
+
}
|
|
33
|
+
function _boundingExtentXYs(xs, ys, dest) {
|
|
34
|
+
const minX = Math.min.apply(null, xs);
|
|
35
|
+
const minY = Math.min.apply(null, ys);
|
|
36
|
+
const maxX = Math.max.apply(null, xs);
|
|
37
|
+
const maxY = Math.max.apply(null, ys);
|
|
38
|
+
return createOrUpdate(minX, minY, maxX, maxY, dest);
|
|
39
|
+
}
|
|
40
|
+
function buffer(extent, value, dest) {
|
|
41
|
+
if (dest) {
|
|
42
|
+
dest[0] = extent[0] - value;
|
|
43
|
+
dest[1] = extent[1] - value;
|
|
44
|
+
dest[2] = extent[2] + value;
|
|
45
|
+
dest[3] = extent[3] + value;
|
|
46
|
+
return dest;
|
|
47
|
+
}
|
|
48
|
+
return [
|
|
49
|
+
extent[0] - value,
|
|
50
|
+
extent[1] - value,
|
|
51
|
+
extent[2] + value,
|
|
52
|
+
extent[3] + value
|
|
53
|
+
];
|
|
54
|
+
}
|
|
55
|
+
function clone(extent, dest) {
|
|
56
|
+
if (dest) {
|
|
57
|
+
dest[0] = extent[0];
|
|
58
|
+
dest[1] = extent[1];
|
|
59
|
+
dest[2] = extent[2];
|
|
60
|
+
dest[3] = extent[3];
|
|
61
|
+
return dest;
|
|
62
|
+
}
|
|
63
|
+
return extent.slice();
|
|
64
|
+
}
|
|
65
|
+
function closestSquaredDistanceXY(extent, x, y) {
|
|
66
|
+
let dx, dy;
|
|
67
|
+
if (x < extent[0]) {
|
|
68
|
+
dx = extent[0] - x;
|
|
69
|
+
} else if (extent[2] < x) {
|
|
70
|
+
dx = x - extent[2];
|
|
71
|
+
} else {
|
|
72
|
+
dx = 0;
|
|
73
|
+
}
|
|
74
|
+
if (y < extent[1]) {
|
|
75
|
+
dy = extent[1] - y;
|
|
76
|
+
} else if (extent[3] < y) {
|
|
77
|
+
dy = y - extent[3];
|
|
78
|
+
} else {
|
|
79
|
+
dy = 0;
|
|
80
|
+
}
|
|
81
|
+
return dx * dx + dy * dy;
|
|
82
|
+
}
|
|
83
|
+
function containsCoordinate(extent, coordinate) {
|
|
84
|
+
return containsXY(extent, coordinate[0], coordinate[1]);
|
|
85
|
+
}
|
|
86
|
+
function containsExtent(extent1, extent2) {
|
|
87
|
+
return extent1[0] <= extent2[0] && extent2[2] <= extent1[2] && extent1[1] <= extent2[1] && extent2[3] <= extent1[3];
|
|
88
|
+
}
|
|
89
|
+
function containsXY(extent, x, y) {
|
|
90
|
+
return extent[0] <= x && x <= extent[2] && extent[1] <= y && y <= extent[3];
|
|
91
|
+
}
|
|
92
|
+
function coordinateRelationship(extent, coordinate) {
|
|
93
|
+
const minX = extent[0];
|
|
94
|
+
const minY = extent[1];
|
|
95
|
+
const maxX = extent[2];
|
|
96
|
+
const maxY = extent[3];
|
|
97
|
+
const x = coordinate[0];
|
|
98
|
+
const y = coordinate[1];
|
|
99
|
+
let relationship = Relationship_default.UNKNOWN;
|
|
100
|
+
if (x < minX) {
|
|
101
|
+
relationship = relationship | Relationship_default.LEFT;
|
|
102
|
+
} else if (x > maxX) {
|
|
103
|
+
relationship = relationship | Relationship_default.RIGHT;
|
|
104
|
+
}
|
|
105
|
+
if (y < minY) {
|
|
106
|
+
relationship = relationship | Relationship_default.BELOW;
|
|
107
|
+
} else if (y > maxY) {
|
|
108
|
+
relationship = relationship | Relationship_default.ABOVE;
|
|
109
|
+
}
|
|
110
|
+
if (relationship === Relationship_default.UNKNOWN) {
|
|
111
|
+
relationship = Relationship_default.INTERSECTING;
|
|
112
|
+
}
|
|
113
|
+
return relationship;
|
|
114
|
+
}
|
|
115
|
+
function createEmpty() {
|
|
116
|
+
return [Infinity, Infinity, -Infinity, -Infinity];
|
|
117
|
+
}
|
|
118
|
+
function createOrUpdate(minX, minY, maxX, maxY, dest) {
|
|
119
|
+
if (dest) {
|
|
120
|
+
dest[0] = minX;
|
|
121
|
+
dest[1] = minY;
|
|
122
|
+
dest[2] = maxX;
|
|
123
|
+
dest[3] = maxY;
|
|
124
|
+
return dest;
|
|
125
|
+
}
|
|
126
|
+
return [minX, minY, maxX, maxY];
|
|
127
|
+
}
|
|
128
|
+
function createOrUpdateEmpty(dest) {
|
|
129
|
+
return createOrUpdate(Infinity, Infinity, -Infinity, -Infinity, dest);
|
|
130
|
+
}
|
|
131
|
+
function createOrUpdateFromCoordinate(coordinate, dest) {
|
|
132
|
+
const x = coordinate[0];
|
|
133
|
+
const y = coordinate[1];
|
|
134
|
+
return createOrUpdate(x, y, x, y, dest);
|
|
135
|
+
}
|
|
136
|
+
function createOrUpdateFromFlatCoordinates(flatCoordinates, offset, end, stride, dest) {
|
|
137
|
+
const extent = createOrUpdateEmpty(dest);
|
|
138
|
+
return extendFlatCoordinates(extent, flatCoordinates, offset, end, stride);
|
|
139
|
+
}
|
|
140
|
+
function equals(extent1, extent2) {
|
|
141
|
+
return extent1[0] == extent2[0] && extent1[2] == extent2[2] && extent1[1] == extent2[1] && extent1[3] == extent2[3];
|
|
142
|
+
}
|
|
143
|
+
function approximatelyEquals(extent1, extent2, tolerance) {
|
|
144
|
+
return Math.abs(extent1[0] - extent2[0]) < tolerance && Math.abs(extent1[2] - extent2[2]) < tolerance && Math.abs(extent1[1] - extent2[1]) < tolerance && Math.abs(extent1[3] - extent2[3]) < tolerance;
|
|
145
|
+
}
|
|
146
|
+
function extend(extent1, extent2) {
|
|
147
|
+
if (extent2[0] < extent1[0]) {
|
|
148
|
+
extent1[0] = extent2[0];
|
|
149
|
+
}
|
|
150
|
+
if (extent2[2] > extent1[2]) {
|
|
151
|
+
extent1[2] = extent2[2];
|
|
152
|
+
}
|
|
153
|
+
if (extent2[1] < extent1[1]) {
|
|
154
|
+
extent1[1] = extent2[1];
|
|
155
|
+
}
|
|
156
|
+
if (extent2[3] > extent1[3]) {
|
|
157
|
+
extent1[3] = extent2[3];
|
|
158
|
+
}
|
|
159
|
+
return extent1;
|
|
160
|
+
}
|
|
161
|
+
function extendCoordinate(extent, coordinate) {
|
|
162
|
+
if (coordinate[0] < extent[0]) {
|
|
163
|
+
extent[0] = coordinate[0];
|
|
164
|
+
}
|
|
165
|
+
if (coordinate[0] > extent[2]) {
|
|
166
|
+
extent[2] = coordinate[0];
|
|
167
|
+
}
|
|
168
|
+
if (coordinate[1] < extent[1]) {
|
|
169
|
+
extent[1] = coordinate[1];
|
|
170
|
+
}
|
|
171
|
+
if (coordinate[1] > extent[3]) {
|
|
172
|
+
extent[3] = coordinate[1];
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
function extendFlatCoordinates(extent, flatCoordinates, offset, end, stride) {
|
|
176
|
+
for (; offset < end; offset += stride) {
|
|
177
|
+
extendXY(extent, flatCoordinates[offset], flatCoordinates[offset + 1]);
|
|
178
|
+
}
|
|
179
|
+
return extent;
|
|
180
|
+
}
|
|
181
|
+
function extendXY(extent, x, y) {
|
|
182
|
+
extent[0] = Math.min(extent[0], x);
|
|
183
|
+
extent[1] = Math.min(extent[1], y);
|
|
184
|
+
extent[2] = Math.max(extent[2], x);
|
|
185
|
+
extent[3] = Math.max(extent[3], y);
|
|
186
|
+
}
|
|
187
|
+
function forEachCorner(extent, callback) {
|
|
188
|
+
let val;
|
|
189
|
+
val = callback(getBottomLeft(extent));
|
|
190
|
+
if (val) {
|
|
191
|
+
return val;
|
|
192
|
+
}
|
|
193
|
+
val = callback(getBottomRight(extent));
|
|
194
|
+
if (val) {
|
|
195
|
+
return val;
|
|
196
|
+
}
|
|
197
|
+
val = callback(getTopRight(extent));
|
|
198
|
+
if (val) {
|
|
199
|
+
return val;
|
|
200
|
+
}
|
|
201
|
+
val = callback(getTopLeft(extent));
|
|
202
|
+
if (val) {
|
|
203
|
+
return val;
|
|
204
|
+
}
|
|
205
|
+
return false;
|
|
206
|
+
}
|
|
207
|
+
function getArea(extent) {
|
|
208
|
+
let area = 0;
|
|
209
|
+
if (!isEmpty(extent)) {
|
|
210
|
+
area = getWidth(extent) * getHeight(extent);
|
|
211
|
+
}
|
|
212
|
+
return area;
|
|
213
|
+
}
|
|
214
|
+
function getBottomLeft(extent) {
|
|
215
|
+
return [extent[0], extent[1]];
|
|
216
|
+
}
|
|
217
|
+
function getBottomRight(extent) {
|
|
218
|
+
return [extent[2], extent[1]];
|
|
219
|
+
}
|
|
220
|
+
function getCenter(extent) {
|
|
221
|
+
return [(extent[0] + extent[2]) / 2, (extent[1] + extent[3]) / 2];
|
|
222
|
+
}
|
|
223
|
+
function getCorner(extent, corner) {
|
|
224
|
+
let coordinate;
|
|
225
|
+
if (corner === "bottom-left") {
|
|
226
|
+
coordinate = getBottomLeft(extent);
|
|
227
|
+
} else if (corner === "bottom-right") {
|
|
228
|
+
coordinate = getBottomRight(extent);
|
|
229
|
+
} else if (corner === "top-left") {
|
|
230
|
+
coordinate = getTopLeft(extent);
|
|
231
|
+
} else if (corner === "top-right") {
|
|
232
|
+
coordinate = getTopRight(extent);
|
|
233
|
+
} else {
|
|
234
|
+
throw new Error("Invalid corner");
|
|
235
|
+
}
|
|
236
|
+
return coordinate;
|
|
237
|
+
}
|
|
238
|
+
function getForViewAndSize(center, resolution, rotation, size, dest) {
|
|
239
|
+
const [x0, y0, x1, y1, x2, y2, x3, y3] = getRotatedViewport(
|
|
240
|
+
center,
|
|
241
|
+
resolution,
|
|
242
|
+
rotation,
|
|
243
|
+
size
|
|
244
|
+
);
|
|
245
|
+
return createOrUpdate(
|
|
246
|
+
Math.min(x0, x1, x2, x3),
|
|
247
|
+
Math.min(y0, y1, y2, y3),
|
|
248
|
+
Math.max(x0, x1, x2, x3),
|
|
249
|
+
Math.max(y0, y1, y2, y3),
|
|
250
|
+
dest
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
function getRotatedViewport(center, resolution, rotation, size) {
|
|
254
|
+
const dx = resolution * size[0] / 2;
|
|
255
|
+
const dy = resolution * size[1] / 2;
|
|
256
|
+
const cosRotation = Math.cos(rotation);
|
|
257
|
+
const sinRotation = Math.sin(rotation);
|
|
258
|
+
const xCos = dx * cosRotation;
|
|
259
|
+
const xSin = dx * sinRotation;
|
|
260
|
+
const yCos = dy * cosRotation;
|
|
261
|
+
const ySin = dy * sinRotation;
|
|
262
|
+
const x = center[0];
|
|
263
|
+
const y = center[1];
|
|
264
|
+
return [
|
|
265
|
+
x - xCos + ySin,
|
|
266
|
+
y - xSin - yCos,
|
|
267
|
+
x - xCos - ySin,
|
|
268
|
+
y - xSin + yCos,
|
|
269
|
+
x + xCos - ySin,
|
|
270
|
+
y + xSin + yCos,
|
|
271
|
+
x + xCos + ySin,
|
|
272
|
+
y + xSin - yCos,
|
|
273
|
+
x - xCos + ySin,
|
|
274
|
+
y - xSin - yCos
|
|
275
|
+
];
|
|
276
|
+
}
|
|
277
|
+
function getHeight(extent) {
|
|
278
|
+
return extent[3] - extent[1];
|
|
279
|
+
}
|
|
280
|
+
function getIntersection(extent1, extent2, dest) {
|
|
281
|
+
const intersection = dest ? dest : createEmpty();
|
|
282
|
+
if (intersects(extent1, extent2)) {
|
|
283
|
+
if (extent1[0] > extent2[0]) {
|
|
284
|
+
intersection[0] = extent1[0];
|
|
285
|
+
} else {
|
|
286
|
+
intersection[0] = extent2[0];
|
|
287
|
+
}
|
|
288
|
+
if (extent1[1] > extent2[1]) {
|
|
289
|
+
intersection[1] = extent1[1];
|
|
290
|
+
} else {
|
|
291
|
+
intersection[1] = extent2[1];
|
|
292
|
+
}
|
|
293
|
+
if (extent1[2] < extent2[2]) {
|
|
294
|
+
intersection[2] = extent1[2];
|
|
295
|
+
} else {
|
|
296
|
+
intersection[2] = extent2[2];
|
|
297
|
+
}
|
|
298
|
+
if (extent1[3] < extent2[3]) {
|
|
299
|
+
intersection[3] = extent1[3];
|
|
300
|
+
} else {
|
|
301
|
+
intersection[3] = extent2[3];
|
|
302
|
+
}
|
|
303
|
+
} else {
|
|
304
|
+
createOrUpdateEmpty(intersection);
|
|
305
|
+
}
|
|
306
|
+
return intersection;
|
|
307
|
+
}
|
|
308
|
+
function getTopLeft(extent) {
|
|
309
|
+
return [extent[0], extent[3]];
|
|
310
|
+
}
|
|
311
|
+
function getTopRight(extent) {
|
|
312
|
+
return [extent[2], extent[3]];
|
|
313
|
+
}
|
|
314
|
+
function getWidth(extent) {
|
|
315
|
+
return extent[2] - extent[0];
|
|
316
|
+
}
|
|
317
|
+
function intersects(extent1, extent2) {
|
|
318
|
+
return extent1[0] <= extent2[2] && extent1[2] >= extent2[0] && extent1[1] <= extent2[3] && extent1[3] >= extent2[1];
|
|
319
|
+
}
|
|
320
|
+
function isEmpty(extent) {
|
|
321
|
+
return extent[2] < extent[0] || extent[3] < extent[1];
|
|
322
|
+
}
|
|
323
|
+
function returnOrUpdate(extent, dest) {
|
|
324
|
+
if (dest) {
|
|
325
|
+
dest[0] = extent[0];
|
|
326
|
+
dest[1] = extent[1];
|
|
327
|
+
dest[2] = extent[2];
|
|
328
|
+
dest[3] = extent[3];
|
|
329
|
+
return dest;
|
|
330
|
+
}
|
|
331
|
+
return extent;
|
|
332
|
+
}
|
|
333
|
+
function intersectsSegment(extent, start, end) {
|
|
334
|
+
let intersects2 = false;
|
|
335
|
+
const startRel = coordinateRelationship(extent, start);
|
|
336
|
+
const endRel = coordinateRelationship(extent, end);
|
|
337
|
+
if (startRel === Relationship_default.INTERSECTING || endRel === Relationship_default.INTERSECTING) {
|
|
338
|
+
intersects2 = true;
|
|
339
|
+
} else {
|
|
340
|
+
const minX = extent[0];
|
|
341
|
+
const minY = extent[1];
|
|
342
|
+
const maxX = extent[2];
|
|
343
|
+
const maxY = extent[3];
|
|
344
|
+
const startX = start[0];
|
|
345
|
+
const startY = start[1];
|
|
346
|
+
const endX = end[0];
|
|
347
|
+
const endY = end[1];
|
|
348
|
+
const slope = (endY - startY) / (endX - startX);
|
|
349
|
+
let x, y;
|
|
350
|
+
if (!!(endRel & Relationship_default.ABOVE) && !(startRel & Relationship_default.ABOVE)) {
|
|
351
|
+
x = endX - (endY - maxY) / slope;
|
|
352
|
+
intersects2 = x >= minX && x <= maxX;
|
|
353
|
+
}
|
|
354
|
+
if (!intersects2 && !!(endRel & Relationship_default.RIGHT) && !(startRel & Relationship_default.RIGHT)) {
|
|
355
|
+
y = endY - (endX - maxX) * slope;
|
|
356
|
+
intersects2 = y >= minY && y <= maxY;
|
|
357
|
+
}
|
|
358
|
+
if (!intersects2 && !!(endRel & Relationship_default.BELOW) && !(startRel & Relationship_default.BELOW)) {
|
|
359
|
+
x = endX - (endY - minY) / slope;
|
|
360
|
+
intersects2 = x >= minX && x <= maxX;
|
|
361
|
+
}
|
|
362
|
+
if (!intersects2 && !!(endRel & Relationship_default.LEFT) && !(startRel & Relationship_default.LEFT)) {
|
|
363
|
+
y = endY - (endX - minX) * slope;
|
|
364
|
+
intersects2 = y >= minY && y <= maxY;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
return intersects2;
|
|
368
|
+
}
|
|
369
|
+
function applyTransform(extent, transformFn, dest, stops) {
|
|
370
|
+
if (isEmpty(extent)) {
|
|
371
|
+
return createOrUpdateEmpty(dest);
|
|
372
|
+
}
|
|
373
|
+
let coordinates = [];
|
|
374
|
+
if (stops > 1) {
|
|
375
|
+
const width = extent[2] - extent[0];
|
|
376
|
+
const height = extent[3] - extent[1];
|
|
377
|
+
for (let i = 0; i < stops; ++i) {
|
|
378
|
+
coordinates.push(
|
|
379
|
+
extent[0] + width * i / stops,
|
|
380
|
+
extent[1],
|
|
381
|
+
extent[2],
|
|
382
|
+
extent[1] + height * i / stops,
|
|
383
|
+
extent[2] - width * i / stops,
|
|
384
|
+
extent[3],
|
|
385
|
+
extent[0],
|
|
386
|
+
extent[3] - height * i / stops
|
|
387
|
+
);
|
|
388
|
+
}
|
|
389
|
+
} else {
|
|
390
|
+
coordinates = [
|
|
391
|
+
extent[0],
|
|
392
|
+
extent[1],
|
|
393
|
+
extent[2],
|
|
394
|
+
extent[1],
|
|
395
|
+
extent[2],
|
|
396
|
+
extent[3],
|
|
397
|
+
extent[0],
|
|
398
|
+
extent[3]
|
|
399
|
+
];
|
|
400
|
+
}
|
|
401
|
+
transformFn(coordinates, coordinates, 2);
|
|
402
|
+
const xs = [];
|
|
403
|
+
const ys = [];
|
|
404
|
+
for (let i = 0, l = coordinates.length; i < l; i += 2) {
|
|
405
|
+
xs.push(coordinates[i]);
|
|
406
|
+
ys.push(coordinates[i + 1]);
|
|
407
|
+
}
|
|
408
|
+
return _boundingExtentXYs(xs, ys, dest);
|
|
409
|
+
}
|
|
410
|
+
function wrapX(extent, projection) {
|
|
411
|
+
const projectionExtent = projection.getExtent();
|
|
412
|
+
const center = getCenter(extent);
|
|
413
|
+
if (projection.canWrapX() && (center[0] < projectionExtent[0] || center[0] >= projectionExtent[2])) {
|
|
414
|
+
const worldWidth = getWidth(projectionExtent);
|
|
415
|
+
const worldsAway = Math.floor(
|
|
416
|
+
(center[0] - projectionExtent[0]) / worldWidth
|
|
417
|
+
);
|
|
418
|
+
const offset = worldsAway * worldWidth;
|
|
419
|
+
extent[0] -= offset;
|
|
420
|
+
extent[2] -= offset;
|
|
421
|
+
}
|
|
422
|
+
return extent;
|
|
423
|
+
}
|
|
424
|
+
function wrapAndSliceX(extent, projection, multiWorld) {
|
|
425
|
+
if (projection.canWrapX()) {
|
|
426
|
+
const projectionExtent = projection.getExtent();
|
|
427
|
+
if (!isFinite(extent[0]) || !isFinite(extent[2])) {
|
|
428
|
+
return [[projectionExtent[0], extent[1], projectionExtent[2], extent[3]]];
|
|
429
|
+
}
|
|
430
|
+
wrapX(extent, projection);
|
|
431
|
+
const worldWidth = getWidth(projectionExtent);
|
|
432
|
+
if (getWidth(extent) > worldWidth && !multiWorld) {
|
|
433
|
+
return [[projectionExtent[0], extent[1], projectionExtent[2], extent[3]]];
|
|
434
|
+
}
|
|
435
|
+
if (extent[0] < projectionExtent[0]) {
|
|
436
|
+
return [
|
|
437
|
+
[extent[0] + worldWidth, extent[1], projectionExtent[2], extent[3]],
|
|
438
|
+
[projectionExtent[0], extent[1], extent[2], extent[3]]
|
|
439
|
+
];
|
|
440
|
+
}
|
|
441
|
+
if (extent[2] > projectionExtent[2]) {
|
|
442
|
+
return [
|
|
443
|
+
[extent[0], extent[1], projectionExtent[2], extent[3]],
|
|
444
|
+
[projectionExtent[0], extent[1], extent[2] - worldWidth, extent[3]]
|
|
445
|
+
];
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
return [extent];
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
// node_modules/ol/math.js
|
|
452
|
+
init_dirname();
|
|
453
|
+
init_buffer();
|
|
454
|
+
init_process();
|
|
455
|
+
function clamp(value, min, max) {
|
|
456
|
+
return Math.min(Math.max(value, min), max);
|
|
457
|
+
}
|
|
458
|
+
function squaredSegmentDistance(x, y, x1, y1, x2, y2) {
|
|
459
|
+
const dx = x2 - x1;
|
|
460
|
+
const dy = y2 - y1;
|
|
461
|
+
if (dx !== 0 || dy !== 0) {
|
|
462
|
+
const t = ((x - x1) * dx + (y - y1) * dy) / (dx * dx + dy * dy);
|
|
463
|
+
if (t > 1) {
|
|
464
|
+
x1 = x2;
|
|
465
|
+
y1 = y2;
|
|
466
|
+
} else if (t > 0) {
|
|
467
|
+
x1 += dx * t;
|
|
468
|
+
y1 += dy * t;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
return squaredDistance(x, y, x1, y1);
|
|
472
|
+
}
|
|
473
|
+
function squaredDistance(x1, y1, x2, y2) {
|
|
474
|
+
const dx = x2 - x1;
|
|
475
|
+
const dy = y2 - y1;
|
|
476
|
+
return dx * dx + dy * dy;
|
|
477
|
+
}
|
|
478
|
+
function solveLinearSystem(mat) {
|
|
479
|
+
const n = mat.length;
|
|
480
|
+
for (let i = 0; i < n; i++) {
|
|
481
|
+
let maxRow = i;
|
|
482
|
+
let maxEl = Math.abs(mat[i][i]);
|
|
483
|
+
for (let r = i + 1; r < n; r++) {
|
|
484
|
+
const absValue = Math.abs(mat[r][i]);
|
|
485
|
+
if (absValue > maxEl) {
|
|
486
|
+
maxEl = absValue;
|
|
487
|
+
maxRow = r;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
if (maxEl === 0) {
|
|
491
|
+
return null;
|
|
492
|
+
}
|
|
493
|
+
const tmp = mat[maxRow];
|
|
494
|
+
mat[maxRow] = mat[i];
|
|
495
|
+
mat[i] = tmp;
|
|
496
|
+
for (let j = i + 1; j < n; j++) {
|
|
497
|
+
const coef = -mat[j][i] / mat[i][i];
|
|
498
|
+
for (let k = i; k < n + 1; k++) {
|
|
499
|
+
if (i == k) {
|
|
500
|
+
mat[j][k] = 0;
|
|
501
|
+
} else {
|
|
502
|
+
mat[j][k] += coef * mat[i][k];
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
const x = new Array(n);
|
|
508
|
+
for (let l = n - 1; l >= 0; l--) {
|
|
509
|
+
x[l] = mat[l][n] / mat[l][l];
|
|
510
|
+
for (let m = l - 1; m >= 0; m--) {
|
|
511
|
+
mat[m][n] -= mat[m][l] * x[l];
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
return x;
|
|
515
|
+
}
|
|
516
|
+
function toDegrees(angleInRadians) {
|
|
517
|
+
return angleInRadians * 180 / Math.PI;
|
|
518
|
+
}
|
|
519
|
+
function toRadians(angleInDegrees) {
|
|
520
|
+
return angleInDegrees * Math.PI / 180;
|
|
521
|
+
}
|
|
522
|
+
function modulo(a, b) {
|
|
523
|
+
const r = a % b;
|
|
524
|
+
return r * b < 0 ? r + b : r;
|
|
525
|
+
}
|
|
526
|
+
function lerp(a, b, x) {
|
|
527
|
+
return a + x * (b - a);
|
|
528
|
+
}
|
|
529
|
+
function toFixed(n, decimals) {
|
|
530
|
+
const factor = Math.pow(10, decimals);
|
|
531
|
+
return Math.round(n * factor) / factor;
|
|
532
|
+
}
|
|
533
|
+
function floor(n, decimals) {
|
|
534
|
+
return Math.floor(toFixed(n, decimals));
|
|
535
|
+
}
|
|
536
|
+
function ceil(n, decimals) {
|
|
537
|
+
return Math.ceil(toFixed(n, decimals));
|
|
538
|
+
}
|
|
539
|
+
function wrap(n, min, max) {
|
|
540
|
+
if (n >= min && n < max) {
|
|
541
|
+
return n;
|
|
542
|
+
}
|
|
543
|
+
const range = max - min;
|
|
544
|
+
return ((n - min) % range + range) % range + min;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
// node_modules/ol/sphere.js
|
|
548
|
+
init_dirname();
|
|
549
|
+
init_buffer();
|
|
550
|
+
init_process();
|
|
551
|
+
var DEFAULT_RADIUS = 63710088e-1;
|
|
552
|
+
function getDistance(c1, c2, radius) {
|
|
553
|
+
radius = radius || DEFAULT_RADIUS;
|
|
554
|
+
const lat1 = toRadians(c1[1]);
|
|
555
|
+
const lat2 = toRadians(c2[1]);
|
|
556
|
+
const deltaLatBy2 = (lat2 - lat1) / 2;
|
|
557
|
+
const deltaLonBy2 = toRadians(c2[0] - c1[0]) / 2;
|
|
558
|
+
const a = Math.sin(deltaLatBy2) * Math.sin(deltaLatBy2) + Math.sin(deltaLonBy2) * Math.sin(deltaLonBy2) * Math.cos(lat1) * Math.cos(lat2);
|
|
559
|
+
return 2 * radius * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
|
|
560
|
+
}
|
|
561
|
+
function getLengthInternal(coordinates, radius) {
|
|
562
|
+
let length = 0;
|
|
563
|
+
for (let i = 0, ii = coordinates.length; i < ii - 1; ++i) {
|
|
564
|
+
length += getDistance(coordinates[i], coordinates[i + 1], radius);
|
|
565
|
+
}
|
|
566
|
+
return length;
|
|
567
|
+
}
|
|
568
|
+
function getLength(geometry, options) {
|
|
569
|
+
options = options || {};
|
|
570
|
+
const radius = options.radius || DEFAULT_RADIUS;
|
|
571
|
+
const projection = options.projection || "EPSG:3857";
|
|
572
|
+
const type = geometry.getType();
|
|
573
|
+
if (type !== "GeometryCollection") {
|
|
574
|
+
geometry = geometry.clone().transform(projection, "EPSG:4326");
|
|
575
|
+
}
|
|
576
|
+
let length = 0;
|
|
577
|
+
let coordinates, coords, i, ii, j, jj;
|
|
578
|
+
switch (type) {
|
|
579
|
+
case "Point":
|
|
580
|
+
case "MultiPoint": {
|
|
581
|
+
break;
|
|
582
|
+
}
|
|
583
|
+
case "LineString":
|
|
584
|
+
case "LinearRing": {
|
|
585
|
+
coordinates = /** @type {import("./geom/SimpleGeometry.js").default} */
|
|
586
|
+
geometry.getCoordinates();
|
|
587
|
+
length = getLengthInternal(coordinates, radius);
|
|
588
|
+
break;
|
|
589
|
+
}
|
|
590
|
+
case "MultiLineString":
|
|
591
|
+
case "Polygon": {
|
|
592
|
+
coordinates = /** @type {import("./geom/SimpleGeometry.js").default} */
|
|
593
|
+
geometry.getCoordinates();
|
|
594
|
+
for (i = 0, ii = coordinates.length; i < ii; ++i) {
|
|
595
|
+
length += getLengthInternal(coordinates[i], radius);
|
|
596
|
+
}
|
|
597
|
+
break;
|
|
598
|
+
}
|
|
599
|
+
case "MultiPolygon": {
|
|
600
|
+
coordinates = /** @type {import("./geom/SimpleGeometry.js").default} */
|
|
601
|
+
geometry.getCoordinates();
|
|
602
|
+
for (i = 0, ii = coordinates.length; i < ii; ++i) {
|
|
603
|
+
coords = coordinates[i];
|
|
604
|
+
for (j = 0, jj = coords.length; j < jj; ++j) {
|
|
605
|
+
length += getLengthInternal(coords[j], radius);
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
break;
|
|
609
|
+
}
|
|
610
|
+
case "GeometryCollection": {
|
|
611
|
+
const geometries = (
|
|
612
|
+
/** @type {import("./geom/GeometryCollection.js").default} */
|
|
613
|
+
geometry.getGeometries()
|
|
614
|
+
);
|
|
615
|
+
for (i = 0, ii = geometries.length; i < ii; ++i) {
|
|
616
|
+
length += getLength(geometries[i], options);
|
|
617
|
+
}
|
|
618
|
+
break;
|
|
619
|
+
}
|
|
620
|
+
default: {
|
|
621
|
+
throw new Error("Unsupported geometry type: " + type);
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
return length;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
// node_modules/ol/console.js
|
|
628
|
+
init_dirname();
|
|
629
|
+
init_buffer();
|
|
630
|
+
init_process();
|
|
631
|
+
var levels = {
|
|
632
|
+
info: 1,
|
|
633
|
+
warn: 2,
|
|
634
|
+
error: 3,
|
|
635
|
+
none: 4
|
|
636
|
+
};
|
|
637
|
+
var level = levels.info;
|
|
638
|
+
function warn(...args) {
|
|
639
|
+
if (level > levels.warn) {
|
|
640
|
+
return;
|
|
641
|
+
}
|
|
642
|
+
console.warn(...args);
|
|
643
|
+
}
|
|
644
|
+
function error(...args) {
|
|
645
|
+
if (level > levels.error) {
|
|
646
|
+
return;
|
|
647
|
+
}
|
|
648
|
+
console.error(...args);
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
// node_modules/ol/proj/Units.js
|
|
652
|
+
init_dirname();
|
|
653
|
+
init_buffer();
|
|
654
|
+
init_process();
|
|
655
|
+
var unitByCode = {
|
|
656
|
+
"9001": "m",
|
|
657
|
+
"9002": "ft",
|
|
658
|
+
"9003": "us-ft",
|
|
659
|
+
"9101": "radians",
|
|
660
|
+
"9102": "degrees"
|
|
661
|
+
};
|
|
662
|
+
function fromCode(code) {
|
|
663
|
+
return unitByCode[code];
|
|
664
|
+
}
|
|
665
|
+
var METERS_PER_UNIT = {
|
|
666
|
+
// use the radius of the Normal sphere
|
|
667
|
+
"radians": 6370997 / (2 * Math.PI),
|
|
668
|
+
"degrees": 2 * Math.PI * 6370997 / 360,
|
|
669
|
+
"ft": 0.3048,
|
|
670
|
+
"m": 1,
|
|
671
|
+
"us-ft": 1200 / 3937
|
|
672
|
+
};
|
|
673
|
+
|
|
674
|
+
// node_modules/ol/proj/Projection.js
|
|
675
|
+
init_dirname();
|
|
676
|
+
init_buffer();
|
|
677
|
+
init_process();
|
|
678
|
+
var Projection = class {
|
|
679
|
+
/**
|
|
680
|
+
* @param {Options} options Projection options.
|
|
681
|
+
*/
|
|
682
|
+
constructor(options) {
|
|
683
|
+
this.code_ = options.code;
|
|
684
|
+
this.units_ = /** @type {import("./Units.js").Units} */
|
|
685
|
+
options.units;
|
|
686
|
+
this.extent_ = options.extent !== void 0 ? options.extent : null;
|
|
687
|
+
this.worldExtent_ = options.worldExtent !== void 0 ? options.worldExtent : null;
|
|
688
|
+
this.axisOrientation_ = options.axisOrientation !== void 0 ? options.axisOrientation : "enu";
|
|
689
|
+
this.global_ = options.global !== void 0 ? options.global : false;
|
|
690
|
+
this.canWrapX_ = !!(this.global_ && this.extent_);
|
|
691
|
+
this.getPointResolutionFunc_ = options.getPointResolution;
|
|
692
|
+
this.defaultTileGrid_ = null;
|
|
693
|
+
this.metersPerUnit_ = options.metersPerUnit;
|
|
694
|
+
}
|
|
695
|
+
/**
|
|
696
|
+
* @return {boolean} The projection is suitable for wrapping the x-axis
|
|
697
|
+
*/
|
|
698
|
+
canWrapX() {
|
|
699
|
+
return this.canWrapX_;
|
|
700
|
+
}
|
|
701
|
+
/**
|
|
702
|
+
* Get the code for this projection, e.g. 'EPSG:4326'.
|
|
703
|
+
* @return {string} Code.
|
|
704
|
+
* @api
|
|
705
|
+
*/
|
|
706
|
+
getCode() {
|
|
707
|
+
return this.code_;
|
|
708
|
+
}
|
|
709
|
+
/**
|
|
710
|
+
* Get the validity extent for this projection.
|
|
711
|
+
* @return {import("../extent.js").Extent} Extent.
|
|
712
|
+
* @api
|
|
713
|
+
*/
|
|
714
|
+
getExtent() {
|
|
715
|
+
return this.extent_;
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
* Get the units of this projection.
|
|
719
|
+
* @return {import("./Units.js").Units} Units.
|
|
720
|
+
* @api
|
|
721
|
+
*/
|
|
722
|
+
getUnits() {
|
|
723
|
+
return this.units_;
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
* Get the amount of meters per unit of this projection. If the projection is
|
|
727
|
+
* not configured with `metersPerUnit` or a units identifier, the return is
|
|
728
|
+
* `undefined`.
|
|
729
|
+
* @return {number|undefined} Meters.
|
|
730
|
+
* @api
|
|
731
|
+
*/
|
|
732
|
+
getMetersPerUnit() {
|
|
733
|
+
return this.metersPerUnit_ || METERS_PER_UNIT[this.units_];
|
|
734
|
+
}
|
|
735
|
+
/**
|
|
736
|
+
* Get the world extent for this projection.
|
|
737
|
+
* @return {import("../extent.js").Extent} Extent.
|
|
738
|
+
* @api
|
|
739
|
+
*/
|
|
740
|
+
getWorldExtent() {
|
|
741
|
+
return this.worldExtent_;
|
|
742
|
+
}
|
|
743
|
+
/**
|
|
744
|
+
* Get the axis orientation of this projection.
|
|
745
|
+
* Example values are:
|
|
746
|
+
* enu - the default easting, northing, elevation.
|
|
747
|
+
* neu - northing, easting, up - useful for "lat/long" geographic coordinates,
|
|
748
|
+
* or south orientated transverse mercator.
|
|
749
|
+
* wnu - westing, northing, up - some planetary coordinate systems have
|
|
750
|
+
* "west positive" coordinate systems
|
|
751
|
+
* @return {string} Axis orientation.
|
|
752
|
+
* @api
|
|
753
|
+
*/
|
|
754
|
+
getAxisOrientation() {
|
|
755
|
+
return this.axisOrientation_;
|
|
756
|
+
}
|
|
757
|
+
/**
|
|
758
|
+
* Is this projection a global projection which spans the whole world?
|
|
759
|
+
* @return {boolean} Whether the projection is global.
|
|
760
|
+
* @api
|
|
761
|
+
*/
|
|
762
|
+
isGlobal() {
|
|
763
|
+
return this.global_;
|
|
764
|
+
}
|
|
765
|
+
/**
|
|
766
|
+
* Set if the projection is a global projection which spans the whole world
|
|
767
|
+
* @param {boolean} global Whether the projection is global.
|
|
768
|
+
* @api
|
|
769
|
+
*/
|
|
770
|
+
setGlobal(global) {
|
|
771
|
+
this.global_ = global;
|
|
772
|
+
this.canWrapX_ = !!(global && this.extent_);
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
* @return {import("../tilegrid/TileGrid.js").default} The default tile grid.
|
|
776
|
+
*/
|
|
777
|
+
getDefaultTileGrid() {
|
|
778
|
+
return this.defaultTileGrid_;
|
|
779
|
+
}
|
|
780
|
+
/**
|
|
781
|
+
* @param {import("../tilegrid/TileGrid.js").default} tileGrid The default tile grid.
|
|
782
|
+
*/
|
|
783
|
+
setDefaultTileGrid(tileGrid) {
|
|
784
|
+
this.defaultTileGrid_ = tileGrid;
|
|
785
|
+
}
|
|
786
|
+
/**
|
|
787
|
+
* Set the validity extent for this projection.
|
|
788
|
+
* @param {import("../extent.js").Extent} extent Extent.
|
|
789
|
+
* @api
|
|
790
|
+
*/
|
|
791
|
+
setExtent(extent) {
|
|
792
|
+
this.extent_ = extent;
|
|
793
|
+
this.canWrapX_ = !!(this.global_ && extent);
|
|
794
|
+
}
|
|
795
|
+
/**
|
|
796
|
+
* Set the world extent for this projection.
|
|
797
|
+
* @param {import("../extent.js").Extent} worldExtent World extent
|
|
798
|
+
* [minlon, minlat, maxlon, maxlat].
|
|
799
|
+
* @api
|
|
800
|
+
*/
|
|
801
|
+
setWorldExtent(worldExtent) {
|
|
802
|
+
this.worldExtent_ = worldExtent;
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* Set the getPointResolution function (see {@link module:ol/proj.getPointResolution}
|
|
806
|
+
* for this projection.
|
|
807
|
+
* @param {function(number, import("../coordinate.js").Coordinate):number} func Function
|
|
808
|
+
* @api
|
|
809
|
+
*/
|
|
810
|
+
setGetPointResolution(func) {
|
|
811
|
+
this.getPointResolutionFunc_ = func;
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* Get the custom point resolution function for this projection (if set).
|
|
815
|
+
* @return {GetPointResolution|undefined} The custom point
|
|
816
|
+
* resolution function (if set).
|
|
817
|
+
*/
|
|
818
|
+
getPointResolutionFunc() {
|
|
819
|
+
return this.getPointResolutionFunc_;
|
|
820
|
+
}
|
|
821
|
+
};
|
|
822
|
+
var Projection_default = Projection;
|
|
823
|
+
|
|
824
|
+
// node_modules/ol/proj.js
|
|
825
|
+
init_dirname();
|
|
826
|
+
init_buffer();
|
|
827
|
+
init_process();
|
|
828
|
+
|
|
829
|
+
// node_modules/ol/coordinate.js
|
|
830
|
+
init_dirname();
|
|
831
|
+
init_buffer();
|
|
832
|
+
init_process();
|
|
833
|
+
|
|
834
|
+
// node_modules/ol/string.js
|
|
835
|
+
init_dirname();
|
|
836
|
+
init_buffer();
|
|
837
|
+
init_process();
|
|
838
|
+
function padNumber(number, width, precision) {
|
|
839
|
+
const numberString = precision !== void 0 ? number.toFixed(precision) : "" + number;
|
|
840
|
+
let decimal = numberString.indexOf(".");
|
|
841
|
+
decimal = decimal === -1 ? numberString.length : decimal;
|
|
842
|
+
return decimal > width ? numberString : new Array(1 + width - decimal).join("0") + numberString;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
// node_modules/ol/coordinate.js
|
|
846
|
+
function add(coordinate, delta) {
|
|
847
|
+
coordinate[0] += +delta[0];
|
|
848
|
+
coordinate[1] += +delta[1];
|
|
849
|
+
return coordinate;
|
|
850
|
+
}
|
|
851
|
+
function degreesToStringHDMS(hemispheres, degrees, fractionDigits) {
|
|
852
|
+
const normalizedDegrees = modulo(degrees + 180, 360) - 180;
|
|
853
|
+
const x = Math.abs(3600 * normalizedDegrees);
|
|
854
|
+
const decimals = fractionDigits || 0;
|
|
855
|
+
let deg = Math.floor(x / 3600);
|
|
856
|
+
let min = Math.floor((x - deg * 3600) / 60);
|
|
857
|
+
let sec = toFixed(x - deg * 3600 - min * 60, decimals);
|
|
858
|
+
if (sec >= 60) {
|
|
859
|
+
sec = 0;
|
|
860
|
+
min += 1;
|
|
861
|
+
}
|
|
862
|
+
if (min >= 60) {
|
|
863
|
+
min = 0;
|
|
864
|
+
deg += 1;
|
|
865
|
+
}
|
|
866
|
+
let hdms = deg + "\xB0";
|
|
867
|
+
if (min !== 0 || sec !== 0) {
|
|
868
|
+
hdms += " " + padNumber(min, 2) + "\u2032";
|
|
869
|
+
}
|
|
870
|
+
if (sec !== 0) {
|
|
871
|
+
hdms += " " + padNumber(sec, 2, decimals) + "\u2033";
|
|
872
|
+
}
|
|
873
|
+
if (normalizedDegrees !== 0) {
|
|
874
|
+
hdms += " " + hemispheres.charAt(normalizedDegrees < 0 ? 1 : 0);
|
|
875
|
+
}
|
|
876
|
+
return hdms;
|
|
877
|
+
}
|
|
878
|
+
function equals2(coordinate1, coordinate2) {
|
|
879
|
+
let equals4 = true;
|
|
880
|
+
for (let i = coordinate1.length - 1; i >= 0; --i) {
|
|
881
|
+
if (coordinate1[i] != coordinate2[i]) {
|
|
882
|
+
equals4 = false;
|
|
883
|
+
break;
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
return equals4;
|
|
887
|
+
}
|
|
888
|
+
function rotate(coordinate, angle) {
|
|
889
|
+
const cosAngle = Math.cos(angle);
|
|
890
|
+
const sinAngle = Math.sin(angle);
|
|
891
|
+
const x = coordinate[0] * cosAngle - coordinate[1] * sinAngle;
|
|
892
|
+
const y = coordinate[1] * cosAngle + coordinate[0] * sinAngle;
|
|
893
|
+
coordinate[0] = x;
|
|
894
|
+
coordinate[1] = y;
|
|
895
|
+
return coordinate;
|
|
896
|
+
}
|
|
897
|
+
function scale(coordinate, scale5) {
|
|
898
|
+
coordinate[0] *= scale5;
|
|
899
|
+
coordinate[1] *= scale5;
|
|
900
|
+
return coordinate;
|
|
901
|
+
}
|
|
902
|
+
function squaredDistance2(coord1, coord2) {
|
|
903
|
+
const dx = coord1[0] - coord2[0];
|
|
904
|
+
const dy = coord1[1] - coord2[1];
|
|
905
|
+
return dx * dx + dy * dy;
|
|
906
|
+
}
|
|
907
|
+
function distance(coord1, coord2) {
|
|
908
|
+
return Math.sqrt(squaredDistance2(coord1, coord2));
|
|
909
|
+
}
|
|
910
|
+
function wrapX2(coordinate, projection) {
|
|
911
|
+
if (projection.canWrapX()) {
|
|
912
|
+
const worldWidth = getWidth(projection.getExtent());
|
|
913
|
+
const worldsAway = getWorldsAway(coordinate, projection, worldWidth);
|
|
914
|
+
if (worldsAway) {
|
|
915
|
+
coordinate[0] -= worldsAway * worldWidth;
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
return coordinate;
|
|
919
|
+
}
|
|
920
|
+
function getWorldsAway(coordinate, projection, sourceExtentWidth) {
|
|
921
|
+
const projectionExtent = projection.getExtent();
|
|
922
|
+
let worldsAway = 0;
|
|
923
|
+
if (projection.canWrapX() && (coordinate[0] < projectionExtent[0] || coordinate[0] > projectionExtent[2])) {
|
|
924
|
+
sourceExtentWidth = sourceExtentWidth || getWidth(projectionExtent);
|
|
925
|
+
worldsAway = Math.floor(
|
|
926
|
+
(coordinate[0] - projectionExtent[0]) / sourceExtentWidth
|
|
927
|
+
);
|
|
928
|
+
}
|
|
929
|
+
return worldsAway;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
// node_modules/ol/proj/epsg3857.js
|
|
933
|
+
init_dirname();
|
|
934
|
+
init_buffer();
|
|
935
|
+
init_process();
|
|
936
|
+
var RADIUS = 6378137;
|
|
937
|
+
var HALF_SIZE = Math.PI * RADIUS;
|
|
938
|
+
var EXTENT = [-HALF_SIZE, -HALF_SIZE, HALF_SIZE, HALF_SIZE];
|
|
939
|
+
var WORLD_EXTENT = [-180, -85, 180, 85];
|
|
940
|
+
var MAX_SAFE_Y = RADIUS * Math.log(Math.tan(Math.PI / 2));
|
|
941
|
+
var EPSG3857Projection = class extends Projection_default {
|
|
942
|
+
/**
|
|
943
|
+
* @param {string} code Code.
|
|
944
|
+
*/
|
|
945
|
+
constructor(code) {
|
|
946
|
+
super({
|
|
947
|
+
code,
|
|
948
|
+
units: "m",
|
|
949
|
+
extent: EXTENT,
|
|
950
|
+
global: true,
|
|
951
|
+
worldExtent: WORLD_EXTENT,
|
|
952
|
+
getPointResolution: function(resolution, point) {
|
|
953
|
+
return resolution / Math.cosh(point[1] / RADIUS);
|
|
954
|
+
}
|
|
955
|
+
});
|
|
956
|
+
}
|
|
957
|
+
};
|
|
958
|
+
var PROJECTIONS = [
|
|
959
|
+
new EPSG3857Projection("EPSG:3857"),
|
|
960
|
+
new EPSG3857Projection("EPSG:102100"),
|
|
961
|
+
new EPSG3857Projection("EPSG:102113"),
|
|
962
|
+
new EPSG3857Projection("EPSG:900913"),
|
|
963
|
+
new EPSG3857Projection("http://www.opengis.net/def/crs/EPSG/0/3857"),
|
|
964
|
+
new EPSG3857Projection("http://www.opengis.net/gml/srs/epsg.xml#3857")
|
|
965
|
+
];
|
|
966
|
+
function fromEPSG4326(input, output, dimension, stride) {
|
|
967
|
+
const length = input.length;
|
|
968
|
+
dimension = dimension > 1 ? dimension : 2;
|
|
969
|
+
stride = stride != null ? stride : dimension;
|
|
970
|
+
if (output === void 0) {
|
|
971
|
+
if (dimension > 2) {
|
|
972
|
+
output = input.slice();
|
|
973
|
+
} else {
|
|
974
|
+
output = new Array(length);
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
for (let i = 0; i < length; i += stride) {
|
|
978
|
+
output[i] = HALF_SIZE * input[i] / 180;
|
|
979
|
+
let y = RADIUS * Math.log(Math.tan(Math.PI * (+input[i + 1] + 90) / 360));
|
|
980
|
+
if (y > MAX_SAFE_Y) {
|
|
981
|
+
y = MAX_SAFE_Y;
|
|
982
|
+
} else if (y < -MAX_SAFE_Y) {
|
|
983
|
+
y = -MAX_SAFE_Y;
|
|
984
|
+
}
|
|
985
|
+
output[i + 1] = y;
|
|
986
|
+
}
|
|
987
|
+
return output;
|
|
988
|
+
}
|
|
989
|
+
function toEPSG4326(input, output, dimension, stride) {
|
|
990
|
+
const length = input.length;
|
|
991
|
+
dimension = dimension > 1 ? dimension : 2;
|
|
992
|
+
stride = stride != null ? stride : dimension;
|
|
993
|
+
if (output === void 0) {
|
|
994
|
+
if (dimension > 2) {
|
|
995
|
+
output = input.slice();
|
|
996
|
+
} else {
|
|
997
|
+
output = new Array(length);
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
for (let i = 0; i < length; i += stride) {
|
|
1001
|
+
output[i] = 180 * input[i] / HALF_SIZE;
|
|
1002
|
+
output[i + 1] = 360 * Math.atan(Math.exp(input[i + 1] / RADIUS)) / Math.PI - 90;
|
|
1003
|
+
}
|
|
1004
|
+
return output;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
// node_modules/ol/proj/epsg4326.js
|
|
1008
|
+
init_dirname();
|
|
1009
|
+
init_buffer();
|
|
1010
|
+
init_process();
|
|
1011
|
+
var RADIUS2 = 6378137;
|
|
1012
|
+
var EXTENT2 = [-180, -90, 180, 90];
|
|
1013
|
+
var METERS_PER_UNIT2 = Math.PI * RADIUS2 / 180;
|
|
1014
|
+
var EPSG4326Projection = class extends Projection_default {
|
|
1015
|
+
/**
|
|
1016
|
+
* @param {string} code Code.
|
|
1017
|
+
* @param {string} [axisOrientation] Axis orientation.
|
|
1018
|
+
*/
|
|
1019
|
+
constructor(code, axisOrientation) {
|
|
1020
|
+
super({
|
|
1021
|
+
code,
|
|
1022
|
+
units: "degrees",
|
|
1023
|
+
extent: EXTENT2,
|
|
1024
|
+
axisOrientation,
|
|
1025
|
+
global: true,
|
|
1026
|
+
metersPerUnit: METERS_PER_UNIT2,
|
|
1027
|
+
worldExtent: EXTENT2
|
|
1028
|
+
});
|
|
1029
|
+
}
|
|
1030
|
+
};
|
|
1031
|
+
var PROJECTIONS2 = [
|
|
1032
|
+
new EPSG4326Projection("CRS:84"),
|
|
1033
|
+
new EPSG4326Projection("EPSG:4326", "neu"),
|
|
1034
|
+
new EPSG4326Projection("urn:ogc:def:crs:OGC:1.3:CRS84"),
|
|
1035
|
+
new EPSG4326Projection("urn:ogc:def:crs:OGC:2:84"),
|
|
1036
|
+
new EPSG4326Projection("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),
|
|
1037
|
+
new EPSG4326Projection("http://www.opengis.net/gml/srs/epsg.xml#4326", "neu"),
|
|
1038
|
+
new EPSG4326Projection("http://www.opengis.net/def/crs/EPSG/0/4326", "neu")
|
|
1039
|
+
];
|
|
1040
|
+
|
|
1041
|
+
// node_modules/ol/proj/projections.js
|
|
1042
|
+
init_dirname();
|
|
1043
|
+
init_buffer();
|
|
1044
|
+
init_process();
|
|
1045
|
+
var cache = {};
|
|
1046
|
+
function get(code) {
|
|
1047
|
+
return cache[code] || cache[code.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/, "EPSG:$3")] || null;
|
|
1048
|
+
}
|
|
1049
|
+
function add2(code, projection) {
|
|
1050
|
+
cache[code] = projection;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
// node_modules/ol/proj/transforms.js
|
|
1054
|
+
init_dirname();
|
|
1055
|
+
init_buffer();
|
|
1056
|
+
init_process();
|
|
1057
|
+
|
|
1058
|
+
// node_modules/ol/obj.js
|
|
1059
|
+
init_dirname();
|
|
1060
|
+
init_buffer();
|
|
1061
|
+
init_process();
|
|
1062
|
+
function clear(object) {
|
|
1063
|
+
for (const property in object) {
|
|
1064
|
+
delete object[property];
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
function isEmpty2(object) {
|
|
1068
|
+
let property;
|
|
1069
|
+
for (property in object) {
|
|
1070
|
+
return false;
|
|
1071
|
+
}
|
|
1072
|
+
return !property;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
// node_modules/ol/proj/transforms.js
|
|
1076
|
+
var transforms = {};
|
|
1077
|
+
function add3(source, destination, transformFn) {
|
|
1078
|
+
const sourceCode = source.getCode();
|
|
1079
|
+
const destinationCode = destination.getCode();
|
|
1080
|
+
if (!(sourceCode in transforms)) {
|
|
1081
|
+
transforms[sourceCode] = {};
|
|
1082
|
+
}
|
|
1083
|
+
transforms[sourceCode][destinationCode] = transformFn;
|
|
1084
|
+
}
|
|
1085
|
+
function get2(sourceCode, destinationCode) {
|
|
1086
|
+
if (sourceCode in transforms && destinationCode in transforms[sourceCode]) {
|
|
1087
|
+
return transforms[sourceCode][destinationCode];
|
|
1088
|
+
}
|
|
1089
|
+
return null;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
// node_modules/ol/proj/utm.js
|
|
1093
|
+
init_dirname();
|
|
1094
|
+
init_buffer();
|
|
1095
|
+
init_process();
|
|
1096
|
+
var K0 = 0.9996;
|
|
1097
|
+
var E = 669438e-8;
|
|
1098
|
+
var E2 = E * E;
|
|
1099
|
+
var E3 = E2 * E;
|
|
1100
|
+
var E_P2 = E / (1 - E);
|
|
1101
|
+
var SQRT_E = Math.sqrt(1 - E);
|
|
1102
|
+
var _E = (1 - SQRT_E) / (1 + SQRT_E);
|
|
1103
|
+
var _E2 = _E * _E;
|
|
1104
|
+
var _E3 = _E2 * _E;
|
|
1105
|
+
var _E4 = _E3 * _E;
|
|
1106
|
+
var _E5 = _E4 * _E;
|
|
1107
|
+
var M1 = 1 - E / 4 - 3 * E2 / 64 - 5 * E3 / 256;
|
|
1108
|
+
var M2 = 3 * E / 8 + 3 * E2 / 32 + 45 * E3 / 1024;
|
|
1109
|
+
var M3 = 15 * E2 / 256 + 45 * E3 / 1024;
|
|
1110
|
+
var M4 = 35 * E3 / 3072;
|
|
1111
|
+
var P2 = 3 / 2 * _E - 27 / 32 * _E3 + 269 / 512 * _E5;
|
|
1112
|
+
var P3 = 21 / 16 * _E2 - 55 / 32 * _E4;
|
|
1113
|
+
var P4 = 151 / 96 * _E3 - 417 / 128 * _E5;
|
|
1114
|
+
var P5 = 1097 / 512 * _E4;
|
|
1115
|
+
var R = 6378137;
|
|
1116
|
+
function toLonLat(easting, northing, zone) {
|
|
1117
|
+
const x = easting - 5e5;
|
|
1118
|
+
const y = zone.north ? northing : northing - 1e7;
|
|
1119
|
+
const m = y / K0;
|
|
1120
|
+
const mu = m / (R * M1);
|
|
1121
|
+
const pRad = mu + P2 * Math.sin(2 * mu) + P3 * Math.sin(4 * mu) + P4 * Math.sin(6 * mu) + P5 * Math.sin(8 * mu);
|
|
1122
|
+
const pSin = Math.sin(pRad);
|
|
1123
|
+
const pSin2 = pSin * pSin;
|
|
1124
|
+
const pCos = Math.cos(pRad);
|
|
1125
|
+
const pTan = pSin / pCos;
|
|
1126
|
+
const pTan2 = pTan * pTan;
|
|
1127
|
+
const pTan4 = pTan2 * pTan2;
|
|
1128
|
+
const epSin = 1 - E * pSin2;
|
|
1129
|
+
const epSinSqrt = Math.sqrt(1 - E * pSin2);
|
|
1130
|
+
const n = R / epSinSqrt;
|
|
1131
|
+
const r = (1 - E) / epSin;
|
|
1132
|
+
const c = E_P2 * pCos ** 2;
|
|
1133
|
+
const c2 = c * c;
|
|
1134
|
+
const d = x / (n * K0);
|
|
1135
|
+
const d2 = d * d;
|
|
1136
|
+
const d3 = d2 * d;
|
|
1137
|
+
const d4 = d3 * d;
|
|
1138
|
+
const d5 = d4 * d;
|
|
1139
|
+
const d6 = d5 * d;
|
|
1140
|
+
const latitude = pRad - pTan / r * (d2 / 2 - d4 / 24 * (5 + 3 * pTan2 + 10 * c - 4 * c2 - 9 * E_P2)) + d6 / 720 * (61 + 90 * pTan2 + 298 * c + 45 * pTan4 - 252 * E_P2 - 3 * c2);
|
|
1141
|
+
let longitude = (d - d3 / 6 * (1 + 2 * pTan2 + c) + d5 / 120 * (5 - 2 * c + 28 * pTan2 - 3 * c2 + 8 * E_P2 + 24 * pTan4)) / pCos;
|
|
1142
|
+
longitude = wrap(
|
|
1143
|
+
longitude + toRadians(zoneToCentralLongitude(zone.number)),
|
|
1144
|
+
-Math.PI,
|
|
1145
|
+
Math.PI
|
|
1146
|
+
);
|
|
1147
|
+
return [toDegrees(longitude), toDegrees(latitude)];
|
|
1148
|
+
}
|
|
1149
|
+
var MIN_LATITUDE = -80;
|
|
1150
|
+
var MAX_LATITUDE = 84;
|
|
1151
|
+
var MIN_LONGITUDE = -180;
|
|
1152
|
+
var MAX_LONGITUDE = 180;
|
|
1153
|
+
function fromLonLat(longitude, latitude, zone) {
|
|
1154
|
+
longitude = wrap(longitude, MIN_LONGITUDE, MAX_LONGITUDE);
|
|
1155
|
+
if (latitude < MIN_LATITUDE) {
|
|
1156
|
+
latitude = MIN_LATITUDE;
|
|
1157
|
+
} else if (latitude > MAX_LATITUDE) {
|
|
1158
|
+
latitude = MAX_LATITUDE;
|
|
1159
|
+
}
|
|
1160
|
+
const latRad = toRadians(latitude);
|
|
1161
|
+
const latSin = Math.sin(latRad);
|
|
1162
|
+
const latCos = Math.cos(latRad);
|
|
1163
|
+
const latTan = latSin / latCos;
|
|
1164
|
+
const latTan2 = latTan * latTan;
|
|
1165
|
+
const latTan4 = latTan2 * latTan2;
|
|
1166
|
+
const lonRad = toRadians(longitude);
|
|
1167
|
+
const centralLon = zoneToCentralLongitude(zone.number);
|
|
1168
|
+
const centralLonRad = toRadians(centralLon);
|
|
1169
|
+
const n = R / Math.sqrt(1 - E * latSin ** 2);
|
|
1170
|
+
const c = E_P2 * latCos ** 2;
|
|
1171
|
+
const a = latCos * wrap(lonRad - centralLonRad, -Math.PI, Math.PI);
|
|
1172
|
+
const a2 = a * a;
|
|
1173
|
+
const a3 = a2 * a;
|
|
1174
|
+
const a4 = a3 * a;
|
|
1175
|
+
const a5 = a4 * a;
|
|
1176
|
+
const a6 = a5 * a;
|
|
1177
|
+
const m = R * (M1 * latRad - M2 * Math.sin(2 * latRad) + M3 * Math.sin(4 * latRad) - M4 * Math.sin(6 * latRad));
|
|
1178
|
+
const easting = K0 * n * (a + a3 / 6 * (1 - latTan2 + c) + a5 / 120 * (5 - 18 * latTan2 + latTan4 + 72 * c - 58 * E_P2)) + 5e5;
|
|
1179
|
+
let northing = K0 * (m + n * latTan * (a2 / 2 + a4 / 24 * (5 - latTan2 + 9 * c + 4 * c ** 2) + a6 / 720 * (61 - 58 * latTan2 + latTan4 + 600 * c - 330 * E_P2)));
|
|
1180
|
+
if (!zone.north) {
|
|
1181
|
+
northing += 1e7;
|
|
1182
|
+
}
|
|
1183
|
+
return [easting, northing];
|
|
1184
|
+
}
|
|
1185
|
+
function zoneToCentralLongitude(zone) {
|
|
1186
|
+
return (zone - 1) * 6 - 180 + 3;
|
|
1187
|
+
}
|
|
1188
|
+
var epsgRegExes = [
|
|
1189
|
+
/^EPSG:(\d+)$/,
|
|
1190
|
+
/^urn:ogc:def:crs:EPSG::(\d+)$/,
|
|
1191
|
+
/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/
|
|
1192
|
+
];
|
|
1193
|
+
function zoneFromCode(code) {
|
|
1194
|
+
let epsgId = 0;
|
|
1195
|
+
for (const re of epsgRegExes) {
|
|
1196
|
+
const match = code.match(re);
|
|
1197
|
+
if (match) {
|
|
1198
|
+
epsgId = parseInt(match[1]);
|
|
1199
|
+
break;
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
if (!epsgId) {
|
|
1203
|
+
return null;
|
|
1204
|
+
}
|
|
1205
|
+
let number = 0;
|
|
1206
|
+
let north = false;
|
|
1207
|
+
if (epsgId > 32700 && epsgId < 32761) {
|
|
1208
|
+
number = epsgId - 32700;
|
|
1209
|
+
} else if (epsgId > 32600 && epsgId < 32661) {
|
|
1210
|
+
north = true;
|
|
1211
|
+
number = epsgId - 32600;
|
|
1212
|
+
}
|
|
1213
|
+
if (!number) {
|
|
1214
|
+
return null;
|
|
1215
|
+
}
|
|
1216
|
+
return { number, north };
|
|
1217
|
+
}
|
|
1218
|
+
function makeTransformFunction(transformer, zone) {
|
|
1219
|
+
return function(input, output, dimension, stride) {
|
|
1220
|
+
const length = input.length;
|
|
1221
|
+
dimension = dimension > 1 ? dimension : 2;
|
|
1222
|
+
stride = stride != null ? stride : dimension;
|
|
1223
|
+
if (!output) {
|
|
1224
|
+
if (dimension > 2) {
|
|
1225
|
+
output = input.slice();
|
|
1226
|
+
} else {
|
|
1227
|
+
output = new Array(length);
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
for (let i = 0; i < length; i += stride) {
|
|
1231
|
+
const x = input[i];
|
|
1232
|
+
const y = input[i + 1];
|
|
1233
|
+
const coord = transformer(x, y, zone);
|
|
1234
|
+
output[i] = coord[0];
|
|
1235
|
+
output[i + 1] = coord[1];
|
|
1236
|
+
}
|
|
1237
|
+
return output;
|
|
1238
|
+
};
|
|
1239
|
+
}
|
|
1240
|
+
function makeProjection(code) {
|
|
1241
|
+
const zone = zoneFromCode(code);
|
|
1242
|
+
if (!zone) {
|
|
1243
|
+
return null;
|
|
1244
|
+
}
|
|
1245
|
+
return new Projection_default({ code, units: "m" });
|
|
1246
|
+
}
|
|
1247
|
+
function makeTransforms(projection) {
|
|
1248
|
+
const zone = zoneFromCode(projection.getCode());
|
|
1249
|
+
if (!zone) {
|
|
1250
|
+
return null;
|
|
1251
|
+
}
|
|
1252
|
+
return {
|
|
1253
|
+
forward: makeTransformFunction(fromLonLat, zone),
|
|
1254
|
+
inverse: makeTransformFunction(toLonLat, zone)
|
|
1255
|
+
};
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
// node_modules/ol/proj.js
|
|
1259
|
+
var transformFactories = [makeTransforms];
|
|
1260
|
+
var projectionFactories = [makeProjection];
|
|
1261
|
+
var showCoordinateWarning = true;
|
|
1262
|
+
function disableCoordinateWarning(disable) {
|
|
1263
|
+
const hide = disable === void 0 ? true : disable;
|
|
1264
|
+
showCoordinateWarning = !hide;
|
|
1265
|
+
}
|
|
1266
|
+
function cloneTransform(input, output) {
|
|
1267
|
+
if (output !== void 0) {
|
|
1268
|
+
for (let i = 0, ii = input.length; i < ii; ++i) {
|
|
1269
|
+
output[i] = input[i];
|
|
1270
|
+
}
|
|
1271
|
+
output = output;
|
|
1272
|
+
} else {
|
|
1273
|
+
output = input.slice();
|
|
1274
|
+
}
|
|
1275
|
+
return output;
|
|
1276
|
+
}
|
|
1277
|
+
function addProjection(projection) {
|
|
1278
|
+
add2(projection.getCode(), projection);
|
|
1279
|
+
add3(projection, projection, cloneTransform);
|
|
1280
|
+
}
|
|
1281
|
+
function addProjections(projections) {
|
|
1282
|
+
projections.forEach(addProjection);
|
|
1283
|
+
}
|
|
1284
|
+
function get3(projectionLike) {
|
|
1285
|
+
if (!(typeof projectionLike === "string")) {
|
|
1286
|
+
return projectionLike;
|
|
1287
|
+
}
|
|
1288
|
+
const projection = get(projectionLike);
|
|
1289
|
+
if (projection) {
|
|
1290
|
+
return projection;
|
|
1291
|
+
}
|
|
1292
|
+
for (const makeProjection2 of projectionFactories) {
|
|
1293
|
+
const projection2 = makeProjection2(projectionLike);
|
|
1294
|
+
if (projection2) {
|
|
1295
|
+
return projection2;
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
return null;
|
|
1299
|
+
}
|
|
1300
|
+
function getPointResolution(projection, resolution, point, units) {
|
|
1301
|
+
projection = get3(projection);
|
|
1302
|
+
let pointResolution;
|
|
1303
|
+
const getter = projection.getPointResolutionFunc();
|
|
1304
|
+
if (getter) {
|
|
1305
|
+
pointResolution = getter(resolution, point);
|
|
1306
|
+
if (units && units !== projection.getUnits()) {
|
|
1307
|
+
const metersPerUnit = projection.getMetersPerUnit();
|
|
1308
|
+
if (metersPerUnit) {
|
|
1309
|
+
pointResolution = pointResolution * metersPerUnit / METERS_PER_UNIT[units];
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
} else {
|
|
1313
|
+
const projUnits = projection.getUnits();
|
|
1314
|
+
if (projUnits == "degrees" && !units || units == "degrees") {
|
|
1315
|
+
pointResolution = resolution;
|
|
1316
|
+
} else {
|
|
1317
|
+
const toEPSG43262 = getTransformFromProjections(
|
|
1318
|
+
projection,
|
|
1319
|
+
get3("EPSG:4326")
|
|
1320
|
+
);
|
|
1321
|
+
if (!toEPSG43262 && projUnits !== "degrees") {
|
|
1322
|
+
pointResolution = resolution * projection.getMetersPerUnit();
|
|
1323
|
+
} else {
|
|
1324
|
+
let vertices = [
|
|
1325
|
+
point[0] - resolution / 2,
|
|
1326
|
+
point[1],
|
|
1327
|
+
point[0] + resolution / 2,
|
|
1328
|
+
point[1],
|
|
1329
|
+
point[0],
|
|
1330
|
+
point[1] - resolution / 2,
|
|
1331
|
+
point[0],
|
|
1332
|
+
point[1] + resolution / 2
|
|
1333
|
+
];
|
|
1334
|
+
vertices = toEPSG43262(vertices, vertices, 2);
|
|
1335
|
+
const width = getDistance(vertices.slice(0, 2), vertices.slice(2, 4));
|
|
1336
|
+
const height = getDistance(vertices.slice(4, 6), vertices.slice(6, 8));
|
|
1337
|
+
pointResolution = (width + height) / 2;
|
|
1338
|
+
}
|
|
1339
|
+
const metersPerUnit = units ? METERS_PER_UNIT[units] : projection.getMetersPerUnit();
|
|
1340
|
+
if (metersPerUnit !== void 0) {
|
|
1341
|
+
pointResolution /= metersPerUnit;
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
return pointResolution;
|
|
1346
|
+
}
|
|
1347
|
+
function addEquivalentProjections(projections) {
|
|
1348
|
+
addProjections(projections);
|
|
1349
|
+
projections.forEach(function(source) {
|
|
1350
|
+
projections.forEach(function(destination) {
|
|
1351
|
+
if (source !== destination) {
|
|
1352
|
+
add3(source, destination, cloneTransform);
|
|
1353
|
+
}
|
|
1354
|
+
});
|
|
1355
|
+
});
|
|
1356
|
+
}
|
|
1357
|
+
function addEquivalentTransforms(projections1, projections2, forwardTransform, inverseTransform) {
|
|
1358
|
+
projections1.forEach(function(projection1) {
|
|
1359
|
+
projections2.forEach(function(projection2) {
|
|
1360
|
+
add3(projection1, projection2, forwardTransform);
|
|
1361
|
+
add3(projection2, projection1, inverseTransform);
|
|
1362
|
+
});
|
|
1363
|
+
});
|
|
1364
|
+
}
|
|
1365
|
+
function createProjection(projection, defaultCode) {
|
|
1366
|
+
if (!projection) {
|
|
1367
|
+
return get3(defaultCode);
|
|
1368
|
+
}
|
|
1369
|
+
if (typeof projection === "string") {
|
|
1370
|
+
return get3(projection);
|
|
1371
|
+
}
|
|
1372
|
+
return (
|
|
1373
|
+
/** @type {Projection} */
|
|
1374
|
+
projection
|
|
1375
|
+
);
|
|
1376
|
+
}
|
|
1377
|
+
function createTransformFromCoordinateTransform(coordTransform) {
|
|
1378
|
+
return (
|
|
1379
|
+
/**
|
|
1380
|
+
* @param {Array<number>} input Input.
|
|
1381
|
+
* @param {Array<number>} [output] Output.
|
|
1382
|
+
* @param {number} [dimension] Dimensions that should be transformed.
|
|
1383
|
+
* @param {number} [stride] Stride.
|
|
1384
|
+
* @return {Array<number>} Output.
|
|
1385
|
+
*/
|
|
1386
|
+
function(input, output, dimension, stride) {
|
|
1387
|
+
const length = input.length;
|
|
1388
|
+
dimension = dimension !== void 0 ? dimension : 2;
|
|
1389
|
+
stride = stride != null ? stride : dimension;
|
|
1390
|
+
output = output !== void 0 ? output : new Array(length);
|
|
1391
|
+
for (let i = 0; i < length; i += stride) {
|
|
1392
|
+
const point = coordTransform(input.slice(i, i + dimension));
|
|
1393
|
+
const pointLength = point.length;
|
|
1394
|
+
for (let j = 0, jj = stride; j < jj; ++j) {
|
|
1395
|
+
output[i + j] = j >= pointLength ? input[i + j] : point[j];
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
return output;
|
|
1399
|
+
}
|
|
1400
|
+
);
|
|
1401
|
+
}
|
|
1402
|
+
function toLonLat2(coordinate, projection) {
|
|
1403
|
+
const lonLat = transform(
|
|
1404
|
+
coordinate,
|
|
1405
|
+
projection !== void 0 ? projection : "EPSG:3857",
|
|
1406
|
+
"EPSG:4326"
|
|
1407
|
+
);
|
|
1408
|
+
const lon = lonLat[0];
|
|
1409
|
+
if (lon < -180 || lon > 180) {
|
|
1410
|
+
lonLat[0] = modulo(lon + 180, 360) - 180;
|
|
1411
|
+
}
|
|
1412
|
+
return lonLat;
|
|
1413
|
+
}
|
|
1414
|
+
function equivalent(projection1, projection2) {
|
|
1415
|
+
if (projection1 === projection2) {
|
|
1416
|
+
return true;
|
|
1417
|
+
}
|
|
1418
|
+
const equalUnits = projection1.getUnits() === projection2.getUnits();
|
|
1419
|
+
if (projection1.getCode() === projection2.getCode()) {
|
|
1420
|
+
return equalUnits;
|
|
1421
|
+
}
|
|
1422
|
+
const transformFunc = getTransformFromProjections(projection1, projection2);
|
|
1423
|
+
return transformFunc === cloneTransform && equalUnits;
|
|
1424
|
+
}
|
|
1425
|
+
function getTransformFromProjections(source, destination) {
|
|
1426
|
+
const sourceCode = source.getCode();
|
|
1427
|
+
const destinationCode = destination.getCode();
|
|
1428
|
+
let transformFunc = get2(sourceCode, destinationCode);
|
|
1429
|
+
if (transformFunc) {
|
|
1430
|
+
return transformFunc;
|
|
1431
|
+
}
|
|
1432
|
+
let sourceTransforms = null;
|
|
1433
|
+
let destinationTransforms = null;
|
|
1434
|
+
for (const makeTransforms2 of transformFactories) {
|
|
1435
|
+
if (!sourceTransforms) {
|
|
1436
|
+
sourceTransforms = makeTransforms2(source);
|
|
1437
|
+
}
|
|
1438
|
+
if (!destinationTransforms) {
|
|
1439
|
+
destinationTransforms = makeTransforms2(destination);
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
if (!sourceTransforms && !destinationTransforms) {
|
|
1443
|
+
return null;
|
|
1444
|
+
}
|
|
1445
|
+
const intermediateCode = "EPSG:4326";
|
|
1446
|
+
if (!destinationTransforms) {
|
|
1447
|
+
const toDestination = get2(intermediateCode, destinationCode);
|
|
1448
|
+
if (toDestination) {
|
|
1449
|
+
transformFunc = composeTransformFuncs(
|
|
1450
|
+
sourceTransforms.inverse,
|
|
1451
|
+
toDestination
|
|
1452
|
+
);
|
|
1453
|
+
}
|
|
1454
|
+
} else if (!sourceTransforms) {
|
|
1455
|
+
const fromSource = get2(sourceCode, intermediateCode);
|
|
1456
|
+
if (fromSource) {
|
|
1457
|
+
transformFunc = composeTransformFuncs(
|
|
1458
|
+
fromSource,
|
|
1459
|
+
destinationTransforms.forward
|
|
1460
|
+
);
|
|
1461
|
+
}
|
|
1462
|
+
} else {
|
|
1463
|
+
transformFunc = composeTransformFuncs(
|
|
1464
|
+
sourceTransforms.inverse,
|
|
1465
|
+
destinationTransforms.forward
|
|
1466
|
+
);
|
|
1467
|
+
}
|
|
1468
|
+
if (transformFunc) {
|
|
1469
|
+
addProjection(source);
|
|
1470
|
+
addProjection(destination);
|
|
1471
|
+
add3(source, destination, transformFunc);
|
|
1472
|
+
}
|
|
1473
|
+
return transformFunc;
|
|
1474
|
+
}
|
|
1475
|
+
function composeTransformFuncs(t1, t2) {
|
|
1476
|
+
return function(input, output, dimensions, stride) {
|
|
1477
|
+
output = t1(input, output, dimensions, stride);
|
|
1478
|
+
return t2(output, output, dimensions, stride);
|
|
1479
|
+
};
|
|
1480
|
+
}
|
|
1481
|
+
function getTransform(source, destination) {
|
|
1482
|
+
const sourceProjection = get3(source);
|
|
1483
|
+
const destinationProjection = get3(destination);
|
|
1484
|
+
return getTransformFromProjections(sourceProjection, destinationProjection);
|
|
1485
|
+
}
|
|
1486
|
+
function transform(coordinate, source, destination) {
|
|
1487
|
+
const transformFunc = getTransform(source, destination);
|
|
1488
|
+
if (!transformFunc) {
|
|
1489
|
+
const sourceCode = get3(source).getCode();
|
|
1490
|
+
const destinationCode = get3(destination).getCode();
|
|
1491
|
+
throw new Error(
|
|
1492
|
+
`No transform available between ${sourceCode} and ${destinationCode}`
|
|
1493
|
+
);
|
|
1494
|
+
}
|
|
1495
|
+
return transformFunc(coordinate, void 0, coordinate.length);
|
|
1496
|
+
}
|
|
1497
|
+
function transformExtent(extent, source, destination, stops) {
|
|
1498
|
+
const transformFunc = getTransform(source, destination);
|
|
1499
|
+
return applyTransform(extent, transformFunc, void 0, stops);
|
|
1500
|
+
}
|
|
1501
|
+
var userProjection = null;
|
|
1502
|
+
function getUserProjection() {
|
|
1503
|
+
return userProjection;
|
|
1504
|
+
}
|
|
1505
|
+
function toUserCoordinate(coordinate, sourceProjection) {
|
|
1506
|
+
if (!userProjection) {
|
|
1507
|
+
return coordinate;
|
|
1508
|
+
}
|
|
1509
|
+
return transform(coordinate, sourceProjection, userProjection);
|
|
1510
|
+
}
|
|
1511
|
+
function fromUserCoordinate(coordinate, destProjection) {
|
|
1512
|
+
if (!userProjection) {
|
|
1513
|
+
if (showCoordinateWarning && !equals2(coordinate, [0, 0]) && coordinate[0] >= -180 && coordinate[0] <= 180 && coordinate[1] >= -90 && coordinate[1] <= 90) {
|
|
1514
|
+
showCoordinateWarning = false;
|
|
1515
|
+
warn(
|
|
1516
|
+
"Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates."
|
|
1517
|
+
);
|
|
1518
|
+
}
|
|
1519
|
+
return coordinate;
|
|
1520
|
+
}
|
|
1521
|
+
return transform(coordinate, userProjection, destProjection);
|
|
1522
|
+
}
|
|
1523
|
+
function toUserExtent(extent, sourceProjection) {
|
|
1524
|
+
if (!userProjection) {
|
|
1525
|
+
return extent;
|
|
1526
|
+
}
|
|
1527
|
+
return transformExtent(extent, sourceProjection, userProjection);
|
|
1528
|
+
}
|
|
1529
|
+
function fromUserExtent(extent, destProjection) {
|
|
1530
|
+
if (!userProjection) {
|
|
1531
|
+
return extent;
|
|
1532
|
+
}
|
|
1533
|
+
return transformExtent(extent, userProjection, destProjection);
|
|
1534
|
+
}
|
|
1535
|
+
function toUserResolution(resolution, sourceProjection) {
|
|
1536
|
+
if (!userProjection) {
|
|
1537
|
+
return resolution;
|
|
1538
|
+
}
|
|
1539
|
+
const sourceMetersPerUnit = get3(sourceProjection).getMetersPerUnit();
|
|
1540
|
+
const userMetersPerUnit = userProjection.getMetersPerUnit();
|
|
1541
|
+
return sourceMetersPerUnit && userMetersPerUnit ? resolution * sourceMetersPerUnit / userMetersPerUnit : resolution;
|
|
1542
|
+
}
|
|
1543
|
+
function addCommon() {
|
|
1544
|
+
addEquivalentProjections(PROJECTIONS);
|
|
1545
|
+
addEquivalentProjections(PROJECTIONS2);
|
|
1546
|
+
addEquivalentTransforms(
|
|
1547
|
+
PROJECTIONS2,
|
|
1548
|
+
PROJECTIONS,
|
|
1549
|
+
fromEPSG4326,
|
|
1550
|
+
toEPSG4326
|
|
1551
|
+
);
|
|
1552
|
+
}
|
|
1553
|
+
addCommon();
|
|
1554
|
+
|
|
1555
|
+
// node_modules/ol/transform.js
|
|
1556
|
+
init_dirname();
|
|
1557
|
+
init_buffer();
|
|
1558
|
+
init_process();
|
|
1559
|
+
|
|
1560
|
+
// node_modules/ol/asserts.js
|
|
1561
|
+
init_dirname();
|
|
1562
|
+
init_buffer();
|
|
1563
|
+
init_process();
|
|
1564
|
+
function assert(assertion, errorMessage) {
|
|
1565
|
+
if (!assertion) {
|
|
1566
|
+
throw new Error(errorMessage);
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
// node_modules/ol/transform.js
|
|
1571
|
+
var tmp_ = new Array(6);
|
|
1572
|
+
function create() {
|
|
1573
|
+
return [1, 0, 0, 1, 0, 0];
|
|
1574
|
+
}
|
|
1575
|
+
function reset(transform2) {
|
|
1576
|
+
return set(transform2, 1, 0, 0, 1, 0, 0);
|
|
1577
|
+
}
|
|
1578
|
+
function multiply(transform1, transform2) {
|
|
1579
|
+
const a1 = transform1[0];
|
|
1580
|
+
const b1 = transform1[1];
|
|
1581
|
+
const c1 = transform1[2];
|
|
1582
|
+
const d1 = transform1[3];
|
|
1583
|
+
const e1 = transform1[4];
|
|
1584
|
+
const f1 = transform1[5];
|
|
1585
|
+
const a2 = transform2[0];
|
|
1586
|
+
const b2 = transform2[1];
|
|
1587
|
+
const c2 = transform2[2];
|
|
1588
|
+
const d2 = transform2[3];
|
|
1589
|
+
const e2 = transform2[4];
|
|
1590
|
+
const f2 = transform2[5];
|
|
1591
|
+
transform1[0] = a1 * a2 + c1 * b2;
|
|
1592
|
+
transform1[1] = b1 * a2 + d1 * b2;
|
|
1593
|
+
transform1[2] = a1 * c2 + c1 * d2;
|
|
1594
|
+
transform1[3] = b1 * c2 + d1 * d2;
|
|
1595
|
+
transform1[4] = a1 * e2 + c1 * f2 + e1;
|
|
1596
|
+
transform1[5] = b1 * e2 + d1 * f2 + f1;
|
|
1597
|
+
return transform1;
|
|
1598
|
+
}
|
|
1599
|
+
function set(transform2, a, b, c, d, e, f) {
|
|
1600
|
+
transform2[0] = a;
|
|
1601
|
+
transform2[1] = b;
|
|
1602
|
+
transform2[2] = c;
|
|
1603
|
+
transform2[3] = d;
|
|
1604
|
+
transform2[4] = e;
|
|
1605
|
+
transform2[5] = f;
|
|
1606
|
+
return transform2;
|
|
1607
|
+
}
|
|
1608
|
+
function setFromArray(transform1, transform2) {
|
|
1609
|
+
transform1[0] = transform2[0];
|
|
1610
|
+
transform1[1] = transform2[1];
|
|
1611
|
+
transform1[2] = transform2[2];
|
|
1612
|
+
transform1[3] = transform2[3];
|
|
1613
|
+
transform1[4] = transform2[4];
|
|
1614
|
+
transform1[5] = transform2[5];
|
|
1615
|
+
return transform1;
|
|
1616
|
+
}
|
|
1617
|
+
function apply(transform2, coordinate) {
|
|
1618
|
+
const x = coordinate[0];
|
|
1619
|
+
const y = coordinate[1];
|
|
1620
|
+
coordinate[0] = transform2[0] * x + transform2[2] * y + transform2[4];
|
|
1621
|
+
coordinate[1] = transform2[1] * x + transform2[3] * y + transform2[5];
|
|
1622
|
+
return coordinate;
|
|
1623
|
+
}
|
|
1624
|
+
function rotate2(transform2, angle) {
|
|
1625
|
+
const cos = Math.cos(angle);
|
|
1626
|
+
const sin = Math.sin(angle);
|
|
1627
|
+
return multiply(transform2, set(tmp_, cos, sin, -sin, cos, 0, 0));
|
|
1628
|
+
}
|
|
1629
|
+
function scale2(transform2, x, y) {
|
|
1630
|
+
return multiply(transform2, set(tmp_, x, 0, 0, y, 0, 0));
|
|
1631
|
+
}
|
|
1632
|
+
function translate(transform2, dx, dy) {
|
|
1633
|
+
return multiply(transform2, set(tmp_, 1, 0, 0, 1, dx, dy));
|
|
1634
|
+
}
|
|
1635
|
+
function compose(transform2, dx1, dy1, sx, sy, angle, dx2, dy2) {
|
|
1636
|
+
const sin = Math.sin(angle);
|
|
1637
|
+
const cos = Math.cos(angle);
|
|
1638
|
+
transform2[0] = sx * cos;
|
|
1639
|
+
transform2[1] = sy * sin;
|
|
1640
|
+
transform2[2] = -sx * sin;
|
|
1641
|
+
transform2[3] = sy * cos;
|
|
1642
|
+
transform2[4] = dx2 * sx * cos - dy2 * sx * sin + dx1;
|
|
1643
|
+
transform2[5] = dx2 * sy * sin + dy2 * sy * cos + dy1;
|
|
1644
|
+
return transform2;
|
|
1645
|
+
}
|
|
1646
|
+
function makeInverse(target, source) {
|
|
1647
|
+
const det = determinant(source);
|
|
1648
|
+
assert(det !== 0, "Transformation matrix cannot be inverted");
|
|
1649
|
+
const a = source[0];
|
|
1650
|
+
const b = source[1];
|
|
1651
|
+
const c = source[2];
|
|
1652
|
+
const d = source[3];
|
|
1653
|
+
const e = source[4];
|
|
1654
|
+
const f = source[5];
|
|
1655
|
+
target[0] = d / det;
|
|
1656
|
+
target[1] = -b / det;
|
|
1657
|
+
target[2] = -c / det;
|
|
1658
|
+
target[3] = a / det;
|
|
1659
|
+
target[4] = (c * f - d * e) / det;
|
|
1660
|
+
target[5] = -(a * f - b * e) / det;
|
|
1661
|
+
return target;
|
|
1662
|
+
}
|
|
1663
|
+
function determinant(mat) {
|
|
1664
|
+
return mat[0] * mat[3] - mat[1] * mat[2];
|
|
1665
|
+
}
|
|
1666
|
+
var matrixPrecision = [1e5, 1e5, 1e5, 1e5, 2, 2];
|
|
1667
|
+
function toString(mat) {
|
|
1668
|
+
const transformString = "matrix(" + mat.join(", ") + ")";
|
|
1669
|
+
return transformString;
|
|
1670
|
+
}
|
|
1671
|
+
function fromString(cssTransform) {
|
|
1672
|
+
const values = cssTransform.substring(7, cssTransform.length - 1).split(",");
|
|
1673
|
+
return values.map(parseFloat);
|
|
1674
|
+
}
|
|
1675
|
+
function equivalent2(cssTransform1, cssTransform2) {
|
|
1676
|
+
const mat1 = fromString(cssTransform1);
|
|
1677
|
+
const mat2 = fromString(cssTransform2);
|
|
1678
|
+
for (let i = 0; i < 6; ++i) {
|
|
1679
|
+
if (Math.round((mat1[i] - mat2[i]) * matrixPrecision[i]) !== 0) {
|
|
1680
|
+
return false;
|
|
1681
|
+
}
|
|
1682
|
+
}
|
|
1683
|
+
return true;
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
// node_modules/ol/tilegrid/TileGrid.js
|
|
1687
|
+
init_dirname();
|
|
1688
|
+
init_buffer();
|
|
1689
|
+
init_process();
|
|
1690
|
+
|
|
1691
|
+
// node_modules/ol/TileRange.js
|
|
1692
|
+
init_dirname();
|
|
1693
|
+
init_buffer();
|
|
1694
|
+
init_process();
|
|
1695
|
+
var TileRange = class {
|
|
1696
|
+
/**
|
|
1697
|
+
* @param {number} minX Minimum X.
|
|
1698
|
+
* @param {number} maxX Maximum X.
|
|
1699
|
+
* @param {number} minY Minimum Y.
|
|
1700
|
+
* @param {number} maxY Maximum Y.
|
|
1701
|
+
*/
|
|
1702
|
+
constructor(minX, maxX, minY, maxY) {
|
|
1703
|
+
this.minX = minX;
|
|
1704
|
+
this.maxX = maxX;
|
|
1705
|
+
this.minY = minY;
|
|
1706
|
+
this.maxY = maxY;
|
|
1707
|
+
}
|
|
1708
|
+
/**
|
|
1709
|
+
* @param {import("./tilecoord.js").TileCoord} tileCoord Tile coordinate.
|
|
1710
|
+
* @return {boolean} Contains tile coordinate.
|
|
1711
|
+
*/
|
|
1712
|
+
contains(tileCoord) {
|
|
1713
|
+
return this.containsXY(tileCoord[1], tileCoord[2]);
|
|
1714
|
+
}
|
|
1715
|
+
/**
|
|
1716
|
+
* @param {TileRange} tileRange Tile range.
|
|
1717
|
+
* @return {boolean} Contains.
|
|
1718
|
+
*/
|
|
1719
|
+
containsTileRange(tileRange) {
|
|
1720
|
+
return this.minX <= tileRange.minX && tileRange.maxX <= this.maxX && this.minY <= tileRange.minY && tileRange.maxY <= this.maxY;
|
|
1721
|
+
}
|
|
1722
|
+
/**
|
|
1723
|
+
* @param {number} x Tile coordinate x.
|
|
1724
|
+
* @param {number} y Tile coordinate y.
|
|
1725
|
+
* @return {boolean} Contains coordinate.
|
|
1726
|
+
*/
|
|
1727
|
+
containsXY(x, y) {
|
|
1728
|
+
return this.minX <= x && x <= this.maxX && this.minY <= y && y <= this.maxY;
|
|
1729
|
+
}
|
|
1730
|
+
/**
|
|
1731
|
+
* @param {TileRange} tileRange Tile range.
|
|
1732
|
+
* @return {boolean} Equals.
|
|
1733
|
+
*/
|
|
1734
|
+
equals(tileRange) {
|
|
1735
|
+
return this.minX == tileRange.minX && this.minY == tileRange.minY && this.maxX == tileRange.maxX && this.maxY == tileRange.maxY;
|
|
1736
|
+
}
|
|
1737
|
+
/**
|
|
1738
|
+
* @param {TileRange} tileRange Tile range.
|
|
1739
|
+
*/
|
|
1740
|
+
extend(tileRange) {
|
|
1741
|
+
if (tileRange.minX < this.minX) {
|
|
1742
|
+
this.minX = tileRange.minX;
|
|
1743
|
+
}
|
|
1744
|
+
if (tileRange.maxX > this.maxX) {
|
|
1745
|
+
this.maxX = tileRange.maxX;
|
|
1746
|
+
}
|
|
1747
|
+
if (tileRange.minY < this.minY) {
|
|
1748
|
+
this.minY = tileRange.minY;
|
|
1749
|
+
}
|
|
1750
|
+
if (tileRange.maxY > this.maxY) {
|
|
1751
|
+
this.maxY = tileRange.maxY;
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
/**
|
|
1755
|
+
* @return {number} Height.
|
|
1756
|
+
*/
|
|
1757
|
+
getHeight() {
|
|
1758
|
+
return this.maxY - this.minY + 1;
|
|
1759
|
+
}
|
|
1760
|
+
/**
|
|
1761
|
+
* @return {import("./size.js").Size} Size.
|
|
1762
|
+
*/
|
|
1763
|
+
getSize() {
|
|
1764
|
+
return [this.getWidth(), this.getHeight()];
|
|
1765
|
+
}
|
|
1766
|
+
/**
|
|
1767
|
+
* @return {number} Width.
|
|
1768
|
+
*/
|
|
1769
|
+
getWidth() {
|
|
1770
|
+
return this.maxX - this.minX + 1;
|
|
1771
|
+
}
|
|
1772
|
+
/**
|
|
1773
|
+
* @param {TileRange} tileRange Tile range.
|
|
1774
|
+
* @return {boolean} Intersects.
|
|
1775
|
+
*/
|
|
1776
|
+
intersects(tileRange) {
|
|
1777
|
+
return this.minX <= tileRange.maxX && this.maxX >= tileRange.minX && this.minY <= tileRange.maxY && this.maxY >= tileRange.minY;
|
|
1778
|
+
}
|
|
1779
|
+
};
|
|
1780
|
+
function createOrUpdate2(minX, maxX, minY, maxY, tileRange) {
|
|
1781
|
+
if (tileRange !== void 0) {
|
|
1782
|
+
tileRange.minX = minX;
|
|
1783
|
+
tileRange.maxX = maxX;
|
|
1784
|
+
tileRange.minY = minY;
|
|
1785
|
+
tileRange.maxY = maxY;
|
|
1786
|
+
return tileRange;
|
|
1787
|
+
}
|
|
1788
|
+
return new TileRange(minX, maxX, minY, maxY);
|
|
1789
|
+
}
|
|
1790
|
+
var TileRange_default = TileRange;
|
|
1791
|
+
|
|
1792
|
+
// node_modules/ol/array.js
|
|
1793
|
+
init_dirname();
|
|
1794
|
+
init_buffer();
|
|
1795
|
+
init_process();
|
|
1796
|
+
function binarySearch(haystack, needle, comparator) {
|
|
1797
|
+
let mid, cmp;
|
|
1798
|
+
comparator = comparator || ascending;
|
|
1799
|
+
let low = 0;
|
|
1800
|
+
let high = haystack.length;
|
|
1801
|
+
let found = false;
|
|
1802
|
+
while (low < high) {
|
|
1803
|
+
mid = low + (high - low >> 1);
|
|
1804
|
+
cmp = +comparator(haystack[mid], needle);
|
|
1805
|
+
if (cmp < 0) {
|
|
1806
|
+
low = mid + 1;
|
|
1807
|
+
} else {
|
|
1808
|
+
high = mid;
|
|
1809
|
+
found = !cmp;
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
return found ? low : ~low;
|
|
1813
|
+
}
|
|
1814
|
+
function ascending(a, b) {
|
|
1815
|
+
return a > b ? 1 : a < b ? -1 : 0;
|
|
1816
|
+
}
|
|
1817
|
+
function descending(a, b) {
|
|
1818
|
+
return a < b ? 1 : a > b ? -1 : 0;
|
|
1819
|
+
}
|
|
1820
|
+
function linearFindNearest(arr, target, direction) {
|
|
1821
|
+
if (arr[0] <= target) {
|
|
1822
|
+
return 0;
|
|
1823
|
+
}
|
|
1824
|
+
const n = arr.length;
|
|
1825
|
+
if (target <= arr[n - 1]) {
|
|
1826
|
+
return n - 1;
|
|
1827
|
+
}
|
|
1828
|
+
if (typeof direction === "function") {
|
|
1829
|
+
for (let i = 1; i < n; ++i) {
|
|
1830
|
+
const candidate = arr[i];
|
|
1831
|
+
if (candidate === target) {
|
|
1832
|
+
return i;
|
|
1833
|
+
}
|
|
1834
|
+
if (candidate < target) {
|
|
1835
|
+
if (direction(target, arr[i - 1], candidate) > 0) {
|
|
1836
|
+
return i - 1;
|
|
1837
|
+
}
|
|
1838
|
+
return i;
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
return n - 1;
|
|
1842
|
+
}
|
|
1843
|
+
if (direction > 0) {
|
|
1844
|
+
for (let i = 1; i < n; ++i) {
|
|
1845
|
+
if (arr[i] < target) {
|
|
1846
|
+
return i - 1;
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
return n - 1;
|
|
1850
|
+
}
|
|
1851
|
+
if (direction < 0) {
|
|
1852
|
+
for (let i = 1; i < n; ++i) {
|
|
1853
|
+
if (arr[i] <= target) {
|
|
1854
|
+
return i;
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
return n - 1;
|
|
1858
|
+
}
|
|
1859
|
+
for (let i = 1; i < n; ++i) {
|
|
1860
|
+
if (arr[i] == target) {
|
|
1861
|
+
return i;
|
|
1862
|
+
}
|
|
1863
|
+
if (arr[i] < target) {
|
|
1864
|
+
if (arr[i - 1] - target < target - arr[i]) {
|
|
1865
|
+
return i - 1;
|
|
1866
|
+
}
|
|
1867
|
+
return i;
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
return n - 1;
|
|
1871
|
+
}
|
|
1872
|
+
function reverseSubArray(arr, begin, end) {
|
|
1873
|
+
while (begin < end) {
|
|
1874
|
+
const tmp = arr[begin];
|
|
1875
|
+
arr[begin] = arr[end];
|
|
1876
|
+
arr[end] = tmp;
|
|
1877
|
+
++begin;
|
|
1878
|
+
--end;
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
function extend2(arr, data) {
|
|
1882
|
+
const extension = Array.isArray(data) ? data : [data];
|
|
1883
|
+
const length = extension.length;
|
|
1884
|
+
for (let i = 0; i < length; i++) {
|
|
1885
|
+
arr[arr.length] = extension[i];
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
function equals3(arr1, arr2) {
|
|
1889
|
+
const len1 = arr1.length;
|
|
1890
|
+
if (len1 !== arr2.length) {
|
|
1891
|
+
return false;
|
|
1892
|
+
}
|
|
1893
|
+
for (let i = 0; i < len1; i++) {
|
|
1894
|
+
if (arr1[i] !== arr2[i]) {
|
|
1895
|
+
return false;
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
return true;
|
|
1899
|
+
}
|
|
1900
|
+
function isSorted(arr, func, strict) {
|
|
1901
|
+
const compare = func || ascending;
|
|
1902
|
+
return arr.every(function(currentVal, index) {
|
|
1903
|
+
if (index === 0) {
|
|
1904
|
+
return true;
|
|
1905
|
+
}
|
|
1906
|
+
const res = compare(arr[index - 1], currentVal);
|
|
1907
|
+
return !(res > 0 || strict && res === 0);
|
|
1908
|
+
});
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
// node_modules/ol/geom/flat/intersectsextent.js
|
|
1912
|
+
init_dirname();
|
|
1913
|
+
init_buffer();
|
|
1914
|
+
init_process();
|
|
1915
|
+
|
|
1916
|
+
// node_modules/ol/geom/flat/contains.js
|
|
1917
|
+
init_dirname();
|
|
1918
|
+
init_buffer();
|
|
1919
|
+
init_process();
|
|
1920
|
+
function linearRingContainsExtent(flatCoordinates, offset, end, stride, extent) {
|
|
1921
|
+
const outside = forEachCorner(
|
|
1922
|
+
extent,
|
|
1923
|
+
/**
|
|
1924
|
+
* @param {import("../../coordinate.js").Coordinate} coordinate Coordinate.
|
|
1925
|
+
* @return {boolean} Contains (x, y).
|
|
1926
|
+
*/
|
|
1927
|
+
function(coordinate) {
|
|
1928
|
+
return !linearRingContainsXY(
|
|
1929
|
+
flatCoordinates,
|
|
1930
|
+
offset,
|
|
1931
|
+
end,
|
|
1932
|
+
stride,
|
|
1933
|
+
coordinate[0],
|
|
1934
|
+
coordinate[1]
|
|
1935
|
+
);
|
|
1936
|
+
}
|
|
1937
|
+
);
|
|
1938
|
+
return !outside;
|
|
1939
|
+
}
|
|
1940
|
+
function linearRingContainsXY(flatCoordinates, offset, end, stride, x, y) {
|
|
1941
|
+
let wn = 0;
|
|
1942
|
+
let x1 = flatCoordinates[end - stride];
|
|
1943
|
+
let y1 = flatCoordinates[end - stride + 1];
|
|
1944
|
+
for (; offset < end; offset += stride) {
|
|
1945
|
+
const x2 = flatCoordinates[offset];
|
|
1946
|
+
const y2 = flatCoordinates[offset + 1];
|
|
1947
|
+
if (y1 <= y) {
|
|
1948
|
+
if (y2 > y && (x2 - x1) * (y - y1) - (x - x1) * (y2 - y1) > 0) {
|
|
1949
|
+
wn++;
|
|
1950
|
+
}
|
|
1951
|
+
} else if (y2 <= y && (x2 - x1) * (y - y1) - (x - x1) * (y2 - y1) < 0) {
|
|
1952
|
+
wn--;
|
|
1953
|
+
}
|
|
1954
|
+
x1 = x2;
|
|
1955
|
+
y1 = y2;
|
|
1956
|
+
}
|
|
1957
|
+
return wn !== 0;
|
|
1958
|
+
}
|
|
1959
|
+
function linearRingsContainsXY(flatCoordinates, offset, ends, stride, x, y) {
|
|
1960
|
+
if (ends.length === 0) {
|
|
1961
|
+
return false;
|
|
1962
|
+
}
|
|
1963
|
+
if (!linearRingContainsXY(flatCoordinates, offset, ends[0], stride, x, y)) {
|
|
1964
|
+
return false;
|
|
1965
|
+
}
|
|
1966
|
+
for (let i = 1, ii = ends.length; i < ii; ++i) {
|
|
1967
|
+
if (linearRingContainsXY(flatCoordinates, ends[i - 1], ends[i], stride, x, y)) {
|
|
1968
|
+
return false;
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
return true;
|
|
1972
|
+
}
|
|
1973
|
+
function linearRingssContainsXY(flatCoordinates, offset, endss, stride, x, y) {
|
|
1974
|
+
if (endss.length === 0) {
|
|
1975
|
+
return false;
|
|
1976
|
+
}
|
|
1977
|
+
for (let i = 0, ii = endss.length; i < ii; ++i) {
|
|
1978
|
+
const ends = endss[i];
|
|
1979
|
+
if (linearRingsContainsXY(flatCoordinates, offset, ends, stride, x, y)) {
|
|
1980
|
+
return true;
|
|
1981
|
+
}
|
|
1982
|
+
offset = ends[ends.length - 1];
|
|
1983
|
+
}
|
|
1984
|
+
return false;
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1987
|
+
// node_modules/ol/geom/flat/segments.js
|
|
1988
|
+
init_dirname();
|
|
1989
|
+
init_buffer();
|
|
1990
|
+
init_process();
|
|
1991
|
+
function forEach(flatCoordinates, offset, end, stride, callback) {
|
|
1992
|
+
let ret;
|
|
1993
|
+
offset += stride;
|
|
1994
|
+
for (; offset < end; offset += stride) {
|
|
1995
|
+
ret = callback(
|
|
1996
|
+
flatCoordinates.slice(offset - stride, offset),
|
|
1997
|
+
flatCoordinates.slice(offset, offset + stride)
|
|
1998
|
+
);
|
|
1999
|
+
if (ret) {
|
|
2000
|
+
return ret;
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
return false;
|
|
2004
|
+
}
|
|
2005
|
+
|
|
2006
|
+
// node_modules/ol/geom/flat/intersectsextent.js
|
|
2007
|
+
function intersectsLineString(flatCoordinates, offset, end, stride, extent, coordinatesExtent) {
|
|
2008
|
+
coordinatesExtent = coordinatesExtent != null ? coordinatesExtent : extendFlatCoordinates(createEmpty(), flatCoordinates, offset, end, stride);
|
|
2009
|
+
if (!intersects(extent, coordinatesExtent)) {
|
|
2010
|
+
return false;
|
|
2011
|
+
}
|
|
2012
|
+
if (coordinatesExtent[0] >= extent[0] && coordinatesExtent[2] <= extent[2] || coordinatesExtent[1] >= extent[1] && coordinatesExtent[3] <= extent[3]) {
|
|
2013
|
+
return true;
|
|
2014
|
+
}
|
|
2015
|
+
return forEach(
|
|
2016
|
+
flatCoordinates,
|
|
2017
|
+
offset,
|
|
2018
|
+
end,
|
|
2019
|
+
stride,
|
|
2020
|
+
/**
|
|
2021
|
+
* @param {import("../../coordinate.js").Coordinate} point1 Start point.
|
|
2022
|
+
* @param {import("../../coordinate.js").Coordinate} point2 End point.
|
|
2023
|
+
* @return {boolean} `true` if the segment and the extent intersect,
|
|
2024
|
+
* `false` otherwise.
|
|
2025
|
+
*/
|
|
2026
|
+
function(point1, point2) {
|
|
2027
|
+
return intersectsSegment(extent, point1, point2);
|
|
2028
|
+
}
|
|
2029
|
+
);
|
|
2030
|
+
}
|
|
2031
|
+
function intersectsLineStringArray(flatCoordinates, offset, ends, stride, extent) {
|
|
2032
|
+
for (let i = 0, ii = ends.length; i < ii; ++i) {
|
|
2033
|
+
if (intersectsLineString(flatCoordinates, offset, ends[i], stride, extent)) {
|
|
2034
|
+
return true;
|
|
2035
|
+
}
|
|
2036
|
+
offset = ends[i];
|
|
2037
|
+
}
|
|
2038
|
+
return false;
|
|
2039
|
+
}
|
|
2040
|
+
function intersectsLinearRing(flatCoordinates, offset, end, stride, extent) {
|
|
2041
|
+
if (intersectsLineString(flatCoordinates, offset, end, stride, extent)) {
|
|
2042
|
+
return true;
|
|
2043
|
+
}
|
|
2044
|
+
if (linearRingContainsXY(
|
|
2045
|
+
flatCoordinates,
|
|
2046
|
+
offset,
|
|
2047
|
+
end,
|
|
2048
|
+
stride,
|
|
2049
|
+
extent[0],
|
|
2050
|
+
extent[1]
|
|
2051
|
+
)) {
|
|
2052
|
+
return true;
|
|
2053
|
+
}
|
|
2054
|
+
if (linearRingContainsXY(
|
|
2055
|
+
flatCoordinates,
|
|
2056
|
+
offset,
|
|
2057
|
+
end,
|
|
2058
|
+
stride,
|
|
2059
|
+
extent[0],
|
|
2060
|
+
extent[3]
|
|
2061
|
+
)) {
|
|
2062
|
+
return true;
|
|
2063
|
+
}
|
|
2064
|
+
if (linearRingContainsXY(
|
|
2065
|
+
flatCoordinates,
|
|
2066
|
+
offset,
|
|
2067
|
+
end,
|
|
2068
|
+
stride,
|
|
2069
|
+
extent[2],
|
|
2070
|
+
extent[1]
|
|
2071
|
+
)) {
|
|
2072
|
+
return true;
|
|
2073
|
+
}
|
|
2074
|
+
if (linearRingContainsXY(
|
|
2075
|
+
flatCoordinates,
|
|
2076
|
+
offset,
|
|
2077
|
+
end,
|
|
2078
|
+
stride,
|
|
2079
|
+
extent[2],
|
|
2080
|
+
extent[3]
|
|
2081
|
+
)) {
|
|
2082
|
+
return true;
|
|
2083
|
+
}
|
|
2084
|
+
return false;
|
|
2085
|
+
}
|
|
2086
|
+
function intersectsLinearRingArray(flatCoordinates, offset, ends, stride, extent) {
|
|
2087
|
+
if (!intersectsLinearRing(flatCoordinates, offset, ends[0], stride, extent)) {
|
|
2088
|
+
return false;
|
|
2089
|
+
}
|
|
2090
|
+
if (ends.length === 1) {
|
|
2091
|
+
return true;
|
|
2092
|
+
}
|
|
2093
|
+
for (let i = 1, ii = ends.length; i < ii; ++i) {
|
|
2094
|
+
if (linearRingContainsExtent(
|
|
2095
|
+
flatCoordinates,
|
|
2096
|
+
ends[i - 1],
|
|
2097
|
+
ends[i],
|
|
2098
|
+
stride,
|
|
2099
|
+
extent
|
|
2100
|
+
)) {
|
|
2101
|
+
if (!intersectsLineString(
|
|
2102
|
+
flatCoordinates,
|
|
2103
|
+
ends[i - 1],
|
|
2104
|
+
ends[i],
|
|
2105
|
+
stride,
|
|
2106
|
+
extent
|
|
2107
|
+
)) {
|
|
2108
|
+
return false;
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2112
|
+
return true;
|
|
2113
|
+
}
|
|
2114
|
+
function intersectsLinearRingMultiArray(flatCoordinates, offset, endss, stride, extent) {
|
|
2115
|
+
for (let i = 0, ii = endss.length; i < ii; ++i) {
|
|
2116
|
+
const ends = endss[i];
|
|
2117
|
+
if (intersectsLinearRingArray(flatCoordinates, offset, ends, stride, extent)) {
|
|
2118
|
+
return true;
|
|
2119
|
+
}
|
|
2120
|
+
offset = ends[ends.length - 1];
|
|
2121
|
+
}
|
|
2122
|
+
return false;
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
// node_modules/ol/size.js
|
|
2126
|
+
init_dirname();
|
|
2127
|
+
init_buffer();
|
|
2128
|
+
init_process();
|
|
2129
|
+
function hasArea(size) {
|
|
2130
|
+
return size[0] > 0 && size[1] > 0;
|
|
2131
|
+
}
|
|
2132
|
+
function scale3(size, ratio, dest) {
|
|
2133
|
+
if (dest === void 0) {
|
|
2134
|
+
dest = [0, 0];
|
|
2135
|
+
}
|
|
2136
|
+
dest[0] = size[0] * ratio + 0.5 | 0;
|
|
2137
|
+
dest[1] = size[1] * ratio + 0.5 | 0;
|
|
2138
|
+
return dest;
|
|
2139
|
+
}
|
|
2140
|
+
function toSize(size, dest) {
|
|
2141
|
+
if (Array.isArray(size)) {
|
|
2142
|
+
return size;
|
|
2143
|
+
}
|
|
2144
|
+
if (dest === void 0) {
|
|
2145
|
+
dest = [size, size];
|
|
2146
|
+
} else {
|
|
2147
|
+
dest[0] = size;
|
|
2148
|
+
dest[1] = size;
|
|
2149
|
+
}
|
|
2150
|
+
return dest;
|
|
2151
|
+
}
|
|
2152
|
+
|
|
2153
|
+
// node_modules/ol/tilecoord.js
|
|
2154
|
+
init_dirname();
|
|
2155
|
+
init_buffer();
|
|
2156
|
+
init_process();
|
|
2157
|
+
function createOrUpdate3(z, x, y, tileCoord) {
|
|
2158
|
+
if (tileCoord !== void 0) {
|
|
2159
|
+
tileCoord[0] = z;
|
|
2160
|
+
tileCoord[1] = x;
|
|
2161
|
+
tileCoord[2] = y;
|
|
2162
|
+
return tileCoord;
|
|
2163
|
+
}
|
|
2164
|
+
return [z, x, y];
|
|
2165
|
+
}
|
|
2166
|
+
function getKeyZXY(z, x, y) {
|
|
2167
|
+
return z + "/" + x + "/" + y;
|
|
2168
|
+
}
|
|
2169
|
+
function getKey(tileCoord) {
|
|
2170
|
+
return getKeyZXY(tileCoord[0], tileCoord[1], tileCoord[2]);
|
|
2171
|
+
}
|
|
2172
|
+
function hash(tileCoord) {
|
|
2173
|
+
return hashZXY(tileCoord[0], tileCoord[1], tileCoord[2]);
|
|
2174
|
+
}
|
|
2175
|
+
function hashZXY(z, x, y) {
|
|
2176
|
+
return (x << z) + y;
|
|
2177
|
+
}
|
|
2178
|
+
function withinExtentAndZ(tileCoord, tileGrid) {
|
|
2179
|
+
const z = tileCoord[0];
|
|
2180
|
+
const x = tileCoord[1];
|
|
2181
|
+
const y = tileCoord[2];
|
|
2182
|
+
if (tileGrid.getMinZoom() > z || z > tileGrid.getMaxZoom()) {
|
|
2183
|
+
return false;
|
|
2184
|
+
}
|
|
2185
|
+
const tileRange = tileGrid.getFullTileRange(z);
|
|
2186
|
+
if (!tileRange) {
|
|
2187
|
+
return true;
|
|
2188
|
+
}
|
|
2189
|
+
return tileRange.containsXY(x, y);
|
|
2190
|
+
}
|
|
2191
|
+
|
|
2192
|
+
// node_modules/ol/tilegrid/common.js
|
|
2193
|
+
init_dirname();
|
|
2194
|
+
init_buffer();
|
|
2195
|
+
init_process();
|
|
2196
|
+
var DEFAULT_MAX_ZOOM = 42;
|
|
2197
|
+
var DEFAULT_TILE_SIZE = 256;
|
|
2198
|
+
|
|
2199
|
+
// node_modules/ol/tilegrid/TileGrid.js
|
|
2200
|
+
var tmpTileCoord = [0, 0, 0];
|
|
2201
|
+
var DECIMALS = 5;
|
|
2202
|
+
var TileGrid = class {
|
|
2203
|
+
/**
|
|
2204
|
+
* @param {Options} options Tile grid options.
|
|
2205
|
+
*/
|
|
2206
|
+
constructor(options) {
|
|
2207
|
+
this.minZoom = options.minZoom !== void 0 ? options.minZoom : 0;
|
|
2208
|
+
this.resolutions_ = options.resolutions;
|
|
2209
|
+
assert(
|
|
2210
|
+
isSorted(
|
|
2211
|
+
this.resolutions_,
|
|
2212
|
+
/**
|
|
2213
|
+
* @param {number} a First resolution
|
|
2214
|
+
* @param {number} b Second resolution
|
|
2215
|
+
* @return {number} Comparison result
|
|
2216
|
+
*/
|
|
2217
|
+
(a, b) => b - a,
|
|
2218
|
+
true
|
|
2219
|
+
),
|
|
2220
|
+
"`resolutions` must be sorted in descending order"
|
|
2221
|
+
);
|
|
2222
|
+
let zoomFactor;
|
|
2223
|
+
if (!options.origins) {
|
|
2224
|
+
for (let i = 0, ii = this.resolutions_.length - 1; i < ii; ++i) {
|
|
2225
|
+
if (!zoomFactor) {
|
|
2226
|
+
zoomFactor = this.resolutions_[i] / this.resolutions_[i + 1];
|
|
2227
|
+
} else {
|
|
2228
|
+
if (this.resolutions_[i] / this.resolutions_[i + 1] !== zoomFactor) {
|
|
2229
|
+
zoomFactor = void 0;
|
|
2230
|
+
break;
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
2235
|
+
this.zoomFactor_ = zoomFactor;
|
|
2236
|
+
this.maxZoom = this.resolutions_.length - 1;
|
|
2237
|
+
this.origin_ = options.origin !== void 0 ? options.origin : null;
|
|
2238
|
+
this.origins_ = null;
|
|
2239
|
+
if (options.origins !== void 0) {
|
|
2240
|
+
this.origins_ = options.origins;
|
|
2241
|
+
assert(
|
|
2242
|
+
this.origins_.length == this.resolutions_.length,
|
|
2243
|
+
"Number of `origins` and `resolutions` must be equal"
|
|
2244
|
+
);
|
|
2245
|
+
}
|
|
2246
|
+
const extent = options.extent;
|
|
2247
|
+
if (extent !== void 0 && !this.origin_ && !this.origins_) {
|
|
2248
|
+
this.origin_ = getTopLeft(extent);
|
|
2249
|
+
}
|
|
2250
|
+
assert(
|
|
2251
|
+
!this.origin_ && this.origins_ || this.origin_ && !this.origins_,
|
|
2252
|
+
"Either `origin` or `origins` must be configured, never both"
|
|
2253
|
+
);
|
|
2254
|
+
this.tileSizes_ = null;
|
|
2255
|
+
if (options.tileSizes !== void 0) {
|
|
2256
|
+
this.tileSizes_ = options.tileSizes;
|
|
2257
|
+
assert(
|
|
2258
|
+
this.tileSizes_.length == this.resolutions_.length,
|
|
2259
|
+
"Number of `tileSizes` and `resolutions` must be equal"
|
|
2260
|
+
);
|
|
2261
|
+
}
|
|
2262
|
+
this.tileSize_ = options.tileSize !== void 0 ? options.tileSize : !this.tileSizes_ ? DEFAULT_TILE_SIZE : null;
|
|
2263
|
+
assert(
|
|
2264
|
+
!this.tileSize_ && this.tileSizes_ || this.tileSize_ && !this.tileSizes_,
|
|
2265
|
+
"Either `tileSize` or `tileSizes` must be configured, never both"
|
|
2266
|
+
);
|
|
2267
|
+
this.extent_ = extent !== void 0 ? extent : null;
|
|
2268
|
+
this.fullTileRanges_ = null;
|
|
2269
|
+
this.tmpSize_ = [0, 0];
|
|
2270
|
+
this.tmpExtent_ = [0, 0, 0, 0];
|
|
2271
|
+
if (options.sizes !== void 0) {
|
|
2272
|
+
this.fullTileRanges_ = options.sizes.map((size, z) => {
|
|
2273
|
+
const tileRange = new TileRange_default(
|
|
2274
|
+
Math.min(0, size[0]),
|
|
2275
|
+
Math.max(size[0] - 1, -1),
|
|
2276
|
+
Math.min(0, size[1]),
|
|
2277
|
+
Math.max(size[1] - 1, -1)
|
|
2278
|
+
);
|
|
2279
|
+
if (extent) {
|
|
2280
|
+
const restrictedTileRange = this.getTileRangeForExtentAndZ(extent, z);
|
|
2281
|
+
tileRange.minX = Math.max(restrictedTileRange.minX, tileRange.minX);
|
|
2282
|
+
tileRange.maxX = Math.min(restrictedTileRange.maxX, tileRange.maxX);
|
|
2283
|
+
tileRange.minY = Math.max(restrictedTileRange.minY, tileRange.minY);
|
|
2284
|
+
tileRange.maxY = Math.min(restrictedTileRange.maxY, tileRange.maxY);
|
|
2285
|
+
}
|
|
2286
|
+
return tileRange;
|
|
2287
|
+
});
|
|
2288
|
+
} else if (extent) {
|
|
2289
|
+
this.calculateTileRanges_(extent);
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
/**
|
|
2293
|
+
* Call a function with each tile coordinate for a given extent and zoom level.
|
|
2294
|
+
*
|
|
2295
|
+
* @param {import("../extent.js").Extent} extent Extent.
|
|
2296
|
+
* @param {number} zoom Integer zoom level.
|
|
2297
|
+
* @param {function(import("../tilecoord.js").TileCoord): void} callback Function called with each tile coordinate.
|
|
2298
|
+
* @api
|
|
2299
|
+
*/
|
|
2300
|
+
forEachTileCoord(extent, zoom, callback) {
|
|
2301
|
+
const tileRange = this.getTileRangeForExtentAndZ(extent, zoom);
|
|
2302
|
+
for (let i = tileRange.minX, ii = tileRange.maxX; i <= ii; ++i) {
|
|
2303
|
+
for (let j = tileRange.minY, jj = tileRange.maxY; j <= jj; ++j) {
|
|
2304
|
+
callback([zoom, i, j]);
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2307
|
+
}
|
|
2308
|
+
/**
|
|
2309
|
+
* @param {import("../tilecoord.js").TileCoord} tileCoord Tile coordinate.
|
|
2310
|
+
* @param {function(number, import("../TileRange.js").default): boolean} callback Callback.
|
|
2311
|
+
* @param {import("../TileRange.js").default} [tempTileRange] Temporary import("../TileRange.js").default object.
|
|
2312
|
+
* @param {import("../extent.js").Extent} [tempExtent] Temporary import("../extent.js").Extent object.
|
|
2313
|
+
* @return {boolean} Callback succeeded.
|
|
2314
|
+
*/
|
|
2315
|
+
forEachTileCoordParentTileRange(tileCoord, callback, tempTileRange, tempExtent) {
|
|
2316
|
+
let tileRange, x, y;
|
|
2317
|
+
let tileCoordExtent = null;
|
|
2318
|
+
let z = tileCoord[0] - 1;
|
|
2319
|
+
if (this.zoomFactor_ === 2) {
|
|
2320
|
+
x = tileCoord[1];
|
|
2321
|
+
y = tileCoord[2];
|
|
2322
|
+
} else {
|
|
2323
|
+
tileCoordExtent = this.getTileCoordExtent(tileCoord, tempExtent);
|
|
2324
|
+
}
|
|
2325
|
+
while (z >= this.minZoom) {
|
|
2326
|
+
if (x !== void 0 && y !== void 0) {
|
|
2327
|
+
x = Math.floor(x / 2);
|
|
2328
|
+
y = Math.floor(y / 2);
|
|
2329
|
+
tileRange = createOrUpdate2(x, x, y, y, tempTileRange);
|
|
2330
|
+
} else {
|
|
2331
|
+
tileRange = this.getTileRangeForExtentAndZ(
|
|
2332
|
+
tileCoordExtent,
|
|
2333
|
+
z,
|
|
2334
|
+
tempTileRange
|
|
2335
|
+
);
|
|
2336
|
+
}
|
|
2337
|
+
if (callback(z, tileRange)) {
|
|
2338
|
+
return true;
|
|
2339
|
+
}
|
|
2340
|
+
--z;
|
|
2341
|
+
}
|
|
2342
|
+
return false;
|
|
2343
|
+
}
|
|
2344
|
+
/**
|
|
2345
|
+
* Get the extent for this tile grid, if it was configured.
|
|
2346
|
+
* @return {import("../extent.js").Extent} Extent.
|
|
2347
|
+
* @api
|
|
2348
|
+
*/
|
|
2349
|
+
getExtent() {
|
|
2350
|
+
return this.extent_;
|
|
2351
|
+
}
|
|
2352
|
+
/**
|
|
2353
|
+
* Get the maximum zoom level for the grid.
|
|
2354
|
+
* @return {number} Max zoom.
|
|
2355
|
+
* @api
|
|
2356
|
+
*/
|
|
2357
|
+
getMaxZoom() {
|
|
2358
|
+
return this.maxZoom;
|
|
2359
|
+
}
|
|
2360
|
+
/**
|
|
2361
|
+
* Get the minimum zoom level for the grid.
|
|
2362
|
+
* @return {number} Min zoom.
|
|
2363
|
+
* @api
|
|
2364
|
+
*/
|
|
2365
|
+
getMinZoom() {
|
|
2366
|
+
return this.minZoom;
|
|
2367
|
+
}
|
|
2368
|
+
/**
|
|
2369
|
+
* Get the origin for the grid at the given zoom level.
|
|
2370
|
+
* @param {number} z Integer zoom level.
|
|
2371
|
+
* @return {import("../coordinate.js").Coordinate} Origin.
|
|
2372
|
+
* @api
|
|
2373
|
+
*/
|
|
2374
|
+
getOrigin(z) {
|
|
2375
|
+
if (this.origin_) {
|
|
2376
|
+
return this.origin_;
|
|
2377
|
+
}
|
|
2378
|
+
return this.origins_[z];
|
|
2379
|
+
}
|
|
2380
|
+
/**
|
|
2381
|
+
* Get the resolution for the given zoom level.
|
|
2382
|
+
* @param {number} z Integer zoom level.
|
|
2383
|
+
* @return {number} Resolution.
|
|
2384
|
+
* @api
|
|
2385
|
+
*/
|
|
2386
|
+
getResolution(z) {
|
|
2387
|
+
return this.resolutions_[z];
|
|
2388
|
+
}
|
|
2389
|
+
/**
|
|
2390
|
+
* Get the list of resolutions for the tile grid.
|
|
2391
|
+
* @return {Array<number>} Resolutions.
|
|
2392
|
+
* @api
|
|
2393
|
+
*/
|
|
2394
|
+
getResolutions() {
|
|
2395
|
+
return this.resolutions_;
|
|
2396
|
+
}
|
|
2397
|
+
/**
|
|
2398
|
+
* @param {import("../tilecoord.js").TileCoord} tileCoord Tile coordinate.
|
|
2399
|
+
* @param {import("../TileRange.js").default} [tempTileRange] Temporary import("../TileRange.js").default object.
|
|
2400
|
+
* @param {import("../extent.js").Extent} [tempExtent] Temporary import("../extent.js").Extent object.
|
|
2401
|
+
* @return {import("../TileRange.js").default|null} Tile range.
|
|
2402
|
+
*/
|
|
2403
|
+
getTileCoordChildTileRange(tileCoord, tempTileRange, tempExtent) {
|
|
2404
|
+
if (tileCoord[0] < this.maxZoom) {
|
|
2405
|
+
if (this.zoomFactor_ === 2) {
|
|
2406
|
+
const minX = tileCoord[1] * 2;
|
|
2407
|
+
const minY = tileCoord[2] * 2;
|
|
2408
|
+
return createOrUpdate2(
|
|
2409
|
+
minX,
|
|
2410
|
+
minX + 1,
|
|
2411
|
+
minY,
|
|
2412
|
+
minY + 1,
|
|
2413
|
+
tempTileRange
|
|
2414
|
+
);
|
|
2415
|
+
}
|
|
2416
|
+
const tileCoordExtent = this.getTileCoordExtent(
|
|
2417
|
+
tileCoord,
|
|
2418
|
+
tempExtent || this.tmpExtent_
|
|
2419
|
+
);
|
|
2420
|
+
return this.getTileRangeForExtentAndZ(
|
|
2421
|
+
tileCoordExtent,
|
|
2422
|
+
tileCoord[0] + 1,
|
|
2423
|
+
tempTileRange
|
|
2424
|
+
);
|
|
2425
|
+
}
|
|
2426
|
+
return null;
|
|
2427
|
+
}
|
|
2428
|
+
/**
|
|
2429
|
+
* @param {import("../tilecoord.js").TileCoord} tileCoord Tile coordinate.
|
|
2430
|
+
* @param {number} z Integer zoom level.
|
|
2431
|
+
* @param {import("../TileRange.js").default} [tempTileRange] Temporary import("../TileRange.js").default object.
|
|
2432
|
+
* @return {import("../TileRange.js").default|null} Tile range.
|
|
2433
|
+
*/
|
|
2434
|
+
getTileRangeForTileCoordAndZ(tileCoord, z, tempTileRange) {
|
|
2435
|
+
if (z > this.maxZoom || z < this.minZoom) {
|
|
2436
|
+
return null;
|
|
2437
|
+
}
|
|
2438
|
+
const tileCoordZ = tileCoord[0];
|
|
2439
|
+
const tileCoordX = tileCoord[1];
|
|
2440
|
+
const tileCoordY = tileCoord[2];
|
|
2441
|
+
if (z === tileCoordZ) {
|
|
2442
|
+
return createOrUpdate2(
|
|
2443
|
+
tileCoordX,
|
|
2444
|
+
tileCoordY,
|
|
2445
|
+
tileCoordX,
|
|
2446
|
+
tileCoordY,
|
|
2447
|
+
tempTileRange
|
|
2448
|
+
);
|
|
2449
|
+
}
|
|
2450
|
+
if (this.zoomFactor_) {
|
|
2451
|
+
const factor = Math.pow(this.zoomFactor_, z - tileCoordZ);
|
|
2452
|
+
const minX = Math.floor(tileCoordX * factor);
|
|
2453
|
+
const minY = Math.floor(tileCoordY * factor);
|
|
2454
|
+
if (z < tileCoordZ) {
|
|
2455
|
+
return createOrUpdate2(minX, minX, minY, minY, tempTileRange);
|
|
2456
|
+
}
|
|
2457
|
+
const maxX = Math.floor(factor * (tileCoordX + 1)) - 1;
|
|
2458
|
+
const maxY = Math.floor(factor * (tileCoordY + 1)) - 1;
|
|
2459
|
+
return createOrUpdate2(minX, maxX, minY, maxY, tempTileRange);
|
|
2460
|
+
}
|
|
2461
|
+
const tileCoordExtent = this.getTileCoordExtent(tileCoord, this.tmpExtent_);
|
|
2462
|
+
return this.getTileRangeForExtentAndZ(tileCoordExtent, z, tempTileRange);
|
|
2463
|
+
}
|
|
2464
|
+
/**
|
|
2465
|
+
* Get a tile range for the given extent and integer zoom level.
|
|
2466
|
+
* @param {import("../extent.js").Extent} extent Extent.
|
|
2467
|
+
* @param {number} z Integer zoom level.
|
|
2468
|
+
* @param {import("../TileRange.js").default} [tempTileRange] Temporary tile range object.
|
|
2469
|
+
* @return {import("../TileRange.js").default} Tile range.
|
|
2470
|
+
*/
|
|
2471
|
+
getTileRangeForExtentAndZ(extent, z, tempTileRange) {
|
|
2472
|
+
this.getTileCoordForXYAndZ_(extent[0], extent[3], z, false, tmpTileCoord);
|
|
2473
|
+
const minX = tmpTileCoord[1];
|
|
2474
|
+
const minY = tmpTileCoord[2];
|
|
2475
|
+
this.getTileCoordForXYAndZ_(extent[2], extent[1], z, true, tmpTileCoord);
|
|
2476
|
+
const maxX = tmpTileCoord[1];
|
|
2477
|
+
const maxY = tmpTileCoord[2];
|
|
2478
|
+
return createOrUpdate2(minX, maxX, minY, maxY, tempTileRange);
|
|
2479
|
+
}
|
|
2480
|
+
/**
|
|
2481
|
+
* @param {import("../tilecoord.js").TileCoord} tileCoord Tile coordinate.
|
|
2482
|
+
* @return {import("../coordinate.js").Coordinate} Tile center.
|
|
2483
|
+
*/
|
|
2484
|
+
getTileCoordCenter(tileCoord) {
|
|
2485
|
+
const origin = this.getOrigin(tileCoord[0]);
|
|
2486
|
+
const resolution = this.getResolution(tileCoord[0]);
|
|
2487
|
+
const tileSize = toSize(this.getTileSize(tileCoord[0]), this.tmpSize_);
|
|
2488
|
+
return [
|
|
2489
|
+
origin[0] + (tileCoord[1] + 0.5) * tileSize[0] * resolution,
|
|
2490
|
+
origin[1] - (tileCoord[2] + 0.5) * tileSize[1] * resolution
|
|
2491
|
+
];
|
|
2492
|
+
}
|
|
2493
|
+
/**
|
|
2494
|
+
* Get the extent of a tile coordinate.
|
|
2495
|
+
*
|
|
2496
|
+
* @param {import("../tilecoord.js").TileCoord} tileCoord Tile coordinate.
|
|
2497
|
+
* @param {import("../extent.js").Extent} [tempExtent] Temporary extent object.
|
|
2498
|
+
* @return {import("../extent.js").Extent} Extent.
|
|
2499
|
+
* @api
|
|
2500
|
+
*/
|
|
2501
|
+
getTileCoordExtent(tileCoord, tempExtent) {
|
|
2502
|
+
const origin = this.getOrigin(tileCoord[0]);
|
|
2503
|
+
const resolution = this.getResolution(tileCoord[0]);
|
|
2504
|
+
const tileSize = toSize(this.getTileSize(tileCoord[0]), this.tmpSize_);
|
|
2505
|
+
const minX = origin[0] + tileCoord[1] * tileSize[0] * resolution;
|
|
2506
|
+
const minY = origin[1] - (tileCoord[2] + 1) * tileSize[1] * resolution;
|
|
2507
|
+
const maxX = minX + tileSize[0] * resolution;
|
|
2508
|
+
const maxY = minY + tileSize[1] * resolution;
|
|
2509
|
+
return createOrUpdate(minX, minY, maxX, maxY, tempExtent);
|
|
2510
|
+
}
|
|
2511
|
+
/**
|
|
2512
|
+
* Get the tile coordinate for the given map coordinate and resolution. This
|
|
2513
|
+
* method considers that coordinates that intersect tile boundaries should be
|
|
2514
|
+
* assigned the higher tile coordinate.
|
|
2515
|
+
*
|
|
2516
|
+
* @param {import("../coordinate.js").Coordinate} coordinate Coordinate.
|
|
2517
|
+
* @param {number} resolution Resolution.
|
|
2518
|
+
* @param {import("../tilecoord.js").TileCoord} [opt_tileCoord] Destination import("../tilecoord.js").TileCoord object.
|
|
2519
|
+
* @return {import("../tilecoord.js").TileCoord} Tile coordinate.
|
|
2520
|
+
* @api
|
|
2521
|
+
*/
|
|
2522
|
+
getTileCoordForCoordAndResolution(coordinate, resolution, opt_tileCoord) {
|
|
2523
|
+
return this.getTileCoordForXYAndResolution_(
|
|
2524
|
+
coordinate[0],
|
|
2525
|
+
coordinate[1],
|
|
2526
|
+
resolution,
|
|
2527
|
+
false,
|
|
2528
|
+
opt_tileCoord
|
|
2529
|
+
);
|
|
2530
|
+
}
|
|
2531
|
+
/**
|
|
2532
|
+
* Note that this method should not be called for resolutions that correspond
|
|
2533
|
+
* to an integer zoom level. Instead call the `getTileCoordForXYAndZ_` method.
|
|
2534
|
+
* @param {number} x X.
|
|
2535
|
+
* @param {number} y Y.
|
|
2536
|
+
* @param {number} resolution Resolution (for a non-integer zoom level).
|
|
2537
|
+
* @param {boolean} reverseIntersectionPolicy Instead of letting edge
|
|
2538
|
+
* intersections go to the higher tile coordinate, let edge intersections
|
|
2539
|
+
* go to the lower tile coordinate.
|
|
2540
|
+
* @param {import("../tilecoord.js").TileCoord} [opt_tileCoord] Temporary import("../tilecoord.js").TileCoord object.
|
|
2541
|
+
* @return {import("../tilecoord.js").TileCoord} Tile coordinate.
|
|
2542
|
+
* @private
|
|
2543
|
+
*/
|
|
2544
|
+
getTileCoordForXYAndResolution_(x, y, resolution, reverseIntersectionPolicy, opt_tileCoord) {
|
|
2545
|
+
const z = this.getZForResolution(resolution);
|
|
2546
|
+
const scale5 = resolution / this.getResolution(z);
|
|
2547
|
+
const origin = this.getOrigin(z);
|
|
2548
|
+
const tileSize = toSize(this.getTileSize(z), this.tmpSize_);
|
|
2549
|
+
let tileCoordX = scale5 * (x - origin[0]) / resolution / tileSize[0];
|
|
2550
|
+
let tileCoordY = scale5 * (origin[1] - y) / resolution / tileSize[1];
|
|
2551
|
+
if (reverseIntersectionPolicy) {
|
|
2552
|
+
tileCoordX = ceil(tileCoordX, DECIMALS) - 1;
|
|
2553
|
+
tileCoordY = ceil(tileCoordY, DECIMALS) - 1;
|
|
2554
|
+
} else {
|
|
2555
|
+
tileCoordX = floor(tileCoordX, DECIMALS);
|
|
2556
|
+
tileCoordY = floor(tileCoordY, DECIMALS);
|
|
2557
|
+
}
|
|
2558
|
+
return createOrUpdate3(z, tileCoordX, tileCoordY, opt_tileCoord);
|
|
2559
|
+
}
|
|
2560
|
+
/**
|
|
2561
|
+
* Although there is repetition between this method and `getTileCoordForXYAndResolution_`,
|
|
2562
|
+
* they should have separate implementations. This method is for integer zoom
|
|
2563
|
+
* levels. The other method should only be called for resolutions corresponding
|
|
2564
|
+
* to non-integer zoom levels.
|
|
2565
|
+
* @param {number} x Map x coordinate.
|
|
2566
|
+
* @param {number} y Map y coordinate.
|
|
2567
|
+
* @param {number} z Integer zoom level.
|
|
2568
|
+
* @param {boolean} reverseIntersectionPolicy Instead of letting edge
|
|
2569
|
+
* intersections go to the higher tile coordinate, let edge intersections
|
|
2570
|
+
* go to the lower tile coordinate.
|
|
2571
|
+
* @param {import("../tilecoord.js").TileCoord} [opt_tileCoord] Temporary import("../tilecoord.js").TileCoord object.
|
|
2572
|
+
* @return {import("../tilecoord.js").TileCoord} Tile coordinate.
|
|
2573
|
+
* @private
|
|
2574
|
+
*/
|
|
2575
|
+
getTileCoordForXYAndZ_(x, y, z, reverseIntersectionPolicy, opt_tileCoord) {
|
|
2576
|
+
const origin = this.getOrigin(z);
|
|
2577
|
+
const resolution = this.getResolution(z);
|
|
2578
|
+
const tileSize = toSize(this.getTileSize(z), this.tmpSize_);
|
|
2579
|
+
let tileCoordX = (x - origin[0]) / resolution / tileSize[0];
|
|
2580
|
+
let tileCoordY = (origin[1] - y) / resolution / tileSize[1];
|
|
2581
|
+
if (reverseIntersectionPolicy) {
|
|
2582
|
+
tileCoordX = ceil(tileCoordX, DECIMALS) - 1;
|
|
2583
|
+
tileCoordY = ceil(tileCoordY, DECIMALS) - 1;
|
|
2584
|
+
} else {
|
|
2585
|
+
tileCoordX = floor(tileCoordX, DECIMALS);
|
|
2586
|
+
tileCoordY = floor(tileCoordY, DECIMALS);
|
|
2587
|
+
}
|
|
2588
|
+
return createOrUpdate3(z, tileCoordX, tileCoordY, opt_tileCoord);
|
|
2589
|
+
}
|
|
2590
|
+
/**
|
|
2591
|
+
* Get a tile coordinate given a map coordinate and zoom level.
|
|
2592
|
+
* @param {import("../coordinate.js").Coordinate} coordinate Coordinate.
|
|
2593
|
+
* @param {number} z Integer zoom level, e.g. the result of a `getZForResolution()` method call
|
|
2594
|
+
* @param {import("../tilecoord.js").TileCoord} [opt_tileCoord] Destination import("../tilecoord.js").TileCoord object.
|
|
2595
|
+
* @return {import("../tilecoord.js").TileCoord} Tile coordinate.
|
|
2596
|
+
* @api
|
|
2597
|
+
*/
|
|
2598
|
+
getTileCoordForCoordAndZ(coordinate, z, opt_tileCoord) {
|
|
2599
|
+
return this.getTileCoordForXYAndZ_(
|
|
2600
|
+
coordinate[0],
|
|
2601
|
+
coordinate[1],
|
|
2602
|
+
z,
|
|
2603
|
+
false,
|
|
2604
|
+
opt_tileCoord
|
|
2605
|
+
);
|
|
2606
|
+
}
|
|
2607
|
+
/**
|
|
2608
|
+
* @param {import("../tilecoord.js").TileCoord} tileCoord Tile coordinate.
|
|
2609
|
+
* @return {number} Tile resolution.
|
|
2610
|
+
*/
|
|
2611
|
+
getTileCoordResolution(tileCoord) {
|
|
2612
|
+
return this.resolutions_[tileCoord[0]];
|
|
2613
|
+
}
|
|
2614
|
+
/**
|
|
2615
|
+
* Get the tile size for a zoom level. The type of the return value matches the
|
|
2616
|
+
* `tileSize` or `tileSizes` that the tile grid was configured with. To always
|
|
2617
|
+
* get an {@link import("../size.js").Size}, run the result through {@link module:ol/size.toSize}.
|
|
2618
|
+
* @param {number} z Z.
|
|
2619
|
+
* @return {number|import("../size.js").Size} Tile size.
|
|
2620
|
+
* @api
|
|
2621
|
+
*/
|
|
2622
|
+
getTileSize(z) {
|
|
2623
|
+
if (this.tileSize_) {
|
|
2624
|
+
return this.tileSize_;
|
|
2625
|
+
}
|
|
2626
|
+
return this.tileSizes_[z];
|
|
2627
|
+
}
|
|
2628
|
+
/**
|
|
2629
|
+
* @param {number} z Zoom level.
|
|
2630
|
+
* @return {import("../TileRange.js").default|null} Extent tile range for the specified zoom level.
|
|
2631
|
+
*/
|
|
2632
|
+
getFullTileRange(z) {
|
|
2633
|
+
if (!this.fullTileRanges_) {
|
|
2634
|
+
return this.extent_ ? this.getTileRangeForExtentAndZ(this.extent_, z) : null;
|
|
2635
|
+
}
|
|
2636
|
+
return this.fullTileRanges_[z];
|
|
2637
|
+
}
|
|
2638
|
+
/**
|
|
2639
|
+
* @param {number} resolution Resolution.
|
|
2640
|
+
* @param {number|import("../array.js").NearestDirectionFunction} [opt_direction]
|
|
2641
|
+
* If 0, the nearest resolution will be used.
|
|
2642
|
+
* If 1, the nearest higher resolution (lower Z) will be used. If -1, the
|
|
2643
|
+
* nearest lower resolution (higher Z) will be used. Default is 0.
|
|
2644
|
+
* Use a {@link module:ol/array~NearestDirectionFunction} for more precise control.
|
|
2645
|
+
*
|
|
2646
|
+
* For example to change tile Z at the midpoint of zoom levels
|
|
2647
|
+
* ```js
|
|
2648
|
+
* function(value, high, low) {
|
|
2649
|
+
* return value - low * Math.sqrt(high / low);
|
|
2650
|
+
* }
|
|
2651
|
+
* ```
|
|
2652
|
+
* @return {number} Z.
|
|
2653
|
+
* @api
|
|
2654
|
+
*/
|
|
2655
|
+
getZForResolution(resolution, opt_direction) {
|
|
2656
|
+
const z = linearFindNearest(
|
|
2657
|
+
this.resolutions_,
|
|
2658
|
+
resolution,
|
|
2659
|
+
opt_direction || 0
|
|
2660
|
+
);
|
|
2661
|
+
return clamp(z, this.minZoom, this.maxZoom);
|
|
2662
|
+
}
|
|
2663
|
+
/**
|
|
2664
|
+
* The tile with the provided tile coordinate intersects the given viewport.
|
|
2665
|
+
* @param {import('../tilecoord.js').TileCoord} tileCoord Tile coordinate.
|
|
2666
|
+
* @param {Array<number>} viewport Viewport as returned from {@link module:ol/extent.getRotatedViewport}.
|
|
2667
|
+
* @return {boolean} The tile with the provided tile coordinate intersects the given viewport.
|
|
2668
|
+
*/
|
|
2669
|
+
tileCoordIntersectsViewport(tileCoord, viewport) {
|
|
2670
|
+
return intersectsLinearRing(
|
|
2671
|
+
viewport,
|
|
2672
|
+
0,
|
|
2673
|
+
viewport.length,
|
|
2674
|
+
2,
|
|
2675
|
+
this.getTileCoordExtent(tileCoord)
|
|
2676
|
+
);
|
|
2677
|
+
}
|
|
2678
|
+
/**
|
|
2679
|
+
* @param {!import("../extent.js").Extent} extent Extent for this tile grid.
|
|
2680
|
+
* @private
|
|
2681
|
+
*/
|
|
2682
|
+
calculateTileRanges_(extent) {
|
|
2683
|
+
const length = this.resolutions_.length;
|
|
2684
|
+
const fullTileRanges = new Array(length);
|
|
2685
|
+
for (let z = this.minZoom; z < length; ++z) {
|
|
2686
|
+
fullTileRanges[z] = this.getTileRangeForExtentAndZ(extent, z);
|
|
2687
|
+
}
|
|
2688
|
+
this.fullTileRanges_ = fullTileRanges;
|
|
2689
|
+
}
|
|
2690
|
+
};
|
|
2691
|
+
var TileGrid_default = TileGrid;
|
|
2692
|
+
|
|
2693
|
+
// node_modules/ol/ObjectEventType.js
|
|
2694
|
+
init_dirname();
|
|
2695
|
+
init_buffer();
|
|
2696
|
+
init_process();
|
|
2697
|
+
var ObjectEventType_default = {
|
|
2698
|
+
/**
|
|
2699
|
+
* Triggered when a property is changed.
|
|
2700
|
+
* @event module:ol/Object.ObjectEvent#propertychange
|
|
2701
|
+
* @api
|
|
2702
|
+
*/
|
|
2703
|
+
PROPERTYCHANGE: "propertychange"
|
|
2704
|
+
};
|
|
2705
|
+
|
|
2706
|
+
// node_modules/ol/events/EventType.js
|
|
2707
|
+
init_dirname();
|
|
2708
|
+
init_buffer();
|
|
2709
|
+
init_process();
|
|
2710
|
+
var EventType_default = {
|
|
2711
|
+
/**
|
|
2712
|
+
* Generic change event. Triggered when the revision counter is increased.
|
|
2713
|
+
* @event module:ol/events/Event~BaseEvent#change
|
|
2714
|
+
* @api
|
|
2715
|
+
*/
|
|
2716
|
+
CHANGE: "change",
|
|
2717
|
+
/**
|
|
2718
|
+
* Generic error event. Triggered when an error occurs.
|
|
2719
|
+
* @event module:ol/events/Event~BaseEvent#error
|
|
2720
|
+
* @api
|
|
2721
|
+
*/
|
|
2722
|
+
ERROR: "error",
|
|
2723
|
+
BLUR: "blur",
|
|
2724
|
+
CLEAR: "clear",
|
|
2725
|
+
CONTEXTMENU: "contextmenu",
|
|
2726
|
+
CLICK: "click",
|
|
2727
|
+
DBLCLICK: "dblclick",
|
|
2728
|
+
DRAGENTER: "dragenter",
|
|
2729
|
+
DRAGOVER: "dragover",
|
|
2730
|
+
DROP: "drop",
|
|
2731
|
+
FOCUS: "focus",
|
|
2732
|
+
KEYDOWN: "keydown",
|
|
2733
|
+
KEYPRESS: "keypress",
|
|
2734
|
+
LOAD: "load",
|
|
2735
|
+
RESIZE: "resize",
|
|
2736
|
+
TOUCHMOVE: "touchmove",
|
|
2737
|
+
WHEEL: "wheel"
|
|
2738
|
+
};
|
|
2739
|
+
|
|
2740
|
+
// node_modules/ol/Disposable.js
|
|
2741
|
+
init_dirname();
|
|
2742
|
+
init_buffer();
|
|
2743
|
+
init_process();
|
|
2744
|
+
var Disposable = class {
|
|
2745
|
+
constructor() {
|
|
2746
|
+
this.disposed = false;
|
|
2747
|
+
}
|
|
2748
|
+
/**
|
|
2749
|
+
* Clean up.
|
|
2750
|
+
*/
|
|
2751
|
+
dispose() {
|
|
2752
|
+
if (!this.disposed) {
|
|
2753
|
+
this.disposed = true;
|
|
2754
|
+
this.disposeInternal();
|
|
2755
|
+
}
|
|
2756
|
+
}
|
|
2757
|
+
/**
|
|
2758
|
+
* Extension point for disposable objects.
|
|
2759
|
+
* @protected
|
|
2760
|
+
*/
|
|
2761
|
+
disposeInternal() {
|
|
2762
|
+
}
|
|
2763
|
+
};
|
|
2764
|
+
var Disposable_default = Disposable;
|
|
2765
|
+
|
|
2766
|
+
// node_modules/ol/functions.js
|
|
2767
|
+
init_dirname();
|
|
2768
|
+
init_buffer();
|
|
2769
|
+
init_process();
|
|
2770
|
+
function TRUE() {
|
|
2771
|
+
return true;
|
|
2772
|
+
}
|
|
2773
|
+
function FALSE() {
|
|
2774
|
+
return false;
|
|
2775
|
+
}
|
|
2776
|
+
function VOID() {
|
|
2777
|
+
}
|
|
2778
|
+
function memoizeOne(fn) {
|
|
2779
|
+
let lastResult;
|
|
2780
|
+
let lastArgs;
|
|
2781
|
+
let lastThis;
|
|
2782
|
+
return function() {
|
|
2783
|
+
const nextArgs = Array.prototype.slice.call(arguments);
|
|
2784
|
+
if (!lastArgs || this !== lastThis || !equals3(nextArgs, lastArgs)) {
|
|
2785
|
+
lastThis = this;
|
|
2786
|
+
lastArgs = nextArgs;
|
|
2787
|
+
lastResult = fn.apply(this, arguments);
|
|
2788
|
+
}
|
|
2789
|
+
return lastResult;
|
|
2790
|
+
};
|
|
2791
|
+
}
|
|
2792
|
+
function toPromise(getter) {
|
|
2793
|
+
function promiseGetter() {
|
|
2794
|
+
let value;
|
|
2795
|
+
try {
|
|
2796
|
+
value = getter();
|
|
2797
|
+
} catch (err) {
|
|
2798
|
+
return Promise.reject(err);
|
|
2799
|
+
}
|
|
2800
|
+
if (value instanceof Promise) {
|
|
2801
|
+
return value;
|
|
2802
|
+
}
|
|
2803
|
+
return Promise.resolve(value);
|
|
2804
|
+
}
|
|
2805
|
+
return promiseGetter();
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2808
|
+
// node_modules/ol/events/Event.js
|
|
2809
|
+
init_dirname();
|
|
2810
|
+
init_buffer();
|
|
2811
|
+
init_process();
|
|
2812
|
+
var BaseEvent = class {
|
|
2813
|
+
/**
|
|
2814
|
+
* @param {string} type Type.
|
|
2815
|
+
*/
|
|
2816
|
+
constructor(type) {
|
|
2817
|
+
this.propagationStopped;
|
|
2818
|
+
this.defaultPrevented;
|
|
2819
|
+
this.type = type;
|
|
2820
|
+
this.target = null;
|
|
2821
|
+
}
|
|
2822
|
+
/**
|
|
2823
|
+
* Prevent default. This means that no emulated `click`, `singleclick` or `doubleclick` events
|
|
2824
|
+
* will be fired.
|
|
2825
|
+
* @api
|
|
2826
|
+
*/
|
|
2827
|
+
preventDefault() {
|
|
2828
|
+
this.defaultPrevented = true;
|
|
2829
|
+
}
|
|
2830
|
+
/**
|
|
2831
|
+
* Stop event propagation.
|
|
2832
|
+
* @api
|
|
2833
|
+
*/
|
|
2834
|
+
stopPropagation() {
|
|
2835
|
+
this.propagationStopped = true;
|
|
2836
|
+
}
|
|
2837
|
+
};
|
|
2838
|
+
var Event_default = BaseEvent;
|
|
2839
|
+
|
|
2840
|
+
// node_modules/ol/events.js
|
|
2841
|
+
init_dirname();
|
|
2842
|
+
init_buffer();
|
|
2843
|
+
init_process();
|
|
2844
|
+
function listen(target, type, listener, thisArg, once) {
|
|
2845
|
+
if (once) {
|
|
2846
|
+
const originalListener = listener;
|
|
2847
|
+
listener = function(event) {
|
|
2848
|
+
target.removeEventListener(type, listener);
|
|
2849
|
+
return originalListener.call(thisArg != null ? thisArg : this, event);
|
|
2850
|
+
};
|
|
2851
|
+
} else if (thisArg && thisArg !== target) {
|
|
2852
|
+
listener = listener.bind(thisArg);
|
|
2853
|
+
}
|
|
2854
|
+
const eventsKey = {
|
|
2855
|
+
target,
|
|
2856
|
+
type,
|
|
2857
|
+
listener
|
|
2858
|
+
};
|
|
2859
|
+
target.addEventListener(type, listener);
|
|
2860
|
+
return eventsKey;
|
|
2861
|
+
}
|
|
2862
|
+
function listenOnce(target, type, listener, thisArg) {
|
|
2863
|
+
return listen(target, type, listener, thisArg, true);
|
|
2864
|
+
}
|
|
2865
|
+
function unlistenByKey(key) {
|
|
2866
|
+
if (key && key.target) {
|
|
2867
|
+
key.target.removeEventListener(key.type, key.listener);
|
|
2868
|
+
clear(key);
|
|
2869
|
+
}
|
|
2870
|
+
}
|
|
2871
|
+
|
|
2872
|
+
// node_modules/ol/Observable.js
|
|
2873
|
+
init_dirname();
|
|
2874
|
+
init_buffer();
|
|
2875
|
+
init_process();
|
|
2876
|
+
|
|
2877
|
+
// node_modules/ol/events/Target.js
|
|
2878
|
+
init_dirname();
|
|
2879
|
+
init_buffer();
|
|
2880
|
+
init_process();
|
|
2881
|
+
var Target = class extends Disposable_default {
|
|
2882
|
+
/**
|
|
2883
|
+
* @param {*} [target] Default event target for dispatched events.
|
|
2884
|
+
*/
|
|
2885
|
+
constructor(target) {
|
|
2886
|
+
super();
|
|
2887
|
+
this.eventTarget_ = target;
|
|
2888
|
+
this.pendingRemovals_ = null;
|
|
2889
|
+
this.dispatching_ = null;
|
|
2890
|
+
this.listeners_ = null;
|
|
2891
|
+
}
|
|
2892
|
+
/**
|
|
2893
|
+
* @param {string} type Type.
|
|
2894
|
+
* @param {import("../events.js").Listener} listener Listener.
|
|
2895
|
+
*/
|
|
2896
|
+
addEventListener(type, listener) {
|
|
2897
|
+
if (!type || !listener) {
|
|
2898
|
+
return;
|
|
2899
|
+
}
|
|
2900
|
+
const listeners = this.listeners_ || (this.listeners_ = {});
|
|
2901
|
+
const listenersForType = listeners[type] || (listeners[type] = []);
|
|
2902
|
+
if (!listenersForType.includes(listener)) {
|
|
2903
|
+
listenersForType.push(listener);
|
|
2904
|
+
}
|
|
2905
|
+
}
|
|
2906
|
+
/**
|
|
2907
|
+
* Dispatches an event and calls all listeners listening for events
|
|
2908
|
+
* of this type. The event parameter can either be a string or an
|
|
2909
|
+
* Object with a `type` property.
|
|
2910
|
+
*
|
|
2911
|
+
* @param {import("./Event.js").default|string} event Event object.
|
|
2912
|
+
* @return {boolean|undefined} `false` if anyone called preventDefault on the
|
|
2913
|
+
* event object or if any of the listeners returned false.
|
|
2914
|
+
* @api
|
|
2915
|
+
*/
|
|
2916
|
+
dispatchEvent(event) {
|
|
2917
|
+
const isString = typeof event === "string";
|
|
2918
|
+
const type = isString ? event : event.type;
|
|
2919
|
+
const listeners = this.listeners_ && this.listeners_[type];
|
|
2920
|
+
if (!listeners) {
|
|
2921
|
+
return;
|
|
2922
|
+
}
|
|
2923
|
+
const evt = isString ? new Event_default(event) : (
|
|
2924
|
+
/** @type {Event} */
|
|
2925
|
+
event
|
|
2926
|
+
);
|
|
2927
|
+
if (!evt.target) {
|
|
2928
|
+
evt.target = this.eventTarget_ || this;
|
|
2929
|
+
}
|
|
2930
|
+
const dispatching = this.dispatching_ || (this.dispatching_ = {});
|
|
2931
|
+
const pendingRemovals = this.pendingRemovals_ || (this.pendingRemovals_ = {});
|
|
2932
|
+
if (!(type in dispatching)) {
|
|
2933
|
+
dispatching[type] = 0;
|
|
2934
|
+
pendingRemovals[type] = 0;
|
|
2935
|
+
}
|
|
2936
|
+
++dispatching[type];
|
|
2937
|
+
let propagate;
|
|
2938
|
+
for (let i = 0, ii = listeners.length; i < ii; ++i) {
|
|
2939
|
+
if ("handleEvent" in listeners[i]) {
|
|
2940
|
+
propagate = /** @type {import("../events.js").ListenerObject} */
|
|
2941
|
+
listeners[i].handleEvent(evt);
|
|
2942
|
+
} else {
|
|
2943
|
+
propagate = /** @type {import("../events.js").ListenerFunction} */
|
|
2944
|
+
listeners[i].call(this, evt);
|
|
2945
|
+
}
|
|
2946
|
+
if (propagate === false || evt.propagationStopped) {
|
|
2947
|
+
propagate = false;
|
|
2948
|
+
break;
|
|
2949
|
+
}
|
|
2950
|
+
}
|
|
2951
|
+
if (--dispatching[type] === 0) {
|
|
2952
|
+
let pr = pendingRemovals[type];
|
|
2953
|
+
delete pendingRemovals[type];
|
|
2954
|
+
while (pr--) {
|
|
2955
|
+
this.removeEventListener(type, VOID);
|
|
2956
|
+
}
|
|
2957
|
+
delete dispatching[type];
|
|
2958
|
+
}
|
|
2959
|
+
return propagate;
|
|
2960
|
+
}
|
|
2961
|
+
/**
|
|
2962
|
+
* Clean up.
|
|
2963
|
+
* @override
|
|
2964
|
+
*/
|
|
2965
|
+
disposeInternal() {
|
|
2966
|
+
this.listeners_ && clear(this.listeners_);
|
|
2967
|
+
}
|
|
2968
|
+
/**
|
|
2969
|
+
* Get the listeners for a specified event type. Listeners are returned in the
|
|
2970
|
+
* order that they will be called in.
|
|
2971
|
+
*
|
|
2972
|
+
* @param {string} type Type.
|
|
2973
|
+
* @return {Array<import("../events.js").Listener>|undefined} Listeners.
|
|
2974
|
+
*/
|
|
2975
|
+
getListeners(type) {
|
|
2976
|
+
return this.listeners_ && this.listeners_[type] || void 0;
|
|
2977
|
+
}
|
|
2978
|
+
/**
|
|
2979
|
+
* @param {string} [type] Type. If not provided,
|
|
2980
|
+
* `true` will be returned if this event target has any listeners.
|
|
2981
|
+
* @return {boolean} Has listeners.
|
|
2982
|
+
*/
|
|
2983
|
+
hasListener(type) {
|
|
2984
|
+
if (!this.listeners_) {
|
|
2985
|
+
return false;
|
|
2986
|
+
}
|
|
2987
|
+
return type ? type in this.listeners_ : Object.keys(this.listeners_).length > 0;
|
|
2988
|
+
}
|
|
2989
|
+
/**
|
|
2990
|
+
* @param {string} type Type.
|
|
2991
|
+
* @param {import("../events.js").Listener} listener Listener.
|
|
2992
|
+
*/
|
|
2993
|
+
removeEventListener(type, listener) {
|
|
2994
|
+
if (!this.listeners_) {
|
|
2995
|
+
return;
|
|
2996
|
+
}
|
|
2997
|
+
const listeners = this.listeners_[type];
|
|
2998
|
+
if (!listeners) {
|
|
2999
|
+
return;
|
|
3000
|
+
}
|
|
3001
|
+
const index = listeners.indexOf(listener);
|
|
3002
|
+
if (index !== -1) {
|
|
3003
|
+
if (this.pendingRemovals_ && type in this.pendingRemovals_) {
|
|
3004
|
+
listeners[index] = VOID;
|
|
3005
|
+
++this.pendingRemovals_[type];
|
|
3006
|
+
} else {
|
|
3007
|
+
listeners.splice(index, 1);
|
|
3008
|
+
if (listeners.length === 0) {
|
|
3009
|
+
delete this.listeners_[type];
|
|
3010
|
+
}
|
|
3011
|
+
}
|
|
3012
|
+
}
|
|
3013
|
+
}
|
|
3014
|
+
};
|
|
3015
|
+
var Target_default = Target;
|
|
3016
|
+
|
|
3017
|
+
// node_modules/ol/Observable.js
|
|
3018
|
+
var Observable = class extends Target_default {
|
|
3019
|
+
constructor() {
|
|
3020
|
+
super();
|
|
3021
|
+
this.on = /** @type {ObservableOnSignature<import("./events").EventsKey>} */
|
|
3022
|
+
this.onInternal;
|
|
3023
|
+
this.once = /** @type {ObservableOnSignature<import("./events").EventsKey>} */
|
|
3024
|
+
this.onceInternal;
|
|
3025
|
+
this.un = /** @type {ObservableOnSignature<void>} */
|
|
3026
|
+
this.unInternal;
|
|
3027
|
+
this.revision_ = 0;
|
|
3028
|
+
}
|
|
3029
|
+
/**
|
|
3030
|
+
* Increases the revision counter and dispatches a 'change' event.
|
|
3031
|
+
* @api
|
|
3032
|
+
*/
|
|
3033
|
+
changed() {
|
|
3034
|
+
++this.revision_;
|
|
3035
|
+
this.dispatchEvent(EventType_default.CHANGE);
|
|
3036
|
+
}
|
|
3037
|
+
/**
|
|
3038
|
+
* Get the version number for this object. Each time the object is modified,
|
|
3039
|
+
* its version number will be incremented.
|
|
3040
|
+
* @return {number} Revision.
|
|
3041
|
+
* @api
|
|
3042
|
+
*/
|
|
3043
|
+
getRevision() {
|
|
3044
|
+
return this.revision_;
|
|
3045
|
+
}
|
|
3046
|
+
/**
|
|
3047
|
+
* @param {string|Array<string>} type Type.
|
|
3048
|
+
* @param {function((Event|import("./events/Event").default)): ?} listener Listener.
|
|
3049
|
+
* @return {import("./events.js").EventsKey|Array<import("./events.js").EventsKey>} Event key.
|
|
3050
|
+
* @protected
|
|
3051
|
+
*/
|
|
3052
|
+
onInternal(type, listener) {
|
|
3053
|
+
if (Array.isArray(type)) {
|
|
3054
|
+
const len = type.length;
|
|
3055
|
+
const keys = new Array(len);
|
|
3056
|
+
for (let i = 0; i < len; ++i) {
|
|
3057
|
+
keys[i] = listen(this, type[i], listener);
|
|
3058
|
+
}
|
|
3059
|
+
return keys;
|
|
3060
|
+
}
|
|
3061
|
+
return listen(
|
|
3062
|
+
this,
|
|
3063
|
+
/** @type {string} */
|
|
3064
|
+
type,
|
|
3065
|
+
listener
|
|
3066
|
+
);
|
|
3067
|
+
}
|
|
3068
|
+
/**
|
|
3069
|
+
* @param {string|Array<string>} type Type.
|
|
3070
|
+
* @param {function((Event|import("./events/Event").default)): ?} listener Listener.
|
|
3071
|
+
* @return {import("./events.js").EventsKey|Array<import("./events.js").EventsKey>} Event key.
|
|
3072
|
+
* @protected
|
|
3073
|
+
*/
|
|
3074
|
+
onceInternal(type, listener) {
|
|
3075
|
+
let key;
|
|
3076
|
+
if (Array.isArray(type)) {
|
|
3077
|
+
const len = type.length;
|
|
3078
|
+
key = new Array(len);
|
|
3079
|
+
for (let i = 0; i < len; ++i) {
|
|
3080
|
+
key[i] = listenOnce(this, type[i], listener);
|
|
3081
|
+
}
|
|
3082
|
+
} else {
|
|
3083
|
+
key = listenOnce(
|
|
3084
|
+
this,
|
|
3085
|
+
/** @type {string} */
|
|
3086
|
+
type,
|
|
3087
|
+
listener
|
|
3088
|
+
);
|
|
3089
|
+
}
|
|
3090
|
+
listener.ol_key = key;
|
|
3091
|
+
return key;
|
|
3092
|
+
}
|
|
3093
|
+
/**
|
|
3094
|
+
* Unlisten for a certain type of event.
|
|
3095
|
+
* @param {string|Array<string>} type Type.
|
|
3096
|
+
* @param {function((Event|import("./events/Event").default)): ?} listener Listener.
|
|
3097
|
+
* @protected
|
|
3098
|
+
*/
|
|
3099
|
+
unInternal(type, listener) {
|
|
3100
|
+
const key = (
|
|
3101
|
+
/** @type {Object} */
|
|
3102
|
+
listener.ol_key
|
|
3103
|
+
);
|
|
3104
|
+
if (key) {
|
|
3105
|
+
unByKey(key);
|
|
3106
|
+
} else if (Array.isArray(type)) {
|
|
3107
|
+
for (let i = 0, ii = type.length; i < ii; ++i) {
|
|
3108
|
+
this.removeEventListener(type[i], listener);
|
|
3109
|
+
}
|
|
3110
|
+
} else {
|
|
3111
|
+
this.removeEventListener(type, listener);
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
};
|
|
3115
|
+
Observable.prototype.on;
|
|
3116
|
+
Observable.prototype.once;
|
|
3117
|
+
Observable.prototype.un;
|
|
3118
|
+
function unByKey(key) {
|
|
3119
|
+
if (Array.isArray(key)) {
|
|
3120
|
+
for (let i = 0, ii = key.length; i < ii; ++i) {
|
|
3121
|
+
unlistenByKey(key[i]);
|
|
3122
|
+
}
|
|
3123
|
+
} else {
|
|
3124
|
+
unlistenByKey(
|
|
3125
|
+
/** @type {import("./events.js").EventsKey} */
|
|
3126
|
+
key
|
|
3127
|
+
);
|
|
3128
|
+
}
|
|
3129
|
+
}
|
|
3130
|
+
var Observable_default = Observable;
|
|
3131
|
+
|
|
3132
|
+
// node_modules/ol/util.js
|
|
3133
|
+
init_dirname();
|
|
3134
|
+
init_buffer();
|
|
3135
|
+
init_process();
|
|
3136
|
+
function abstract() {
|
|
3137
|
+
throw new Error("Unimplemented abstract method.");
|
|
3138
|
+
}
|
|
3139
|
+
var uidCounter_ = 0;
|
|
3140
|
+
function getUid(obj) {
|
|
3141
|
+
return obj.ol_uid || (obj.ol_uid = String(++uidCounter_));
|
|
3142
|
+
}
|
|
3143
|
+
|
|
3144
|
+
// node_modules/ol/Object.js
|
|
3145
|
+
init_dirname();
|
|
3146
|
+
init_buffer();
|
|
3147
|
+
init_process();
|
|
3148
|
+
var ObjectEvent = class extends Event_default {
|
|
3149
|
+
/**
|
|
3150
|
+
* @param {string} type The event type.
|
|
3151
|
+
* @param {string} key The property name.
|
|
3152
|
+
* @param {*} oldValue The old value for `key`.
|
|
3153
|
+
*/
|
|
3154
|
+
constructor(type, key, oldValue) {
|
|
3155
|
+
super(type);
|
|
3156
|
+
this.key = key;
|
|
3157
|
+
this.oldValue = oldValue;
|
|
3158
|
+
}
|
|
3159
|
+
};
|
|
3160
|
+
var BaseObject = class extends Observable_default {
|
|
3161
|
+
/**
|
|
3162
|
+
* @param {Object<string, *>} [values] An object with key-value pairs.
|
|
3163
|
+
*/
|
|
3164
|
+
constructor(values) {
|
|
3165
|
+
super();
|
|
3166
|
+
this.on;
|
|
3167
|
+
this.once;
|
|
3168
|
+
this.un;
|
|
3169
|
+
getUid(this);
|
|
3170
|
+
this.values_ = null;
|
|
3171
|
+
if (values !== void 0) {
|
|
3172
|
+
this.setProperties(values);
|
|
3173
|
+
}
|
|
3174
|
+
}
|
|
3175
|
+
/**
|
|
3176
|
+
* Gets a value.
|
|
3177
|
+
* @param {string} key Key name.
|
|
3178
|
+
* @return {*} Value.
|
|
3179
|
+
* @api
|
|
3180
|
+
*/
|
|
3181
|
+
get(key) {
|
|
3182
|
+
let value;
|
|
3183
|
+
if (this.values_ && this.values_.hasOwnProperty(key)) {
|
|
3184
|
+
value = this.values_[key];
|
|
3185
|
+
}
|
|
3186
|
+
return value;
|
|
3187
|
+
}
|
|
3188
|
+
/**
|
|
3189
|
+
* Get a list of object property names.
|
|
3190
|
+
* @return {Array<string>} List of property names.
|
|
3191
|
+
* @api
|
|
3192
|
+
*/
|
|
3193
|
+
getKeys() {
|
|
3194
|
+
return this.values_ && Object.keys(this.values_) || [];
|
|
3195
|
+
}
|
|
3196
|
+
/**
|
|
3197
|
+
* Get an object of all property names and values.
|
|
3198
|
+
* @return {Object<string, *>} Object.
|
|
3199
|
+
* @api
|
|
3200
|
+
*/
|
|
3201
|
+
getProperties() {
|
|
3202
|
+
return this.values_ && Object.assign({}, this.values_) || {};
|
|
3203
|
+
}
|
|
3204
|
+
/**
|
|
3205
|
+
* Get an object of all property names and values.
|
|
3206
|
+
* @return {Object<string, *>?} Object.
|
|
3207
|
+
*/
|
|
3208
|
+
getPropertiesInternal() {
|
|
3209
|
+
return this.values_;
|
|
3210
|
+
}
|
|
3211
|
+
/**
|
|
3212
|
+
* @return {boolean} The object has properties.
|
|
3213
|
+
*/
|
|
3214
|
+
hasProperties() {
|
|
3215
|
+
return !!this.values_;
|
|
3216
|
+
}
|
|
3217
|
+
/**
|
|
3218
|
+
* @param {string} key Key name.
|
|
3219
|
+
* @param {*} oldValue Old value.
|
|
3220
|
+
*/
|
|
3221
|
+
notify(key, oldValue) {
|
|
3222
|
+
let eventType;
|
|
3223
|
+
eventType = `change:${key}`;
|
|
3224
|
+
if (this.hasListener(eventType)) {
|
|
3225
|
+
this.dispatchEvent(new ObjectEvent(eventType, key, oldValue));
|
|
3226
|
+
}
|
|
3227
|
+
eventType = ObjectEventType_default.PROPERTYCHANGE;
|
|
3228
|
+
if (this.hasListener(eventType)) {
|
|
3229
|
+
this.dispatchEvent(new ObjectEvent(eventType, key, oldValue));
|
|
3230
|
+
}
|
|
3231
|
+
}
|
|
3232
|
+
/**
|
|
3233
|
+
* @param {string} key Key name.
|
|
3234
|
+
* @param {import("./events.js").Listener} listener Listener.
|
|
3235
|
+
*/
|
|
3236
|
+
addChangeListener(key, listener) {
|
|
3237
|
+
this.addEventListener(`change:${key}`, listener);
|
|
3238
|
+
}
|
|
3239
|
+
/**
|
|
3240
|
+
* @param {string} key Key name.
|
|
3241
|
+
* @param {import("./events.js").Listener} listener Listener.
|
|
3242
|
+
*/
|
|
3243
|
+
removeChangeListener(key, listener) {
|
|
3244
|
+
this.removeEventListener(`change:${key}`, listener);
|
|
3245
|
+
}
|
|
3246
|
+
/**
|
|
3247
|
+
* Sets a value.
|
|
3248
|
+
* @param {string} key Key name.
|
|
3249
|
+
* @param {*} value Value.
|
|
3250
|
+
* @param {boolean} [silent] Update without triggering an event.
|
|
3251
|
+
* @api
|
|
3252
|
+
*/
|
|
3253
|
+
set(key, value, silent) {
|
|
3254
|
+
const values = this.values_ || (this.values_ = {});
|
|
3255
|
+
if (silent) {
|
|
3256
|
+
values[key] = value;
|
|
3257
|
+
} else {
|
|
3258
|
+
const oldValue = values[key];
|
|
3259
|
+
values[key] = value;
|
|
3260
|
+
if (oldValue !== value) {
|
|
3261
|
+
this.notify(key, oldValue);
|
|
3262
|
+
}
|
|
3263
|
+
}
|
|
3264
|
+
}
|
|
3265
|
+
/**
|
|
3266
|
+
* Sets a collection of key-value pairs. Note that this changes any existing
|
|
3267
|
+
* properties and adds new ones (it does not remove any existing properties).
|
|
3268
|
+
* @param {Object<string, *>} values Values.
|
|
3269
|
+
* @param {boolean} [silent] Update without triggering an event.
|
|
3270
|
+
* @api
|
|
3271
|
+
*/
|
|
3272
|
+
setProperties(values, silent) {
|
|
3273
|
+
for (const key in values) {
|
|
3274
|
+
this.set(key, values[key], silent);
|
|
3275
|
+
}
|
|
3276
|
+
}
|
|
3277
|
+
/**
|
|
3278
|
+
* Apply any properties from another object without triggering events.
|
|
3279
|
+
* @param {BaseObject} source The source object.
|
|
3280
|
+
* @protected
|
|
3281
|
+
*/
|
|
3282
|
+
applyProperties(source) {
|
|
3283
|
+
if (!source.values_) {
|
|
3284
|
+
return;
|
|
3285
|
+
}
|
|
3286
|
+
Object.assign(this.values_ || (this.values_ = {}), source.values_);
|
|
3287
|
+
}
|
|
3288
|
+
/**
|
|
3289
|
+
* Unsets a property.
|
|
3290
|
+
* @param {string} key Key name.
|
|
3291
|
+
* @param {boolean} [silent] Unset without triggering an event.
|
|
3292
|
+
* @api
|
|
3293
|
+
*/
|
|
3294
|
+
unset(key, silent) {
|
|
3295
|
+
if (this.values_ && key in this.values_) {
|
|
3296
|
+
const oldValue = this.values_[key];
|
|
3297
|
+
delete this.values_[key];
|
|
3298
|
+
if (isEmpty2(this.values_)) {
|
|
3299
|
+
this.values_ = null;
|
|
3300
|
+
}
|
|
3301
|
+
if (!silent) {
|
|
3302
|
+
this.notify(key, oldValue);
|
|
3303
|
+
}
|
|
3304
|
+
}
|
|
3305
|
+
}
|
|
3306
|
+
};
|
|
3307
|
+
var Object_default = BaseObject;
|
|
3308
|
+
|
|
3309
|
+
// node_modules/ol/has.js
|
|
3310
|
+
init_dirname();
|
|
3311
|
+
init_buffer();
|
|
3312
|
+
init_process();
|
|
3313
|
+
var ua = typeof navigator !== "undefined" && typeof navigator.userAgent !== "undefined" ? navigator.userAgent.toLowerCase() : "";
|
|
3314
|
+
var SAFARI = ua.includes("safari") && !ua.includes("chrom");
|
|
3315
|
+
var SAFARI_BUG_237906 = SAFARI && (ua.includes("version/15.4") || /cpu (os|iphone os) 15_4 like mac os x/.test(ua));
|
|
3316
|
+
var WEBKIT = ua.includes("webkit") && !ua.includes("edge");
|
|
3317
|
+
var MAC = ua.includes("macintosh");
|
|
3318
|
+
var DEVICE_PIXEL_RATIO = typeof devicePixelRatio !== "undefined" ? devicePixelRatio : 1;
|
|
3319
|
+
var WORKER_OFFSCREEN_CANVAS = typeof WorkerGlobalScope !== "undefined" && typeof OffscreenCanvas !== "undefined" && self instanceof WorkerGlobalScope;
|
|
3320
|
+
var IMAGE_DECODE = typeof Image !== "undefined" && Image.prototype.decode;
|
|
3321
|
+
var PASSIVE_EVENT_LISTENERS = function() {
|
|
3322
|
+
let passive = false;
|
|
3323
|
+
try {
|
|
3324
|
+
const options = Object.defineProperty({}, "passive", {
|
|
3325
|
+
get: function() {
|
|
3326
|
+
passive = true;
|
|
3327
|
+
}
|
|
3328
|
+
});
|
|
3329
|
+
window.addEventListener("_", null, options);
|
|
3330
|
+
window.removeEventListener("_", null, options);
|
|
3331
|
+
} catch (e) {
|
|
3332
|
+
}
|
|
3333
|
+
return passive;
|
|
3334
|
+
}();
|
|
3335
|
+
|
|
3336
|
+
// node_modules/ol/source/Source.js
|
|
3337
|
+
init_dirname();
|
|
3338
|
+
init_buffer();
|
|
3339
|
+
init_process();
|
|
3340
|
+
var Source = class extends Object_default {
|
|
3341
|
+
/**
|
|
3342
|
+
* @param {Options} options Source options.
|
|
3343
|
+
*/
|
|
3344
|
+
constructor(options) {
|
|
3345
|
+
var _a;
|
|
3346
|
+
super();
|
|
3347
|
+
this.projection = get3(options.projection);
|
|
3348
|
+
this.attributions_ = adaptAttributions(options.attributions);
|
|
3349
|
+
this.attributionsCollapsible_ = (_a = options.attributionsCollapsible) != null ? _a : true;
|
|
3350
|
+
this.loading = false;
|
|
3351
|
+
this.state_ = options.state !== void 0 ? options.state : "ready";
|
|
3352
|
+
this.wrapX_ = options.wrapX !== void 0 ? options.wrapX : false;
|
|
3353
|
+
this.interpolate_ = !!options.interpolate;
|
|
3354
|
+
this.viewResolver = null;
|
|
3355
|
+
this.viewRejector = null;
|
|
3356
|
+
const self2 = this;
|
|
3357
|
+
this.viewPromise_ = new Promise(function(resolve, reject) {
|
|
3358
|
+
self2.viewResolver = resolve;
|
|
3359
|
+
self2.viewRejector = reject;
|
|
3360
|
+
});
|
|
3361
|
+
}
|
|
3362
|
+
/**
|
|
3363
|
+
* Get the attribution function for the source.
|
|
3364
|
+
* @return {?Attribution} Attribution function.
|
|
3365
|
+
* @api
|
|
3366
|
+
*/
|
|
3367
|
+
getAttributions() {
|
|
3368
|
+
return this.attributions_;
|
|
3369
|
+
}
|
|
3370
|
+
/**
|
|
3371
|
+
* @return {boolean} Attributions are collapsible.
|
|
3372
|
+
* @api
|
|
3373
|
+
*/
|
|
3374
|
+
getAttributionsCollapsible() {
|
|
3375
|
+
return this.attributionsCollapsible_;
|
|
3376
|
+
}
|
|
3377
|
+
/**
|
|
3378
|
+
* Get the projection of the source.
|
|
3379
|
+
* @return {import("../proj/Projection.js").default|null} Projection.
|
|
3380
|
+
* @api
|
|
3381
|
+
*/
|
|
3382
|
+
getProjection() {
|
|
3383
|
+
return this.projection;
|
|
3384
|
+
}
|
|
3385
|
+
/**
|
|
3386
|
+
* @param {import("../proj/Projection").default} [projection] Projection.
|
|
3387
|
+
* @return {Array<number>|null} Resolutions.
|
|
3388
|
+
*/
|
|
3389
|
+
getResolutions(projection) {
|
|
3390
|
+
return null;
|
|
3391
|
+
}
|
|
3392
|
+
/**
|
|
3393
|
+
* @return {Promise<import("../View.js").ViewOptions>} A promise for view-related properties.
|
|
3394
|
+
*/
|
|
3395
|
+
getView() {
|
|
3396
|
+
return this.viewPromise_;
|
|
3397
|
+
}
|
|
3398
|
+
/**
|
|
3399
|
+
* Get the state of the source, see {@link import("./Source.js").State} for possible states.
|
|
3400
|
+
* @return {import("./Source.js").State} State.
|
|
3401
|
+
* @api
|
|
3402
|
+
*/
|
|
3403
|
+
getState() {
|
|
3404
|
+
return this.state_;
|
|
3405
|
+
}
|
|
3406
|
+
/**
|
|
3407
|
+
* @return {boolean|undefined} Wrap X.
|
|
3408
|
+
*/
|
|
3409
|
+
getWrapX() {
|
|
3410
|
+
return this.wrapX_;
|
|
3411
|
+
}
|
|
3412
|
+
/**
|
|
3413
|
+
* @return {boolean} Use linear interpolation when resampling.
|
|
3414
|
+
*/
|
|
3415
|
+
getInterpolate() {
|
|
3416
|
+
return this.interpolate_;
|
|
3417
|
+
}
|
|
3418
|
+
/**
|
|
3419
|
+
* Refreshes the source. The source will be cleared, and data from the server will be reloaded.
|
|
3420
|
+
* @api
|
|
3421
|
+
*/
|
|
3422
|
+
refresh() {
|
|
3423
|
+
this.changed();
|
|
3424
|
+
}
|
|
3425
|
+
/**
|
|
3426
|
+
* Set the attributions of the source.
|
|
3427
|
+
* @param {AttributionLike|undefined} attributions Attributions.
|
|
3428
|
+
* Can be passed as `string`, `Array<string>`, {@link module:ol/source/Source~Attribution},
|
|
3429
|
+
* or `undefined`.
|
|
3430
|
+
* @api
|
|
3431
|
+
*/
|
|
3432
|
+
setAttributions(attributions) {
|
|
3433
|
+
this.attributions_ = adaptAttributions(attributions);
|
|
3434
|
+
this.changed();
|
|
3435
|
+
}
|
|
3436
|
+
/**
|
|
3437
|
+
* Set the state of the source.
|
|
3438
|
+
* @param {import("./Source.js").State} state State.
|
|
3439
|
+
*/
|
|
3440
|
+
setState(state) {
|
|
3441
|
+
this.state_ = state;
|
|
3442
|
+
this.changed();
|
|
3443
|
+
}
|
|
3444
|
+
};
|
|
3445
|
+
function adaptAttributions(attributionLike) {
|
|
3446
|
+
if (!attributionLike) {
|
|
3447
|
+
return null;
|
|
3448
|
+
}
|
|
3449
|
+
if (typeof attributionLike === "function") {
|
|
3450
|
+
return attributionLike;
|
|
3451
|
+
}
|
|
3452
|
+
if (!Array.isArray(attributionLike)) {
|
|
3453
|
+
attributionLike = [attributionLike];
|
|
3454
|
+
}
|
|
3455
|
+
return (frameState) => attributionLike;
|
|
3456
|
+
}
|
|
3457
|
+
var Source_default = Source;
|
|
3458
|
+
|
|
3459
|
+
// node_modules/ol/easing.js
|
|
3460
|
+
init_dirname();
|
|
3461
|
+
init_buffer();
|
|
3462
|
+
init_process();
|
|
3463
|
+
function easeIn(t) {
|
|
3464
|
+
return Math.pow(t, 3);
|
|
3465
|
+
}
|
|
3466
|
+
function easeOut(t) {
|
|
3467
|
+
return 1 - easeIn(1 - t);
|
|
3468
|
+
}
|
|
3469
|
+
function inAndOut(t) {
|
|
3470
|
+
return 3 * t * t - 2 * t * t * t;
|
|
3471
|
+
}
|
|
3472
|
+
function linear(t) {
|
|
3473
|
+
return t;
|
|
3474
|
+
}
|
|
3475
|
+
|
|
3476
|
+
// node_modules/ol/TileState.js
|
|
3477
|
+
init_dirname();
|
|
3478
|
+
init_buffer();
|
|
3479
|
+
init_process();
|
|
3480
|
+
var TileState_default = {
|
|
3481
|
+
IDLE: 0,
|
|
3482
|
+
LOADING: 1,
|
|
3483
|
+
LOADED: 2,
|
|
3484
|
+
/**
|
|
3485
|
+
* Indicates that tile loading failed
|
|
3486
|
+
* @type {number}
|
|
3487
|
+
*/
|
|
3488
|
+
ERROR: 3,
|
|
3489
|
+
EMPTY: 4
|
|
3490
|
+
};
|
|
3491
|
+
|
|
3492
|
+
// node_modules/ol/Tile.js
|
|
3493
|
+
init_dirname();
|
|
3494
|
+
init_buffer();
|
|
3495
|
+
init_process();
|
|
3496
|
+
var Tile = class extends Target_default {
|
|
3497
|
+
/**
|
|
3498
|
+
* @param {import("./tilecoord.js").TileCoord} tileCoord Tile coordinate.
|
|
3499
|
+
* @param {import("./TileState.js").default} state State.
|
|
3500
|
+
* @param {Options} [options] Tile options.
|
|
3501
|
+
*/
|
|
3502
|
+
constructor(tileCoord, state, options) {
|
|
3503
|
+
super();
|
|
3504
|
+
options = options ? options : {};
|
|
3505
|
+
this.tileCoord = tileCoord;
|
|
3506
|
+
this.state = state;
|
|
3507
|
+
this.key = "";
|
|
3508
|
+
this.transition_ = options.transition === void 0 ? 250 : options.transition;
|
|
3509
|
+
this.transitionStarts_ = {};
|
|
3510
|
+
this.interpolate = !!options.interpolate;
|
|
3511
|
+
}
|
|
3512
|
+
/**
|
|
3513
|
+
* @protected
|
|
3514
|
+
*/
|
|
3515
|
+
changed() {
|
|
3516
|
+
this.dispatchEvent(EventType_default.CHANGE);
|
|
3517
|
+
}
|
|
3518
|
+
/**
|
|
3519
|
+
* Called by the tile cache when the tile is removed from the cache due to expiry
|
|
3520
|
+
*/
|
|
3521
|
+
release() {
|
|
3522
|
+
this.setState(TileState_default.EMPTY);
|
|
3523
|
+
}
|
|
3524
|
+
/**
|
|
3525
|
+
* @return {string} Key.
|
|
3526
|
+
*/
|
|
3527
|
+
getKey() {
|
|
3528
|
+
return this.key + "/" + this.tileCoord;
|
|
3529
|
+
}
|
|
3530
|
+
/**
|
|
3531
|
+
* Get the tile coordinate for this tile.
|
|
3532
|
+
* @return {import("./tilecoord.js").TileCoord} The tile coordinate.
|
|
3533
|
+
* @api
|
|
3534
|
+
*/
|
|
3535
|
+
getTileCoord() {
|
|
3536
|
+
return this.tileCoord;
|
|
3537
|
+
}
|
|
3538
|
+
/**
|
|
3539
|
+
* @return {import("./TileState.js").default} State.
|
|
3540
|
+
*/
|
|
3541
|
+
getState() {
|
|
3542
|
+
return this.state;
|
|
3543
|
+
}
|
|
3544
|
+
/**
|
|
3545
|
+
* Sets the state of this tile. If you write your own {@link module:ol/Tile~LoadFunction tileLoadFunction} ,
|
|
3546
|
+
* it is important to set the state correctly to {@link module:ol/TileState~ERROR}
|
|
3547
|
+
* when the tile cannot be loaded. Otherwise the tile cannot be removed from
|
|
3548
|
+
* the tile queue and will block other requests.
|
|
3549
|
+
* @param {import("./TileState.js").default} state State.
|
|
3550
|
+
* @api
|
|
3551
|
+
*/
|
|
3552
|
+
setState(state) {
|
|
3553
|
+
if (this.state === TileState_default.EMPTY) {
|
|
3554
|
+
return;
|
|
3555
|
+
}
|
|
3556
|
+
if (this.state !== TileState_default.ERROR && this.state > state) {
|
|
3557
|
+
throw new Error("Tile load sequence violation");
|
|
3558
|
+
}
|
|
3559
|
+
this.state = state;
|
|
3560
|
+
this.changed();
|
|
3561
|
+
}
|
|
3562
|
+
/**
|
|
3563
|
+
* Load the image or retry if loading previously failed.
|
|
3564
|
+
* Loading is taken care of by the tile queue, and calling this method is
|
|
3565
|
+
* only needed for preloading or for reloading in case of an error.
|
|
3566
|
+
* @abstract
|
|
3567
|
+
* @api
|
|
3568
|
+
*/
|
|
3569
|
+
load() {
|
|
3570
|
+
abstract();
|
|
3571
|
+
}
|
|
3572
|
+
/**
|
|
3573
|
+
* Get the alpha value for rendering.
|
|
3574
|
+
* @param {string} id An id for the renderer.
|
|
3575
|
+
* @param {number} time The render frame time.
|
|
3576
|
+
* @return {number} A number between 0 and 1.
|
|
3577
|
+
*/
|
|
3578
|
+
getAlpha(id, time) {
|
|
3579
|
+
if (!this.transition_) {
|
|
3580
|
+
return 1;
|
|
3581
|
+
}
|
|
3582
|
+
let start = this.transitionStarts_[id];
|
|
3583
|
+
if (!start) {
|
|
3584
|
+
start = time;
|
|
3585
|
+
this.transitionStarts_[id] = start;
|
|
3586
|
+
} else if (start === -1) {
|
|
3587
|
+
return 1;
|
|
3588
|
+
}
|
|
3589
|
+
const delta = time - start + 1e3 / 60;
|
|
3590
|
+
if (delta >= this.transition_) {
|
|
3591
|
+
return 1;
|
|
3592
|
+
}
|
|
3593
|
+
return easeIn(delta / this.transition_);
|
|
3594
|
+
}
|
|
3595
|
+
/**
|
|
3596
|
+
* Determine if a tile is in an alpha transition. A tile is considered in
|
|
3597
|
+
* transition if tile.getAlpha() has not yet been called or has been called
|
|
3598
|
+
* and returned 1.
|
|
3599
|
+
* @param {string} id An id for the renderer.
|
|
3600
|
+
* @return {boolean} The tile is in transition.
|
|
3601
|
+
*/
|
|
3602
|
+
inTransition(id) {
|
|
3603
|
+
if (!this.transition_) {
|
|
3604
|
+
return false;
|
|
3605
|
+
}
|
|
3606
|
+
return this.transitionStarts_[id] !== -1;
|
|
3607
|
+
}
|
|
3608
|
+
/**
|
|
3609
|
+
* Mark a transition as complete.
|
|
3610
|
+
* @param {string} id An id for the renderer.
|
|
3611
|
+
*/
|
|
3612
|
+
endTransition(id) {
|
|
3613
|
+
if (this.transition_) {
|
|
3614
|
+
this.transitionStarts_[id] = -1;
|
|
3615
|
+
}
|
|
3616
|
+
}
|
|
3617
|
+
/**
|
|
3618
|
+
* @override
|
|
3619
|
+
*/
|
|
3620
|
+
disposeInternal() {
|
|
3621
|
+
this.release();
|
|
3622
|
+
super.disposeInternal();
|
|
3623
|
+
}
|
|
3624
|
+
};
|
|
3625
|
+
var Tile_default = Tile;
|
|
3626
|
+
|
|
3627
|
+
// node_modules/ol/DataTile.js
|
|
3628
|
+
init_dirname();
|
|
3629
|
+
init_buffer();
|
|
3630
|
+
init_process();
|
|
3631
|
+
|
|
3632
|
+
// node_modules/ol/dom.js
|
|
3633
|
+
init_dirname();
|
|
3634
|
+
init_buffer();
|
|
3635
|
+
init_process();
|
|
3636
|
+
function createCanvasContext2D(width, height, canvasPool2, settings) {
|
|
3637
|
+
let canvas;
|
|
3638
|
+
if (canvasPool2 && canvasPool2.length) {
|
|
3639
|
+
canvas = /** @type {HTMLCanvasElement} */
|
|
3640
|
+
canvasPool2.shift();
|
|
3641
|
+
} else if (WORKER_OFFSCREEN_CANVAS) {
|
|
3642
|
+
canvas = new OffscreenCanvas(width || 300, height || 300);
|
|
3643
|
+
} else {
|
|
3644
|
+
canvas = document.createElement("canvas");
|
|
3645
|
+
}
|
|
3646
|
+
if (width) {
|
|
3647
|
+
canvas.width = width;
|
|
3648
|
+
}
|
|
3649
|
+
if (height) {
|
|
3650
|
+
canvas.height = height;
|
|
3651
|
+
}
|
|
3652
|
+
return (
|
|
3653
|
+
/** @type {CanvasRenderingContext2D} */
|
|
3654
|
+
canvas.getContext("2d", settings)
|
|
3655
|
+
);
|
|
3656
|
+
}
|
|
3657
|
+
var sharedCanvasContext;
|
|
3658
|
+
function getSharedCanvasContext2D() {
|
|
3659
|
+
if (!sharedCanvasContext) {
|
|
3660
|
+
sharedCanvasContext = createCanvasContext2D(1, 1);
|
|
3661
|
+
}
|
|
3662
|
+
return sharedCanvasContext;
|
|
3663
|
+
}
|
|
3664
|
+
function releaseCanvas(context) {
|
|
3665
|
+
const canvas = context.canvas;
|
|
3666
|
+
canvas.width = 1;
|
|
3667
|
+
canvas.height = 1;
|
|
3668
|
+
context.clearRect(0, 0, 1, 1);
|
|
3669
|
+
}
|
|
3670
|
+
function replaceNode(newNode, oldNode) {
|
|
3671
|
+
const parent = oldNode.parentNode;
|
|
3672
|
+
if (parent) {
|
|
3673
|
+
parent.replaceChild(newNode, oldNode);
|
|
3674
|
+
}
|
|
3675
|
+
}
|
|
3676
|
+
function removeChildren(node) {
|
|
3677
|
+
while (node.lastChild) {
|
|
3678
|
+
node.lastChild.remove();
|
|
3679
|
+
}
|
|
3680
|
+
}
|
|
3681
|
+
function replaceChildren(node, children) {
|
|
3682
|
+
const oldChildren = node.childNodes;
|
|
3683
|
+
for (let i = 0; true; ++i) {
|
|
3684
|
+
const oldChild = oldChildren[i];
|
|
3685
|
+
const newChild = children[i];
|
|
3686
|
+
if (!oldChild && !newChild) {
|
|
3687
|
+
break;
|
|
3688
|
+
}
|
|
3689
|
+
if (oldChild === newChild) {
|
|
3690
|
+
continue;
|
|
3691
|
+
}
|
|
3692
|
+
if (!oldChild) {
|
|
3693
|
+
node.appendChild(newChild);
|
|
3694
|
+
continue;
|
|
3695
|
+
}
|
|
3696
|
+
if (!newChild) {
|
|
3697
|
+
node.removeChild(oldChild);
|
|
3698
|
+
--i;
|
|
3699
|
+
continue;
|
|
3700
|
+
}
|
|
3701
|
+
node.insertBefore(newChild, oldChild);
|
|
3702
|
+
}
|
|
3703
|
+
}
|
|
3704
|
+
|
|
3705
|
+
// node_modules/ol/DataTile.js
|
|
3706
|
+
function asImageLike(data) {
|
|
3707
|
+
return data instanceof Image || data instanceof HTMLCanvasElement || data instanceof HTMLVideoElement || data instanceof ImageBitmap ? data : null;
|
|
3708
|
+
}
|
|
3709
|
+
function asArrayLike(data) {
|
|
3710
|
+
return data instanceof Uint8Array || data instanceof Uint8ClampedArray || data instanceof Float32Array || data instanceof DataView ? data : null;
|
|
3711
|
+
}
|
|
3712
|
+
var disposedError = new Error("disposed");
|
|
3713
|
+
var sharedContext = null;
|
|
3714
|
+
function toArray(image) {
|
|
3715
|
+
if (!sharedContext) {
|
|
3716
|
+
sharedContext = createCanvasContext2D(
|
|
3717
|
+
image.width,
|
|
3718
|
+
image.height,
|
|
3719
|
+
void 0,
|
|
3720
|
+
{ willReadFrequently: true }
|
|
3721
|
+
);
|
|
3722
|
+
}
|
|
3723
|
+
const canvas = sharedContext.canvas;
|
|
3724
|
+
const width = image.width;
|
|
3725
|
+
if (canvas.width !== width) {
|
|
3726
|
+
canvas.width = width;
|
|
3727
|
+
}
|
|
3728
|
+
const height = image.height;
|
|
3729
|
+
if (canvas.height !== height) {
|
|
3730
|
+
canvas.height = height;
|
|
3731
|
+
}
|
|
3732
|
+
sharedContext.clearRect(0, 0, width, height);
|
|
3733
|
+
sharedContext.drawImage(image, 0, 0);
|
|
3734
|
+
return sharedContext.getImageData(0, 0, width, height).data;
|
|
3735
|
+
}
|
|
3736
|
+
var defaultSize = [256, 256];
|
|
3737
|
+
var DataTile = class extends Tile_default {
|
|
3738
|
+
/**
|
|
3739
|
+
* @param {Options} options Tile options.
|
|
3740
|
+
*/
|
|
3741
|
+
constructor(options) {
|
|
3742
|
+
const state = TileState_default.IDLE;
|
|
3743
|
+
super(options.tileCoord, state, {
|
|
3744
|
+
transition: options.transition,
|
|
3745
|
+
interpolate: options.interpolate
|
|
3746
|
+
});
|
|
3747
|
+
this.loader_ = options.loader;
|
|
3748
|
+
this.data_ = null;
|
|
3749
|
+
this.error_ = null;
|
|
3750
|
+
this.size_ = options.size || null;
|
|
3751
|
+
this.controller_ = options.controller || null;
|
|
3752
|
+
}
|
|
3753
|
+
/**
|
|
3754
|
+
* Get the tile size.
|
|
3755
|
+
* @return {import('./size.js').Size} Tile size.
|
|
3756
|
+
*/
|
|
3757
|
+
getSize() {
|
|
3758
|
+
if (this.size_) {
|
|
3759
|
+
return this.size_;
|
|
3760
|
+
}
|
|
3761
|
+
const imageData = asImageLike(this.data_);
|
|
3762
|
+
if (imageData) {
|
|
3763
|
+
return [imageData.width, imageData.height];
|
|
3764
|
+
}
|
|
3765
|
+
return defaultSize;
|
|
3766
|
+
}
|
|
3767
|
+
/**
|
|
3768
|
+
* Get the data for the tile.
|
|
3769
|
+
* @return {Data} Tile data.
|
|
3770
|
+
* @api
|
|
3771
|
+
*/
|
|
3772
|
+
getData() {
|
|
3773
|
+
return this.data_;
|
|
3774
|
+
}
|
|
3775
|
+
/**
|
|
3776
|
+
* Get any loading error.
|
|
3777
|
+
* @return {Error} Loading error.
|
|
3778
|
+
* @api
|
|
3779
|
+
*/
|
|
3780
|
+
getError() {
|
|
3781
|
+
return this.error_;
|
|
3782
|
+
}
|
|
3783
|
+
/**
|
|
3784
|
+
* Load the tile data.
|
|
3785
|
+
* @api
|
|
3786
|
+
* @override
|
|
3787
|
+
*/
|
|
3788
|
+
load() {
|
|
3789
|
+
if (this.state !== TileState_default.IDLE && this.state !== TileState_default.ERROR) {
|
|
3790
|
+
return;
|
|
3791
|
+
}
|
|
3792
|
+
this.state = TileState_default.LOADING;
|
|
3793
|
+
this.changed();
|
|
3794
|
+
const self2 = this;
|
|
3795
|
+
this.loader_().then(function(data) {
|
|
3796
|
+
self2.data_ = data;
|
|
3797
|
+
self2.state = TileState_default.LOADED;
|
|
3798
|
+
self2.changed();
|
|
3799
|
+
}).catch(function(error2) {
|
|
3800
|
+
self2.error_ = error2;
|
|
3801
|
+
self2.state = TileState_default.ERROR;
|
|
3802
|
+
self2.changed();
|
|
3803
|
+
});
|
|
3804
|
+
}
|
|
3805
|
+
/**
|
|
3806
|
+
* Clean up.
|
|
3807
|
+
* @override
|
|
3808
|
+
*/
|
|
3809
|
+
disposeInternal() {
|
|
3810
|
+
if (this.controller_) {
|
|
3811
|
+
this.controller_.abort(disposedError);
|
|
3812
|
+
this.controller_ = null;
|
|
3813
|
+
}
|
|
3814
|
+
super.disposeInternal();
|
|
3815
|
+
}
|
|
3816
|
+
};
|
|
3817
|
+
var DataTile_default = DataTile;
|
|
3818
|
+
|
|
3819
|
+
// node_modules/ol/tilegrid.js
|
|
3820
|
+
init_dirname();
|
|
3821
|
+
init_buffer();
|
|
3822
|
+
init_process();
|
|
3823
|
+
function getForProjection(projection) {
|
|
3824
|
+
let tileGrid = projection.getDefaultTileGrid();
|
|
3825
|
+
if (!tileGrid) {
|
|
3826
|
+
tileGrid = createForProjection(projection);
|
|
3827
|
+
projection.setDefaultTileGrid(tileGrid);
|
|
3828
|
+
}
|
|
3829
|
+
return tileGrid;
|
|
3830
|
+
}
|
|
3831
|
+
function wrapX3(tileGrid, tileCoord, projection) {
|
|
3832
|
+
const z = tileCoord[0];
|
|
3833
|
+
const center = tileGrid.getTileCoordCenter(tileCoord);
|
|
3834
|
+
const projectionExtent = extentFromProjection(projection);
|
|
3835
|
+
if (!containsCoordinate(projectionExtent, center)) {
|
|
3836
|
+
const worldWidth = getWidth(projectionExtent);
|
|
3837
|
+
const worldsAway = Math.ceil(
|
|
3838
|
+
(projectionExtent[0] - center[0]) / worldWidth
|
|
3839
|
+
);
|
|
3840
|
+
center[0] += worldWidth * worldsAway;
|
|
3841
|
+
return tileGrid.getTileCoordForCoordAndZ(center, z);
|
|
3842
|
+
}
|
|
3843
|
+
return tileCoord;
|
|
3844
|
+
}
|
|
3845
|
+
function createForExtent(extent, maxZoom, tileSize, corner) {
|
|
3846
|
+
corner = corner !== void 0 ? corner : "top-left";
|
|
3847
|
+
const resolutions = resolutionsFromExtent(extent, maxZoom, tileSize);
|
|
3848
|
+
return new TileGrid_default({
|
|
3849
|
+
extent,
|
|
3850
|
+
origin: getCorner(extent, corner),
|
|
3851
|
+
resolutions,
|
|
3852
|
+
tileSize
|
|
3853
|
+
});
|
|
3854
|
+
}
|
|
3855
|
+
function createXYZ(options) {
|
|
3856
|
+
const xyzOptions = options || {};
|
|
3857
|
+
const extent = xyzOptions.extent || get3("EPSG:3857").getExtent();
|
|
3858
|
+
const gridOptions = {
|
|
3859
|
+
extent,
|
|
3860
|
+
minZoom: xyzOptions.minZoom,
|
|
3861
|
+
tileSize: xyzOptions.tileSize,
|
|
3862
|
+
resolutions: resolutionsFromExtent(
|
|
3863
|
+
extent,
|
|
3864
|
+
xyzOptions.maxZoom,
|
|
3865
|
+
xyzOptions.tileSize,
|
|
3866
|
+
xyzOptions.maxResolution
|
|
3867
|
+
)
|
|
3868
|
+
};
|
|
3869
|
+
return new TileGrid_default(gridOptions);
|
|
3870
|
+
}
|
|
3871
|
+
function resolutionsFromExtent(extent, maxZoom, tileSize, maxResolution) {
|
|
3872
|
+
maxZoom = maxZoom !== void 0 ? maxZoom : DEFAULT_MAX_ZOOM;
|
|
3873
|
+
tileSize = toSize(tileSize !== void 0 ? tileSize : DEFAULT_TILE_SIZE);
|
|
3874
|
+
const height = getHeight(extent);
|
|
3875
|
+
const width = getWidth(extent);
|
|
3876
|
+
maxResolution = maxResolution > 0 ? maxResolution : Math.max(width / tileSize[0], height / tileSize[1]);
|
|
3877
|
+
const length = maxZoom + 1;
|
|
3878
|
+
const resolutions = new Array(length);
|
|
3879
|
+
for (let z = 0; z < length; ++z) {
|
|
3880
|
+
resolutions[z] = maxResolution / Math.pow(2, z);
|
|
3881
|
+
}
|
|
3882
|
+
return resolutions;
|
|
3883
|
+
}
|
|
3884
|
+
function createForProjection(projection, maxZoom, tileSize, corner) {
|
|
3885
|
+
const extent = extentFromProjection(projection);
|
|
3886
|
+
return createForExtent(extent, maxZoom, tileSize, corner);
|
|
3887
|
+
}
|
|
3888
|
+
function extentFromProjection(projection) {
|
|
3889
|
+
projection = get3(projection);
|
|
3890
|
+
let extent = projection.getExtent();
|
|
3891
|
+
if (!extent) {
|
|
3892
|
+
const half = 180 * METERS_PER_UNIT.degrees / projection.getMetersPerUnit();
|
|
3893
|
+
extent = createOrUpdate(-half, -half, half, half);
|
|
3894
|
+
}
|
|
3895
|
+
return extent;
|
|
3896
|
+
}
|
|
3897
|
+
|
|
3898
|
+
// node_modules/ol/source/Tile.js
|
|
3899
|
+
init_dirname();
|
|
3900
|
+
init_buffer();
|
|
3901
|
+
init_process();
|
|
3902
|
+
var TileSource = class extends Source_default {
|
|
3903
|
+
/**
|
|
3904
|
+
* @param {Options} options SourceTile source options.
|
|
3905
|
+
*/
|
|
3906
|
+
constructor(options) {
|
|
3907
|
+
super({
|
|
3908
|
+
attributions: options.attributions,
|
|
3909
|
+
attributionsCollapsible: options.attributionsCollapsible,
|
|
3910
|
+
projection: options.projection,
|
|
3911
|
+
state: options.state,
|
|
3912
|
+
wrapX: options.wrapX,
|
|
3913
|
+
interpolate: options.interpolate
|
|
3914
|
+
});
|
|
3915
|
+
this.on;
|
|
3916
|
+
this.once;
|
|
3917
|
+
this.un;
|
|
3918
|
+
this.tilePixelRatio_ = options.tilePixelRatio !== void 0 ? options.tilePixelRatio : 1;
|
|
3919
|
+
this.tileGrid = options.tileGrid !== void 0 ? options.tileGrid : null;
|
|
3920
|
+
const tileSize = [256, 256];
|
|
3921
|
+
if (this.tileGrid) {
|
|
3922
|
+
toSize(this.tileGrid.getTileSize(this.tileGrid.getMinZoom()), tileSize);
|
|
3923
|
+
}
|
|
3924
|
+
this.tmpSize = [0, 0];
|
|
3925
|
+
this.key_ = options.key || getUid(this);
|
|
3926
|
+
this.tileOptions = {
|
|
3927
|
+
transition: options.transition,
|
|
3928
|
+
interpolate: options.interpolate
|
|
3929
|
+
};
|
|
3930
|
+
this.zDirection = options.zDirection ? options.zDirection : 0;
|
|
3931
|
+
}
|
|
3932
|
+
/**
|
|
3933
|
+
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
3934
|
+
* @return {number} Gutter.
|
|
3935
|
+
*/
|
|
3936
|
+
getGutterForProjection(projection) {
|
|
3937
|
+
return 0;
|
|
3938
|
+
}
|
|
3939
|
+
/**
|
|
3940
|
+
* Return the key to be used for all tiles in the source.
|
|
3941
|
+
* @return {string} The key for all tiles.
|
|
3942
|
+
*/
|
|
3943
|
+
getKey() {
|
|
3944
|
+
return this.key_;
|
|
3945
|
+
}
|
|
3946
|
+
/**
|
|
3947
|
+
* Set the value to be used as the key for all tiles in the source.
|
|
3948
|
+
* @param {string} key The key for tiles.
|
|
3949
|
+
* @protected
|
|
3950
|
+
*/
|
|
3951
|
+
setKey(key) {
|
|
3952
|
+
if (this.key_ !== key) {
|
|
3953
|
+
this.key_ = key;
|
|
3954
|
+
this.changed();
|
|
3955
|
+
}
|
|
3956
|
+
}
|
|
3957
|
+
/**
|
|
3958
|
+
* @param {import("../proj/Projection").default} [projection] Projection.
|
|
3959
|
+
* @return {Array<number>|null} Resolutions.
|
|
3960
|
+
* @override
|
|
3961
|
+
*/
|
|
3962
|
+
getResolutions(projection) {
|
|
3963
|
+
const tileGrid = projection ? this.getTileGridForProjection(projection) : this.tileGrid;
|
|
3964
|
+
if (!tileGrid) {
|
|
3965
|
+
return null;
|
|
3966
|
+
}
|
|
3967
|
+
return tileGrid.getResolutions();
|
|
3968
|
+
}
|
|
3969
|
+
/**
|
|
3970
|
+
* @abstract
|
|
3971
|
+
* @param {number} z Tile coordinate z.
|
|
3972
|
+
* @param {number} x Tile coordinate x.
|
|
3973
|
+
* @param {number} y Tile coordinate y.
|
|
3974
|
+
* @param {number} pixelRatio Pixel ratio.
|
|
3975
|
+
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
3976
|
+
* @return {TileType|null} Tile.
|
|
3977
|
+
*/
|
|
3978
|
+
getTile(z, x, y, pixelRatio, projection) {
|
|
3979
|
+
return abstract();
|
|
3980
|
+
}
|
|
3981
|
+
/**
|
|
3982
|
+
* Return the tile grid of the tile source.
|
|
3983
|
+
* @return {import("../tilegrid/TileGrid.js").default|null} Tile grid.
|
|
3984
|
+
* @api
|
|
3985
|
+
*/
|
|
3986
|
+
getTileGrid() {
|
|
3987
|
+
return this.tileGrid;
|
|
3988
|
+
}
|
|
3989
|
+
/**
|
|
3990
|
+
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
3991
|
+
* @return {!import("../tilegrid/TileGrid.js").default} Tile grid.
|
|
3992
|
+
*/
|
|
3993
|
+
getTileGridForProjection(projection) {
|
|
3994
|
+
if (!this.tileGrid) {
|
|
3995
|
+
return getForProjection(projection);
|
|
3996
|
+
}
|
|
3997
|
+
return this.tileGrid;
|
|
3998
|
+
}
|
|
3999
|
+
/**
|
|
4000
|
+
* Get the tile pixel ratio for this source. Subclasses may override this
|
|
4001
|
+
* method, which is meant to return a supported pixel ratio that matches the
|
|
4002
|
+
* provided `pixelRatio` as close as possible.
|
|
4003
|
+
* @param {number} pixelRatio Pixel ratio.
|
|
4004
|
+
* @return {number} Tile pixel ratio.
|
|
4005
|
+
*/
|
|
4006
|
+
getTilePixelRatio(pixelRatio) {
|
|
4007
|
+
return this.tilePixelRatio_;
|
|
4008
|
+
}
|
|
4009
|
+
/**
|
|
4010
|
+
* @param {number} z Z.
|
|
4011
|
+
* @param {number} pixelRatio Pixel ratio.
|
|
4012
|
+
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
4013
|
+
* @return {import("../size.js").Size} Tile size.
|
|
4014
|
+
*/
|
|
4015
|
+
getTilePixelSize(z, pixelRatio, projection) {
|
|
4016
|
+
const tileGrid = this.getTileGridForProjection(projection);
|
|
4017
|
+
const tilePixelRatio = this.getTilePixelRatio(pixelRatio);
|
|
4018
|
+
const tileSize = toSize(tileGrid.getTileSize(z), this.tmpSize);
|
|
4019
|
+
if (tilePixelRatio == 1) {
|
|
4020
|
+
return tileSize;
|
|
4021
|
+
}
|
|
4022
|
+
return scale3(tileSize, tilePixelRatio, this.tmpSize);
|
|
4023
|
+
}
|
|
4024
|
+
/**
|
|
4025
|
+
* Returns a tile coordinate wrapped around the x-axis. When the tile coordinate
|
|
4026
|
+
* is outside the resolution and extent range of the tile grid, `null` will be
|
|
4027
|
+
* returned.
|
|
4028
|
+
* @param {import("../tilecoord.js").TileCoord} tileCoord Tile coordinate.
|
|
4029
|
+
* @param {import("../proj/Projection.js").default} [projection] Projection.
|
|
4030
|
+
* @return {import("../tilecoord.js").TileCoord} Tile coordinate to be passed to the tileUrlFunction or
|
|
4031
|
+
* null if no tile URL should be created for the passed `tileCoord`.
|
|
4032
|
+
*/
|
|
4033
|
+
getTileCoordForTileUrlFunction(tileCoord, projection) {
|
|
4034
|
+
const gridProjection = projection !== void 0 ? projection : this.getProjection();
|
|
4035
|
+
const tileGrid = projection !== void 0 ? this.getTileGridForProjection(gridProjection) : this.tileGrid || this.getTileGridForProjection(gridProjection);
|
|
4036
|
+
if (this.getWrapX() && gridProjection.isGlobal()) {
|
|
4037
|
+
tileCoord = wrapX3(tileGrid, tileCoord, gridProjection);
|
|
4038
|
+
}
|
|
4039
|
+
return withinExtentAndZ(tileCoord, tileGrid) ? tileCoord : null;
|
|
4040
|
+
}
|
|
4041
|
+
/**
|
|
4042
|
+
* Remove all cached reprojected tiles from the source. The next render cycle will create new tiles.
|
|
4043
|
+
* @api
|
|
4044
|
+
*/
|
|
4045
|
+
clear() {
|
|
4046
|
+
}
|
|
4047
|
+
/**
|
|
4048
|
+
* @override
|
|
4049
|
+
*/
|
|
4050
|
+
refresh() {
|
|
4051
|
+
this.clear();
|
|
4052
|
+
super.refresh();
|
|
4053
|
+
}
|
|
4054
|
+
};
|
|
4055
|
+
var TileSourceEvent = class extends Event_default {
|
|
4056
|
+
/**
|
|
4057
|
+
* @param {string} type Type.
|
|
4058
|
+
* @param {import("../Tile.js").default} tile The tile.
|
|
4059
|
+
*/
|
|
4060
|
+
constructor(type, tile) {
|
|
4061
|
+
super(type);
|
|
4062
|
+
this.tile = tile;
|
|
4063
|
+
}
|
|
4064
|
+
};
|
|
4065
|
+
var Tile_default2 = TileSource;
|
|
4066
|
+
|
|
4067
|
+
// node_modules/ol/source/TileEventType.js
|
|
4068
|
+
init_dirname();
|
|
4069
|
+
init_buffer();
|
|
4070
|
+
init_process();
|
|
4071
|
+
var TileEventType_default = {
|
|
4072
|
+
/**
|
|
4073
|
+
* Triggered when a tile starts loading.
|
|
4074
|
+
* @event module:ol/source/Tile.TileSourceEvent#tileloadstart
|
|
4075
|
+
* @api
|
|
4076
|
+
*/
|
|
4077
|
+
TILELOADSTART: "tileloadstart",
|
|
4078
|
+
/**
|
|
4079
|
+
* Triggered when a tile finishes loading, either when its data is loaded,
|
|
4080
|
+
* or when loading was aborted because the tile is no longer needed.
|
|
4081
|
+
* @event module:ol/source/Tile.TileSourceEvent#tileloadend
|
|
4082
|
+
* @api
|
|
4083
|
+
*/
|
|
4084
|
+
TILELOADEND: "tileloadend",
|
|
4085
|
+
/**
|
|
4086
|
+
* Triggered if tile loading results in an error. Note that this is not the
|
|
4087
|
+
* right place to re-fetch tiles. See {@link module:ol/ImageTile~ImageTile#load}
|
|
4088
|
+
* for details.
|
|
4089
|
+
* @event module:ol/source/Tile.TileSourceEvent#tileloaderror
|
|
4090
|
+
* @api
|
|
4091
|
+
*/
|
|
4092
|
+
TILELOADERROR: "tileloaderror"
|
|
4093
|
+
};
|
|
4094
|
+
|
|
4095
|
+
// node_modules/ol/vec/mat4.js
|
|
4096
|
+
init_dirname();
|
|
4097
|
+
init_buffer();
|
|
4098
|
+
init_process();
|
|
4099
|
+
function create2() {
|
|
4100
|
+
return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
4101
|
+
}
|
|
4102
|
+
function fromTransform(mat4, transform2) {
|
|
4103
|
+
mat4[0] = transform2[0];
|
|
4104
|
+
mat4[1] = transform2[1];
|
|
4105
|
+
mat4[4] = transform2[2];
|
|
4106
|
+
mat4[5] = transform2[3];
|
|
4107
|
+
mat4[12] = transform2[4];
|
|
4108
|
+
mat4[13] = transform2[5];
|
|
4109
|
+
return mat4;
|
|
4110
|
+
}
|
|
4111
|
+
function orthographic(left, right, bottom, top, near, far, out) {
|
|
4112
|
+
out = out != null ? out : create2();
|
|
4113
|
+
const lr = 1 / (left - right), bt = 1 / (bottom - top), nf = 1 / (near - far);
|
|
4114
|
+
out[0] = -2 * lr;
|
|
4115
|
+
out[1] = 0;
|
|
4116
|
+
out[2] = 0;
|
|
4117
|
+
out[3] = 0;
|
|
4118
|
+
out[4] = 0;
|
|
4119
|
+
out[5] = -2 * bt;
|
|
4120
|
+
out[6] = 0;
|
|
4121
|
+
out[7] = 0;
|
|
4122
|
+
out[8] = 0;
|
|
4123
|
+
out[9] = 0;
|
|
4124
|
+
out[10] = 2 * nf;
|
|
4125
|
+
out[11] = 0;
|
|
4126
|
+
out[12] = (left + right) * lr;
|
|
4127
|
+
out[13] = (top + bottom) * bt;
|
|
4128
|
+
out[14] = (far + near) * nf;
|
|
4129
|
+
out[15] = 1;
|
|
4130
|
+
return out;
|
|
4131
|
+
}
|
|
4132
|
+
function scale4(m, x, y, z, out) {
|
|
4133
|
+
out = out != null ? out : create2();
|
|
4134
|
+
out[0] = m[0] * x;
|
|
4135
|
+
out[1] = m[1] * x;
|
|
4136
|
+
out[2] = m[2] * x;
|
|
4137
|
+
out[3] = m[3] * x;
|
|
4138
|
+
out[4] = m[4] * y;
|
|
4139
|
+
out[5] = m[5] * y;
|
|
4140
|
+
out[6] = m[6] * y;
|
|
4141
|
+
out[7] = m[7] * y;
|
|
4142
|
+
out[8] = m[8] * z;
|
|
4143
|
+
out[9] = m[9] * z;
|
|
4144
|
+
out[10] = m[10] * z;
|
|
4145
|
+
out[11] = m[11] * z;
|
|
4146
|
+
out[12] = m[12];
|
|
4147
|
+
out[13] = m[13];
|
|
4148
|
+
out[14] = m[14];
|
|
4149
|
+
out[15] = m[15];
|
|
4150
|
+
return out;
|
|
4151
|
+
}
|
|
4152
|
+
function translate2(m, x, y, z, out) {
|
|
4153
|
+
out = out != null ? out : create2();
|
|
4154
|
+
let a00, a01, a02, a03, a10, a11, a12, a13, a20, a21, a22, a23;
|
|
4155
|
+
if (m === out) {
|
|
4156
|
+
out[12] = m[0] * x + m[4] * y + m[8] * z + m[12];
|
|
4157
|
+
out[13] = m[1] * x + m[5] * y + m[9] * z + m[13];
|
|
4158
|
+
out[14] = m[2] * x + m[6] * y + m[10] * z + m[14];
|
|
4159
|
+
out[15] = m[3] * x + m[7] * y + m[11] * z + m[15];
|
|
4160
|
+
} else {
|
|
4161
|
+
a00 = m[0];
|
|
4162
|
+
a01 = m[1];
|
|
4163
|
+
a02 = m[2];
|
|
4164
|
+
a03 = m[3];
|
|
4165
|
+
a10 = m[4];
|
|
4166
|
+
a11 = m[5];
|
|
4167
|
+
a12 = m[6];
|
|
4168
|
+
a13 = m[7];
|
|
4169
|
+
a20 = m[8];
|
|
4170
|
+
a21 = m[9];
|
|
4171
|
+
a22 = m[10];
|
|
4172
|
+
a23 = m[11];
|
|
4173
|
+
out[0] = a00;
|
|
4174
|
+
out[1] = a01;
|
|
4175
|
+
out[2] = a02;
|
|
4176
|
+
out[3] = a03;
|
|
4177
|
+
out[4] = a10;
|
|
4178
|
+
out[5] = a11;
|
|
4179
|
+
out[6] = a12;
|
|
4180
|
+
out[7] = a13;
|
|
4181
|
+
out[8] = a20;
|
|
4182
|
+
out[9] = a21;
|
|
4183
|
+
out[10] = a22;
|
|
4184
|
+
out[11] = a23;
|
|
4185
|
+
out[12] = a00 * x + a10 * y + a20 * z + m[12];
|
|
4186
|
+
out[13] = a01 * x + a11 * y + a21 * z + m[13];
|
|
4187
|
+
out[14] = a02 * x + a12 * y + a22 * z + m[14];
|
|
4188
|
+
out[15] = a03 * x + a13 * y + a23 * z + m[15];
|
|
4189
|
+
}
|
|
4190
|
+
return out;
|
|
4191
|
+
}
|
|
4192
|
+
function translation(x, y, z, out) {
|
|
4193
|
+
out = out != null ? out : create2();
|
|
4194
|
+
out[0] = 1;
|
|
4195
|
+
out[1] = 0;
|
|
4196
|
+
out[2] = 0;
|
|
4197
|
+
out[3] = 0;
|
|
4198
|
+
out[4] = 0;
|
|
4199
|
+
out[5] = 1;
|
|
4200
|
+
out[6] = 0;
|
|
4201
|
+
out[7] = 0;
|
|
4202
|
+
out[8] = 0;
|
|
4203
|
+
out[9] = 0;
|
|
4204
|
+
out[10] = 1;
|
|
4205
|
+
out[11] = 0;
|
|
4206
|
+
out[12] = x;
|
|
4207
|
+
out[13] = y;
|
|
4208
|
+
out[14] = z;
|
|
4209
|
+
out[15] = 1;
|
|
4210
|
+
return out;
|
|
4211
|
+
}
|
|
4212
|
+
|
|
4213
|
+
// node_modules/ol/reproj.js
|
|
4214
|
+
init_dirname();
|
|
4215
|
+
init_buffer();
|
|
4216
|
+
init_process();
|
|
4217
|
+
var brokenDiagonalRendering_;
|
|
4218
|
+
var canvasPool = [];
|
|
4219
|
+
function drawTestTriangle(ctx, u1, v1, u2, v2) {
|
|
4220
|
+
ctx.beginPath();
|
|
4221
|
+
ctx.moveTo(0, 0);
|
|
4222
|
+
ctx.lineTo(u1, v1);
|
|
4223
|
+
ctx.lineTo(u2, v2);
|
|
4224
|
+
ctx.closePath();
|
|
4225
|
+
ctx.save();
|
|
4226
|
+
ctx.clip();
|
|
4227
|
+
ctx.fillRect(0, 0, Math.max(u1, u2) + 1, Math.max(v1, v2));
|
|
4228
|
+
ctx.restore();
|
|
4229
|
+
}
|
|
4230
|
+
function verifyBrokenDiagonalRendering(data, offset) {
|
|
4231
|
+
return Math.abs(data[offset * 4] - 210) > 2 || Math.abs(data[offset * 4 + 3] - 0.75 * 255) > 2;
|
|
4232
|
+
}
|
|
4233
|
+
function isBrokenDiagonalRendering() {
|
|
4234
|
+
if (brokenDiagonalRendering_ === void 0) {
|
|
4235
|
+
const ctx = createCanvasContext2D(6, 6, canvasPool);
|
|
4236
|
+
ctx.globalCompositeOperation = "lighter";
|
|
4237
|
+
ctx.fillStyle = "rgba(210, 0, 0, 0.75)";
|
|
4238
|
+
drawTestTriangle(ctx, 4, 5, 4, 0);
|
|
4239
|
+
drawTestTriangle(ctx, 4, 5, 0, 5);
|
|
4240
|
+
const data = ctx.getImageData(0, 0, 3, 3).data;
|
|
4241
|
+
brokenDiagonalRendering_ = verifyBrokenDiagonalRendering(data, 0) || verifyBrokenDiagonalRendering(data, 4) || verifyBrokenDiagonalRendering(data, 8);
|
|
4242
|
+
releaseCanvas(ctx);
|
|
4243
|
+
canvasPool.push(ctx.canvas);
|
|
4244
|
+
}
|
|
4245
|
+
return brokenDiagonalRendering_;
|
|
4246
|
+
}
|
|
4247
|
+
function calculateSourceResolution(sourceProj, targetProj, targetCenter, targetResolution) {
|
|
4248
|
+
const sourceCenter = transform(targetCenter, targetProj, sourceProj);
|
|
4249
|
+
let sourceResolution = getPointResolution(
|
|
4250
|
+
targetProj,
|
|
4251
|
+
targetResolution,
|
|
4252
|
+
targetCenter
|
|
4253
|
+
);
|
|
4254
|
+
const targetMetersPerUnit = targetProj.getMetersPerUnit();
|
|
4255
|
+
if (targetMetersPerUnit !== void 0) {
|
|
4256
|
+
sourceResolution *= targetMetersPerUnit;
|
|
4257
|
+
}
|
|
4258
|
+
const sourceMetersPerUnit = sourceProj.getMetersPerUnit();
|
|
4259
|
+
if (sourceMetersPerUnit !== void 0) {
|
|
4260
|
+
sourceResolution /= sourceMetersPerUnit;
|
|
4261
|
+
}
|
|
4262
|
+
const sourceExtent = sourceProj.getExtent();
|
|
4263
|
+
if (!sourceExtent || containsCoordinate(sourceExtent, sourceCenter)) {
|
|
4264
|
+
const compensationFactor = getPointResolution(sourceProj, sourceResolution, sourceCenter) / sourceResolution;
|
|
4265
|
+
if (isFinite(compensationFactor) && compensationFactor > 0) {
|
|
4266
|
+
sourceResolution /= compensationFactor;
|
|
4267
|
+
}
|
|
4268
|
+
}
|
|
4269
|
+
return sourceResolution;
|
|
4270
|
+
}
|
|
4271
|
+
function calculateSourceExtentResolution(sourceProj, targetProj, targetExtent, targetResolution) {
|
|
4272
|
+
const targetCenter = getCenter(targetExtent);
|
|
4273
|
+
let sourceResolution = calculateSourceResolution(
|
|
4274
|
+
sourceProj,
|
|
4275
|
+
targetProj,
|
|
4276
|
+
targetCenter,
|
|
4277
|
+
targetResolution
|
|
4278
|
+
);
|
|
4279
|
+
if (!isFinite(sourceResolution) || sourceResolution <= 0) {
|
|
4280
|
+
forEachCorner(targetExtent, function(corner) {
|
|
4281
|
+
sourceResolution = calculateSourceResolution(
|
|
4282
|
+
sourceProj,
|
|
4283
|
+
targetProj,
|
|
4284
|
+
corner,
|
|
4285
|
+
targetResolution
|
|
4286
|
+
);
|
|
4287
|
+
return isFinite(sourceResolution) && sourceResolution > 0;
|
|
4288
|
+
});
|
|
4289
|
+
}
|
|
4290
|
+
return sourceResolution;
|
|
4291
|
+
}
|
|
4292
|
+
function render(width, height, pixelRatio, sourceResolution, sourceExtent, targetResolution, targetExtent, triangulation, sources, gutter, renderEdges, interpolate, drawSingle, clipExtent) {
|
|
4293
|
+
const context = createCanvasContext2D(
|
|
4294
|
+
Math.round(pixelRatio * width),
|
|
4295
|
+
Math.round(pixelRatio * height),
|
|
4296
|
+
canvasPool
|
|
4297
|
+
);
|
|
4298
|
+
if (!interpolate) {
|
|
4299
|
+
context.imageSmoothingEnabled = false;
|
|
4300
|
+
}
|
|
4301
|
+
if (sources.length === 0) {
|
|
4302
|
+
return context.canvas;
|
|
4303
|
+
}
|
|
4304
|
+
context.scale(pixelRatio, pixelRatio);
|
|
4305
|
+
function pixelRound(value) {
|
|
4306
|
+
return Math.round(value * pixelRatio) / pixelRatio;
|
|
4307
|
+
}
|
|
4308
|
+
context.globalCompositeOperation = "lighter";
|
|
4309
|
+
const sourceDataExtent = createEmpty();
|
|
4310
|
+
sources.forEach(function(src, i, arr) {
|
|
4311
|
+
extend(sourceDataExtent, src.extent);
|
|
4312
|
+
});
|
|
4313
|
+
let stitchContext;
|
|
4314
|
+
const stitchScale = pixelRatio / sourceResolution;
|
|
4315
|
+
const inverseScale = (interpolate ? 1 : 1 + Math.pow(2, -24)) / stitchScale;
|
|
4316
|
+
if (!drawSingle || sources.length !== 1 || gutter !== 0) {
|
|
4317
|
+
stitchContext = createCanvasContext2D(
|
|
4318
|
+
Math.round(getWidth(sourceDataExtent) * stitchScale),
|
|
4319
|
+
Math.round(getHeight(sourceDataExtent) * stitchScale),
|
|
4320
|
+
canvasPool
|
|
4321
|
+
);
|
|
4322
|
+
if (!interpolate) {
|
|
4323
|
+
stitchContext.imageSmoothingEnabled = false;
|
|
4324
|
+
}
|
|
4325
|
+
if (sourceExtent && clipExtent) {
|
|
4326
|
+
const xPos = (sourceExtent[0] - sourceDataExtent[0]) * stitchScale;
|
|
4327
|
+
const yPos = -(sourceExtent[3] - sourceDataExtent[3]) * stitchScale;
|
|
4328
|
+
const width2 = getWidth(sourceExtent) * stitchScale;
|
|
4329
|
+
const height2 = getHeight(sourceExtent) * stitchScale;
|
|
4330
|
+
stitchContext.rect(xPos, yPos, width2, height2);
|
|
4331
|
+
stitchContext.clip();
|
|
4332
|
+
}
|
|
4333
|
+
sources.forEach(function(src, i, arr) {
|
|
4334
|
+
if (src.image.width > 0 && src.image.height > 0) {
|
|
4335
|
+
if (src.clipExtent) {
|
|
4336
|
+
stitchContext.save();
|
|
4337
|
+
const xPos2 = (src.clipExtent[0] - sourceDataExtent[0]) * stitchScale;
|
|
4338
|
+
const yPos2 = -(src.clipExtent[3] - sourceDataExtent[3]) * stitchScale;
|
|
4339
|
+
const width2 = getWidth(src.clipExtent) * stitchScale;
|
|
4340
|
+
const height2 = getHeight(src.clipExtent) * stitchScale;
|
|
4341
|
+
stitchContext.rect(
|
|
4342
|
+
interpolate ? xPos2 : Math.round(xPos2),
|
|
4343
|
+
interpolate ? yPos2 : Math.round(yPos2),
|
|
4344
|
+
interpolate ? width2 : Math.round(xPos2 + width2) - Math.round(xPos2),
|
|
4345
|
+
interpolate ? height2 : Math.round(yPos2 + height2) - Math.round(yPos2)
|
|
4346
|
+
);
|
|
4347
|
+
stitchContext.clip();
|
|
4348
|
+
}
|
|
4349
|
+
const xPos = (src.extent[0] - sourceDataExtent[0]) * stitchScale;
|
|
4350
|
+
const yPos = -(src.extent[3] - sourceDataExtent[3]) * stitchScale;
|
|
4351
|
+
const srcWidth = getWidth(src.extent) * stitchScale;
|
|
4352
|
+
const srcHeight = getHeight(src.extent) * stitchScale;
|
|
4353
|
+
stitchContext.drawImage(
|
|
4354
|
+
src.image,
|
|
4355
|
+
gutter,
|
|
4356
|
+
gutter,
|
|
4357
|
+
src.image.width - 2 * gutter,
|
|
4358
|
+
src.image.height - 2 * gutter,
|
|
4359
|
+
interpolate ? xPos : Math.round(xPos),
|
|
4360
|
+
interpolate ? yPos : Math.round(yPos),
|
|
4361
|
+
interpolate ? srcWidth : Math.round(xPos + srcWidth) - Math.round(xPos),
|
|
4362
|
+
interpolate ? srcHeight : Math.round(yPos + srcHeight) - Math.round(yPos)
|
|
4363
|
+
);
|
|
4364
|
+
if (src.clipExtent) {
|
|
4365
|
+
stitchContext.restore();
|
|
4366
|
+
}
|
|
4367
|
+
}
|
|
4368
|
+
});
|
|
4369
|
+
}
|
|
4370
|
+
const targetTopLeft = getTopLeft(targetExtent);
|
|
4371
|
+
triangulation.getTriangles().forEach(function(triangle, i, arr) {
|
|
4372
|
+
const source = triangle.source;
|
|
4373
|
+
const target = triangle.target;
|
|
4374
|
+
let x0 = source[0][0], y0 = source[0][1];
|
|
4375
|
+
let x1 = source[1][0], y1 = source[1][1];
|
|
4376
|
+
let x2 = source[2][0], y2 = source[2][1];
|
|
4377
|
+
const u0 = pixelRound((target[0][0] - targetTopLeft[0]) / targetResolution);
|
|
4378
|
+
const v0 = pixelRound(
|
|
4379
|
+
-(target[0][1] - targetTopLeft[1]) / targetResolution
|
|
4380
|
+
);
|
|
4381
|
+
const u1 = pixelRound((target[1][0] - targetTopLeft[0]) / targetResolution);
|
|
4382
|
+
const v1 = pixelRound(
|
|
4383
|
+
-(target[1][1] - targetTopLeft[1]) / targetResolution
|
|
4384
|
+
);
|
|
4385
|
+
const u2 = pixelRound((target[2][0] - targetTopLeft[0]) / targetResolution);
|
|
4386
|
+
const v2 = pixelRound(
|
|
4387
|
+
-(target[2][1] - targetTopLeft[1]) / targetResolution
|
|
4388
|
+
);
|
|
4389
|
+
const sourceNumericalShiftX = x0;
|
|
4390
|
+
const sourceNumericalShiftY = y0;
|
|
4391
|
+
x0 = 0;
|
|
4392
|
+
y0 = 0;
|
|
4393
|
+
x1 -= sourceNumericalShiftX;
|
|
4394
|
+
y1 -= sourceNumericalShiftY;
|
|
4395
|
+
x2 -= sourceNumericalShiftX;
|
|
4396
|
+
y2 -= sourceNumericalShiftY;
|
|
4397
|
+
const augmentedMatrix = [
|
|
4398
|
+
[x1, y1, 0, 0, u1 - u0],
|
|
4399
|
+
[x2, y2, 0, 0, u2 - u0],
|
|
4400
|
+
[0, 0, x1, y1, v1 - v0],
|
|
4401
|
+
[0, 0, x2, y2, v2 - v0]
|
|
4402
|
+
];
|
|
4403
|
+
const affineCoefs = solveLinearSystem(augmentedMatrix);
|
|
4404
|
+
if (!affineCoefs) {
|
|
4405
|
+
return;
|
|
4406
|
+
}
|
|
4407
|
+
context.save();
|
|
4408
|
+
context.beginPath();
|
|
4409
|
+
if (isBrokenDiagonalRendering() || !interpolate) {
|
|
4410
|
+
context.moveTo(u1, v1);
|
|
4411
|
+
const steps = 4;
|
|
4412
|
+
const ud = u0 - u1;
|
|
4413
|
+
const vd = v0 - v1;
|
|
4414
|
+
for (let step = 0; step < steps; step++) {
|
|
4415
|
+
context.lineTo(
|
|
4416
|
+
u1 + pixelRound((step + 1) * ud / steps),
|
|
4417
|
+
v1 + pixelRound(step * vd / (steps - 1))
|
|
4418
|
+
);
|
|
4419
|
+
if (step != steps - 1) {
|
|
4420
|
+
context.lineTo(
|
|
4421
|
+
u1 + pixelRound((step + 1) * ud / steps),
|
|
4422
|
+
v1 + pixelRound((step + 1) * vd / (steps - 1))
|
|
4423
|
+
);
|
|
4424
|
+
}
|
|
4425
|
+
}
|
|
4426
|
+
context.lineTo(u2, v2);
|
|
4427
|
+
} else {
|
|
4428
|
+
context.moveTo(u1, v1);
|
|
4429
|
+
context.lineTo(u0, v0);
|
|
4430
|
+
context.lineTo(u2, v2);
|
|
4431
|
+
}
|
|
4432
|
+
context.clip();
|
|
4433
|
+
context.transform(
|
|
4434
|
+
affineCoefs[0],
|
|
4435
|
+
affineCoefs[2],
|
|
4436
|
+
affineCoefs[1],
|
|
4437
|
+
affineCoefs[3],
|
|
4438
|
+
u0,
|
|
4439
|
+
v0
|
|
4440
|
+
);
|
|
4441
|
+
context.translate(
|
|
4442
|
+
sourceDataExtent[0] - sourceNumericalShiftX,
|
|
4443
|
+
sourceDataExtent[3] - sourceNumericalShiftY
|
|
4444
|
+
);
|
|
4445
|
+
let image;
|
|
4446
|
+
if (stitchContext) {
|
|
4447
|
+
image = stitchContext.canvas;
|
|
4448
|
+
context.scale(inverseScale, -inverseScale);
|
|
4449
|
+
} else {
|
|
4450
|
+
const source2 = sources[0];
|
|
4451
|
+
const extent = source2.extent;
|
|
4452
|
+
image = source2.image;
|
|
4453
|
+
context.scale(
|
|
4454
|
+
getWidth(extent) / image.width,
|
|
4455
|
+
-getHeight(extent) / image.height
|
|
4456
|
+
);
|
|
4457
|
+
}
|
|
4458
|
+
context.drawImage(image, 0, 0);
|
|
4459
|
+
context.restore();
|
|
4460
|
+
});
|
|
4461
|
+
if (stitchContext) {
|
|
4462
|
+
releaseCanvas(stitchContext);
|
|
4463
|
+
canvasPool.push(stitchContext.canvas);
|
|
4464
|
+
}
|
|
4465
|
+
if (renderEdges) {
|
|
4466
|
+
context.save();
|
|
4467
|
+
context.globalCompositeOperation = "source-over";
|
|
4468
|
+
context.strokeStyle = "black";
|
|
4469
|
+
context.lineWidth = 1;
|
|
4470
|
+
triangulation.getTriangles().forEach(function(triangle, i, arr) {
|
|
4471
|
+
const target = triangle.target;
|
|
4472
|
+
const u0 = (target[0][0] - targetTopLeft[0]) / targetResolution;
|
|
4473
|
+
const v0 = -(target[0][1] - targetTopLeft[1]) / targetResolution;
|
|
4474
|
+
const u1 = (target[1][0] - targetTopLeft[0]) / targetResolution;
|
|
4475
|
+
const v1 = -(target[1][1] - targetTopLeft[1]) / targetResolution;
|
|
4476
|
+
const u2 = (target[2][0] - targetTopLeft[0]) / targetResolution;
|
|
4477
|
+
const v2 = -(target[2][1] - targetTopLeft[1]) / targetResolution;
|
|
4478
|
+
context.beginPath();
|
|
4479
|
+
context.moveTo(u1, v1);
|
|
4480
|
+
context.lineTo(u0, v0);
|
|
4481
|
+
context.lineTo(u2, v2);
|
|
4482
|
+
context.closePath();
|
|
4483
|
+
context.stroke();
|
|
4484
|
+
});
|
|
4485
|
+
context.restore();
|
|
4486
|
+
}
|
|
4487
|
+
return context.canvas;
|
|
4488
|
+
}
|
|
4489
|
+
|
|
4490
|
+
// node_modules/ol/reproj/Triangulation.js
|
|
4491
|
+
init_dirname();
|
|
4492
|
+
init_buffer();
|
|
4493
|
+
init_process();
|
|
4494
|
+
var MAX_SUBDIVISION = 10;
|
|
4495
|
+
var MAX_TRIANGLE_WIDTH = 0.25;
|
|
4496
|
+
var Triangulation = class {
|
|
4497
|
+
/**
|
|
4498
|
+
* @param {import("../proj/Projection.js").default} sourceProj Source projection.
|
|
4499
|
+
* @param {import("../proj/Projection.js").default} targetProj Target projection.
|
|
4500
|
+
* @param {import("../extent.js").Extent} targetExtent Target extent to triangulate.
|
|
4501
|
+
* @param {import("../extent.js").Extent} maxSourceExtent Maximal source extent that can be used.
|
|
4502
|
+
* @param {number} errorThreshold Acceptable error (in source units).
|
|
4503
|
+
* @param {?number} destinationResolution The (optional) resolution of the destination.
|
|
4504
|
+
* @param {import("../transform.js").Transform} [sourceMatrix] Source transform matrix.
|
|
4505
|
+
*/
|
|
4506
|
+
constructor(sourceProj, targetProj, targetExtent, maxSourceExtent, errorThreshold, destinationResolution, sourceMatrix) {
|
|
4507
|
+
this.sourceProj_ = sourceProj;
|
|
4508
|
+
this.targetProj_ = targetProj;
|
|
4509
|
+
let transformInvCache = {};
|
|
4510
|
+
const transformInv = sourceMatrix ? createTransformFromCoordinateTransform(
|
|
4511
|
+
(input) => apply(
|
|
4512
|
+
sourceMatrix,
|
|
4513
|
+
transform(input, this.targetProj_, this.sourceProj_)
|
|
4514
|
+
)
|
|
4515
|
+
) : getTransform(this.targetProj_, this.sourceProj_);
|
|
4516
|
+
this.transformInv_ = function(c) {
|
|
4517
|
+
const key = c[0] + "/" + c[1];
|
|
4518
|
+
if (!transformInvCache[key]) {
|
|
4519
|
+
transformInvCache[key] = transformInv(c);
|
|
4520
|
+
}
|
|
4521
|
+
return transformInvCache[key];
|
|
4522
|
+
};
|
|
4523
|
+
this.maxSourceExtent_ = maxSourceExtent;
|
|
4524
|
+
this.errorThresholdSquared_ = errorThreshold * errorThreshold;
|
|
4525
|
+
this.triangles_ = [];
|
|
4526
|
+
this.wrapsXInSource_ = false;
|
|
4527
|
+
this.canWrapXInSource_ = this.sourceProj_.canWrapX() && !!maxSourceExtent && !!this.sourceProj_.getExtent() && getWidth(maxSourceExtent) >= getWidth(this.sourceProj_.getExtent());
|
|
4528
|
+
this.sourceWorldWidth_ = this.sourceProj_.getExtent() ? getWidth(this.sourceProj_.getExtent()) : null;
|
|
4529
|
+
this.targetWorldWidth_ = this.targetProj_.getExtent() ? getWidth(this.targetProj_.getExtent()) : null;
|
|
4530
|
+
const destinationTopLeft = getTopLeft(targetExtent);
|
|
4531
|
+
const destinationTopRight = getTopRight(targetExtent);
|
|
4532
|
+
const destinationBottomRight = getBottomRight(targetExtent);
|
|
4533
|
+
const destinationBottomLeft = getBottomLeft(targetExtent);
|
|
4534
|
+
const sourceTopLeft = this.transformInv_(destinationTopLeft);
|
|
4535
|
+
const sourceTopRight = this.transformInv_(destinationTopRight);
|
|
4536
|
+
const sourceBottomRight = this.transformInv_(destinationBottomRight);
|
|
4537
|
+
const sourceBottomLeft = this.transformInv_(destinationBottomLeft);
|
|
4538
|
+
const maxSubdivision = MAX_SUBDIVISION + (destinationResolution ? Math.max(
|
|
4539
|
+
0,
|
|
4540
|
+
Math.ceil(
|
|
4541
|
+
Math.log2(
|
|
4542
|
+
getArea(targetExtent) / (destinationResolution * destinationResolution * 256 * 256)
|
|
4543
|
+
)
|
|
4544
|
+
)
|
|
4545
|
+
) : 0);
|
|
4546
|
+
this.addQuad_(
|
|
4547
|
+
destinationTopLeft,
|
|
4548
|
+
destinationTopRight,
|
|
4549
|
+
destinationBottomRight,
|
|
4550
|
+
destinationBottomLeft,
|
|
4551
|
+
sourceTopLeft,
|
|
4552
|
+
sourceTopRight,
|
|
4553
|
+
sourceBottomRight,
|
|
4554
|
+
sourceBottomLeft,
|
|
4555
|
+
maxSubdivision
|
|
4556
|
+
);
|
|
4557
|
+
if (this.wrapsXInSource_) {
|
|
4558
|
+
let leftBound = Infinity;
|
|
4559
|
+
this.triangles_.forEach(function(triangle, i, arr) {
|
|
4560
|
+
leftBound = Math.min(
|
|
4561
|
+
leftBound,
|
|
4562
|
+
triangle.source[0][0],
|
|
4563
|
+
triangle.source[1][0],
|
|
4564
|
+
triangle.source[2][0]
|
|
4565
|
+
);
|
|
4566
|
+
});
|
|
4567
|
+
this.triangles_.forEach((triangle) => {
|
|
4568
|
+
if (Math.max(
|
|
4569
|
+
triangle.source[0][0],
|
|
4570
|
+
triangle.source[1][0],
|
|
4571
|
+
triangle.source[2][0]
|
|
4572
|
+
) - leftBound > this.sourceWorldWidth_ / 2) {
|
|
4573
|
+
const newTriangle = [
|
|
4574
|
+
[triangle.source[0][0], triangle.source[0][1]],
|
|
4575
|
+
[triangle.source[1][0], triangle.source[1][1]],
|
|
4576
|
+
[triangle.source[2][0], triangle.source[2][1]]
|
|
4577
|
+
];
|
|
4578
|
+
if (newTriangle[0][0] - leftBound > this.sourceWorldWidth_ / 2) {
|
|
4579
|
+
newTriangle[0][0] -= this.sourceWorldWidth_;
|
|
4580
|
+
}
|
|
4581
|
+
if (newTriangle[1][0] - leftBound > this.sourceWorldWidth_ / 2) {
|
|
4582
|
+
newTriangle[1][0] -= this.sourceWorldWidth_;
|
|
4583
|
+
}
|
|
4584
|
+
if (newTriangle[2][0] - leftBound > this.sourceWorldWidth_ / 2) {
|
|
4585
|
+
newTriangle[2][0] -= this.sourceWorldWidth_;
|
|
4586
|
+
}
|
|
4587
|
+
const minX = Math.min(
|
|
4588
|
+
newTriangle[0][0],
|
|
4589
|
+
newTriangle[1][0],
|
|
4590
|
+
newTriangle[2][0]
|
|
4591
|
+
);
|
|
4592
|
+
const maxX = Math.max(
|
|
4593
|
+
newTriangle[0][0],
|
|
4594
|
+
newTriangle[1][0],
|
|
4595
|
+
newTriangle[2][0]
|
|
4596
|
+
);
|
|
4597
|
+
if (maxX - minX < this.sourceWorldWidth_ / 2) {
|
|
4598
|
+
triangle.source = newTriangle;
|
|
4599
|
+
}
|
|
4600
|
+
}
|
|
4601
|
+
});
|
|
4602
|
+
}
|
|
4603
|
+
transformInvCache = {};
|
|
4604
|
+
}
|
|
4605
|
+
/**
|
|
4606
|
+
* Adds triangle to the triangulation.
|
|
4607
|
+
* @param {import("../coordinate.js").Coordinate} a The target a coordinate.
|
|
4608
|
+
* @param {import("../coordinate.js").Coordinate} b The target b coordinate.
|
|
4609
|
+
* @param {import("../coordinate.js").Coordinate} c The target c coordinate.
|
|
4610
|
+
* @param {import("../coordinate.js").Coordinate} aSrc The source a coordinate.
|
|
4611
|
+
* @param {import("../coordinate.js").Coordinate} bSrc The source b coordinate.
|
|
4612
|
+
* @param {import("../coordinate.js").Coordinate} cSrc The source c coordinate.
|
|
4613
|
+
* @private
|
|
4614
|
+
*/
|
|
4615
|
+
addTriangle_(a, b, c, aSrc, bSrc, cSrc) {
|
|
4616
|
+
this.triangles_.push({
|
|
4617
|
+
source: [aSrc, bSrc, cSrc],
|
|
4618
|
+
target: [a, b, c]
|
|
4619
|
+
});
|
|
4620
|
+
}
|
|
4621
|
+
/**
|
|
4622
|
+
* Adds quad (points in clock-wise order) to the triangulation
|
|
4623
|
+
* (and reprojects the vertices) if valid.
|
|
4624
|
+
* Performs quad subdivision if needed to increase precision.
|
|
4625
|
+
*
|
|
4626
|
+
* @param {import("../coordinate.js").Coordinate} a The target a coordinate.
|
|
4627
|
+
* @param {import("../coordinate.js").Coordinate} b The target b coordinate.
|
|
4628
|
+
* @param {import("../coordinate.js").Coordinate} c The target c coordinate.
|
|
4629
|
+
* @param {import("../coordinate.js").Coordinate} d The target d coordinate.
|
|
4630
|
+
* @param {import("../coordinate.js").Coordinate} aSrc The source a coordinate.
|
|
4631
|
+
* @param {import("../coordinate.js").Coordinate} bSrc The source b coordinate.
|
|
4632
|
+
* @param {import("../coordinate.js").Coordinate} cSrc The source c coordinate.
|
|
4633
|
+
* @param {import("../coordinate.js").Coordinate} dSrc The source d coordinate.
|
|
4634
|
+
* @param {number} maxSubdivision Maximal allowed subdivision of the quad.
|
|
4635
|
+
* @private
|
|
4636
|
+
*/
|
|
4637
|
+
addQuad_(a, b, c, d, aSrc, bSrc, cSrc, dSrc, maxSubdivision) {
|
|
4638
|
+
const sourceQuadExtent = boundingExtent([aSrc, bSrc, cSrc, dSrc]);
|
|
4639
|
+
const sourceCoverageX = this.sourceWorldWidth_ ? getWidth(sourceQuadExtent) / this.sourceWorldWidth_ : null;
|
|
4640
|
+
const sourceWorldWidth = (
|
|
4641
|
+
/** @type {number} */
|
|
4642
|
+
this.sourceWorldWidth_
|
|
4643
|
+
);
|
|
4644
|
+
const wrapsX = this.sourceProj_.canWrapX() && sourceCoverageX > 0.5 && sourceCoverageX < 1;
|
|
4645
|
+
let needsSubdivision = false;
|
|
4646
|
+
if (maxSubdivision > 0) {
|
|
4647
|
+
if (this.targetProj_.isGlobal() && this.targetWorldWidth_) {
|
|
4648
|
+
const targetQuadExtent = boundingExtent([a, b, c, d]);
|
|
4649
|
+
const targetCoverageX = getWidth(targetQuadExtent) / this.targetWorldWidth_;
|
|
4650
|
+
needsSubdivision = targetCoverageX > MAX_TRIANGLE_WIDTH || needsSubdivision;
|
|
4651
|
+
}
|
|
4652
|
+
if (!wrapsX && this.sourceProj_.isGlobal() && sourceCoverageX) {
|
|
4653
|
+
needsSubdivision = sourceCoverageX > MAX_TRIANGLE_WIDTH || needsSubdivision;
|
|
4654
|
+
}
|
|
4655
|
+
}
|
|
4656
|
+
if (!needsSubdivision && this.maxSourceExtent_) {
|
|
4657
|
+
if (isFinite(sourceQuadExtent[0]) && isFinite(sourceQuadExtent[1]) && isFinite(sourceQuadExtent[2]) && isFinite(sourceQuadExtent[3])) {
|
|
4658
|
+
if (!intersects(sourceQuadExtent, this.maxSourceExtent_)) {
|
|
4659
|
+
return;
|
|
4660
|
+
}
|
|
4661
|
+
}
|
|
4662
|
+
}
|
|
4663
|
+
let isNotFinite = 0;
|
|
4664
|
+
if (!needsSubdivision) {
|
|
4665
|
+
if (!isFinite(aSrc[0]) || !isFinite(aSrc[1]) || !isFinite(bSrc[0]) || !isFinite(bSrc[1]) || !isFinite(cSrc[0]) || !isFinite(cSrc[1]) || !isFinite(dSrc[0]) || !isFinite(dSrc[1])) {
|
|
4666
|
+
if (maxSubdivision > 0) {
|
|
4667
|
+
needsSubdivision = true;
|
|
4668
|
+
} else {
|
|
4669
|
+
isNotFinite = (!isFinite(aSrc[0]) || !isFinite(aSrc[1]) ? 8 : 0) + (!isFinite(bSrc[0]) || !isFinite(bSrc[1]) ? 4 : 0) + (!isFinite(cSrc[0]) || !isFinite(cSrc[1]) ? 2 : 0) + (!isFinite(dSrc[0]) || !isFinite(dSrc[1]) ? 1 : 0);
|
|
4670
|
+
if (isNotFinite != 1 && isNotFinite != 2 && isNotFinite != 4 && isNotFinite != 8) {
|
|
4671
|
+
return;
|
|
4672
|
+
}
|
|
4673
|
+
}
|
|
4674
|
+
}
|
|
4675
|
+
}
|
|
4676
|
+
if (maxSubdivision > 0) {
|
|
4677
|
+
if (!needsSubdivision) {
|
|
4678
|
+
const center = [(a[0] + c[0]) / 2, (a[1] + c[1]) / 2];
|
|
4679
|
+
const centerSrc = this.transformInv_(center);
|
|
4680
|
+
let dx;
|
|
4681
|
+
if (wrapsX) {
|
|
4682
|
+
const centerSrcEstimX = (modulo(aSrc[0], sourceWorldWidth) + modulo(cSrc[0], sourceWorldWidth)) / 2;
|
|
4683
|
+
dx = centerSrcEstimX - modulo(centerSrc[0], sourceWorldWidth);
|
|
4684
|
+
} else {
|
|
4685
|
+
dx = (aSrc[0] + cSrc[0]) / 2 - centerSrc[0];
|
|
4686
|
+
}
|
|
4687
|
+
const dy = (aSrc[1] + cSrc[1]) / 2 - centerSrc[1];
|
|
4688
|
+
const centerSrcErrorSquared = dx * dx + dy * dy;
|
|
4689
|
+
needsSubdivision = centerSrcErrorSquared > this.errorThresholdSquared_;
|
|
4690
|
+
}
|
|
4691
|
+
if (needsSubdivision) {
|
|
4692
|
+
if (Math.abs(a[0] - c[0]) <= Math.abs(a[1] - c[1])) {
|
|
4693
|
+
const bc = [(b[0] + c[0]) / 2, (b[1] + c[1]) / 2];
|
|
4694
|
+
const bcSrc = this.transformInv_(bc);
|
|
4695
|
+
const da = [(d[0] + a[0]) / 2, (d[1] + a[1]) / 2];
|
|
4696
|
+
const daSrc = this.transformInv_(da);
|
|
4697
|
+
this.addQuad_(
|
|
4698
|
+
a,
|
|
4699
|
+
b,
|
|
4700
|
+
bc,
|
|
4701
|
+
da,
|
|
4702
|
+
aSrc,
|
|
4703
|
+
bSrc,
|
|
4704
|
+
bcSrc,
|
|
4705
|
+
daSrc,
|
|
4706
|
+
maxSubdivision - 1
|
|
4707
|
+
);
|
|
4708
|
+
this.addQuad_(
|
|
4709
|
+
da,
|
|
4710
|
+
bc,
|
|
4711
|
+
c,
|
|
4712
|
+
d,
|
|
4713
|
+
daSrc,
|
|
4714
|
+
bcSrc,
|
|
4715
|
+
cSrc,
|
|
4716
|
+
dSrc,
|
|
4717
|
+
maxSubdivision - 1
|
|
4718
|
+
);
|
|
4719
|
+
} else {
|
|
4720
|
+
const ab = [(a[0] + b[0]) / 2, (a[1] + b[1]) / 2];
|
|
4721
|
+
const abSrc = this.transformInv_(ab);
|
|
4722
|
+
const cd = [(c[0] + d[0]) / 2, (c[1] + d[1]) / 2];
|
|
4723
|
+
const cdSrc = this.transformInv_(cd);
|
|
4724
|
+
this.addQuad_(
|
|
4725
|
+
a,
|
|
4726
|
+
ab,
|
|
4727
|
+
cd,
|
|
4728
|
+
d,
|
|
4729
|
+
aSrc,
|
|
4730
|
+
abSrc,
|
|
4731
|
+
cdSrc,
|
|
4732
|
+
dSrc,
|
|
4733
|
+
maxSubdivision - 1
|
|
4734
|
+
);
|
|
4735
|
+
this.addQuad_(
|
|
4736
|
+
ab,
|
|
4737
|
+
b,
|
|
4738
|
+
c,
|
|
4739
|
+
cd,
|
|
4740
|
+
abSrc,
|
|
4741
|
+
bSrc,
|
|
4742
|
+
cSrc,
|
|
4743
|
+
cdSrc,
|
|
4744
|
+
maxSubdivision - 1
|
|
4745
|
+
);
|
|
4746
|
+
}
|
|
4747
|
+
return;
|
|
4748
|
+
}
|
|
4749
|
+
}
|
|
4750
|
+
if (wrapsX) {
|
|
4751
|
+
if (!this.canWrapXInSource_) {
|
|
4752
|
+
return;
|
|
4753
|
+
}
|
|
4754
|
+
this.wrapsXInSource_ = true;
|
|
4755
|
+
}
|
|
4756
|
+
if ((isNotFinite & 11) == 0) {
|
|
4757
|
+
this.addTriangle_(a, c, d, aSrc, cSrc, dSrc);
|
|
4758
|
+
}
|
|
4759
|
+
if ((isNotFinite & 14) == 0) {
|
|
4760
|
+
this.addTriangle_(a, c, b, aSrc, cSrc, bSrc);
|
|
4761
|
+
}
|
|
4762
|
+
if (isNotFinite) {
|
|
4763
|
+
if ((isNotFinite & 13) == 0) {
|
|
4764
|
+
this.addTriangle_(b, d, a, bSrc, dSrc, aSrc);
|
|
4765
|
+
}
|
|
4766
|
+
if ((isNotFinite & 7) == 0) {
|
|
4767
|
+
this.addTriangle_(b, d, c, bSrc, dSrc, cSrc);
|
|
4768
|
+
}
|
|
4769
|
+
}
|
|
4770
|
+
}
|
|
4771
|
+
/**
|
|
4772
|
+
* Calculates extent of the `source` coordinates from all the triangles.
|
|
4773
|
+
*
|
|
4774
|
+
* @return {import("../extent.js").Extent} Calculated extent.
|
|
4775
|
+
*/
|
|
4776
|
+
calculateSourceExtent() {
|
|
4777
|
+
const extent = createEmpty();
|
|
4778
|
+
this.triangles_.forEach(function(triangle, i, arr) {
|
|
4779
|
+
const src = triangle.source;
|
|
4780
|
+
extendCoordinate(extent, src[0]);
|
|
4781
|
+
extendCoordinate(extent, src[1]);
|
|
4782
|
+
extendCoordinate(extent, src[2]);
|
|
4783
|
+
});
|
|
4784
|
+
return extent;
|
|
4785
|
+
}
|
|
4786
|
+
/**
|
|
4787
|
+
* @return {Array<Triangle>} Array of the calculated triangles.
|
|
4788
|
+
*/
|
|
4789
|
+
getTriangles() {
|
|
4790
|
+
return this.triangles_;
|
|
4791
|
+
}
|
|
4792
|
+
};
|
|
4793
|
+
var Triangulation_default = Triangulation;
|
|
4794
|
+
|
|
4795
|
+
// node_modules/ol/reproj/common.js
|
|
4796
|
+
init_dirname();
|
|
4797
|
+
init_buffer();
|
|
4798
|
+
init_process();
|
|
4799
|
+
var ERROR_THRESHOLD = 0.5;
|
|
4800
|
+
|
|
4801
|
+
export {
|
|
4802
|
+
ObjectEventType_default,
|
|
4803
|
+
EventType_default,
|
|
4804
|
+
Disposable_default,
|
|
4805
|
+
binarySearch,
|
|
4806
|
+
ascending,
|
|
4807
|
+
descending,
|
|
4808
|
+
linearFindNearest,
|
|
4809
|
+
reverseSubArray,
|
|
4810
|
+
extend2 as extend,
|
|
4811
|
+
equals3 as equals,
|
|
4812
|
+
TRUE,
|
|
4813
|
+
FALSE,
|
|
4814
|
+
VOID,
|
|
4815
|
+
memoizeOne,
|
|
4816
|
+
toPromise,
|
|
4817
|
+
clear,
|
|
4818
|
+
isEmpty2 as isEmpty,
|
|
4819
|
+
Event_default,
|
|
4820
|
+
Target_default,
|
|
4821
|
+
listen,
|
|
4822
|
+
listenOnce,
|
|
4823
|
+
unlistenByKey,
|
|
4824
|
+
Observable_default,
|
|
4825
|
+
abstract,
|
|
4826
|
+
getUid,
|
|
4827
|
+
Object_default,
|
|
4828
|
+
assert,
|
|
4829
|
+
Relationship_default,
|
|
4830
|
+
boundingExtent,
|
|
4831
|
+
buffer,
|
|
4832
|
+
clone,
|
|
4833
|
+
closestSquaredDistanceXY,
|
|
4834
|
+
containsCoordinate,
|
|
4835
|
+
containsExtent,
|
|
4836
|
+
containsXY,
|
|
4837
|
+
coordinateRelationship,
|
|
4838
|
+
createEmpty,
|
|
4839
|
+
createOrUpdate,
|
|
4840
|
+
createOrUpdateEmpty,
|
|
4841
|
+
createOrUpdateFromCoordinate,
|
|
4842
|
+
createOrUpdateFromFlatCoordinates,
|
|
4843
|
+
equals as equals2,
|
|
4844
|
+
approximatelyEquals,
|
|
4845
|
+
extend as extend2,
|
|
4846
|
+
extendCoordinate,
|
|
4847
|
+
forEachCorner,
|
|
4848
|
+
getArea,
|
|
4849
|
+
getBottomLeft,
|
|
4850
|
+
getBottomRight,
|
|
4851
|
+
getCenter,
|
|
4852
|
+
getForViewAndSize,
|
|
4853
|
+
getRotatedViewport,
|
|
4854
|
+
getHeight,
|
|
4855
|
+
getIntersection,
|
|
4856
|
+
getTopLeft,
|
|
4857
|
+
getTopRight,
|
|
4858
|
+
getWidth,
|
|
4859
|
+
intersects,
|
|
4860
|
+
isEmpty as isEmpty2,
|
|
4861
|
+
returnOrUpdate,
|
|
4862
|
+
applyTransform,
|
|
4863
|
+
wrapX,
|
|
4864
|
+
wrapAndSliceX,
|
|
4865
|
+
clamp,
|
|
4866
|
+
squaredSegmentDistance,
|
|
4867
|
+
squaredDistance,
|
|
4868
|
+
toRadians,
|
|
4869
|
+
modulo,
|
|
4870
|
+
lerp,
|
|
4871
|
+
toFixed,
|
|
4872
|
+
getLength,
|
|
4873
|
+
warn,
|
|
4874
|
+
error,
|
|
4875
|
+
add,
|
|
4876
|
+
degreesToStringHDMS,
|
|
4877
|
+
equals2 as equals3,
|
|
4878
|
+
rotate,
|
|
4879
|
+
scale,
|
|
4880
|
+
squaredDistance2,
|
|
4881
|
+
distance,
|
|
4882
|
+
wrapX2,
|
|
4883
|
+
fromCode,
|
|
4884
|
+
METERS_PER_UNIT,
|
|
4885
|
+
Projection_default,
|
|
4886
|
+
disableCoordinateWarning,
|
|
4887
|
+
get3 as get,
|
|
4888
|
+
createProjection,
|
|
4889
|
+
createTransformFromCoordinateTransform,
|
|
4890
|
+
toLonLat2 as toLonLat,
|
|
4891
|
+
equivalent,
|
|
4892
|
+
getTransformFromProjections,
|
|
4893
|
+
getTransform,
|
|
4894
|
+
transformExtent,
|
|
4895
|
+
getUserProjection,
|
|
4896
|
+
toUserCoordinate,
|
|
4897
|
+
fromUserCoordinate,
|
|
4898
|
+
toUserExtent,
|
|
4899
|
+
fromUserExtent,
|
|
4900
|
+
toUserResolution,
|
|
4901
|
+
create,
|
|
4902
|
+
reset,
|
|
4903
|
+
multiply,
|
|
4904
|
+
setFromArray,
|
|
4905
|
+
apply,
|
|
4906
|
+
rotate2,
|
|
4907
|
+
scale2,
|
|
4908
|
+
translate,
|
|
4909
|
+
compose,
|
|
4910
|
+
makeInverse,
|
|
4911
|
+
toString,
|
|
4912
|
+
equivalent2,
|
|
4913
|
+
linearRingsContainsXY,
|
|
4914
|
+
linearRingssContainsXY,
|
|
4915
|
+
forEach,
|
|
4916
|
+
intersectsLineString,
|
|
4917
|
+
intersectsLineStringArray,
|
|
4918
|
+
intersectsLinearRingArray,
|
|
4919
|
+
intersectsLinearRingMultiArray,
|
|
4920
|
+
SAFARI_BUG_237906,
|
|
4921
|
+
WEBKIT,
|
|
4922
|
+
MAC,
|
|
4923
|
+
DEVICE_PIXEL_RATIO,
|
|
4924
|
+
WORKER_OFFSCREEN_CANVAS,
|
|
4925
|
+
IMAGE_DECODE,
|
|
4926
|
+
PASSIVE_EVENT_LISTENERS,
|
|
4927
|
+
createCanvasContext2D,
|
|
4928
|
+
getSharedCanvasContext2D,
|
|
4929
|
+
releaseCanvas,
|
|
4930
|
+
replaceNode,
|
|
4931
|
+
removeChildren,
|
|
4932
|
+
replaceChildren,
|
|
4933
|
+
Source_default,
|
|
4934
|
+
hasArea,
|
|
4935
|
+
toSize,
|
|
4936
|
+
easeOut,
|
|
4937
|
+
inAndOut,
|
|
4938
|
+
linear,
|
|
4939
|
+
DEFAULT_TILE_SIZE,
|
|
4940
|
+
TileState_default,
|
|
4941
|
+
Tile_default,
|
|
4942
|
+
TileRange_default,
|
|
4943
|
+
create2,
|
|
4944
|
+
fromTransform,
|
|
4945
|
+
orthographic,
|
|
4946
|
+
scale4 as scale3,
|
|
4947
|
+
translate2,
|
|
4948
|
+
translation,
|
|
4949
|
+
asImageLike,
|
|
4950
|
+
asArrayLike,
|
|
4951
|
+
toArray,
|
|
4952
|
+
DataTile_default,
|
|
4953
|
+
canvasPool,
|
|
4954
|
+
calculateSourceExtentResolution,
|
|
4955
|
+
render,
|
|
4956
|
+
Triangulation_default,
|
|
4957
|
+
ERROR_THRESHOLD,
|
|
4958
|
+
createOrUpdate3 as createOrUpdate2,
|
|
4959
|
+
getKey,
|
|
4960
|
+
hash,
|
|
4961
|
+
TileGrid_default,
|
|
4962
|
+
getForProjection,
|
|
4963
|
+
createXYZ,
|
|
4964
|
+
extentFromProjection,
|
|
4965
|
+
TileSourceEvent,
|
|
4966
|
+
Tile_default2,
|
|
4967
|
+
TileEventType_default
|
|
4968
|
+
};
|