@nasa-terra/components 0.0.197 → 0.0.199
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/cdn/chunks/GeoTIFF.VXDS234A.js +20754 -0
- package/cdn/chunks/chunk.2EWZDAYT.js +29 -0
- package/cdn/chunks/chunk.2JJELSL5.js +47 -0
- package/cdn/chunks/chunk.2T337UTK.js +19 -0
- package/cdn/chunks/chunk.2XG73ITG.js +357 -0
- package/cdn/chunks/chunk.33GFCE5N.js +19 -0
- package/cdn/chunks/chunk.3JXVH2NE.js +377 -0
- package/cdn/chunks/chunk.3VUC5O5G.js +33 -0
- package/cdn/chunks/chunk.3XZ3WU77.js +35 -0
- package/cdn/chunks/chunk.3Y7HZ5CS.js +110 -0
- package/cdn/chunks/chunk.44VCJ6SW.js +29 -0
- package/cdn/chunks/chunk.4HXIWAKE.js +29 -0
- package/cdn/chunks/chunk.4KHGJTYG.js +310 -0
- package/cdn/chunks/chunk.4LAXKCHJ.js +19 -0
- package/cdn/chunks/chunk.4N76TU2N.js +60 -0
- package/cdn/chunks/chunk.55WRSCJY.js +978 -0
- package/cdn/chunks/chunk.573DB434.js +39 -0
- package/cdn/chunks/chunk.5BH3C4GN.js +19 -0
- package/cdn/chunks/chunk.5BVN7II7.js +19 -0
- package/cdn/chunks/chunk.5DLA37YX.js +19 -0
- package/cdn/chunks/chunk.5LFN6KT3.js +416 -0
- package/cdn/chunks/chunk.5MB6A5RU.js +19 -0
- package/cdn/chunks/chunk.5ZT2BS3I.js +60 -0
- package/cdn/chunks/chunk.66IWKBC6.js +364 -0
- package/cdn/chunks/chunk.6D2IDMCW.js +106 -0
- package/cdn/chunks/chunk.6JG52BSF.js +35 -0
- package/cdn/chunks/chunk.6O7XOHAP.js +32 -0
- package/cdn/chunks/chunk.6Z7GRBWL.js +277 -0
- package/cdn/chunks/chunk.76A5M5WG.js +33 -0
- package/cdn/chunks/chunk.7BSMV3XV.js +36 -0
- package/cdn/chunks/chunk.7C3LJSTD.js +19 -0
- package/cdn/chunks/chunk.7G65ACMK.js +19 -0
- package/cdn/chunks/chunk.7GIH3FHL.js +29 -0
- package/cdn/chunks/chunk.7KYOVGMU.js +32 -0
- package/cdn/chunks/chunk.7UCNMWYE.js +1975 -0
- package/cdn/chunks/chunk.7Y2VDUYC.js +62 -0
- package/cdn/chunks/chunk.ABFNT6U4.js +32 -0
- package/cdn/chunks/chunk.ADFH5ULU.js +29 -0
- package/cdn/chunks/chunk.ADHCB3BO.js +538 -0
- package/cdn/chunks/chunk.AH7EQF7K.js +29 -0
- package/cdn/chunks/chunk.AO7RPFJO.js +19 -0
- package/cdn/chunks/chunk.AQB2ML3I.js +537 -0
- package/cdn/chunks/chunk.ASJLND3B.js +77 -0
- package/cdn/chunks/chunk.AYFA4HPN.js +4735 -0
- package/cdn/chunks/chunk.B3ADFXJY.js +32 -0
- package/cdn/chunks/chunk.B3GLOTII.js +92 -0
- package/cdn/chunks/chunk.B6YC7R6P.js +29 -0
- package/cdn/chunks/chunk.BFDVUZHC.js +35 -0
- package/cdn/chunks/chunk.BJRAF4ZX.js +19 -0
- package/cdn/chunks/chunk.BNGXQNNQ.js +29 -0
- package/cdn/chunks/chunk.BOZ3VKJO.js +19 -0
- package/cdn/chunks/chunk.BW44PXWN.js +657 -0
- package/cdn/chunks/chunk.COHRXEHA.js +29 -0
- package/cdn/chunks/chunk.CRQDFPSH.js +37 -0
- package/cdn/chunks/chunk.CX65AHTW.js +104 -0
- package/cdn/chunks/chunk.CX6JSAGB.js +19 -0
- package/cdn/chunks/chunk.DEHDGGWE.js +19 -0
- package/cdn/chunks/chunk.DMULXFKY.js +32 -0
- package/cdn/chunks/chunk.DO3V7V6I.js +259 -0
- package/cdn/chunks/chunk.DYRKSW2X.js +99 -0
- package/cdn/chunks/chunk.E4ONM7EQ.js +224 -0
- package/cdn/chunks/chunk.E6L6YVTU.js +19 -0
- package/cdn/chunks/chunk.ECR75TPC.js +19 -0
- package/cdn/chunks/chunk.EHRAILYE.js +19 -0
- package/cdn/chunks/chunk.EHVXLTCB.js +190 -0
- package/cdn/chunks/chunk.EKXY4PGP.js +29 -0
- package/cdn/chunks/chunk.F7QE3QNK.js +93 -0
- package/cdn/chunks/chunk.FI4YBHHD.js +1339 -0
- package/cdn/chunks/chunk.FIREC5CC.js +478 -0
- package/cdn/chunks/chunk.FQ7GYAM6.js +450 -0
- package/cdn/chunks/chunk.FQBIIKY5.js +19 -0
- package/cdn/chunks/chunk.FSGSFI2L.js +162 -0
- package/cdn/chunks/chunk.G7AGZVJM.js +32 -0
- package/cdn/chunks/chunk.GA4QBBRX.js +19 -0
- package/cdn/chunks/chunk.GEVOOPOP.js +32 -0
- package/cdn/chunks/chunk.GF56J2LC.js +29 -0
- package/cdn/chunks/chunk.GGODQ75Z.js +359 -0
- package/cdn/chunks/chunk.GP5CKNVX.js +19 -0
- package/cdn/chunks/chunk.GTZLRBU6.js +15 -0
- package/cdn/chunks/chunk.GWUGCYFL.js +19 -0
- package/cdn/chunks/chunk.H6KRH5P2.js +17685 -0
- package/cdn/chunks/chunk.HCUUZMUR.js +610 -0
- package/cdn/chunks/chunk.HETFTQ32.js +36 -0
- package/cdn/chunks/chunk.HFQ4URSA.js +29 -0
- package/cdn/chunks/chunk.HHFSBJ5G.js +19 -0
- package/cdn/chunks/chunk.HJHZJEFY.js +19 -0
- package/cdn/chunks/chunk.HQL5JPO6.js +29 -0
- package/cdn/chunks/chunk.HRRDY7XJ.js +19 -0
- package/cdn/chunks/chunk.HT4VXYXY.js +37 -0
- package/cdn/chunks/chunk.HUVHJ5KI.js +19 -0
- package/cdn/chunks/chunk.HVDW2G5B.js +19 -0
- package/cdn/chunks/chunk.HVKGLK5J.js +78 -0
- package/cdn/chunks/chunk.I4B5GFUI.js +30 -0
- package/cdn/chunks/chunk.I4GAKXVS.js +82 -0
- package/cdn/chunks/chunk.I74CWXDT.js +29 -0
- package/cdn/chunks/chunk.IJRMB4PM.js +19 -0
- package/cdn/chunks/chunk.IK2SGPIW.js +5463 -0
- package/cdn/chunks/chunk.IYBWOV2C.js +1660 -0
- package/cdn/chunks/chunk.J52GFLCR.js +110 -0
- package/cdn/chunks/chunk.JHM6GLII.js +599 -0
- package/cdn/chunks/chunk.JJRD2OTY.js +293 -0
- package/cdn/chunks/chunk.JTRGBBGG.js +29 -0
- package/cdn/chunks/chunk.JXSQUWZZ.js +19 -0
- package/cdn/chunks/chunk.JYF5D5R5.js +19 -0
- package/cdn/chunks/chunk.K4QMVYIR.js +443 -0
- package/cdn/chunks/chunk.K56RZQTE.js +155 -0
- package/cdn/chunks/chunk.KB3G2WCI.js +34 -0
- package/cdn/chunks/chunk.KF4FXYKE.js +19 -0
- package/cdn/chunks/chunk.KHDL2CAQ.js +230 -0
- package/cdn/chunks/chunk.KHRT3JCC.js +29 -0
- package/cdn/chunks/chunk.KPSIXCYD.js +29 -0
- package/cdn/chunks/chunk.KX7SACHH.js +68 -0
- package/cdn/chunks/chunk.KZCBK6S4.js +19 -0
- package/cdn/chunks/chunk.L3TQOLJO.js +74 -0
- package/cdn/chunks/chunk.L67UJNXB.js +41 -0
- package/cdn/chunks/chunk.L77N7C7E.js +171 -0
- package/cdn/chunks/chunk.LGRZMWVK.js +35 -0
- package/cdn/chunks/chunk.LIPFUNWP.js +38 -0
- package/cdn/chunks/chunk.LRZIT4M2.js +157 -0
- package/cdn/chunks/chunk.LWZNG7WV.js +29 -0
- package/cdn/chunks/chunk.LXQGTI2B.js +32 -0
- package/cdn/chunks/chunk.M43ZJHCX.js +33 -0
- package/cdn/chunks/chunk.M6QQY2ST.js +17603 -0
- package/cdn/chunks/chunk.MAHUWVEN.js +279 -0
- package/cdn/chunks/chunk.MLJM2THR.js +19 -0
- package/cdn/chunks/chunk.MNP4CXLJ.js +19 -0
- package/cdn/chunks/chunk.MUXCPAHQ.js +543 -0
- package/cdn/chunks/chunk.MZKOUZD2.js +123 -0
- package/cdn/chunks/chunk.N2L7WOXF.js +29 -0
- package/cdn/chunks/chunk.N2SCVTHV.js +29 -0
- package/cdn/chunks/chunk.NCROEX7Z.js +29 -0
- package/cdn/chunks/chunk.NH4YMQJT.js +298 -0
- package/cdn/chunks/chunk.NIKJGSH5.js +19 -0
- package/cdn/chunks/chunk.NIQW247C.js +19 -0
- package/cdn/chunks/chunk.NKD2XOGT.js +33 -0
- package/cdn/chunks/chunk.NNUQZHMT.js +32 -0
- package/cdn/chunks/chunk.NQLIIDC4.js +81 -0
- package/cdn/chunks/chunk.O3E7K42P.js +278 -0
- package/cdn/chunks/chunk.O3JICBSZ.js +904 -0
- package/cdn/chunks/chunk.O6V37MUB.js +19 -0
- package/cdn/chunks/chunk.OCOILS4L.js +531 -0
- package/cdn/chunks/chunk.OO345KKC.js +19 -0
- package/cdn/chunks/chunk.P5NZ7ZES.js +19 -0
- package/cdn/chunks/chunk.PB7O3LZB.js +2713 -0
- package/cdn/chunks/chunk.PDZ25A5I.js +19 -0
- package/cdn/chunks/chunk.PF6HHPHM.js +1691 -0
- package/cdn/chunks/chunk.PHX2Z4JM.js +113 -0
- package/cdn/chunks/chunk.PIEJ3UF6.js +592 -0
- package/cdn/chunks/chunk.PJPMBXC4.js +19 -0
- package/cdn/chunks/chunk.PKAVFPZ7.js +36 -0
- package/cdn/chunks/chunk.PNEWL4NR.js +925 -0
- package/cdn/chunks/chunk.PR55CF2E.js +19 -0
- package/cdn/chunks/chunk.PVARN7ER.js +86 -0
- package/cdn/chunks/chunk.Q4B4QXYW.js +19 -0
- package/cdn/chunks/chunk.Q7FVA2QA.js +234 -0
- package/cdn/chunks/chunk.QNGVGHSM.js +616 -0
- package/cdn/chunks/chunk.QSXNN4K7.js +29 -0
- package/cdn/chunks/chunk.QU5NA6A2.js +34 -0
- package/cdn/chunks/chunk.QUXBL6PU.js +19 -0
- package/cdn/chunks/chunk.QWKEI3FC.js +49 -0
- package/cdn/chunks/chunk.RCUE3PFX.js +19 -0
- package/cdn/chunks/chunk.RGMOIMLO.js +19 -0
- package/cdn/chunks/chunk.RHKWK57F.js +32 -0
- package/cdn/chunks/chunk.RK7LHY6Q.js +1197 -0
- package/cdn/chunks/chunk.RPETTG3O.js +19 -0
- package/cdn/chunks/chunk.RYLQ7J4S.js +134 -0
- package/cdn/chunks/chunk.S43EHJMQ.js +276 -0
- package/cdn/chunks/chunk.S5FXMDJD.js +136 -0
- package/cdn/chunks/chunk.SE55TMVG.js +143 -0
- package/cdn/chunks/chunk.SPVQ3TUO.js +188 -0
- package/cdn/chunks/chunk.STAMGMYS.js +19 -0
- package/cdn/chunks/chunk.SYUADFIF.js +151 -0
- package/cdn/chunks/chunk.SZVIFQRJ.js +71 -0
- package/cdn/chunks/chunk.T47BZXNK.js +19 -0
- package/cdn/chunks/chunk.TAGA7EGX.js +348 -0
- package/cdn/chunks/chunk.TG3YYWRJ.js +672 -0
- package/cdn/chunks/chunk.TOSFVKE4.js +36 -0
- package/cdn/chunks/chunk.TTCE562V.js +29 -0
- package/cdn/chunks/chunk.TTUIBJR7.js +29 -0
- package/cdn/chunks/chunk.TXCVCIZI.js +35 -0
- package/cdn/chunks/chunk.TZQ63Z3H.js +36 -0
- package/cdn/chunks/chunk.UBVO3Z7U.js +32 -0
- package/cdn/chunks/chunk.UI5WWHT7.js +19 -0
- package/cdn/chunks/chunk.UKCY4NE5.js +33 -0
- package/cdn/chunks/chunk.UKKNHVT2.js +2546 -0
- package/cdn/chunks/chunk.URQOTCAU.js +29 -0
- package/cdn/chunks/chunk.UUUD46S3.js +1862 -0
- package/cdn/chunks/chunk.VEIJLCDU.js +29 -0
- package/cdn/chunks/chunk.VKNIBCZI.js +19 -0
- package/cdn/chunks/chunk.VRMWYJMN.js +37 -0
- package/cdn/chunks/chunk.VSLVNJ6A.js +158 -0
- package/cdn/chunks/chunk.W36EIIQD.js +19 -0
- package/cdn/chunks/chunk.W4NGS5VZ.js +29 -0
- package/cdn/chunks/chunk.W5DRTC2Y.js +19 -0
- package/cdn/chunks/chunk.W7DYWM5I.js +32 -0
- package/cdn/chunks/chunk.WEGQDDNL.js +83 -0
- package/cdn/chunks/chunk.WHARISEG.js +29 -0
- package/cdn/chunks/chunk.WHHJJOQT.js +19 -0
- package/cdn/chunks/chunk.WNFL2Q36.js +524 -0
- package/cdn/chunks/chunk.WY6BZ6AK.js +138 -0
- package/cdn/chunks/chunk.WY7ZAZXA.js +19 -0
- package/cdn/chunks/chunk.X37TJUYW.js +19 -0
- package/cdn/chunks/chunk.X5GEXAXL.js +19 -0
- package/cdn/chunks/chunk.X76WQYYW.js +19 -0
- package/cdn/chunks/chunk.XVQCMA3M.js +32 -0
- package/cdn/chunks/chunk.XWYVG7GK.js +19 -0
- package/cdn/chunks/chunk.Y66HDAOP.js +32 -0
- package/cdn/chunks/chunk.YF7FICS7.js +19 -0
- package/cdn/chunks/chunk.YHKRAHVP.js +231 -0
- package/cdn/chunks/chunk.YPKEC5IK.js +29 -0
- package/cdn/chunks/chunk.YQ4SKOIN.js +132 -0
- package/cdn/chunks/chunk.Z3RVDKOC.js +15 -0
- package/cdn/chunks/chunk.Z44HWXXJ.js +195 -0
- package/cdn/chunks/chunk.ZAARA5NN.js +29 -0
- package/cdn/chunks/chunk.ZCVWVO2H.js +266 -0
- package/cdn/chunks/chunk.ZHIZCLYJ.js +93 -0
- package/cdn/chunks/chunk.ZL336EPZ.js +631 -0
- package/cdn/chunks/chunk.ZLI235RR.js +19 -0
- package/cdn/chunks/chunk.ZRV6GVL5.js +19 -0
- package/cdn/chunks/chunk.ZS67HYGB.js +56075 -0
- package/cdn/chunks/chunk.ZSELDXE4.js +19 -0
- package/cdn/chunks/chunk.ZZUDFWQK.js +19 -0
- package/cdn/chunks/lerc.WZVXX72L.js +2097 -0
- package/cdn/components/accordion/accordion.component.js +5 -5
- package/cdn/components/accordion/accordion.js +6 -6
- package/cdn/components/alert/alert.component.js +3 -3
- package/cdn/components/alert/alert.js +4 -4
- package/cdn/components/avatar/avatar.component.js +7 -7
- package/cdn/components/avatar/avatar.js +8 -8
- package/cdn/components/badge/badge.component.js +2 -2
- package/cdn/components/badge/badge.js +3 -3
- package/cdn/components/banner/banner.component.js +2 -2
- package/cdn/components/banner/banner.js +3 -3
- package/cdn/components/breadcrumb/breadcrumb.component.js +2 -2
- package/cdn/components/breadcrumb/breadcrumb.js +3 -3
- package/cdn/components/breadcrumbs/breadcrumbs.component.js +2 -2
- package/cdn/components/breadcrumbs/breadcrumbs.js +3 -3
- package/cdn/components/browse-variables/browse-variables.component.js +21 -21
- package/cdn/components/browse-variables/browse-variables.js +22 -22
- package/cdn/components/button/button.component.js +7 -7
- package/cdn/components/button/button.js +8 -8
- package/cdn/components/button-group/button-group.component.js +2 -2
- package/cdn/components/button-group/button-group.js +3 -3
- package/cdn/components/caption/caption.component.js +2 -2
- package/cdn/components/caption/caption.js +3 -3
- package/cdn/components/card/card.component.js +2 -2
- package/cdn/components/card/card.js +3 -3
- package/cdn/components/checkbox/checkbox.component.js +9 -9
- package/cdn/components/checkbox/checkbox.js +10 -10
- package/cdn/components/chip/chip.component.js +2 -2
- package/cdn/components/chip/chip.js +3 -3
- package/cdn/components/combobox/combobox.component.js +7 -7
- package/cdn/components/combobox/combobox.js +8 -8
- package/cdn/components/data-access/data-access.component.js +51 -41
- package/cdn/components/data-access/data-access.js +52 -42
- package/cdn/components/data-grid/data-grid.component.js +5 -5
- package/cdn/components/data-grid/data-grid.js +6 -6
- package/cdn/components/data-rods/data-rods.component.js +60 -50
- package/cdn/components/data-rods/data-rods.js +61 -51
- package/cdn/components/data-subsetter/data-subsetter.component.d.ts +1 -0
- package/cdn/components/data-subsetter/data-subsetter.component.js +61 -51
- package/cdn/components/data-subsetter/data-subsetter.js +62 -52
- package/cdn/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
- package/cdn/components/data-subsetter-history/data-subsetter-history.component.js +63 -53
- package/cdn/components/data-subsetter-history/data-subsetter-history.js +64 -54
- package/cdn/components/date-picker/date-picker.component.js +17 -17
- package/cdn/components/date-picker/date-picker.js +18 -18
- package/cdn/components/date-range-slider/date-range-slider.component.js +2 -2
- package/cdn/components/date-range-slider/date-range-slider.js +3 -3
- package/cdn/components/dialog/dialog.component.js +9 -9
- package/cdn/components/dialog/dialog.js +10 -10
- package/cdn/components/divider/divider.component.js +2 -2
- package/cdn/components/divider/divider.js +3 -3
- package/cdn/components/dropdown/dropdown.component.js +3 -3
- package/cdn/components/dropdown/dropdown.js +4 -4
- package/cdn/components/earthdata-login/earthdata-login.component.js +16 -16
- package/cdn/components/earthdata-login/earthdata-login.js +17 -17
- package/cdn/components/file-upload/file-upload.component.js +2 -2
- package/cdn/components/file-upload/file-upload.js +3 -3
- package/cdn/components/harmony-history/harmony-history.component.js +10 -10
- package/cdn/components/harmony-history/harmony-history.js +11 -11
- package/cdn/components/icon/icon.component.js +3 -3
- package/cdn/components/icon/icon.js +4 -4
- package/cdn/components/input/input.component.js +8 -8
- package/cdn/components/input/input.js +9 -9
- package/cdn/components/loader/loader.component.js +2 -2
- package/cdn/components/loader/loader.js +3 -3
- package/cdn/components/login/login.component.d.ts +1 -0
- package/cdn/components/login/login.component.js +13 -13
- package/cdn/components/login/login.js +14 -14
- package/cdn/components/map/controls/draw-toolbar.control.js +3 -1
- package/cdn/components/map/layers/base.layer.d.ts +7 -0
- package/cdn/components/map/layers/base.layer.js +12 -0
- package/cdn/components/map/layers/borders.layer.d.ts +6 -0
- package/cdn/components/map/layers/borders.layer.js +14 -0
- package/cdn/components/map/layers/bordersStyleConfig.d.ts +29 -0
- package/cdn/components/map/layers/bordersStyleConfig.js +7 -0
- package/cdn/components/map/layers/labels.layer.d.ts +6 -0
- package/cdn/components/map/layers/labels.layer.js +14 -0
- package/cdn/components/map/layers/labelsStyleConfig.d.ts +2337 -0
- package/cdn/components/map/layers/labelsStyleConfig.js +7 -0
- package/cdn/components/map/map.component.d.ts +42 -0
- package/cdn/components/map/map.component.js +19 -9
- package/cdn/components/map/map.js +20 -10
- package/cdn/components/map/map.service.d.ts +50 -1
- package/cdn/components/map/map.service.js +14 -4
- package/cdn/components/map/map.styles.js +1 -1
- package/cdn/components/menu/menu.component.js +2 -2
- package/cdn/components/menu/menu.js +3 -3
- package/cdn/components/menu-item/menu-item.component.js +11 -11
- package/cdn/components/menu-item/menu-item.js +12 -12
- package/cdn/components/menu-item/submenu-controller.js +3 -3
- package/cdn/components/option/option.component.js +6 -6
- package/cdn/components/option/option.js +7 -7
- package/cdn/components/pagination/pagination.component.js +6 -6
- package/cdn/components/pagination/pagination.js +7 -7
- package/cdn/components/plot/plot.component.js +3 -3
- package/cdn/components/plot/plot.js +4 -4
- package/cdn/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
- package/cdn/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
- package/cdn/components/plot-toolbar/plot-toolbar.component.js +35 -25
- package/cdn/components/plot-toolbar/plot-toolbar.js +36 -26
- package/cdn/components/popup/popup.component.js +2 -2
- package/cdn/components/popup/popup.js +3 -3
- package/cdn/components/progress-bar/progress-bar.component.js +2 -2
- package/cdn/components/progress-bar/progress-bar.js +3 -3
- package/cdn/components/radio/radio.component.js +4 -4
- package/cdn/components/radio/radio.js +5 -5
- package/cdn/components/radio-group/radio-group.component.js +2 -2
- package/cdn/components/radio-group/radio-group.js +3 -3
- package/cdn/components/scroll-hint/scroll-hint.component.js +6 -6
- package/cdn/components/scroll-hint/scroll-hint.js +7 -7
- package/cdn/components/select/select.component.js +10 -10
- package/cdn/components/select/select.js +11 -11
- package/cdn/components/site-header/site-header.component.js +5 -5
- package/cdn/components/site-header/site-header.js +5 -5
- package/cdn/components/site-navigation/site-navigation.component.js +2 -2
- package/cdn/components/site-navigation/site-navigation.js +2 -2
- package/cdn/components/skeleton/skeleton.component.js +2 -2
- package/cdn/components/skeleton/skeleton.js +3 -3
- package/cdn/components/slider/slider.component.js +2 -2
- package/cdn/components/slider/slider.js +3 -3
- package/cdn/components/spatial-picker/spatial-picker.component.js +34 -24
- package/cdn/components/spatial-picker/spatial-picker.js +35 -25
- package/cdn/components/status-indicator/status-indicator.component.js +2 -2
- package/cdn/components/status-indicator/status-indicator.js +3 -3
- package/cdn/components/stepper/stepper.component.js +2 -2
- package/cdn/components/stepper/stepper.js +3 -3
- package/cdn/components/stepper-step/stepper-step.component.js +6 -6
- package/cdn/components/stepper-step/stepper-step.js +7 -7
- package/cdn/components/tab/tab.component.js +6 -6
- package/cdn/components/tab/tab.js +7 -7
- package/cdn/components/tab-panel/tab-panel.component.js +2 -2
- package/cdn/components/tab-panel/tab-panel.js +3 -3
- package/cdn/components/tabs/tabs.component.js +6 -6
- package/cdn/components/tabs/tabs.js +7 -7
- package/cdn/components/tag/tag.component.js +6 -6
- package/cdn/components/tag/tag.js +7 -7
- package/cdn/components/textarea/textarea.component.js +4 -4
- package/cdn/components/textarea/textarea.js +5 -5
- package/cdn/components/time-average-map/time-average-map.component.d.ts +12 -8
- package/cdn/components/time-average-map/time-average-map.component.js +44 -34
- package/cdn/components/time-average-map/time-average-map.controller.d.ts +5 -0
- package/cdn/components/time-average-map/time-average-map.controller.js +1 -1
- package/cdn/components/time-average-map/time-average-map.js +45 -35
- package/cdn/components/time-average-map/time-average-map.styles.js +1 -1
- package/cdn/components/time-series/time-series.component.js +43 -33
- package/cdn/components/time-series/time-series.controller.d.ts +5 -0
- package/cdn/components/time-series/time-series.controller.js +1 -1
- package/cdn/components/time-series/time-series.js +44 -34
- package/cdn/components/toast/toast.component.js +4 -4
- package/cdn/components/toast/toast.js +5 -5
- package/cdn/components/toggle/toggle.component.js +4 -4
- package/cdn/components/toggle/toggle.js +5 -5
- package/cdn/components/tooltip/tooltip.component.js +3 -3
- package/cdn/components/tooltip/tooltip.js +4 -4
- package/cdn/components/variable-combobox/lib.js +3 -3
- package/cdn/components/variable-combobox/variable-combobox.component.js +17 -17
- package/cdn/components/variable-combobox/variable-combobox.controller.js +4 -4
- package/cdn/components/variable-combobox/variable-combobox.js +18 -18
- package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +15 -15
- package/cdn/components/variable-keyword-search/variable-keyword-search.js +16 -16
- package/cdn/custom-elements.json +8639 -8546
- package/cdn/events/events.d.ts +1 -1
- package/cdn/events/terra-map-change.d.ts +6 -0
- package/cdn/react/accordion/index.js +6 -6
- package/cdn/react/alert/index.js +4 -4
- package/cdn/react/avatar/index.js +8 -8
- package/cdn/react/badge/index.js +3 -3
- package/cdn/react/banner/index.js +3 -3
- package/cdn/react/breadcrumb/index.js +3 -3
- package/cdn/react/breadcrumbs/index.js +3 -3
- package/cdn/react/browse-variables/index.js +22 -22
- package/cdn/react/button/index.js +8 -8
- package/cdn/react/button-group/index.js +3 -3
- package/cdn/react/caption/index.js +3 -3
- package/cdn/react/card/index.js +3 -3
- package/cdn/react/checkbox/index.js +10 -10
- package/cdn/react/chip/index.js +3 -3
- package/cdn/react/combobox/index.js +8 -8
- package/cdn/react/data-access/index.js +52 -42
- package/cdn/react/data-grid/index.js +6 -6
- package/cdn/react/data-rods/index.js +61 -51
- package/cdn/react/data-subsetter/index.js +62 -52
- package/cdn/react/data-subsetter-history/index.js +64 -54
- package/cdn/react/date-picker/index.js +18 -18
- package/cdn/react/date-range-slider/index.js +3 -3
- package/cdn/react/dialog/index.js +10 -10
- package/cdn/react/divider/index.js +3 -3
- package/cdn/react/dropdown/index.js +4 -4
- package/cdn/react/earthdata-login/index.js +17 -17
- package/cdn/react/file-upload/index.js +3 -3
- package/cdn/react/harmony-history/index.js +11 -11
- package/cdn/react/icon/index.js +4 -4
- package/cdn/react/index.d.ts +23 -23
- package/cdn/react/index.js +258 -248
- package/cdn/react/input/index.js +9 -9
- package/cdn/react/loader/index.js +3 -3
- package/cdn/react/login/index.js +14 -14
- package/cdn/react/map/index.js +20 -10
- package/cdn/react/menu/index.js +3 -3
- package/cdn/react/menu-item/index.js +12 -12
- package/cdn/react/option/index.js +7 -7
- package/cdn/react/pagination/index.js +7 -7
- package/cdn/react/plot/index.js +4 -4
- package/cdn/react/plot-toolbar/index.js +36 -26
- package/cdn/react/popup/index.js +3 -3
- package/cdn/react/progress-bar/index.js +3 -3
- package/cdn/react/radio/index.js +5 -5
- package/cdn/react/radio-group/index.js +3 -3
- package/cdn/react/scroll-hint/index.js +7 -7
- package/cdn/react/select/index.js +11 -11
- package/cdn/react/site-header/index.js +6 -6
- package/cdn/react/site-navigation/index.js +3 -3
- package/cdn/react/skeleton/index.js +3 -3
- package/cdn/react/slider/index.js +3 -3
- package/cdn/react/spatial-picker/index.js +35 -25
- package/cdn/react/status-indicator/index.js +3 -3
- package/cdn/react/stepper/index.js +3 -3
- package/cdn/react/stepper-step/index.js +7 -7
- package/cdn/react/tab/index.js +7 -7
- package/cdn/react/tab-panel/index.js +3 -3
- package/cdn/react/tabs/index.js +7 -7
- package/cdn/react/tag/index.js +7 -7
- package/cdn/react/textarea/index.js +5 -5
- package/cdn/react/time-average-map/index.js +45 -35
- package/cdn/react/time-series/index.js +44 -34
- package/cdn/react/toast/index.js +5 -5
- package/cdn/react/toggle/index.js +5 -5
- package/cdn/react/tooltip/index.js +4 -4
- package/cdn/react/variable-combobox/index.js +18 -18
- package/cdn/react/variable-keyword-search/index.js +16 -16
- package/cdn/terra-ui-components.js +255 -245
- package/cdn/types/vue/index.d.ts +881 -858
- package/cdn/vscode.html-custom-data.json +828 -822
- package/cdn/web-types.json +2047 -2032
- package/dist/chunks/chunk.2HEXM6MX.js +154 -0
- package/dist/chunks/chunk.2XFQ7HNR.js +1 -0
- package/dist/chunks/chunk.2ZDFC7XD.js +5 -0
- package/dist/chunks/chunk.3AF4SJ26.js +780 -0
- package/dist/chunks/chunk.3CP7SY7X.js +1 -0
- package/dist/chunks/chunk.3NAZF34U.js +1 -0
- package/dist/chunks/chunk.3R2J27ZS.js +25 -0
- package/dist/chunks/chunk.3XRKWNW5.js +1 -0
- package/dist/chunks/chunk.3YJGZAO5.js +1 -0
- package/dist/chunks/chunk.447IKCOD.js +1 -0
- package/dist/chunks/chunk.44AWWV54.js +30 -0
- package/dist/chunks/chunk.46DYUPBX.js +22 -0
- package/dist/chunks/chunk.4E2BUN4F.js +1 -0
- package/dist/chunks/chunk.4NDKE3PZ.js +1 -0
- package/dist/chunks/chunk.4RFJMMAN.js +1 -0
- package/dist/chunks/chunk.4SRXQYLE.js +39 -0
- package/dist/chunks/chunk.4ZQUOM75.js +80 -0
- package/dist/chunks/chunk.5DDZRQCR.js +26 -0
- package/dist/chunks/chunk.5DJQBDNY.js +99 -0
- package/dist/chunks/chunk.5GJQRKUS.js +1 -0
- package/dist/chunks/chunk.5GTOXSEK.js +24 -0
- package/dist/chunks/chunk.5HY3BVXE.js +23 -0
- package/dist/chunks/chunk.5MNSQC5Z.js +43 -0
- package/dist/chunks/chunk.5S57Z6MY.js +1 -0
- package/dist/chunks/chunk.63KFBVDZ.js +125 -0
- package/dist/chunks/chunk.66FVHWWG.js +1 -0
- package/dist/chunks/chunk.6C3T5LR6.js +1 -0
- package/dist/chunks/chunk.6D4YDDOH.js +148 -0
- package/dist/chunks/chunk.6OVOBLEB.js +1 -0
- package/dist/chunks/chunk.6QWTHDDS.js +1 -0
- package/dist/chunks/chunk.6TIISOSM.js +1 -0
- package/dist/chunks/chunk.6UUXXIO5.js +1 -0
- package/dist/chunks/chunk.6YB2WV52.js +9 -0
- package/dist/chunks/chunk.6YNWYAON.js +1 -0
- package/dist/chunks/chunk.74UO2S6X.js +26 -0
- package/dist/chunks/chunk.75Q2DUI4.js +145 -0
- package/dist/chunks/chunk.7DCDWHIP.js +1 -0
- package/dist/chunks/chunk.7KOIBYPW.js +1 -0
- package/dist/chunks/chunk.7LW5MDPV.js +1 -0
- package/dist/chunks/chunk.7RSJSUF5.js +122 -0
- package/dist/chunks/chunk.7VL5XLTF.js +1 -0
- package/dist/chunks/chunk.7ZTODERJ.js +61 -0
- package/dist/chunks/chunk.A4JPZBCU.js +1 -0
- package/dist/chunks/chunk.A6XZHXKG.js +17 -0
- package/dist/chunks/chunk.ABDHAYTU.js +1 -0
- package/dist/chunks/chunk.AF4KKKIK.js +176 -0
- package/dist/chunks/chunk.AOJ7CENL.js +1 -0
- package/dist/chunks/chunk.ATX7REBU.js +1 -0
- package/dist/chunks/chunk.AUBMY7XI.js +8 -0
- package/dist/chunks/chunk.AV5MTWD4.js +1 -0
- package/dist/chunks/chunk.AWA2ZGEV.js +300 -0
- package/dist/chunks/chunk.AXXCXZWY.js +1 -0
- package/dist/chunks/chunk.AYEBTFZT.js +433 -0
- package/dist/chunks/chunk.B5FLJR3A.js +37 -0
- package/dist/chunks/chunk.BCI323BR.js +1 -0
- package/dist/chunks/chunk.BQ2TQQGG.js +1 -0
- package/dist/chunks/chunk.BRSDDKYM.js +33 -0
- package/dist/chunks/chunk.BYWODPGT.js +1 -0
- package/dist/chunks/chunk.C5S23DNK.js +1 -0
- package/dist/chunks/chunk.CBLMIMXD.js +20 -0
- package/dist/chunks/chunk.CC3TFKZ5.js +1 -0
- package/dist/chunks/chunk.CLGMXYFG.js +1 -0
- package/dist/chunks/chunk.CLQSO2B3.js +1 -0
- package/dist/chunks/chunk.CMABIFU7.js +1 -0
- package/dist/chunks/chunk.CS5XSAK7.js +1 -0
- package/dist/chunks/chunk.D5GCNDYG.js +1 -0
- package/dist/chunks/chunk.DANE2DV4.js +1 -0
- package/dist/chunks/chunk.DBLKA334.js +1 -0
- package/dist/chunks/chunk.DHUDN5NR.js +1 -0
- package/dist/chunks/chunk.DK636C4K.js +19 -0
- package/dist/chunks/chunk.DSIIF7K6.js +1 -0
- package/dist/chunks/chunk.DUG6LPDO.js +1 -0
- package/dist/chunks/chunk.DXULPI2C.js +1 -0
- package/dist/chunks/chunk.ECXCY3XX.js +12 -0
- package/dist/chunks/chunk.EFQ4VOA6.js +1 -0
- package/dist/chunks/chunk.EHEFJ4UM.js +35 -0
- package/dist/chunks/chunk.EPMIYG6Y.js +113 -0
- package/dist/chunks/chunk.F5HERH3C.js +1 -0
- package/dist/chunks/chunk.FEBNDE5C.js +1 -0
- package/dist/chunks/chunk.FSHLOPG4.js +1 -0
- package/dist/chunks/chunk.FTC6BJLL.js +47 -0
- package/dist/chunks/chunk.FWNUKBYM.js +1 -0
- package/dist/chunks/chunk.GCKLOHLJ.js +1 -0
- package/dist/chunks/chunk.GQT3QXWD.js +1 -0
- package/dist/chunks/chunk.GSCUNOLU.js +30 -0
- package/dist/chunks/chunk.GUIMVPU3.js +1 -0
- package/dist/chunks/chunk.GXCYLTXI.js +1 -0
- package/dist/chunks/chunk.H2EZ7VOW.js +1 -0
- package/dist/chunks/chunk.H2MRWWA5.js +1 -0
- package/dist/chunks/chunk.H4WCUAI5.js +1 -0
- package/dist/chunks/chunk.H6HYWCWZ.js +55 -0
- package/dist/chunks/chunk.HKXBQIJC.js +1 -0
- package/dist/chunks/chunk.HLRV2WXA.js +1 -0
- package/dist/chunks/chunk.HPSHJNUL.js +1 -0
- package/dist/chunks/chunk.HQE6JQ36.js +1 -0
- package/dist/chunks/chunk.HTRDWX5D.js +1 -0
- package/dist/chunks/chunk.I2H5CL5B.js +1 -0
- package/dist/chunks/chunk.I2VZCTPD.js +1 -0
- package/dist/chunks/chunk.I3ABET54.js +1 -0
- package/dist/chunks/chunk.I4XNSZMV.js +14 -0
- package/dist/chunks/chunk.IDRV4QVY.js +75 -0
- package/dist/chunks/chunk.IHH2EMZT.js +280 -0
- package/dist/chunks/chunk.IX4DTAAR.js +1 -0
- package/dist/chunks/chunk.IYYXOBVJ.js +1 -0
- package/dist/chunks/chunk.J6YMXA4V.js +1 -0
- package/dist/chunks/chunk.JF64QOIK.js +1 -0
- package/dist/chunks/chunk.JMGGBACY.js +1 -0
- package/dist/chunks/chunk.JPRIHHL3.js +1 -0
- package/dist/chunks/chunk.JUV3F76R.js +35 -0
- package/dist/chunks/chunk.K67524WR.js +1 -0
- package/dist/chunks/chunk.K6KJNAUI.js +1 -0
- package/dist/chunks/chunk.KCCCUPQI.js +74 -0
- package/dist/chunks/chunk.KDP7MFSQ.js +1 -0
- package/dist/chunks/chunk.KG3775TI.js +1 -0
- package/dist/chunks/chunk.KG4H7K5W.js +11 -0
- package/dist/chunks/chunk.KIXW3H6F.js +1 -0
- package/dist/chunks/chunk.KRQB5VTT.js +1 -0
- package/dist/chunks/chunk.KSEX673E.js +1 -0
- package/dist/chunks/chunk.KUPSLOUX.js +1 -0
- package/dist/chunks/chunk.L2IUPHO3.js +1 -0
- package/dist/chunks/chunk.LCGVUMKQ.js +43 -0
- package/dist/chunks/chunk.LFHFYBLO.js +1 -0
- package/dist/chunks/chunk.LICY6WJT.js +4 -0
- package/dist/chunks/chunk.LKQ44YSQ.js +1 -0
- package/dist/chunks/chunk.M4G2JEW2.js +1 -0
- package/dist/chunks/chunk.MBOEFHQI.js +55 -0
- package/dist/chunks/chunk.MCR2VZQP.js +1 -0
- package/dist/chunks/chunk.MGN6FPMX.js +1 -0
- package/dist/chunks/chunk.MOWA5ULN.js +1 -0
- package/dist/chunks/chunk.MPDRWVZL.js +1 -0
- package/dist/chunks/chunk.MSBCPIGA.js +1 -0
- package/dist/chunks/chunk.N4IMML6I.js +121 -0
- package/dist/chunks/chunk.NRTWU3TW.js +1 -0
- package/dist/chunks/chunk.NW27EPOF.js +5 -0
- package/dist/chunks/chunk.NXSYWMFP.js +1 -0
- package/dist/chunks/chunk.NZNJPDVW.js +1 -0
- package/dist/chunks/chunk.OAALYDNZ.js +1 -0
- package/dist/chunks/chunk.OANTUX24.js +48 -0
- package/dist/chunks/chunk.OFOCDP2M.js +1 -0
- package/dist/chunks/chunk.OJUQFN4A.js +27 -0
- package/dist/chunks/chunk.OPBZIY2A.js +1 -0
- package/dist/chunks/chunk.OT6SFBQX.js +1 -0
- package/dist/chunks/chunk.OWZEKFKL.js +1 -0
- package/dist/chunks/chunk.OZUKFWGD.js +1 -0
- package/dist/chunks/chunk.P5XWJ5HC.js +1 -0
- package/dist/chunks/chunk.PR7E6KYS.js +1 -0
- package/dist/chunks/chunk.PTN44XCI.js +572 -0
- package/dist/chunks/chunk.PWT5JMOP.js +1 -0
- package/dist/chunks/chunk.QBXUVQTY.js +1 -0
- package/dist/chunks/chunk.QIS56XCC.js +1 -0
- package/dist/chunks/chunk.QP5FZIRF.js +1 -0
- package/dist/chunks/chunk.QQV7OIO7.js +55 -0
- package/dist/chunks/chunk.QS2CNV3Q.js +1 -0
- package/dist/chunks/chunk.QUULVCZU.js +1 -0
- package/dist/chunks/chunk.R4JAF7DS.js +1 -0
- package/dist/chunks/chunk.RFRYQSE5.js +41 -0
- package/dist/chunks/chunk.RIDJTVHV.js +1 -0
- package/dist/chunks/chunk.RNGOVZGF.js +9 -0
- package/dist/chunks/chunk.RRTP2FHP.js +1 -0
- package/dist/chunks/chunk.RW66TULD.js +1 -0
- package/dist/chunks/chunk.RXSKPOBF.js +1 -0
- package/dist/chunks/chunk.RYL27WYB.js +1 -0
- package/dist/chunks/chunk.SAHUIO3P.js +1 -0
- package/dist/chunks/chunk.SPNO75Q4.js +514 -0
- package/dist/chunks/chunk.SY3HGJA3.js +100 -0
- package/dist/chunks/chunk.SYGSWLVD.js +1 -0
- package/dist/chunks/chunk.TAQ6A3B7.js +2 -0
- package/dist/chunks/chunk.TQZFMQPE.js +11 -0
- package/dist/chunks/chunk.TSOQGANL.js +1 -0
- package/dist/chunks/chunk.TTWUGVNW.js +1 -0
- package/dist/chunks/chunk.UCO7ADVP.js +64 -0
- package/dist/chunks/chunk.UFJISWXG.js +1 -0
- package/dist/chunks/chunk.UFYFMNUK.js +1 -0
- package/dist/chunks/chunk.UIQXEV7N.js +67 -0
- package/dist/chunks/chunk.UZHA3QCH.js +1190 -0
- package/dist/chunks/chunk.UZI5DYPK.js +41 -0
- package/dist/chunks/chunk.UZZBJV4T.js +1 -0
- package/dist/chunks/chunk.V34PEB3H.js +1 -0
- package/dist/chunks/chunk.V4X3J7H5.js +1 -0
- package/dist/chunks/chunk.VILSXY2Q.js +1 -0
- package/dist/chunks/chunk.VSPWNHOW.js +1 -0
- package/dist/chunks/chunk.VT3KMZ66.js +1 -0
- package/dist/chunks/chunk.VZESRFZQ.js +62 -0
- package/dist/chunks/chunk.W57YAS2G.js +1 -0
- package/dist/chunks/chunk.WDHC6FGQ.js +157 -0
- package/dist/chunks/chunk.WE4PQXFD.js +65 -0
- package/dist/chunks/chunk.WG457PDK.js +1 -0
- package/dist/chunks/chunk.WJQTKD6X.js +1 -0
- package/dist/chunks/chunk.WKNEHZOD.js +16 -0
- package/dist/chunks/chunk.WQFHYRFG.js +1 -0
- package/dist/chunks/chunk.WTDZWPN3.js +1 -0
- package/dist/chunks/chunk.WZYEI2K3.js +1 -0
- package/dist/chunks/chunk.X266J3HR.js +1 -0
- package/dist/chunks/chunk.X74E6IXG.js +1 -0
- package/dist/chunks/chunk.XA6IYBQ4.js +1 -0
- package/dist/chunks/chunk.XAZE2FE3.js +1 -0
- package/dist/chunks/chunk.XJKVDKZL.js +1 -0
- package/dist/chunks/chunk.XUAILPGW.js +1 -0
- package/dist/chunks/chunk.XV7MX5O2.js +1 -0
- package/dist/chunks/chunk.YA5FFFLQ.js +20 -0
- package/dist/chunks/chunk.YDXNKY2Y.js +1 -0
- package/dist/chunks/chunk.YOFBYVP5.js +6 -0
- package/dist/chunks/chunk.YR5SSBSW.js +299 -0
- package/dist/chunks/chunk.YUDIM7TE.js +1 -0
- package/dist/chunks/chunk.YX5E2IPT.js +1 -0
- package/dist/chunks/chunk.ZRR3M7ZR.js +8 -0
- package/dist/chunks/chunk.ZUZ7QHWU.js +1 -0
- package/dist/components/accordion/accordion.component.js +1 -1
- package/dist/components/accordion/accordion.js +1 -1
- package/dist/components/alert/alert.component.js +1 -1
- package/dist/components/alert/alert.js +1 -1
- package/dist/components/avatar/avatar.component.js +1 -1
- package/dist/components/avatar/avatar.js +1 -1
- package/dist/components/badge/badge.component.js +1 -1
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/banner/banner.component.js +1 -1
- package/dist/components/banner/banner.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.component.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.component.js +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.js +1 -1
- package/dist/components/browse-variables/browse-variables.component.js +1 -1
- package/dist/components/browse-variables/browse-variables.js +1 -1
- package/dist/components/button/button.component.js +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/button-group/button-group.component.js +1 -1
- package/dist/components/button-group/button-group.js +1 -1
- package/dist/components/caption/caption.component.js +1 -1
- package/dist/components/caption/caption.js +1 -1
- package/dist/components/card/card.component.js +1 -1
- package/dist/components/card/card.js +1 -1
- package/dist/components/checkbox/checkbox.component.js +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/chip/chip.component.js +1 -1
- package/dist/components/chip/chip.js +1 -1
- package/dist/components/combobox/combobox.component.js +1 -1
- package/dist/components/combobox/combobox.js +1 -1
- package/dist/components/data-access/data-access.component.js +1 -1
- package/dist/components/data-access/data-access.js +1 -1
- package/dist/components/data-grid/data-grid.component.js +1 -1
- package/dist/components/data-grid/data-grid.js +1 -1
- package/dist/components/data-rods/data-rods.component.js +1 -1
- package/dist/components/data-rods/data-rods.js +1 -1
- package/dist/components/data-subsetter/data-subsetter.component.d.ts +1 -0
- package/dist/components/data-subsetter/data-subsetter.component.js +1 -1
- package/dist/components/data-subsetter/data-subsetter.js +1 -1
- package/dist/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
- package/dist/components/data-subsetter-history/data-subsetter-history.component.js +1 -1
- package/dist/components/data-subsetter-history/data-subsetter-history.js +1 -1
- package/dist/components/date-picker/date-picker.component.js +1 -1
- package/dist/components/date-picker/date-picker.js +1 -1
- package/dist/components/date-range-slider/date-range-slider.component.js +1 -1
- package/dist/components/date-range-slider/date-range-slider.js +1 -1
- package/dist/components/dialog/dialog.component.js +1 -1
- package/dist/components/dialog/dialog.js +1 -1
- package/dist/components/divider/divider.component.js +1 -1
- package/dist/components/divider/divider.js +1 -1
- package/dist/components/dropdown/dropdown.component.js +1 -1
- package/dist/components/dropdown/dropdown.js +1 -1
- package/dist/components/earthdata-login/earthdata-login.component.js +1 -1
- package/dist/components/earthdata-login/earthdata-login.js +1 -1
- package/dist/components/file-upload/file-upload.component.js +1 -1
- package/dist/components/file-upload/file-upload.js +1 -1
- package/dist/components/harmony-history/harmony-history.component.js +1 -1
- package/dist/components/harmony-history/harmony-history.js +1 -1
- package/dist/components/icon/icon.component.js +1 -1
- package/dist/components/icon/icon.js +1 -1
- package/dist/components/input/input.component.js +1 -1
- package/dist/components/input/input.js +1 -1
- package/dist/components/loader/loader.component.js +1 -1
- package/dist/components/loader/loader.js +1 -1
- package/dist/components/login/login.component.d.ts +1 -0
- package/dist/components/login/login.component.js +1 -1
- package/dist/components/login/login.js +1 -1
- package/dist/components/map/layers/base.layer.d.ts +7 -0
- package/dist/components/map/layers/base.layer.js +1 -0
- package/dist/components/map/layers/borders.layer.d.ts +6 -0
- package/dist/components/map/layers/borders.layer.js +1 -0
- package/dist/components/map/layers/bordersStyleConfig.d.ts +29 -0
- package/dist/components/map/layers/bordersStyleConfig.js +1 -0
- package/dist/components/map/layers/labels.layer.d.ts +6 -0
- package/dist/components/map/layers/labels.layer.js +1 -0
- package/dist/components/map/layers/labelsStyleConfig.d.ts +2337 -0
- package/dist/components/map/layers/labelsStyleConfig.js +1 -0
- package/dist/components/map/map.component.d.ts +42 -0
- package/dist/components/map/map.component.js +1 -1
- package/dist/components/map/map.js +1 -1
- package/dist/components/map/map.service.d.ts +50 -1
- package/dist/components/map/map.service.js +1 -1
- package/dist/components/map/map.styles.js +1 -1
- package/dist/components/menu/menu.component.js +1 -1
- package/dist/components/menu/menu.js +1 -1
- package/dist/components/menu-item/menu-item.component.js +1 -1
- package/dist/components/menu-item/menu-item.js +1 -1
- package/dist/components/option/option.component.js +1 -1
- package/dist/components/option/option.js +1 -1
- package/dist/components/pagination/pagination.component.js +1 -1
- package/dist/components/pagination/pagination.js +1 -1
- package/dist/components/plot/plot.component.js +1 -1
- package/dist/components/plot/plot.js +1 -1
- package/dist/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
- package/dist/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
- package/dist/components/plot-toolbar/plot-toolbar.component.js +1 -1
- package/dist/components/plot-toolbar/plot-toolbar.js +1 -1
- package/dist/components/popup/popup.component.js +1 -1
- package/dist/components/popup/popup.js +1 -1
- package/dist/components/progress-bar/progress-bar.component.js +1 -1
- package/dist/components/progress-bar/progress-bar.js +1 -1
- package/dist/components/radio/radio.component.js +1 -1
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/radio-group/radio-group.component.js +1 -1
- package/dist/components/radio-group/radio-group.js +1 -1
- package/dist/components/scroll-hint/scroll-hint.component.js +1 -1
- package/dist/components/scroll-hint/scroll-hint.js +1 -1
- package/dist/components/select/select.component.js +1 -1
- package/dist/components/select/select.js +1 -1
- package/dist/components/site-header/site-header.component.js +1 -1
- package/dist/components/site-header/site-header.js +1 -1
- package/dist/components/site-navigation/site-navigation.component.js +1 -1
- package/dist/components/site-navigation/site-navigation.js +1 -1
- package/dist/components/skeleton/skeleton.component.js +1 -1
- package/dist/components/skeleton/skeleton.js +1 -1
- package/dist/components/slider/slider.component.js +1 -1
- package/dist/components/slider/slider.js +1 -1
- package/dist/components/spatial-picker/spatial-picker.component.js +1 -1
- package/dist/components/spatial-picker/spatial-picker.js +1 -1
- package/dist/components/status-indicator/status-indicator.component.js +1 -1
- package/dist/components/status-indicator/status-indicator.js +1 -1
- package/dist/components/stepper/stepper.component.js +1 -1
- package/dist/components/stepper/stepper.js +1 -1
- package/dist/components/stepper-step/stepper-step.component.js +1 -1
- package/dist/components/stepper-step/stepper-step.js +1 -1
- package/dist/components/tab/tab.component.js +1 -1
- package/dist/components/tab/tab.js +1 -1
- package/dist/components/tab-panel/tab-panel.component.js +1 -1
- package/dist/components/tab-panel/tab-panel.js +1 -1
- package/dist/components/tabs/tabs.component.js +1 -1
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/tag/tag.component.js +1 -1
- package/dist/components/tag/tag.js +1 -1
- package/dist/components/textarea/textarea.component.js +1 -1
- package/dist/components/textarea/textarea.js +1 -1
- package/dist/components/time-average-map/time-average-map.component.d.ts +12 -8
- package/dist/components/time-average-map/time-average-map.component.js +1 -1
- package/dist/components/time-average-map/time-average-map.controller.d.ts +5 -0
- package/dist/components/time-average-map/time-average-map.controller.js +1 -1
- package/dist/components/time-average-map/time-average-map.js +1 -1
- package/dist/components/time-average-map/time-average-map.styles.js +1 -1
- package/dist/components/time-series/time-series.component.js +1 -1
- package/dist/components/time-series/time-series.controller.d.ts +5 -0
- package/dist/components/time-series/time-series.controller.js +1 -1
- package/dist/components/time-series/time-series.js +1 -1
- package/dist/components/toast/toast.component.js +1 -1
- package/dist/components/toast/toast.js +1 -1
- package/dist/components/toggle/toggle.component.js +1 -1
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/tooltip/tooltip.component.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/components/variable-combobox/variable-combobox.component.js +1 -1
- package/dist/components/variable-combobox/variable-combobox.js +1 -1
- package/dist/components/variable-keyword-search/variable-keyword-search.component.js +1 -1
- package/dist/components/variable-keyword-search/variable-keyword-search.js +1 -1
- package/dist/custom-elements.json +8639 -8546
- package/dist/events/events.d.ts +1 -1
- package/dist/events/terra-map-change.d.ts +6 -0
- package/dist/react/accordion/index.js +1 -1
- package/dist/react/alert/index.js +1 -1
- package/dist/react/avatar/index.js +1 -1
- package/dist/react/badge/index.js +1 -1
- package/dist/react/banner/index.js +1 -1
- package/dist/react/breadcrumb/index.js +1 -1
- package/dist/react/breadcrumbs/index.js +1 -1
- package/dist/react/browse-variables/index.js +1 -1
- package/dist/react/button/index.js +1 -1
- package/dist/react/button-group/index.js +1 -1
- package/dist/react/caption/index.js +1 -1
- package/dist/react/card/index.js +1 -1
- package/dist/react/checkbox/index.js +1 -1
- package/dist/react/chip/index.js +1 -1
- package/dist/react/combobox/index.js +1 -1
- package/dist/react/data-access/index.js +1 -1
- package/dist/react/data-grid/index.js +1 -1
- package/dist/react/data-rods/index.js +1 -1
- package/dist/react/data-subsetter/index.js +1 -1
- package/dist/react/data-subsetter-history/index.js +1 -1
- package/dist/react/date-picker/index.js +1 -1
- package/dist/react/date-range-slider/index.js +1 -1
- package/dist/react/dialog/index.js +1 -1
- package/dist/react/divider/index.js +1 -1
- package/dist/react/dropdown/index.js +1 -1
- package/dist/react/earthdata-login/index.js +1 -1
- package/dist/react/file-upload/index.js +1 -1
- package/dist/react/harmony-history/index.js +1 -1
- package/dist/react/icon/index.js +1 -1
- package/dist/react/index.d.ts +23 -23
- package/dist/react/index.js +1 -1
- package/dist/react/input/index.js +1 -1
- package/dist/react/loader/index.js +1 -1
- package/dist/react/login/index.js +1 -1
- package/dist/react/map/index.js +1 -1
- package/dist/react/menu/index.js +1 -1
- package/dist/react/menu-item/index.js +1 -1
- package/dist/react/option/index.js +1 -1
- package/dist/react/pagination/index.js +1 -1
- package/dist/react/plot/index.js +1 -1
- package/dist/react/plot-toolbar/index.js +1 -1
- package/dist/react/popup/index.js +1 -1
- package/dist/react/progress-bar/index.js +1 -1
- package/dist/react/radio/index.js +1 -1
- package/dist/react/radio-group/index.js +1 -1
- package/dist/react/scroll-hint/index.js +1 -1
- package/dist/react/select/index.js +1 -1
- package/dist/react/site-header/index.js +1 -1
- package/dist/react/site-navigation/index.js +1 -1
- package/dist/react/skeleton/index.js +1 -1
- package/dist/react/slider/index.js +1 -1
- package/dist/react/spatial-picker/index.js +1 -1
- package/dist/react/status-indicator/index.js +1 -1
- package/dist/react/stepper/index.js +1 -1
- package/dist/react/stepper-step/index.js +1 -1
- package/dist/react/tab/index.js +1 -1
- package/dist/react/tab-panel/index.js +1 -1
- package/dist/react/tabs/index.js +1 -1
- package/dist/react/tag/index.js +1 -1
- package/dist/react/textarea/index.js +1 -1
- package/dist/react/time-average-map/index.js +1 -1
- package/dist/react/time-series/index.js +1 -1
- package/dist/react/toast/index.js +1 -1
- package/dist/react/toggle/index.js +1 -1
- package/dist/react/tooltip/index.js +1 -1
- package/dist/react/variable-combobox/index.js +1 -1
- package/dist/react/variable-keyword-search/index.js +1 -1
- package/dist/terra-ui-components.js +1 -1
- package/dist/terra_ui_components-0.0.199-py3-none-any.whl +0 -0
- package/dist/terra_ui_components-0.0.199.tar.gz +0 -0
- package/dist/types/vue/index.d.ts +881 -858
- package/dist/vscode.html-custom-data.json +828 -822
- package/dist/web-types.json +2047 -2032
- package/package.json +2 -1
- package/cdn/chunks/GeoTIFF.NRJSPXBW.js +0 -21958
- package/cdn/chunks/chunk.2DTFNQFU.js +0 -537
- package/cdn/chunks/chunk.2GFNVSIG.js +0 -134
- package/cdn/chunks/chunk.2LBTME33.js +0 -29
- package/cdn/chunks/chunk.2QMJ6JFC.js +0 -19
- package/cdn/chunks/chunk.2WSLJMJH.js +0 -19
- package/cdn/chunks/chunk.2YVSNZK6.js +0 -158
- package/cdn/chunks/chunk.35V6PNLW.js +0 -113
- package/cdn/chunks/chunk.35W6TJ7F.js +0 -266
- package/cdn/chunks/chunk.3EDRI43W.js +0 -19
- package/cdn/chunks/chunk.3MSKTFUH.js +0 -610
- package/cdn/chunks/chunk.3MSMZU4H.js +0 -33
- package/cdn/chunks/chunk.3Q67HS22.js +0 -19
- package/cdn/chunks/chunk.43DUFN7D.js +0 -37
- package/cdn/chunks/chunk.463S4T2I.js +0 -49
- package/cdn/chunks/chunk.4AP7IUGS.js +0 -19
- package/cdn/chunks/chunk.4C66SG3L.js +0 -47
- package/cdn/chunks/chunk.4CMK7BSI.js +0 -29
- package/cdn/chunks/chunk.4GLQ2KWQ.js +0 -631
- package/cdn/chunks/chunk.4GNN2544.js +0 -29
- package/cdn/chunks/chunk.4U3PMGMD.js +0 -36
- package/cdn/chunks/chunk.4ZE6RMS6.js +0 -132
- package/cdn/chunks/chunk.5FAACRBU.js +0 -594
- package/cdn/chunks/chunk.5JFGJRLR.js +0 -19
- package/cdn/chunks/chunk.5S5IE4WQ.js +0 -195
- package/cdn/chunks/chunk.5U47W7ZI.js +0 -32
- package/cdn/chunks/chunk.5VJNHYYD.js +0 -171
- package/cdn/chunks/chunk.632TYPZK.js +0 -19
- package/cdn/chunks/chunk.6FJCGU4K.js +0 -616
- package/cdn/chunks/chunk.6INKGSON.js +0 -19
- package/cdn/chunks/chunk.6IRICZQU.js +0 -36
- package/cdn/chunks/chunk.6NKCYDS6.js +0 -99
- package/cdn/chunks/chunk.6OXV4DFR.js +0 -29
- package/cdn/chunks/chunk.6SJL6T2W.js +0 -29
- package/cdn/chunks/chunk.73PEBYZF.js +0 -224
- package/cdn/chunks/chunk.73QX76GR.js +0 -19
- package/cdn/chunks/chunk.7IYPYEBZ.js +0 -278
- package/cdn/chunks/chunk.7MG6BND4.js +0 -359
- package/cdn/chunks/chunk.7MOV32ZX.js +0 -29
- package/cdn/chunks/chunk.7OBDWUSU.js +0 -293
- package/cdn/chunks/chunk.A6A2KVBS.js +0 -29
- package/cdn/chunks/chunk.AATVQZ7X.js +0 -277
- package/cdn/chunks/chunk.AB5GSS2K.js +0 -86
- package/cdn/chunks/chunk.AP626FXT.js +0 -35
- package/cdn/chunks/chunk.APOEQA6N.js +0 -157
- package/cdn/chunks/chunk.ARMGN7PF.js +0 -35
- package/cdn/chunks/chunk.AUB3ZMUY.js +0 -32
- package/cdn/chunks/chunk.AUOREJVS.js +0 -32
- package/cdn/chunks/chunk.AVQ3IV27.js +0 -29
- package/cdn/chunks/chunk.B2JKFWS4.js +0 -19
- package/cdn/chunks/chunk.B3ZNCJ7K.js +0 -32
- package/cdn/chunks/chunk.B4EO7TSO.js +0 -29
- package/cdn/chunks/chunk.B4JUAUTG.js +0 -29
- package/cdn/chunks/chunk.B525B6TR.js +0 -19
- package/cdn/chunks/chunk.B6N22EGF.js +0 -29
- package/cdn/chunks/chunk.BEIYABPJ.js +0 -155
- package/cdn/chunks/chunk.BIFWEQ4T.js +0 -68
- package/cdn/chunks/chunk.BPM7DAZG.js +0 -19
- package/cdn/chunks/chunk.BSZO4VOU.js +0 -29
- package/cdn/chunks/chunk.BVACLOKI.js +0 -110
- package/cdn/chunks/chunk.BY4MQRHS.js +0 -19
- package/cdn/chunks/chunk.C5JHX2EK.js +0 -19
- package/cdn/chunks/chunk.CJZNLZ5M.js +0 -190
- package/cdn/chunks/chunk.CLL4XXBG.js +0 -188
- package/cdn/chunks/chunk.CLOSWCHA.js +0 -279
- package/cdn/chunks/chunk.CLYZO6RS.js +0 -19
- package/cdn/chunks/chunk.COWPPOED.js +0 -298
- package/cdn/chunks/chunk.D33JWLZ4.js +0 -1197
- package/cdn/chunks/chunk.D4EWCYPC.js +0 -29
- package/cdn/chunks/chunk.D7P7KTFB.js +0 -60
- package/cdn/chunks/chunk.DHO25PWY.js +0 -29
- package/cdn/chunks/chunk.DI7EKGFG.js +0 -19
- package/cdn/chunks/chunk.DL33ULT6.js +0 -74
- package/cdn/chunks/chunk.DS2UI56D.js +0 -2546
- package/cdn/chunks/chunk.E5DXZQD2.js +0 -29
- package/cdn/chunks/chunk.EGVLPWSM.js +0 -19
- package/cdn/chunks/chunk.EJ53LCTI.js +0 -19
- package/cdn/chunks/chunk.EJGXJRTJ.js +0 -104
- package/cdn/chunks/chunk.EM5ETPZC.js +0 -538
- package/cdn/chunks/chunk.ENHWIPZE.js +0 -19
- package/cdn/chunks/chunk.EOI3OPDR.js +0 -19
- package/cdn/chunks/chunk.EUOALKXD.js +0 -443
- package/cdn/chunks/chunk.EYGHFENC.js +0 -29
- package/cdn/chunks/chunk.FFXP3B4Q.js +0 -357
- package/cdn/chunks/chunk.FIBES3B2.js +0 -657
- package/cdn/chunks/chunk.G3RBNUL7.js +0 -19
- package/cdn/chunks/chunk.G6XFMNSN.js +0 -39
- package/cdn/chunks/chunk.GGTQYGC5.js +0 -458
- package/cdn/chunks/chunk.GMM3EOD6.js +0 -9743
- package/cdn/chunks/chunk.GPKPQWJT.js +0 -19
- package/cdn/chunks/chunk.GSVBEUFJ.js +0 -1264
- package/cdn/chunks/chunk.GULH5ZQL.js +0 -136
- package/cdn/chunks/chunk.GZFLFIFJ.js +0 -34
- package/cdn/chunks/chunk.HDXVT23K.js +0 -19
- package/cdn/chunks/chunk.HOZW3NJM.js +0 -29
- package/cdn/chunks/chunk.HSJLPMW3.js +0 -83
- package/cdn/chunks/chunk.HYQMNFLO.js +0 -19
- package/cdn/chunks/chunk.I2ABYF5Q.js +0 -29
- package/cdn/chunks/chunk.IOF6AEVS.js +0 -19
- package/cdn/chunks/chunk.IYZN7M47.js +0 -19
- package/cdn/chunks/chunk.J5KHF56L.js +0 -19
- package/cdn/chunks/chunk.J7MBJE4R.js +0 -19
- package/cdn/chunks/chunk.JTS4WCJO.js +0 -92
- package/cdn/chunks/chunk.JU6WFHNW.js +0 -36
- package/cdn/chunks/chunk.JUSWD466.js +0 -29
- package/cdn/chunks/chunk.KM6WWUYU.js +0 -77
- package/cdn/chunks/chunk.KT3QCKKA.js +0 -19
- package/cdn/chunks/chunk.L5CO7SOT.js +0 -925
- package/cdn/chunks/chunk.LAY23KKI.js +0 -78
- package/cdn/chunks/chunk.LBQ4PSBA.js +0 -19
- package/cdn/chunks/chunk.LH5PCM5Y.js +0 -29
- package/cdn/chunks/chunk.LK72N66W.js +0 -19
- package/cdn/chunks/chunk.LXN7MR5D.js +0 -33
- package/cdn/chunks/chunk.M2W34SRN.js +0 -19
- package/cdn/chunks/chunk.M3DISCOU.js +0 -138
- package/cdn/chunks/chunk.M6UIVWVO.js +0 -478
- package/cdn/chunks/chunk.MJWLUGWW.js +0 -377
- package/cdn/chunks/chunk.MLSETH2M.js +0 -19
- package/cdn/chunks/chunk.MYRHUQRX.js +0 -71
- package/cdn/chunks/chunk.N33IYXN4.js +0 -19
- package/cdn/chunks/chunk.N6LXBZMX.js +0 -29
- package/cdn/chunks/chunk.NG4ZI7ET.js +0 -19
- package/cdn/chunks/chunk.NGS4A7JM.js +0 -960
- package/cdn/chunks/chunk.NH3ZLAPS.js +0 -231
- package/cdn/chunks/chunk.NUC5GXPS.js +0 -19
- package/cdn/chunks/chunk.OG6IYX2E.js +0 -19
- package/cdn/chunks/chunk.OIV26ZOU.js +0 -29
- package/cdn/chunks/chunk.OPSENKP7.js +0 -19
- package/cdn/chunks/chunk.P4PYSONI.js +0 -1985
- package/cdn/chunks/chunk.PEKPD5D3.js +0 -32
- package/cdn/chunks/chunk.PWQDSQNT.js +0 -19
- package/cdn/chunks/chunk.PY5A6OKW.js +0 -19
- package/cdn/chunks/chunk.PZUVUD4C.js +0 -93
- package/cdn/chunks/chunk.Q4G4DZR4.js +0 -19
- package/cdn/chunks/chunk.QFAAK4H5.js +0 -99
- package/cdn/chunks/chunk.QFSWSE4T.js +0 -19
- package/cdn/chunks/chunk.QJWILSBB.js +0 -151
- package/cdn/chunks/chunk.QK2OQSMV.js +0 -19
- package/cdn/chunks/chunk.QKGQHWKR.js +0 -19
- package/cdn/chunks/chunk.QRED6RVA.js +0 -36
- package/cdn/chunks/chunk.R3WIGF3Z.js +0 -19
- package/cdn/chunks/chunk.REHR3VNE.js +0 -294
- package/cdn/chunks/chunk.RFGMNAAI.js +0 -162
- package/cdn/chunks/chunk.RIJPJNZ6.js +0 -56075
- package/cdn/chunks/chunk.RK6XTGKB.js +0 -19
- package/cdn/chunks/chunk.RKS4PEGG.js +0 -330
- package/cdn/chunks/chunk.S2TTSFDO.js +0 -37
- package/cdn/chunks/chunk.S5TMENAM.js +0 -35
- package/cdn/chunks/chunk.S7OZNH7N.js +0 -32
- package/cdn/chunks/chunk.SAIKW6IW.js +0 -19
- package/cdn/chunks/chunk.SBNF6Y4Z.js +0 -29
- package/cdn/chunks/chunk.SDT6TA7E.js +0 -34
- package/cdn/chunks/chunk.SHOBERVA.js +0 -32
- package/cdn/chunks/chunk.SIRMVNCG.js +0 -19
- package/cdn/chunks/chunk.SK73V355.js +0 -19
- package/cdn/chunks/chunk.SKBS4BJN.js +0 -24561
- package/cdn/chunks/chunk.SMALOHVS.js +0 -62
- package/cdn/chunks/chunk.SNTBUIUJ.js +0 -123
- package/cdn/chunks/chunk.SRYFSYXO.js +0 -904
- package/cdn/chunks/chunk.T2KZVS3W.js +0 -30
- package/cdn/chunks/chunk.T5RIWEQN.js +0 -32
- package/cdn/chunks/chunk.T62K7VOF.js +0 -1975
- package/cdn/chunks/chunk.TKRK5GQM.js +0 -29
- package/cdn/chunks/chunk.UD7NUYVG.js +0 -230
- package/cdn/chunks/chunk.UHPZT3U2.js +0 -29
- package/cdn/chunks/chunk.UYMPHDCE.js +0 -19
- package/cdn/chunks/chunk.V4YWPWXP.js +0 -36
- package/cdn/chunks/chunk.VBV3P6FL.js +0 -32
- package/cdn/chunks/chunk.VCPSDOI3.js +0 -19
- package/cdn/chunks/chunk.VGER7XWX.js +0 -19
- package/cdn/chunks/chunk.VLGM5YMT.js +0 -19
- package/cdn/chunks/chunk.VOW3VHP6.js +0 -110
- package/cdn/chunks/chunk.VYG3TDBE.js +0 -19
- package/cdn/chunks/chunk.VZZ5VWGT.js +0 -515
- package/cdn/chunks/chunk.W56KFXW3.js +0 -672
- package/cdn/chunks/chunk.WA4IWAQ5.js +0 -33
- package/cdn/chunks/chunk.WB4JIUNC.js +0 -29
- package/cdn/chunks/chunk.WBHKNBF4.js +0 -32
- package/cdn/chunks/chunk.WCJK4L7Z.js +0 -32
- package/cdn/chunks/chunk.WD7YIW7Q.js +0 -2710
- package/cdn/chunks/chunk.WLRHKMUU.js +0 -60
- package/cdn/chunks/chunk.WUXBI4OZ.js +0 -599
- package/cdn/chunks/chunk.WX3SD6KP.js +0 -543
- package/cdn/chunks/chunk.XF2FF246.js +0 -32
- package/cdn/chunks/chunk.XFQU5XOV.js +0 -29
- package/cdn/chunks/chunk.XGA76C4I.js +0 -310
- package/cdn/chunks/chunk.XKAWY3BU.js +0 -234
- package/cdn/chunks/chunk.XKYERLQI.js +0 -33
- package/cdn/chunks/chunk.XL2T3IOP.js +0 -19
- package/cdn/chunks/chunk.XNNFL6PT.js +0 -19
- package/cdn/chunks/chunk.XTIYI334.js +0 -524
- package/cdn/chunks/chunk.XXTI4EE7.js +0 -33
- package/cdn/chunks/chunk.Y6MVRFP6.js +0 -32
- package/cdn/chunks/chunk.YAQ7GYGE.js +0 -93
- package/cdn/chunks/chunk.YBMVWJN7.js +0 -35
- package/cdn/chunks/chunk.YIIC2VXV.js +0 -41
- package/cdn/chunks/chunk.YNW5MF6A.js +0 -32
- package/cdn/chunks/chunk.YR5IOGLT.js +0 -29
- package/cdn/chunks/chunk.YRXLTYVI.js +0 -82
- package/cdn/chunks/chunk.YT7YOMZX.js +0 -19
- package/cdn/chunks/chunk.YTS7DDAE.js +0 -19
- package/cdn/chunks/chunk.YYWIHJ7W.js +0 -35
- package/cdn/chunks/chunk.Z2RL47XD.js +0 -259
- package/cdn/chunks/chunk.ZFXH3XDM.js +0 -19
- package/cdn/chunks/chunk.ZG5ZKC6Y.js +0 -81
- package/cdn/chunks/chunk.ZHGWWFQE.js +0 -29
- package/cdn/chunks/chunk.ZM7I2NKC.js +0 -19
- package/cdn/chunks/chunk.ZMLAZTTI.js +0 -29
- package/cdn/chunks/chunk.ZRDBS5F2.js +0 -19
- package/cdn/chunks/chunk.ZRNQPABU.js +0 -276
- package/cdn/chunks/chunk.ZSRLKX2N.js +0 -19
- package/cdn/chunks/chunk.ZWCPWVFO.js +0 -19
- package/cdn/chunks/lerc.4U2WA6NV.js +0 -2097
- package/dist/chunks/chunk.2BE47NJG.js +0 -1
- package/dist/chunks/chunk.2BVYE6EK.js +0 -65
- package/dist/chunks/chunk.2MOIXIOP.js +0 -1
- package/dist/chunks/chunk.2WPBJQIO.js +0 -1
- package/dist/chunks/chunk.2ZTMYRXN.js +0 -148
- package/dist/chunks/chunk.32OPJVEF.js +0 -176
- package/dist/chunks/chunk.34X7FELX.js +0 -1
- package/dist/chunks/chunk.3F22UDEH.js +0 -1
- package/dist/chunks/chunk.3IQUPDW3.js +0 -11
- package/dist/chunks/chunk.3KSPRQMI.js +0 -121
- package/dist/chunks/chunk.3V3CFSEN.js +0 -113
- package/dist/chunks/chunk.4333NETV.js +0 -1
- package/dist/chunks/chunk.4OH3XCDR.js +0 -1190
- package/dist/chunks/chunk.4XE7LAQK.js +0 -1
- package/dist/chunks/chunk.56XPDUQ4.js +0 -1
- package/dist/chunks/chunk.5HHCBSFB.js +0 -1
- package/dist/chunks/chunk.5HHGFBX2.js +0 -1
- package/dist/chunks/chunk.5IVGPQIR.js +0 -1
- package/dist/chunks/chunk.5MTTMHHO.js +0 -39
- package/dist/chunks/chunk.5RHVUOFK.js +0 -41
- package/dist/chunks/chunk.5UEDTOD2.js +0 -1
- package/dist/chunks/chunk.6CQWKIOY.js +0 -1
- package/dist/chunks/chunk.6JDRZLOM.js +0 -17
- package/dist/chunks/chunk.6LI23A6A.js +0 -1
- package/dist/chunks/chunk.6LKD4GN7.js +0 -1
- package/dist/chunks/chunk.6QRXPELF.js +0 -30
- package/dist/chunks/chunk.77Q72G7O.js +0 -1
- package/dist/chunks/chunk.7BF3EHDA.js +0 -1
- package/dist/chunks/chunk.7DNAQWHB.js +0 -1
- package/dist/chunks/chunk.7FXJ5AVW.js +0 -1
- package/dist/chunks/chunk.7PMPECD5.js +0 -9
- package/dist/chunks/chunk.7U7KBTDG.js +0 -1
- package/dist/chunks/chunk.7Z7Z3PL3.js +0 -1
- package/dist/chunks/chunk.A2OV7HOM.js +0 -33
- package/dist/chunks/chunk.A3JRF4BH.js +0 -55
- package/dist/chunks/chunk.A5TQR6LX.js +0 -1
- package/dist/chunks/chunk.AEDP2SPE.js +0 -1
- package/dist/chunks/chunk.AGJGHA2P.js +0 -1
- package/dist/chunks/chunk.B2XZLBDQ.js +0 -1
- package/dist/chunks/chunk.B6BNGOZB.js +0 -1
- package/dist/chunks/chunk.BGKV5FYM.js +0 -55
- package/dist/chunks/chunk.BM75XYNW.js +0 -25
- package/dist/chunks/chunk.BMO4MMSG.js +0 -1
- package/dist/chunks/chunk.BRJCUVRW.js +0 -1
- package/dist/chunks/chunk.BRS3VXJA.js +0 -157
- package/dist/chunks/chunk.BSTHMPZU.js +0 -55
- package/dist/chunks/chunk.C5WYVFSA.js +0 -1
- package/dist/chunks/chunk.CADMINOX.js +0 -1
- package/dist/chunks/chunk.CGWQDVJN.js +0 -100
- package/dist/chunks/chunk.CUOWQB5V.js +0 -1
- package/dist/chunks/chunk.D3OS6IHO.js +0 -1
- package/dist/chunks/chunk.D7YD545N.js +0 -1
- package/dist/chunks/chunk.DBLQWRGX.js +0 -1
- package/dist/chunks/chunk.DJC4XPKT.js +0 -1
- package/dist/chunks/chunk.DLSNNLZT.js +0 -1
- package/dist/chunks/chunk.DRZXFC52.js +0 -1
- package/dist/chunks/chunk.DTNZUN66.js +0 -75
- package/dist/chunks/chunk.DV3HUYSH.js +0 -780
- package/dist/chunks/chunk.EAQPP2XQ.js +0 -1
- package/dist/chunks/chunk.EC43AUTZ.js +0 -1
- package/dist/chunks/chunk.EDSHE3IR.js +0 -43
- package/dist/chunks/chunk.EFJYUIN7.js +0 -9
- package/dist/chunks/chunk.ELAAFINX.js +0 -1
- package/dist/chunks/chunk.ELWTTGZP.js +0 -1
- package/dist/chunks/chunk.EOD4B3IX.js +0 -11
- package/dist/chunks/chunk.EVSHCE6H.js +0 -1
- package/dist/chunks/chunk.F2BK7U4N.js +0 -1
- package/dist/chunks/chunk.F4YPYLUT.js +0 -1
- package/dist/chunks/chunk.F56RXY3E.js +0 -24
- package/dist/chunks/chunk.FI3GSDLD.js +0 -1
- package/dist/chunks/chunk.FIRCFHOE.js +0 -1
- package/dist/chunks/chunk.FOFC6VTJ.js +0 -1
- package/dist/chunks/chunk.FR7BDEKN.js +0 -1
- package/dist/chunks/chunk.G35JQ2ZG.js +0 -35
- package/dist/chunks/chunk.G3TJUALR.js +0 -1
- package/dist/chunks/chunk.GNZLJUDW.js +0 -1
- package/dist/chunks/chunk.GQPIZDWW.js +0 -1
- package/dist/chunks/chunk.GTGYWE5F.js +0 -1
- package/dist/chunks/chunk.GXMHPA2J.js +0 -572
- package/dist/chunks/chunk.H3MW6SIJ.js +0 -1
- package/dist/chunks/chunk.H4ERXNRV.js +0 -1
- package/dist/chunks/chunk.H7VRVKXW.js +0 -145
- package/dist/chunks/chunk.HL5XIPFI.js +0 -1
- package/dist/chunks/chunk.HU7RII6Z.js +0 -1
- package/dist/chunks/chunk.I7EQNJXM.js +0 -14
- package/dist/chunks/chunk.IADRENNE.js +0 -1
- package/dist/chunks/chunk.IEJAC4O6.js +0 -300
- package/dist/chunks/chunk.IHS6LJWC.js +0 -1
- package/dist/chunks/chunk.IM2SCKZT.js +0 -1
- package/dist/chunks/chunk.ISCZLMLV.js +0 -1
- package/dist/chunks/chunk.J2SVUWUB.js +0 -1
- package/dist/chunks/chunk.J7U7DEKR.js +0 -38
- package/dist/chunks/chunk.JLDZFVA7.js +0 -1
- package/dist/chunks/chunk.JNGVL46L.js +0 -1
- package/dist/chunks/chunk.JTPCGE2I.js +0 -1
- package/dist/chunks/chunk.JXY5E3AD.js +0 -1
- package/dist/chunks/chunk.JZ2UTIMK.js +0 -1
- package/dist/chunks/chunk.K44QIVOS.js +0 -1
- package/dist/chunks/chunk.K7SV4V3V.js +0 -1
- package/dist/chunks/chunk.KARB77CR.js +0 -1
- package/dist/chunks/chunk.KIXX2VNW.js +0 -1
- package/dist/chunks/chunk.KTGFGJ6W.js +0 -127
- package/dist/chunks/chunk.KVQQYHK5.js +0 -20
- package/dist/chunks/chunk.KVUEPY2V.js +0 -1
- package/dist/chunks/chunk.KW3AJIGO.js +0 -1
- package/dist/chunks/chunk.LYVAQ5X2.js +0 -16
- package/dist/chunks/chunk.MAPRGE2B.js +0 -1
- package/dist/chunks/chunk.MEIAXAOT.js +0 -99
- package/dist/chunks/chunk.MEYXYGYW.js +0 -1
- package/dist/chunks/chunk.MJFLOS25.js +0 -1
- package/dist/chunks/chunk.MSAGS4ZW.js +0 -1
- package/dist/chunks/chunk.MT7KXK33.js +0 -8
- package/dist/chunks/chunk.MWZZDUQK.js +0 -1
- package/dist/chunks/chunk.NAPQRTMB.js +0 -1
- package/dist/chunks/chunk.NDF272DG.js +0 -64
- package/dist/chunks/chunk.NFPZBWVO.js +0 -1
- package/dist/chunks/chunk.NLMFSOK6.js +0 -37
- package/dist/chunks/chunk.NX3H7USL.js +0 -61
- package/dist/chunks/chunk.NYXYKBL4.js +0 -1
- package/dist/chunks/chunk.OA6TRXCL.js +0 -1
- package/dist/chunks/chunk.OAGDC5NY.js +0 -1
- package/dist/chunks/chunk.OB3I6CC2.js +0 -12
- package/dist/chunks/chunk.OGD4IZSR.js +0 -1
- package/dist/chunks/chunk.ON4XJHQC.js +0 -1
- package/dist/chunks/chunk.P2RISYZB.js +0 -1
- package/dist/chunks/chunk.P3BESYTX.js +0 -1
- package/dist/chunks/chunk.P5LLMXGD.js +0 -20
- package/dist/chunks/chunk.P6ZQBWYA.js +0 -498
- package/dist/chunks/chunk.PA2K76YR.js +0 -1
- package/dist/chunks/chunk.PM3TNHYU.js +0 -74
- package/dist/chunks/chunk.PO4J6EYL.js +0 -26
- package/dist/chunks/chunk.Q26WIGAX.js +0 -280
- package/dist/chunks/chunk.Q2MCOBRZ.js +0 -154
- package/dist/chunks/chunk.Q74JYYTU.js +0 -1
- package/dist/chunks/chunk.QBCCNPMY.js +0 -1
- package/dist/chunks/chunk.QBZRFS4J.js +0 -1
- package/dist/chunks/chunk.QOAJB4YT.js +0 -1
- package/dist/chunks/chunk.QSBUN22W.js +0 -1
- package/dist/chunks/chunk.QZ6YSHJK.js +0 -1
- package/dist/chunks/chunk.QZYXWLHN.js +0 -1
- package/dist/chunks/chunk.R5XG4VQB.js +0 -1
- package/dist/chunks/chunk.RAUAQANS.js +0 -43
- package/dist/chunks/chunk.REZJHB4P.js +0 -35
- package/dist/chunks/chunk.RITL4YAW.js +0 -1
- package/dist/chunks/chunk.RKMQB6WR.js +0 -1
- package/dist/chunks/chunk.RLEYBODQ.js +0 -1
- package/dist/chunks/chunk.RN2ARMZ5.js +0 -1
- package/dist/chunks/chunk.RQF6T73H.js +0 -1
- package/dist/chunks/chunk.RT7UII6X.js +0 -4
- package/dist/chunks/chunk.RU6XCWFZ.js +0 -1
- package/dist/chunks/chunk.SD6CXJRC.js +0 -2
- package/dist/chunks/chunk.SGZCX3AX.js +0 -30
- package/dist/chunks/chunk.SQ4F44ZY.js +0 -1
- package/dist/chunks/chunk.TR3HYY66.js +0 -1
- package/dist/chunks/chunk.U33TD5TB.js +0 -6
- package/dist/chunks/chunk.U37CFR4C.js +0 -1
- package/dist/chunks/chunk.U3N7OSDS.js +0 -1
- package/dist/chunks/chunk.U4HA7KFD.js +0 -5
- package/dist/chunks/chunk.U6JO5USY.js +0 -1
- package/dist/chunks/chunk.UDJWUU6K.js +0 -19
- package/dist/chunks/chunk.UECG6VCN.js +0 -1
- package/dist/chunks/chunk.UGBCGXEC.js +0 -22
- package/dist/chunks/chunk.UGPAZZ76.js +0 -1
- package/dist/chunks/chunk.UHZBOAYJ.js +0 -1
- package/dist/chunks/chunk.USGULNOF.js +0 -1
- package/dist/chunks/chunk.USKDRLRA.js +0 -1
- package/dist/chunks/chunk.VGKJBILS.js +0 -23
- package/dist/chunks/chunk.VIZRNKN5.js +0 -8
- package/dist/chunks/chunk.VTXWVS5C.js +0 -1
- package/dist/chunks/chunk.VWHPRXTT.js +0 -1
- package/dist/chunks/chunk.W54WCDFS.js +0 -1
- package/dist/chunks/chunk.W6SAQQLD.js +0 -1
- package/dist/chunks/chunk.W7DE3ZXX.js +0 -1
- package/dist/chunks/chunk.W7L7HUEJ.js +0 -122
- package/dist/chunks/chunk.WCISQBWK.js +0 -1
- package/dist/chunks/chunk.WDAW64SW.js +0 -27
- package/dist/chunks/chunk.WDSYLS6Y.js +0 -1
- package/dist/chunks/chunk.WJM2AWLV.js +0 -67
- package/dist/chunks/chunk.XLXVZWI2.js +0 -26
- package/dist/chunks/chunk.XMNTSLBZ.js +0 -1
- package/dist/chunks/chunk.XOFUYZ46.js +0 -1
- package/dist/chunks/chunk.XPMJPPF5.js +0 -1
- package/dist/chunks/chunk.XYS4GJZH.js +0 -299
- package/dist/chunks/chunk.XZBSVTBX.js +0 -1
- package/dist/chunks/chunk.Y25FQCMA.js +0 -1
- package/dist/chunks/chunk.Y4QTK5OI.js +0 -1
- package/dist/chunks/chunk.Y6F5QAB2.js +0 -1
- package/dist/chunks/chunk.Y6VOJNJH.js +0 -441
- package/dist/chunks/chunk.YBKVUXXU.js +0 -1
- package/dist/chunks/chunk.YIZ2RQOX.js +0 -1
- package/dist/chunks/chunk.YKWMWZMS.js +0 -1
- package/dist/chunks/chunk.YPU4IAHG.js +0 -1
- package/dist/chunks/chunk.YSQWMROO.js +0 -5
- package/dist/chunks/chunk.YTWF4W66.js +0 -80
- package/dist/chunks/chunk.YVVKOSUI.js +0 -62
- package/dist/chunks/chunk.ZBC4UK6H.js +0 -48
- package/dist/chunks/chunk.ZKDGF3PX.js +0 -1
- package/dist/chunks/chunk.ZLQVNAHB.js +0 -1
- package/dist/chunks/chunk.ZVOF2K46.js +0 -1
- package/dist/chunks/chunk.ZWNXLTTK.js +0 -47
- package/dist/chunks/chunk.ZXUW3LTE.js +0 -1
- package/dist/chunks/chunk.ZZBQVUDD.js +0 -1
- package/dist/terra_ui_components-0.0.197-py3-none-any.whl +0 -0
- package/dist/terra_ui_components-0.0.197.tar.gz +0 -0
|
@@ -0,0 +1,1660 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DataTile_default,
|
|
3
|
+
ERROR_THRESHOLD,
|
|
4
|
+
TileRange_default,
|
|
5
|
+
TileState_default,
|
|
6
|
+
Tile_default,
|
|
7
|
+
Triangulation_default,
|
|
8
|
+
asImageLike,
|
|
9
|
+
calculateSourceExtentResolution,
|
|
10
|
+
canvasPool,
|
|
11
|
+
createOrUpdate,
|
|
12
|
+
getCacheKey,
|
|
13
|
+
hashZXY,
|
|
14
|
+
render
|
|
15
|
+
} from "./chunk.UUUD46S3.js";
|
|
16
|
+
import {
|
|
17
|
+
Layer_default2 as Layer_default,
|
|
18
|
+
Layer_default3 as Layer_default2,
|
|
19
|
+
listenImage
|
|
20
|
+
} from "./chunk.IK2SGPIW.js";
|
|
21
|
+
import {
|
|
22
|
+
Disposable_default,
|
|
23
|
+
EventType_default,
|
|
24
|
+
WORKER_OFFSCREEN_CANVAS,
|
|
25
|
+
apply,
|
|
26
|
+
ascending,
|
|
27
|
+
assert,
|
|
28
|
+
clamp,
|
|
29
|
+
compose,
|
|
30
|
+
containsCoordinate,
|
|
31
|
+
createCanvasContext2D,
|
|
32
|
+
createEmpty,
|
|
33
|
+
equals2 as equals,
|
|
34
|
+
equivalent,
|
|
35
|
+
fromUserExtent,
|
|
36
|
+
getArea,
|
|
37
|
+
getIntersection,
|
|
38
|
+
getRotatedViewport,
|
|
39
|
+
getTopLeft,
|
|
40
|
+
getUid,
|
|
41
|
+
getWidth,
|
|
42
|
+
intersects,
|
|
43
|
+
listen,
|
|
44
|
+
modulo,
|
|
45
|
+
releaseCanvas,
|
|
46
|
+
toSize,
|
|
47
|
+
unlistenByKey,
|
|
48
|
+
wrapAndSliceX
|
|
49
|
+
} from "./chunk.RCPXD7AS.js";
|
|
50
|
+
import {
|
|
51
|
+
init_buffer,
|
|
52
|
+
init_dirname,
|
|
53
|
+
init_process
|
|
54
|
+
} from "./chunk.ZEOVK2FE.js";
|
|
55
|
+
|
|
56
|
+
// node_modules/ol/layer/Tile.js
|
|
57
|
+
init_dirname();
|
|
58
|
+
init_buffer();
|
|
59
|
+
init_process();
|
|
60
|
+
|
|
61
|
+
// node_modules/ol/renderer/canvas/TileLayer.js
|
|
62
|
+
init_dirname();
|
|
63
|
+
init_buffer();
|
|
64
|
+
init_process();
|
|
65
|
+
|
|
66
|
+
// node_modules/ol/ImageTile.js
|
|
67
|
+
init_dirname();
|
|
68
|
+
init_buffer();
|
|
69
|
+
init_process();
|
|
70
|
+
var ImageTile = class extends Tile_default {
|
|
71
|
+
/**
|
|
72
|
+
* @param {import("./tilecoord.js").TileCoord} tileCoord Tile coordinate.
|
|
73
|
+
* @param {import("./TileState.js").default} state State.
|
|
74
|
+
* @param {string} src Image source URI.
|
|
75
|
+
* @param {import('./dom.js').ImageAttributes} imageAttributes Image attributes options.
|
|
76
|
+
* @param {import("./Tile.js").LoadFunction} tileLoadFunction Tile load function.
|
|
77
|
+
* @param {import("./Tile.js").Options} [options] Tile options.
|
|
78
|
+
*/
|
|
79
|
+
constructor(tileCoord, state, src, imageAttributes, tileLoadFunction, options) {
|
|
80
|
+
super(tileCoord, state, options);
|
|
81
|
+
this.crossOrigin_ = imageAttributes == null ? void 0 : imageAttributes.crossOrigin;
|
|
82
|
+
this.referrerPolicy_ = imageAttributes == null ? void 0 : imageAttributes.referrerPolicy;
|
|
83
|
+
this.src_ = src;
|
|
84
|
+
this.key = src;
|
|
85
|
+
this.image_;
|
|
86
|
+
if (WORKER_OFFSCREEN_CANVAS) {
|
|
87
|
+
this.image_ = new OffscreenCanvas(1, 1);
|
|
88
|
+
} else {
|
|
89
|
+
this.image_ = new Image();
|
|
90
|
+
if (this.crossOrigin_ !== null) {
|
|
91
|
+
this.image_.crossOrigin = this.crossOrigin_;
|
|
92
|
+
}
|
|
93
|
+
if (this.referrerPolicy_ !== void 0) {
|
|
94
|
+
this.image_.referrerPolicy = this.referrerPolicy_;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
this.unlisten_ = null;
|
|
98
|
+
this.tileLoadFunction_ = tileLoadFunction;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Get the HTML image element for this tile (may be a Canvas, OffscreenCanvas, Image, or Video).
|
|
102
|
+
* @return {HTMLCanvasElement|OffscreenCanvas|HTMLImageElement|HTMLVideoElement} Image.
|
|
103
|
+
* @api
|
|
104
|
+
*/
|
|
105
|
+
getImage() {
|
|
106
|
+
return this.image_;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Sets an HTML image element for this tile (may be a Canvas or preloaded Image).
|
|
110
|
+
* @param {HTMLCanvasElement|OffscreenCanvas|HTMLImageElement} element Element.
|
|
111
|
+
*/
|
|
112
|
+
setImage(element) {
|
|
113
|
+
this.image_ = element;
|
|
114
|
+
this.state = TileState_default.LOADED;
|
|
115
|
+
this.unlistenImage_();
|
|
116
|
+
this.changed();
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Get the cross origin of the ImageTile.
|
|
120
|
+
* @return {string} Cross origin.
|
|
121
|
+
*/
|
|
122
|
+
getCrossOrigin() {
|
|
123
|
+
return this.crossOrigin_;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Get the referrer policy of the ImageTile.
|
|
127
|
+
* @return {ReferrerPolicy} Referrer policy.
|
|
128
|
+
*/
|
|
129
|
+
getReferrerPolicy() {
|
|
130
|
+
return this.referrerPolicy_;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Tracks loading or read errors.
|
|
134
|
+
*
|
|
135
|
+
* @private
|
|
136
|
+
*/
|
|
137
|
+
handleImageError_() {
|
|
138
|
+
this.state = TileState_default.ERROR;
|
|
139
|
+
this.unlistenImage_();
|
|
140
|
+
this.image_ = getBlankImage();
|
|
141
|
+
this.changed();
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Tracks successful image load.
|
|
145
|
+
*
|
|
146
|
+
* @private
|
|
147
|
+
*/
|
|
148
|
+
handleImageLoad_() {
|
|
149
|
+
if (WORKER_OFFSCREEN_CANVAS) {
|
|
150
|
+
this.state = TileState_default.LOADED;
|
|
151
|
+
} else {
|
|
152
|
+
const image = (
|
|
153
|
+
/** @type {HTMLImageElement} */
|
|
154
|
+
this.image_
|
|
155
|
+
);
|
|
156
|
+
if (image.naturalWidth && image.naturalHeight) {
|
|
157
|
+
this.state = TileState_default.LOADED;
|
|
158
|
+
} else {
|
|
159
|
+
this.state = TileState_default.EMPTY;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
this.unlistenImage_();
|
|
163
|
+
this.changed();
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Load the image or retry if loading previously failed.
|
|
167
|
+
* Loading is taken care of by the tile queue, and calling this method is
|
|
168
|
+
* only needed for preloading or for reloading in case of an error.
|
|
169
|
+
*
|
|
170
|
+
* To retry loading tiles on failed requests, use a custom `tileLoadFunction`
|
|
171
|
+
* that checks for error status codes and reloads only when the status code is
|
|
172
|
+
* 408, 429, 500, 502, 503 and 504, and only when not too many retries have been
|
|
173
|
+
* made already:
|
|
174
|
+
*
|
|
175
|
+
* ```js
|
|
176
|
+
* const retryCodes = [408, 429, 500, 502, 503, 504];
|
|
177
|
+
* const retries = {};
|
|
178
|
+
* source.setTileLoadFunction((tile, src) => {
|
|
179
|
+
* const image = tile.getImage();
|
|
180
|
+
* fetch(src)
|
|
181
|
+
* .then((response) => {
|
|
182
|
+
* if (retryCodes.includes(response.status)) {
|
|
183
|
+
* retries[src] = (retries[src] || 0) + 1;
|
|
184
|
+
* if (retries[src] <= 3) {
|
|
185
|
+
* setTimeout(() => tile.load(), retries[src] * 1000);
|
|
186
|
+
* }
|
|
187
|
+
* return Promise.reject();
|
|
188
|
+
* }
|
|
189
|
+
* return response.blob();
|
|
190
|
+
* })
|
|
191
|
+
* .then((blob) => {
|
|
192
|
+
* const imageUrl = URL.createObjectURL(blob);
|
|
193
|
+
* image.src = imageUrl;
|
|
194
|
+
* setTimeout(() => URL.revokeObjectURL(imageUrl), 5000);
|
|
195
|
+
* })
|
|
196
|
+
* .catch(() => tile.setState(3)); // error
|
|
197
|
+
* });
|
|
198
|
+
* ```
|
|
199
|
+
* @api
|
|
200
|
+
* @override
|
|
201
|
+
*/
|
|
202
|
+
load() {
|
|
203
|
+
if (this.state == TileState_default.ERROR) {
|
|
204
|
+
this.state = TileState_default.IDLE;
|
|
205
|
+
this.image_ = new Image();
|
|
206
|
+
if (this.crossOrigin_ !== null) {
|
|
207
|
+
this.image_.crossOrigin = this.crossOrigin_;
|
|
208
|
+
}
|
|
209
|
+
if (this.referrerPolicy_ !== void 0) {
|
|
210
|
+
this.image_.referrerPolicy = this.referrerPolicy_;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
if (this.state == TileState_default.IDLE) {
|
|
214
|
+
this.state = TileState_default.LOADING;
|
|
215
|
+
this.changed();
|
|
216
|
+
this.tileLoadFunction_(this, this.src_);
|
|
217
|
+
this.unlisten_ = listenImage(
|
|
218
|
+
this.image_,
|
|
219
|
+
this.handleImageLoad_.bind(this),
|
|
220
|
+
this.handleImageError_.bind(this)
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Discards event handlers which listen for load completion or errors.
|
|
226
|
+
*
|
|
227
|
+
* @private
|
|
228
|
+
*/
|
|
229
|
+
unlistenImage_() {
|
|
230
|
+
if (this.unlisten_) {
|
|
231
|
+
this.unlisten_();
|
|
232
|
+
this.unlisten_ = null;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* @override
|
|
237
|
+
*/
|
|
238
|
+
disposeInternal() {
|
|
239
|
+
this.unlistenImage_();
|
|
240
|
+
this.image_ = null;
|
|
241
|
+
super.disposeInternal();
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
function getBlankImage() {
|
|
245
|
+
const ctx = createCanvasContext2D(1, 1);
|
|
246
|
+
ctx.fillStyle = "rgba(0,0,0,0)";
|
|
247
|
+
ctx.fillRect(0, 0, 1, 1);
|
|
248
|
+
return ctx.canvas;
|
|
249
|
+
}
|
|
250
|
+
var ImageTile_default = ImageTile;
|
|
251
|
+
|
|
252
|
+
// node_modules/ol/reproj/Tile.js
|
|
253
|
+
init_dirname();
|
|
254
|
+
init_buffer();
|
|
255
|
+
init_process();
|
|
256
|
+
var ReprojTile = class extends Tile_default {
|
|
257
|
+
/**
|
|
258
|
+
* @param {import("../proj/Projection.js").default} sourceProj Source projection.
|
|
259
|
+
* @param {import("../tilegrid/TileGrid.js").default} sourceTileGrid Source tile grid.
|
|
260
|
+
* @param {import("../proj/Projection.js").default} targetProj Target projection.
|
|
261
|
+
* @param {import("../tilegrid/TileGrid.js").default} targetTileGrid Target tile grid.
|
|
262
|
+
* @param {import("../tilecoord.js").TileCoord} tileCoord Coordinate of the tile.
|
|
263
|
+
* @param {import("../tilecoord.js").TileCoord} wrappedTileCoord Coordinate of the tile wrapped in X.
|
|
264
|
+
* @param {number} pixelRatio Pixel ratio.
|
|
265
|
+
* @param {number} gutter Gutter of the source tiles.
|
|
266
|
+
* @param {FunctionType} getTileFunction
|
|
267
|
+
* Function returning source tiles (z, x, y, pixelRatio).
|
|
268
|
+
* @param {number} [errorThreshold] Acceptable reprojection error (in px).
|
|
269
|
+
* @param {boolean} [renderEdges] Render reprojection edges.
|
|
270
|
+
* @param {import("../Tile.js").Options} [options] Tile options.
|
|
271
|
+
*/
|
|
272
|
+
constructor(sourceProj, sourceTileGrid, targetProj, targetTileGrid, tileCoord, wrappedTileCoord, pixelRatio, gutter, getTileFunction, errorThreshold, renderEdges, options) {
|
|
273
|
+
super(tileCoord, TileState_default.IDLE, options);
|
|
274
|
+
this.renderEdges_ = renderEdges !== void 0 ? renderEdges : false;
|
|
275
|
+
this.pixelRatio_ = pixelRatio;
|
|
276
|
+
this.gutter_ = gutter;
|
|
277
|
+
this.canvas_ = null;
|
|
278
|
+
this.sourceTileGrid_ = sourceTileGrid;
|
|
279
|
+
this.targetTileGrid_ = targetTileGrid;
|
|
280
|
+
this.wrappedTileCoord_ = wrappedTileCoord ? wrappedTileCoord : tileCoord;
|
|
281
|
+
this.sourceTiles_ = [];
|
|
282
|
+
this.sourcesListenerKeys_ = null;
|
|
283
|
+
this.sourceZ_ = 0;
|
|
284
|
+
this.clipExtent_ = sourceProj.canWrapX() ? sourceProj.getExtent() : void 0;
|
|
285
|
+
const targetExtent = targetTileGrid.getTileCoordExtent(
|
|
286
|
+
this.wrappedTileCoord_
|
|
287
|
+
);
|
|
288
|
+
const maxTargetExtent = this.targetTileGrid_.getExtent();
|
|
289
|
+
let maxSourceExtent = this.sourceTileGrid_.getExtent();
|
|
290
|
+
const limitedTargetExtent = maxTargetExtent ? getIntersection(targetExtent, maxTargetExtent) : targetExtent;
|
|
291
|
+
if (getArea(limitedTargetExtent) === 0) {
|
|
292
|
+
this.state = TileState_default.EMPTY;
|
|
293
|
+
return;
|
|
294
|
+
}
|
|
295
|
+
const sourceProjExtent = sourceProj.getExtent();
|
|
296
|
+
if (sourceProjExtent) {
|
|
297
|
+
if (!maxSourceExtent) {
|
|
298
|
+
maxSourceExtent = sourceProjExtent;
|
|
299
|
+
} else {
|
|
300
|
+
maxSourceExtent = getIntersection(maxSourceExtent, sourceProjExtent);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
const targetResolution = targetTileGrid.getResolution(
|
|
304
|
+
this.wrappedTileCoord_[0]
|
|
305
|
+
);
|
|
306
|
+
const sourceResolution = calculateSourceExtentResolution(
|
|
307
|
+
sourceProj,
|
|
308
|
+
targetProj,
|
|
309
|
+
limitedTargetExtent,
|
|
310
|
+
targetResolution
|
|
311
|
+
);
|
|
312
|
+
if (!isFinite(sourceResolution) || sourceResolution <= 0) {
|
|
313
|
+
this.state = TileState_default.EMPTY;
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
const errorThresholdInPixels = errorThreshold !== void 0 ? errorThreshold : ERROR_THRESHOLD;
|
|
317
|
+
this.triangulation_ = new Triangulation_default(
|
|
318
|
+
sourceProj,
|
|
319
|
+
targetProj,
|
|
320
|
+
limitedTargetExtent,
|
|
321
|
+
maxSourceExtent,
|
|
322
|
+
sourceResolution * errorThresholdInPixels,
|
|
323
|
+
targetResolution
|
|
324
|
+
);
|
|
325
|
+
if (this.triangulation_.getTriangles().length === 0) {
|
|
326
|
+
this.state = TileState_default.EMPTY;
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
329
|
+
this.sourceZ_ = sourceTileGrid.getZForResolution(sourceResolution);
|
|
330
|
+
let sourceExtent = this.triangulation_.calculateSourceExtent();
|
|
331
|
+
if (maxSourceExtent) {
|
|
332
|
+
if (sourceProj.canWrapX()) {
|
|
333
|
+
sourceExtent[1] = clamp(
|
|
334
|
+
sourceExtent[1],
|
|
335
|
+
maxSourceExtent[1],
|
|
336
|
+
maxSourceExtent[3]
|
|
337
|
+
);
|
|
338
|
+
sourceExtent[3] = clamp(
|
|
339
|
+
sourceExtent[3],
|
|
340
|
+
maxSourceExtent[1],
|
|
341
|
+
maxSourceExtent[3]
|
|
342
|
+
);
|
|
343
|
+
} else {
|
|
344
|
+
sourceExtent = getIntersection(sourceExtent, maxSourceExtent);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
if (!getArea(sourceExtent)) {
|
|
348
|
+
this.state = TileState_default.EMPTY;
|
|
349
|
+
} else {
|
|
350
|
+
let worldWidth = 0;
|
|
351
|
+
let worldsAway = 0;
|
|
352
|
+
if (sourceProj.canWrapX()) {
|
|
353
|
+
worldWidth = getWidth(sourceProjExtent);
|
|
354
|
+
worldsAway = Math.floor(
|
|
355
|
+
(sourceExtent[0] - sourceProjExtent[0]) / worldWidth
|
|
356
|
+
);
|
|
357
|
+
}
|
|
358
|
+
const sourceExtents = wrapAndSliceX(
|
|
359
|
+
sourceExtent.slice(),
|
|
360
|
+
sourceProj,
|
|
361
|
+
true
|
|
362
|
+
);
|
|
363
|
+
sourceExtents.forEach((extent) => {
|
|
364
|
+
const sourceRange = sourceTileGrid.getTileRangeForExtentAndZ(
|
|
365
|
+
extent,
|
|
366
|
+
this.sourceZ_
|
|
367
|
+
);
|
|
368
|
+
for (let srcX = sourceRange.minX; srcX <= sourceRange.maxX; srcX++) {
|
|
369
|
+
for (let srcY = sourceRange.minY; srcY <= sourceRange.maxY; srcY++) {
|
|
370
|
+
const offset = worldsAway * worldWidth;
|
|
371
|
+
this.sourceTiles_.push({
|
|
372
|
+
getTile: () => getTileFunction(this.sourceZ_, srcX, srcY, pixelRatio),
|
|
373
|
+
offset
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
++worldsAway;
|
|
378
|
+
});
|
|
379
|
+
if (this.sourceTiles_.length === 0) {
|
|
380
|
+
this.state = TileState_default.EMPTY;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Get the HTML Canvas element for this tile.
|
|
386
|
+
* @return {HTMLCanvasElement|OffscreenCanvas} Canvas.
|
|
387
|
+
*/
|
|
388
|
+
getImage() {
|
|
389
|
+
return this.canvas_;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* @private
|
|
393
|
+
*/
|
|
394
|
+
reproject_() {
|
|
395
|
+
const sources = [];
|
|
396
|
+
this.sourceTiles_.forEach((source) => {
|
|
397
|
+
var _a;
|
|
398
|
+
const tile = source.tile;
|
|
399
|
+
if (tile && tile.getState() == TileState_default.LOADED) {
|
|
400
|
+
const extent = this.sourceTileGrid_.getTileCoordExtent(tile.tileCoord);
|
|
401
|
+
extent[0] += source.offset;
|
|
402
|
+
extent[2] += source.offset;
|
|
403
|
+
const clipExtent = (_a = this.clipExtent_) == null ? void 0 : _a.slice();
|
|
404
|
+
if (clipExtent) {
|
|
405
|
+
clipExtent[0] += source.offset;
|
|
406
|
+
clipExtent[2] += source.offset;
|
|
407
|
+
}
|
|
408
|
+
sources.push({
|
|
409
|
+
extent,
|
|
410
|
+
clipExtent,
|
|
411
|
+
image: tile.getImage()
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
});
|
|
415
|
+
this.sourceTiles_.length = 0;
|
|
416
|
+
if (sources.length === 0) {
|
|
417
|
+
this.state = TileState_default.ERROR;
|
|
418
|
+
} else {
|
|
419
|
+
const z = this.wrappedTileCoord_[0];
|
|
420
|
+
const size = this.targetTileGrid_.getTileSize(z);
|
|
421
|
+
const width = typeof size === "number" ? size : size[0];
|
|
422
|
+
const height = typeof size === "number" ? size : size[1];
|
|
423
|
+
const targetResolution = this.targetTileGrid_.getResolution(z);
|
|
424
|
+
const sourceResolution = this.sourceTileGrid_.getResolution(
|
|
425
|
+
this.sourceZ_
|
|
426
|
+
);
|
|
427
|
+
const targetExtent = this.targetTileGrid_.getTileCoordExtent(
|
|
428
|
+
this.wrappedTileCoord_
|
|
429
|
+
);
|
|
430
|
+
this.canvas_ = render(
|
|
431
|
+
width,
|
|
432
|
+
height,
|
|
433
|
+
this.pixelRatio_,
|
|
434
|
+
sourceResolution,
|
|
435
|
+
this.sourceTileGrid_.getExtent(),
|
|
436
|
+
targetResolution,
|
|
437
|
+
targetExtent,
|
|
438
|
+
this.triangulation_,
|
|
439
|
+
sources,
|
|
440
|
+
this.gutter_,
|
|
441
|
+
this.renderEdges_,
|
|
442
|
+
this.interpolate
|
|
443
|
+
);
|
|
444
|
+
this.state = TileState_default.LOADED;
|
|
445
|
+
}
|
|
446
|
+
this.changed();
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* Load not yet loaded URI.
|
|
450
|
+
* @override
|
|
451
|
+
*/
|
|
452
|
+
load() {
|
|
453
|
+
for (const sourceTile of this.sourceTiles_) {
|
|
454
|
+
sourceTile.tile = sourceTile.getTile();
|
|
455
|
+
}
|
|
456
|
+
if (this.state == TileState_default.IDLE) {
|
|
457
|
+
this.state = TileState_default.LOADING;
|
|
458
|
+
this.changed();
|
|
459
|
+
let leftToLoad = 0;
|
|
460
|
+
this.sourcesListenerKeys_ = [];
|
|
461
|
+
this.sourceTiles_.forEach(({ tile }) => {
|
|
462
|
+
const state = tile.getState();
|
|
463
|
+
if (state == TileState_default.IDLE || state == TileState_default.LOADING) {
|
|
464
|
+
leftToLoad++;
|
|
465
|
+
const sourceListenKey = listen(tile, EventType_default.CHANGE, (e) => {
|
|
466
|
+
const state2 = tile.getState();
|
|
467
|
+
if (state2 == TileState_default.LOADED || state2 == TileState_default.ERROR || state2 == TileState_default.EMPTY) {
|
|
468
|
+
unlistenByKey(sourceListenKey);
|
|
469
|
+
leftToLoad--;
|
|
470
|
+
if (leftToLoad === 0) {
|
|
471
|
+
this.unlistenSources_();
|
|
472
|
+
this.reproject_();
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
});
|
|
476
|
+
this.sourcesListenerKeys_.push(sourceListenKey);
|
|
477
|
+
}
|
|
478
|
+
});
|
|
479
|
+
if (leftToLoad === 0) {
|
|
480
|
+
setTimeout(this.reproject_.bind(this), 0);
|
|
481
|
+
} else {
|
|
482
|
+
this.sourceTiles_.forEach(function({ tile }, i, arr) {
|
|
483
|
+
const state = tile.getState();
|
|
484
|
+
if (state == TileState_default.IDLE) {
|
|
485
|
+
tile.load();
|
|
486
|
+
}
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* @private
|
|
493
|
+
*/
|
|
494
|
+
unlistenSources_() {
|
|
495
|
+
this.sourcesListenerKeys_.forEach(unlistenByKey);
|
|
496
|
+
this.sourcesListenerKeys_ = null;
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Remove from the cache due to expiry
|
|
500
|
+
* @override
|
|
501
|
+
*/
|
|
502
|
+
release() {
|
|
503
|
+
if (this.canvas_) {
|
|
504
|
+
releaseCanvas(
|
|
505
|
+
/** @type {CanvasRenderingContext2D|OffscreenCanvasRenderingContext2D} */
|
|
506
|
+
this.canvas_.getContext("2d")
|
|
507
|
+
);
|
|
508
|
+
canvasPool.push(this.canvas_);
|
|
509
|
+
this.canvas_ = null;
|
|
510
|
+
}
|
|
511
|
+
this.sourceTiles_.length = 0;
|
|
512
|
+
super.release();
|
|
513
|
+
}
|
|
514
|
+
};
|
|
515
|
+
var Tile_default2 = ReprojTile;
|
|
516
|
+
|
|
517
|
+
// node_modules/ol/structs/LRUCache.js
|
|
518
|
+
init_dirname();
|
|
519
|
+
init_buffer();
|
|
520
|
+
init_process();
|
|
521
|
+
var LRUCache = class {
|
|
522
|
+
/**
|
|
523
|
+
* @param {number} [highWaterMark] High water mark.
|
|
524
|
+
*/
|
|
525
|
+
constructor(highWaterMark) {
|
|
526
|
+
this.highWaterMark = highWaterMark !== void 0 ? highWaterMark : 2048;
|
|
527
|
+
this.count_ = 0;
|
|
528
|
+
this.entries_ = {};
|
|
529
|
+
this.oldest_ = null;
|
|
530
|
+
this.newest_ = null;
|
|
531
|
+
}
|
|
532
|
+
deleteOldest() {
|
|
533
|
+
const entry = this.pop();
|
|
534
|
+
if (entry instanceof Disposable_default) {
|
|
535
|
+
entry.dispose();
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* @return {boolean} Can expire cache.
|
|
540
|
+
*/
|
|
541
|
+
canExpireCache() {
|
|
542
|
+
return this.highWaterMark > 0 && this.getCount() > this.highWaterMark;
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* Expire the cache. When the cache entry is a {@link module:ol/Disposable~Disposable},
|
|
546
|
+
* the entry will be disposed.
|
|
547
|
+
* @param {!Object<string, boolean>} [keep] Keys to keep. To be implemented by subclasses.
|
|
548
|
+
*/
|
|
549
|
+
expireCache(keep) {
|
|
550
|
+
while (this.canExpireCache()) {
|
|
551
|
+
this.deleteOldest();
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* FIXME empty description for jsdoc
|
|
556
|
+
*/
|
|
557
|
+
clear() {
|
|
558
|
+
while (this.oldest_) {
|
|
559
|
+
this.deleteOldest();
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* @param {string} key Key.
|
|
564
|
+
* @return {boolean} Contains key.
|
|
565
|
+
*/
|
|
566
|
+
containsKey(key) {
|
|
567
|
+
return this.entries_.hasOwnProperty(key);
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* @param {function(T, string, LRUCache<T>): ?} f The function
|
|
571
|
+
* to call for every entry from the oldest to the newer. This function takes
|
|
572
|
+
* 3 arguments (the entry value, the entry key and the LRUCache object).
|
|
573
|
+
* The return value is ignored.
|
|
574
|
+
*/
|
|
575
|
+
forEach(f) {
|
|
576
|
+
let entry = this.oldest_;
|
|
577
|
+
while (entry) {
|
|
578
|
+
f(entry.value_, entry.key_, this);
|
|
579
|
+
entry = entry.newer;
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* @param {string} key Key.
|
|
584
|
+
* @param {*} [options] Options (reserved for subclasses).
|
|
585
|
+
* @return {T} Value.
|
|
586
|
+
*/
|
|
587
|
+
get(key, options) {
|
|
588
|
+
const entry = this.entries_[key];
|
|
589
|
+
assert(
|
|
590
|
+
entry !== void 0,
|
|
591
|
+
"Tried to get a value for a key that does not exist in the cache"
|
|
592
|
+
);
|
|
593
|
+
if (entry === this.newest_) {
|
|
594
|
+
return entry.value_;
|
|
595
|
+
}
|
|
596
|
+
if (entry === this.oldest_) {
|
|
597
|
+
this.oldest_ = /** @type {Entry} */
|
|
598
|
+
this.oldest_.newer;
|
|
599
|
+
this.oldest_.older = null;
|
|
600
|
+
} else {
|
|
601
|
+
entry.newer.older = entry.older;
|
|
602
|
+
entry.older.newer = entry.newer;
|
|
603
|
+
}
|
|
604
|
+
entry.newer = null;
|
|
605
|
+
entry.older = this.newest_;
|
|
606
|
+
this.newest_.newer = entry;
|
|
607
|
+
this.newest_ = entry;
|
|
608
|
+
return entry.value_;
|
|
609
|
+
}
|
|
610
|
+
/**
|
|
611
|
+
* Remove an entry from the cache.
|
|
612
|
+
* @param {string} key The entry key.
|
|
613
|
+
* @return {T} The removed entry.
|
|
614
|
+
*/
|
|
615
|
+
remove(key) {
|
|
616
|
+
const entry = this.entries_[key];
|
|
617
|
+
assert(
|
|
618
|
+
entry !== void 0,
|
|
619
|
+
"Tried to get a value for a key that does not exist in the cache"
|
|
620
|
+
);
|
|
621
|
+
if (entry === this.newest_) {
|
|
622
|
+
this.newest_ = /** @type {Entry} */
|
|
623
|
+
entry.older;
|
|
624
|
+
if (this.newest_) {
|
|
625
|
+
this.newest_.newer = null;
|
|
626
|
+
}
|
|
627
|
+
} else if (entry === this.oldest_) {
|
|
628
|
+
this.oldest_ = /** @type {Entry} */
|
|
629
|
+
entry.newer;
|
|
630
|
+
if (this.oldest_) {
|
|
631
|
+
this.oldest_.older = null;
|
|
632
|
+
}
|
|
633
|
+
} else {
|
|
634
|
+
entry.newer.older = entry.older;
|
|
635
|
+
entry.older.newer = entry.newer;
|
|
636
|
+
}
|
|
637
|
+
delete this.entries_[key];
|
|
638
|
+
--this.count_;
|
|
639
|
+
return entry.value_;
|
|
640
|
+
}
|
|
641
|
+
/**
|
|
642
|
+
* @return {number} Count.
|
|
643
|
+
*/
|
|
644
|
+
getCount() {
|
|
645
|
+
return this.count_;
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* @return {Array<string>} Keys.
|
|
649
|
+
*/
|
|
650
|
+
getKeys() {
|
|
651
|
+
const keys = new Array(this.count_);
|
|
652
|
+
let i = 0;
|
|
653
|
+
let entry;
|
|
654
|
+
for (entry = this.newest_; entry; entry = entry.older) {
|
|
655
|
+
keys[i++] = entry.key_;
|
|
656
|
+
}
|
|
657
|
+
return keys;
|
|
658
|
+
}
|
|
659
|
+
/**
|
|
660
|
+
* @return {Array<T>} Values.
|
|
661
|
+
*/
|
|
662
|
+
getValues() {
|
|
663
|
+
const values = new Array(this.count_);
|
|
664
|
+
let i = 0;
|
|
665
|
+
let entry;
|
|
666
|
+
for (entry = this.newest_; entry; entry = entry.older) {
|
|
667
|
+
values[i++] = entry.value_;
|
|
668
|
+
}
|
|
669
|
+
return values;
|
|
670
|
+
}
|
|
671
|
+
/**
|
|
672
|
+
* @return {T} Last value.
|
|
673
|
+
*/
|
|
674
|
+
peekLast() {
|
|
675
|
+
return this.oldest_.value_;
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* @return {string} Last key.
|
|
679
|
+
*/
|
|
680
|
+
peekLastKey() {
|
|
681
|
+
return this.oldest_.key_;
|
|
682
|
+
}
|
|
683
|
+
/**
|
|
684
|
+
* Get the key of the newest item in the cache. Throws if the cache is empty.
|
|
685
|
+
* @return {string} The newest key.
|
|
686
|
+
*/
|
|
687
|
+
peekFirstKey() {
|
|
688
|
+
return this.newest_.key_;
|
|
689
|
+
}
|
|
690
|
+
/**
|
|
691
|
+
* Return an entry without updating least recently used time.
|
|
692
|
+
* @param {string} key Key.
|
|
693
|
+
* @return {T|undefined} Value.
|
|
694
|
+
*/
|
|
695
|
+
peek(key) {
|
|
696
|
+
var _a;
|
|
697
|
+
return (_a = this.entries_[key]) == null ? void 0 : _a.value_;
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
* @return {T} value Value.
|
|
701
|
+
*/
|
|
702
|
+
pop() {
|
|
703
|
+
const entry = this.oldest_;
|
|
704
|
+
delete this.entries_[entry.key_];
|
|
705
|
+
if (entry.newer) {
|
|
706
|
+
entry.newer.older = null;
|
|
707
|
+
}
|
|
708
|
+
this.oldest_ = /** @type {Entry} */
|
|
709
|
+
entry.newer;
|
|
710
|
+
if (!this.oldest_) {
|
|
711
|
+
this.newest_ = null;
|
|
712
|
+
}
|
|
713
|
+
--this.count_;
|
|
714
|
+
return entry.value_;
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* @param {string} key Key.
|
|
718
|
+
* @param {T} value Value.
|
|
719
|
+
*/
|
|
720
|
+
replace(key, value) {
|
|
721
|
+
this.get(key);
|
|
722
|
+
this.entries_[key].value_ = value;
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* @param {string} key Key.
|
|
726
|
+
* @param {T} value Value.
|
|
727
|
+
*/
|
|
728
|
+
set(key, value) {
|
|
729
|
+
assert(
|
|
730
|
+
!(key in this.entries_),
|
|
731
|
+
"Tried to set a value for a key that is used already"
|
|
732
|
+
);
|
|
733
|
+
const entry = {
|
|
734
|
+
key_: key,
|
|
735
|
+
newer: null,
|
|
736
|
+
older: this.newest_,
|
|
737
|
+
value_: value
|
|
738
|
+
};
|
|
739
|
+
if (!this.newest_) {
|
|
740
|
+
this.oldest_ = entry;
|
|
741
|
+
} else {
|
|
742
|
+
this.newest_.newer = entry;
|
|
743
|
+
}
|
|
744
|
+
this.newest_ = entry;
|
|
745
|
+
this.entries_[key] = entry;
|
|
746
|
+
++this.count_;
|
|
747
|
+
}
|
|
748
|
+
/**
|
|
749
|
+
* Set a maximum number of entries for the cache.
|
|
750
|
+
* @param {number} size Cache size.
|
|
751
|
+
* @api
|
|
752
|
+
*/
|
|
753
|
+
setSize(size) {
|
|
754
|
+
this.highWaterMark = size;
|
|
755
|
+
}
|
|
756
|
+
};
|
|
757
|
+
var LRUCache_default = LRUCache;
|
|
758
|
+
|
|
759
|
+
// node_modules/ol/renderer/canvas/TileLayer.js
|
|
760
|
+
function addTileToLookup(tilesByZ, tile, z) {
|
|
761
|
+
if (!(z in tilesByZ)) {
|
|
762
|
+
tilesByZ[z] = /* @__PURE__ */ new Set([tile]);
|
|
763
|
+
return true;
|
|
764
|
+
}
|
|
765
|
+
const set = tilesByZ[z];
|
|
766
|
+
const existing = set.has(tile);
|
|
767
|
+
if (!existing) {
|
|
768
|
+
set.add(tile);
|
|
769
|
+
}
|
|
770
|
+
return !existing;
|
|
771
|
+
}
|
|
772
|
+
function removeTileFromLookup(tilesByZ, tile, z) {
|
|
773
|
+
const set = tilesByZ[z];
|
|
774
|
+
if (set) {
|
|
775
|
+
return set.delete(tile);
|
|
776
|
+
}
|
|
777
|
+
return false;
|
|
778
|
+
}
|
|
779
|
+
function getRenderExtent(frameState, extent) {
|
|
780
|
+
const layerState = frameState.layerStatesArray[frameState.layerIndex];
|
|
781
|
+
if (layerState.extent) {
|
|
782
|
+
extent = getIntersection(
|
|
783
|
+
extent,
|
|
784
|
+
fromUserExtent(layerState.extent, frameState.viewState.projection)
|
|
785
|
+
);
|
|
786
|
+
}
|
|
787
|
+
const source = (
|
|
788
|
+
/** @type {import("../../source/Tile.js").default} */
|
|
789
|
+
layerState.layer.getRenderSource()
|
|
790
|
+
);
|
|
791
|
+
if (!source.getWrapX()) {
|
|
792
|
+
const gridExtent = source.getTileGridForProjection(frameState.viewState.projection).getExtent();
|
|
793
|
+
if (gridExtent) {
|
|
794
|
+
extent = getIntersection(extent, gridExtent);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
return extent;
|
|
798
|
+
}
|
|
799
|
+
var CanvasTileLayerRenderer = class extends Layer_default {
|
|
800
|
+
/**
|
|
801
|
+
* @param {LayerType} tileLayer Tile layer.
|
|
802
|
+
* @param {Options} [options] Options.
|
|
803
|
+
*/
|
|
804
|
+
constructor(tileLayer, options) {
|
|
805
|
+
super(tileLayer);
|
|
806
|
+
options = options || {};
|
|
807
|
+
this.extentChanged = true;
|
|
808
|
+
this.renderComplete = false;
|
|
809
|
+
this.renderedExtent_ = null;
|
|
810
|
+
this.renderedPixelRatio;
|
|
811
|
+
this.renderedProjection = null;
|
|
812
|
+
this.renderedTiles = [];
|
|
813
|
+
this.renderedSourceKey_;
|
|
814
|
+
this.renderedSourceRevision_;
|
|
815
|
+
this.tempExtent = createEmpty();
|
|
816
|
+
this.tempTileRange_ = new TileRange_default(0, 0, 0, 0);
|
|
817
|
+
this.tempTileCoord_ = createOrUpdate(0, 0, 0);
|
|
818
|
+
const cacheSize = options.cacheSize !== void 0 ? options.cacheSize : 512;
|
|
819
|
+
this.tileCache_ = new LRUCache_default(cacheSize);
|
|
820
|
+
this.sourceTileCache_ = null;
|
|
821
|
+
this.maxStaleKeys = cacheSize * 0.5;
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* @return {LRUCache} Tile cache.
|
|
825
|
+
*/
|
|
826
|
+
getTileCache() {
|
|
827
|
+
return this.tileCache_;
|
|
828
|
+
}
|
|
829
|
+
/**
|
|
830
|
+
* @return {LRUCache} Tile cache.
|
|
831
|
+
*/
|
|
832
|
+
getSourceTileCache() {
|
|
833
|
+
if (!this.sourceTileCache_) {
|
|
834
|
+
this.sourceTileCache_ = new LRUCache_default(512);
|
|
835
|
+
}
|
|
836
|
+
return this.sourceTileCache_;
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
* Get a tile from the cache or create one if needed.
|
|
840
|
+
*
|
|
841
|
+
* @param {number} z Tile coordinate z.
|
|
842
|
+
* @param {number} x Tile coordinate x.
|
|
843
|
+
* @param {number} y Tile coordinate y.
|
|
844
|
+
* @param {import("../../Map.js").FrameState} frameState Frame state.
|
|
845
|
+
* @return {import("../../Tile.js").default|null} Tile (or null if outside source extent).
|
|
846
|
+
* @protected
|
|
847
|
+
*/
|
|
848
|
+
getOrCreateTile(z, x, y, frameState) {
|
|
849
|
+
const tileCache = this.tileCache_;
|
|
850
|
+
const tileLayer = this.getLayer();
|
|
851
|
+
const tileSource = tileLayer.getSource();
|
|
852
|
+
const cacheKey = getCacheKey(tileSource, tileSource.getKey(), z, x, y);
|
|
853
|
+
let tile;
|
|
854
|
+
if (tileCache.containsKey(cacheKey)) {
|
|
855
|
+
tile = tileCache.get(cacheKey);
|
|
856
|
+
} else {
|
|
857
|
+
const projection = frameState.viewState.projection;
|
|
858
|
+
const sourceProjection = tileSource.getProjection();
|
|
859
|
+
tile = tileSource.getTile(
|
|
860
|
+
z,
|
|
861
|
+
x,
|
|
862
|
+
y,
|
|
863
|
+
frameState.pixelRatio,
|
|
864
|
+
projection,
|
|
865
|
+
!sourceProjection || equivalent(sourceProjection, projection) ? void 0 : this.getSourceTileCache()
|
|
866
|
+
);
|
|
867
|
+
if (!tile) {
|
|
868
|
+
return null;
|
|
869
|
+
}
|
|
870
|
+
tileCache.set(cacheKey, tile);
|
|
871
|
+
}
|
|
872
|
+
return tile;
|
|
873
|
+
}
|
|
874
|
+
/**
|
|
875
|
+
* @param {number} z Tile coordinate z.
|
|
876
|
+
* @param {number} x Tile coordinate x.
|
|
877
|
+
* @param {number} y Tile coordinate y.
|
|
878
|
+
* @param {import("../../Map.js").FrameState} frameState Frame state.
|
|
879
|
+
* @return {import("../../Tile.js").default|null} Tile (or null if outside source extent).
|
|
880
|
+
* @protected
|
|
881
|
+
*/
|
|
882
|
+
getTile(z, x, y, frameState) {
|
|
883
|
+
const tile = this.getOrCreateTile(z, x, y, frameState);
|
|
884
|
+
if (!tile) {
|
|
885
|
+
return null;
|
|
886
|
+
}
|
|
887
|
+
return tile;
|
|
888
|
+
}
|
|
889
|
+
/**
|
|
890
|
+
* @param {import("../../pixel.js").Pixel} pixel Pixel.
|
|
891
|
+
* @return {Uint8ClampedArray} Data at the pixel location.
|
|
892
|
+
* @override
|
|
893
|
+
*/
|
|
894
|
+
getData(pixel) {
|
|
895
|
+
const frameState = this.frameState;
|
|
896
|
+
if (!frameState) {
|
|
897
|
+
return null;
|
|
898
|
+
}
|
|
899
|
+
const layer = this.getLayer();
|
|
900
|
+
const coordinate = apply(
|
|
901
|
+
frameState.pixelToCoordinateTransform,
|
|
902
|
+
pixel.slice()
|
|
903
|
+
);
|
|
904
|
+
const layerExtent = layer.getExtent();
|
|
905
|
+
if (layerExtent) {
|
|
906
|
+
if (!containsCoordinate(layerExtent, coordinate)) {
|
|
907
|
+
return null;
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
const viewState = frameState.viewState;
|
|
911
|
+
const source = layer.getRenderSource();
|
|
912
|
+
const tileGrid = source.getTileGridForProjection(viewState.projection);
|
|
913
|
+
const tilePixelRatio = source.getTilePixelRatio(frameState.pixelRatio);
|
|
914
|
+
for (let z = tileGrid.getZForResolution(viewState.resolution); z >= tileGrid.getMinZoom(); --z) {
|
|
915
|
+
const tileCoord = tileGrid.getTileCoordForCoordAndZ(coordinate, z);
|
|
916
|
+
const tile = this.getTile(z, tileCoord[1], tileCoord[2], frameState);
|
|
917
|
+
if (!tile || tile.getState() !== TileState_default.LOADED) {
|
|
918
|
+
continue;
|
|
919
|
+
}
|
|
920
|
+
const tileOrigin = tileGrid.getOrigin(z);
|
|
921
|
+
const tileSize = toSize(tileGrid.getTileSize(z));
|
|
922
|
+
const tileResolution = tileGrid.getResolution(z);
|
|
923
|
+
let image;
|
|
924
|
+
if (tile instanceof ImageTile_default || tile instanceof Tile_default2) {
|
|
925
|
+
image = tile.getImage();
|
|
926
|
+
} else if (tile instanceof DataTile_default) {
|
|
927
|
+
image = asImageLike(tile.getData());
|
|
928
|
+
if (!image) {
|
|
929
|
+
continue;
|
|
930
|
+
}
|
|
931
|
+
} else {
|
|
932
|
+
continue;
|
|
933
|
+
}
|
|
934
|
+
const col = Math.floor(
|
|
935
|
+
tilePixelRatio * ((coordinate[0] - tileOrigin[0]) / tileResolution - tileCoord[1] * tileSize[0])
|
|
936
|
+
);
|
|
937
|
+
const row = Math.floor(
|
|
938
|
+
tilePixelRatio * ((tileOrigin[1] - coordinate[1]) / tileResolution - tileCoord[2] * tileSize[1])
|
|
939
|
+
);
|
|
940
|
+
const gutter = Math.round(
|
|
941
|
+
tilePixelRatio * source.getGutterForProjection(viewState.projection)
|
|
942
|
+
);
|
|
943
|
+
return this.getImageData(image, col + gutter, row + gutter);
|
|
944
|
+
}
|
|
945
|
+
return null;
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
* Determine whether render should be called.
|
|
949
|
+
* @param {import("../../Map.js").FrameState} frameState Frame state.
|
|
950
|
+
* @return {boolean} Layer is ready to be rendered.
|
|
951
|
+
* @override
|
|
952
|
+
*/
|
|
953
|
+
prepareFrame(frameState) {
|
|
954
|
+
var _a;
|
|
955
|
+
if (!this.renderedProjection) {
|
|
956
|
+
this.renderedProjection = frameState.viewState.projection;
|
|
957
|
+
} else if (frameState.viewState.projection !== this.renderedProjection) {
|
|
958
|
+
this.tileCache_.clear();
|
|
959
|
+
this.renderedProjection = frameState.viewState.projection;
|
|
960
|
+
}
|
|
961
|
+
const source = this.getLayer().getSource();
|
|
962
|
+
if (!source) {
|
|
963
|
+
return false;
|
|
964
|
+
}
|
|
965
|
+
const sourceRevision = source.getRevision();
|
|
966
|
+
if (!this.renderedSourceRevision_) {
|
|
967
|
+
this.renderedSourceRevision_ = sourceRevision;
|
|
968
|
+
} else if (this.renderedSourceRevision_ !== sourceRevision) {
|
|
969
|
+
this.renderedSourceRevision_ = sourceRevision;
|
|
970
|
+
if (this.renderedSourceKey_ === source.getKey()) {
|
|
971
|
+
this.tileCache_.clear();
|
|
972
|
+
(_a = this.sourceTileCache_) == null ? void 0 : _a.clear();
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
return true;
|
|
976
|
+
}
|
|
977
|
+
/**
|
|
978
|
+
* Determine whether tiles for next extent should be enqueued for rendering.
|
|
979
|
+
* @return {boolean} Rendering tiles for next extent is supported.
|
|
980
|
+
* @protected
|
|
981
|
+
*/
|
|
982
|
+
enqueueTilesForNextExtent() {
|
|
983
|
+
return true;
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* @param {import("../../Map.js").FrameState} frameState Frame state.
|
|
987
|
+
* @param {import("../../extent.js").Extent} extent The extent to be rendered.
|
|
988
|
+
* @param {number} initialZ The zoom level.
|
|
989
|
+
* @param {TileLookup} tilesByZ Lookup of tiles by zoom level.
|
|
990
|
+
* @param {number} preload Number of additional levels to load.
|
|
991
|
+
*/
|
|
992
|
+
enqueueTiles(frameState, extent, initialZ, tilesByZ, preload) {
|
|
993
|
+
const viewState = frameState.viewState;
|
|
994
|
+
const tileLayer = this.getLayer();
|
|
995
|
+
const tileSource = tileLayer.getRenderSource();
|
|
996
|
+
const tileGrid = tileSource.getTileGridForProjection(viewState.projection);
|
|
997
|
+
const tileSourceKey = getUid(tileSource);
|
|
998
|
+
if (!(tileSourceKey in frameState.wantedTiles)) {
|
|
999
|
+
frameState.wantedTiles[tileSourceKey] = {};
|
|
1000
|
+
}
|
|
1001
|
+
const wantedTiles = frameState.wantedTiles[tileSourceKey];
|
|
1002
|
+
const map = tileLayer.getMapInternal();
|
|
1003
|
+
const minZ = Math.max(
|
|
1004
|
+
initialZ - preload,
|
|
1005
|
+
tileGrid.getMinZoom(),
|
|
1006
|
+
tileGrid.getZForResolution(
|
|
1007
|
+
Math.min(
|
|
1008
|
+
tileLayer.getMaxResolution(),
|
|
1009
|
+
map ? map.getView().getResolutionForZoom(Math.max(tileLayer.getMinZoom(), 0)) : tileGrid.getResolution(0)
|
|
1010
|
+
),
|
|
1011
|
+
tileSource.zDirection
|
|
1012
|
+
)
|
|
1013
|
+
);
|
|
1014
|
+
const rotation = viewState.rotation;
|
|
1015
|
+
const viewport = rotation ? getRotatedViewport(
|
|
1016
|
+
viewState.center,
|
|
1017
|
+
viewState.resolution,
|
|
1018
|
+
rotation,
|
|
1019
|
+
frameState.size
|
|
1020
|
+
) : void 0;
|
|
1021
|
+
for (let z = initialZ; z >= minZ; --z) {
|
|
1022
|
+
const tileRange = tileGrid.getTileRangeForExtentAndZ(
|
|
1023
|
+
extent,
|
|
1024
|
+
z,
|
|
1025
|
+
this.tempTileRange_
|
|
1026
|
+
);
|
|
1027
|
+
const tileResolution = tileGrid.getResolution(z);
|
|
1028
|
+
for (let x = tileRange.minX; x <= tileRange.maxX; ++x) {
|
|
1029
|
+
for (let y = tileRange.minY; y <= tileRange.maxY; ++y) {
|
|
1030
|
+
if (rotation && !tileGrid.tileCoordIntersectsViewport([z, x, y], viewport)) {
|
|
1031
|
+
continue;
|
|
1032
|
+
}
|
|
1033
|
+
const tile = this.getTile(z, x, y, frameState);
|
|
1034
|
+
if (!tile) {
|
|
1035
|
+
continue;
|
|
1036
|
+
}
|
|
1037
|
+
const added = addTileToLookup(tilesByZ, tile, z);
|
|
1038
|
+
if (!added) {
|
|
1039
|
+
continue;
|
|
1040
|
+
}
|
|
1041
|
+
const tileQueueKey = tile.getKey();
|
|
1042
|
+
wantedTiles[tileQueueKey] = true;
|
|
1043
|
+
if (tile.getState() === TileState_default.IDLE) {
|
|
1044
|
+
if (!frameState.tileQueue.isKeyQueued(tileQueueKey)) {
|
|
1045
|
+
const tileCoord = createOrUpdate(z, x, y, this.tempTileCoord_);
|
|
1046
|
+
frameState.tileQueue.enqueue([
|
|
1047
|
+
tile,
|
|
1048
|
+
tileSourceKey,
|
|
1049
|
+
tileGrid.getTileCoordCenter(tileCoord),
|
|
1050
|
+
tileResolution
|
|
1051
|
+
]);
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
/**
|
|
1059
|
+
* Look for tiles covering the provided tile coordinate at an alternate
|
|
1060
|
+
* zoom level. Loaded tiles will be added to the provided tile texture lookup.
|
|
1061
|
+
* @param {import("../../tilecoord.js").TileCoord} tileCoord The target tile coordinate.
|
|
1062
|
+
* @param {TileLookup} tilesByZ Lookup of tiles by zoom level.
|
|
1063
|
+
* @return {boolean} The tile coordinate is covered by loaded tiles at the alternate zoom level.
|
|
1064
|
+
* @private
|
|
1065
|
+
*/
|
|
1066
|
+
findStaleTile_(tileCoord, tilesByZ) {
|
|
1067
|
+
const tileCache = this.tileCache_;
|
|
1068
|
+
const z = tileCoord[0];
|
|
1069
|
+
const x = tileCoord[1];
|
|
1070
|
+
const y = tileCoord[2];
|
|
1071
|
+
const staleKeys = this.getStaleKeys();
|
|
1072
|
+
for (let i = 0; i < staleKeys.length; ++i) {
|
|
1073
|
+
const cacheKey = getCacheKey(
|
|
1074
|
+
this.getLayer().getSource(),
|
|
1075
|
+
staleKeys[i],
|
|
1076
|
+
z,
|
|
1077
|
+
x,
|
|
1078
|
+
y
|
|
1079
|
+
);
|
|
1080
|
+
if (tileCache.containsKey(cacheKey)) {
|
|
1081
|
+
const tile = tileCache.peek(cacheKey);
|
|
1082
|
+
if (tile.getState() === TileState_default.LOADED) {
|
|
1083
|
+
tile.endTransition(getUid(this));
|
|
1084
|
+
addTileToLookup(tilesByZ, tile, z);
|
|
1085
|
+
return true;
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
return false;
|
|
1090
|
+
}
|
|
1091
|
+
/**
|
|
1092
|
+
* Look for tiles covering the provided tile coordinate at an alternate
|
|
1093
|
+
* zoom level. Loaded tiles will be added to the provided tile texture lookup.
|
|
1094
|
+
* @param {import("../../tilegrid/TileGrid.js").default} tileGrid The tile grid.
|
|
1095
|
+
* @param {import("../../tilecoord.js").TileCoord} tileCoord The target tile coordinate.
|
|
1096
|
+
* @param {number} altZ The alternate zoom level.
|
|
1097
|
+
* @param {TileLookup} tilesByZ Lookup of tiles by zoom level.
|
|
1098
|
+
* @return {boolean} The tile coordinate is covered by loaded tiles at the alternate zoom level.
|
|
1099
|
+
* @private
|
|
1100
|
+
*/
|
|
1101
|
+
findAltTiles_(tileGrid, tileCoord, altZ, tilesByZ) {
|
|
1102
|
+
const tileRange = tileGrid.getTileRangeForTileCoordAndZ(
|
|
1103
|
+
tileCoord,
|
|
1104
|
+
altZ,
|
|
1105
|
+
this.tempTileRange_
|
|
1106
|
+
);
|
|
1107
|
+
if (!tileRange) {
|
|
1108
|
+
return false;
|
|
1109
|
+
}
|
|
1110
|
+
let covered = true;
|
|
1111
|
+
const tileCache = this.tileCache_;
|
|
1112
|
+
const source = this.getLayer().getRenderSource();
|
|
1113
|
+
const sourceKey = source.getKey();
|
|
1114
|
+
for (let x = tileRange.minX; x <= tileRange.maxX; ++x) {
|
|
1115
|
+
for (let y = tileRange.minY; y <= tileRange.maxY; ++y) {
|
|
1116
|
+
const cacheKey = getCacheKey(source, sourceKey, altZ, x, y);
|
|
1117
|
+
let loaded = false;
|
|
1118
|
+
if (tileCache.containsKey(cacheKey)) {
|
|
1119
|
+
const tile = tileCache.peek(cacheKey);
|
|
1120
|
+
if (tile.getState() === TileState_default.LOADED) {
|
|
1121
|
+
addTileToLookup(tilesByZ, tile, altZ);
|
|
1122
|
+
loaded = true;
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
if (!loaded) {
|
|
1126
|
+
covered = false;
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
return covered;
|
|
1131
|
+
}
|
|
1132
|
+
/**
|
|
1133
|
+
* Render the layer.
|
|
1134
|
+
*
|
|
1135
|
+
* The frame rendering logic has three parts:
|
|
1136
|
+
*
|
|
1137
|
+
* 1. Enqueue tiles
|
|
1138
|
+
* 2. Find alt tiles for those that are not yet loaded
|
|
1139
|
+
* 3. Render loaded tiles
|
|
1140
|
+
*
|
|
1141
|
+
* @param {import("../../Map.js").FrameState} frameState Frame state.
|
|
1142
|
+
* @param {HTMLElement} target Target that may be used to render content to.
|
|
1143
|
+
* @return {HTMLElement} The rendered element.
|
|
1144
|
+
* @override
|
|
1145
|
+
*/
|
|
1146
|
+
renderFrame(frameState, target) {
|
|
1147
|
+
this.renderComplete = true;
|
|
1148
|
+
const layerState = frameState.layerStatesArray[frameState.layerIndex];
|
|
1149
|
+
const viewState = frameState.viewState;
|
|
1150
|
+
const projection = viewState.projection;
|
|
1151
|
+
const viewResolution = viewState.resolution;
|
|
1152
|
+
const viewCenter = viewState.center;
|
|
1153
|
+
const pixelRatio = frameState.pixelRatio;
|
|
1154
|
+
const tileLayer = this.getLayer();
|
|
1155
|
+
const tileSource = tileLayer.getSource();
|
|
1156
|
+
const tileGrid = tileSource.getTileGridForProjection(projection);
|
|
1157
|
+
const z = tileGrid.getZForResolution(viewResolution, tileSource.zDirection);
|
|
1158
|
+
const tileResolution = tileGrid.getResolution(z);
|
|
1159
|
+
const sourceKey = tileSource.getKey();
|
|
1160
|
+
if (!this.renderedSourceKey_) {
|
|
1161
|
+
this.renderedSourceKey_ = sourceKey;
|
|
1162
|
+
} else if (this.renderedSourceKey_ !== sourceKey) {
|
|
1163
|
+
this.prependStaleKey(this.renderedSourceKey_);
|
|
1164
|
+
this.renderedSourceKey_ = sourceKey;
|
|
1165
|
+
}
|
|
1166
|
+
let frameExtent = frameState.extent;
|
|
1167
|
+
const tilePixelRatio = tileSource.getTilePixelRatio(pixelRatio);
|
|
1168
|
+
this.prepareContainer(frameState, target);
|
|
1169
|
+
const width = this.context.canvas.width;
|
|
1170
|
+
const height = this.context.canvas.height;
|
|
1171
|
+
const layerExtent = layerState.extent && fromUserExtent(layerState.extent, projection);
|
|
1172
|
+
if (layerExtent) {
|
|
1173
|
+
frameExtent = getIntersection(
|
|
1174
|
+
frameExtent,
|
|
1175
|
+
fromUserExtent(layerState.extent, projection)
|
|
1176
|
+
);
|
|
1177
|
+
}
|
|
1178
|
+
const dx = tileResolution * width / 2 / tilePixelRatio;
|
|
1179
|
+
const dy = tileResolution * height / 2 / tilePixelRatio;
|
|
1180
|
+
const canvasExtent = [
|
|
1181
|
+
viewCenter[0] - dx,
|
|
1182
|
+
viewCenter[1] - dy,
|
|
1183
|
+
viewCenter[0] + dx,
|
|
1184
|
+
viewCenter[1] + dy
|
|
1185
|
+
];
|
|
1186
|
+
const tilesByZ = {};
|
|
1187
|
+
this.renderedTiles.length = 0;
|
|
1188
|
+
const preload = tileLayer.getPreload();
|
|
1189
|
+
if (frameState.nextExtent && this.enqueueTilesForNextExtent()) {
|
|
1190
|
+
const targetZ = tileGrid.getZForResolution(
|
|
1191
|
+
viewState.nextResolution,
|
|
1192
|
+
tileSource.zDirection
|
|
1193
|
+
);
|
|
1194
|
+
const nextExtent = getRenderExtent(frameState, frameState.nextExtent);
|
|
1195
|
+
this.enqueueTiles(frameState, nextExtent, targetZ, tilesByZ, preload);
|
|
1196
|
+
}
|
|
1197
|
+
const renderExtent = getRenderExtent(frameState, frameExtent);
|
|
1198
|
+
this.enqueueTiles(frameState, renderExtent, z, tilesByZ, 0);
|
|
1199
|
+
if (preload > 0) {
|
|
1200
|
+
setTimeout(() => {
|
|
1201
|
+
this.enqueueTiles(
|
|
1202
|
+
frameState,
|
|
1203
|
+
renderExtent,
|
|
1204
|
+
z - 1,
|
|
1205
|
+
tilesByZ,
|
|
1206
|
+
preload - 1
|
|
1207
|
+
);
|
|
1208
|
+
}, 0);
|
|
1209
|
+
}
|
|
1210
|
+
if (!(z in tilesByZ)) {
|
|
1211
|
+
return this.container;
|
|
1212
|
+
}
|
|
1213
|
+
const uid = getUid(this);
|
|
1214
|
+
const time = frameState.time;
|
|
1215
|
+
for (const tile of tilesByZ[z]) {
|
|
1216
|
+
const tileState = tile.getState();
|
|
1217
|
+
if (tileState === TileState_default.EMPTY) {
|
|
1218
|
+
continue;
|
|
1219
|
+
}
|
|
1220
|
+
const tileCoord = tile.tileCoord;
|
|
1221
|
+
if (tileState === TileState_default.LOADED) {
|
|
1222
|
+
const alpha = tile.getAlpha(uid, time);
|
|
1223
|
+
if (alpha === 1) {
|
|
1224
|
+
tile.endTransition(uid);
|
|
1225
|
+
continue;
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
if (tileState !== TileState_default.ERROR) {
|
|
1229
|
+
this.renderComplete = false;
|
|
1230
|
+
}
|
|
1231
|
+
const hasStaleTile = this.findStaleTile_(tileCoord, tilesByZ);
|
|
1232
|
+
if (hasStaleTile) {
|
|
1233
|
+
removeTileFromLookup(tilesByZ, tile, z);
|
|
1234
|
+
frameState.animate = true;
|
|
1235
|
+
continue;
|
|
1236
|
+
}
|
|
1237
|
+
const coveredByChildren = this.findAltTiles_(
|
|
1238
|
+
tileGrid,
|
|
1239
|
+
tileCoord,
|
|
1240
|
+
z + 1,
|
|
1241
|
+
tilesByZ
|
|
1242
|
+
);
|
|
1243
|
+
if (coveredByChildren) {
|
|
1244
|
+
continue;
|
|
1245
|
+
}
|
|
1246
|
+
const minZoom = tileGrid.getMinZoom();
|
|
1247
|
+
for (let parentZ = z - 1; parentZ >= minZoom; --parentZ) {
|
|
1248
|
+
const coveredByParent = this.findAltTiles_(
|
|
1249
|
+
tileGrid,
|
|
1250
|
+
tileCoord,
|
|
1251
|
+
parentZ,
|
|
1252
|
+
tilesByZ
|
|
1253
|
+
);
|
|
1254
|
+
if (coveredByParent) {
|
|
1255
|
+
break;
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
const canvasScale = tileResolution / viewResolution * pixelRatio / tilePixelRatio;
|
|
1260
|
+
const context = this.getRenderContext(frameState);
|
|
1261
|
+
compose(
|
|
1262
|
+
this.tempTransform,
|
|
1263
|
+
width / 2,
|
|
1264
|
+
height / 2,
|
|
1265
|
+
canvasScale,
|
|
1266
|
+
canvasScale,
|
|
1267
|
+
0,
|
|
1268
|
+
-width / 2,
|
|
1269
|
+
-height / 2
|
|
1270
|
+
);
|
|
1271
|
+
if (layerState.extent) {
|
|
1272
|
+
this.clipUnrotated(context, frameState, layerExtent);
|
|
1273
|
+
}
|
|
1274
|
+
if (!tileSource.getInterpolate()) {
|
|
1275
|
+
context.imageSmoothingEnabled = false;
|
|
1276
|
+
}
|
|
1277
|
+
this.preRender(context, frameState);
|
|
1278
|
+
const zs = Object.keys(tilesByZ).map(Number);
|
|
1279
|
+
zs.sort(ascending);
|
|
1280
|
+
let currentClip;
|
|
1281
|
+
const clips = [];
|
|
1282
|
+
const clipZs = [];
|
|
1283
|
+
for (let i = zs.length - 1; i >= 0; --i) {
|
|
1284
|
+
const currentZ = zs[i];
|
|
1285
|
+
const currentTilePixelSize = tileSource.getTilePixelSize(
|
|
1286
|
+
currentZ,
|
|
1287
|
+
pixelRatio,
|
|
1288
|
+
projection
|
|
1289
|
+
);
|
|
1290
|
+
const currentResolution = tileGrid.getResolution(currentZ);
|
|
1291
|
+
const currentScale = currentResolution / tileResolution;
|
|
1292
|
+
const dx2 = currentTilePixelSize[0] * currentScale * canvasScale;
|
|
1293
|
+
const dy2 = currentTilePixelSize[1] * currentScale * canvasScale;
|
|
1294
|
+
const originTileCoord = tileGrid.getTileCoordForCoordAndZ(
|
|
1295
|
+
getTopLeft(canvasExtent),
|
|
1296
|
+
currentZ
|
|
1297
|
+
);
|
|
1298
|
+
const originTileExtent = tileGrid.getTileCoordExtent(originTileCoord);
|
|
1299
|
+
const origin = apply(this.tempTransform, [
|
|
1300
|
+
tilePixelRatio * (originTileExtent[0] - canvasExtent[0]) / tileResolution,
|
|
1301
|
+
tilePixelRatio * (canvasExtent[3] - originTileExtent[3]) / tileResolution
|
|
1302
|
+
]);
|
|
1303
|
+
const tileGutter = tilePixelRatio * tileSource.getGutterForProjection(projection);
|
|
1304
|
+
for (const tile of tilesByZ[currentZ]) {
|
|
1305
|
+
if (tile.getState() !== TileState_default.LOADED) {
|
|
1306
|
+
continue;
|
|
1307
|
+
}
|
|
1308
|
+
const tileCoord = tile.tileCoord;
|
|
1309
|
+
const xIndex = originTileCoord[1] - tileCoord[1];
|
|
1310
|
+
const nextX = Math.round(origin[0] - (xIndex - 1) * dx2);
|
|
1311
|
+
const yIndex = originTileCoord[2] - tileCoord[2];
|
|
1312
|
+
const nextY = Math.round(origin[1] - (yIndex - 1) * dy2);
|
|
1313
|
+
const x = Math.round(origin[0] - xIndex * dx2);
|
|
1314
|
+
const y = Math.round(origin[1] - yIndex * dy2);
|
|
1315
|
+
const w = nextX - x;
|
|
1316
|
+
const h = nextY - y;
|
|
1317
|
+
const transition = zs.length === 1;
|
|
1318
|
+
let contextSaved = false;
|
|
1319
|
+
currentClip = [x, y, x + w, y, x + w, y + h, x, y + h];
|
|
1320
|
+
for (let i2 = 0, ii = clips.length; i2 < ii; ++i2) {
|
|
1321
|
+
if (!transition && currentZ < clipZs[i2]) {
|
|
1322
|
+
const clip = clips[i2];
|
|
1323
|
+
if (intersects(
|
|
1324
|
+
[x, y, x + w, y + h],
|
|
1325
|
+
[clip[0], clip[3], clip[4], clip[7]]
|
|
1326
|
+
)) {
|
|
1327
|
+
if (!contextSaved) {
|
|
1328
|
+
context.save();
|
|
1329
|
+
contextSaved = true;
|
|
1330
|
+
}
|
|
1331
|
+
context.beginPath();
|
|
1332
|
+
context.moveTo(currentClip[0], currentClip[1]);
|
|
1333
|
+
context.lineTo(currentClip[2], currentClip[3]);
|
|
1334
|
+
context.lineTo(currentClip[4], currentClip[5]);
|
|
1335
|
+
context.lineTo(currentClip[6], currentClip[7]);
|
|
1336
|
+
context.moveTo(clip[6], clip[7]);
|
|
1337
|
+
context.lineTo(clip[4], clip[5]);
|
|
1338
|
+
context.lineTo(clip[2], clip[3]);
|
|
1339
|
+
context.lineTo(clip[0], clip[1]);
|
|
1340
|
+
context.clip();
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
clips.push(currentClip);
|
|
1345
|
+
clipZs.push(currentZ);
|
|
1346
|
+
this.drawTile(tile, frameState, x, y, w, h, tileGutter, transition);
|
|
1347
|
+
if (contextSaved) {
|
|
1348
|
+
context.restore();
|
|
1349
|
+
}
|
|
1350
|
+
this.renderedTiles.unshift(tile);
|
|
1351
|
+
this.updateUsedTiles(frameState.usedTiles, tileSource, tile);
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
this.renderedResolution = tileResolution;
|
|
1355
|
+
this.extentChanged = !this.renderedExtent_ || !equals(this.renderedExtent_, canvasExtent);
|
|
1356
|
+
this.renderedExtent_ = canvasExtent;
|
|
1357
|
+
this.renderedPixelRatio = pixelRatio;
|
|
1358
|
+
this.postRender(this.context, frameState);
|
|
1359
|
+
if (layerState.extent) {
|
|
1360
|
+
context.restore();
|
|
1361
|
+
}
|
|
1362
|
+
context.imageSmoothingEnabled = true;
|
|
1363
|
+
if (this.renderComplete) {
|
|
1364
|
+
const postRenderFunction = (map, frameState2) => {
|
|
1365
|
+
var _a;
|
|
1366
|
+
const tileSourceKey = getUid(tileSource);
|
|
1367
|
+
const wantedTiles = frameState2.wantedTiles[tileSourceKey];
|
|
1368
|
+
const tilesCount = wantedTiles ? Object.keys(wantedTiles).length : 0;
|
|
1369
|
+
this.updateCacheSize(tilesCount);
|
|
1370
|
+
this.tileCache_.expireCache();
|
|
1371
|
+
(_a = this.sourceTileCache_) == null ? void 0 : _a.expireCache();
|
|
1372
|
+
};
|
|
1373
|
+
frameState.postRenderFunctions.push(postRenderFunction);
|
|
1374
|
+
}
|
|
1375
|
+
return this.container;
|
|
1376
|
+
}
|
|
1377
|
+
/**
|
|
1378
|
+
* Increases the cache size if needed
|
|
1379
|
+
* @param {number} tileCount Minimum number of tiles needed.
|
|
1380
|
+
*/
|
|
1381
|
+
updateCacheSize(tileCount) {
|
|
1382
|
+
this.tileCache_.highWaterMark = Math.max(
|
|
1383
|
+
this.tileCache_.highWaterMark,
|
|
1384
|
+
tileCount * 2
|
|
1385
|
+
);
|
|
1386
|
+
}
|
|
1387
|
+
/**
|
|
1388
|
+
* @param {import("../../Tile.js").default} tile Tile.
|
|
1389
|
+
* @param {import("../../Map.js").FrameState} frameState Frame state.
|
|
1390
|
+
* @param {number} x Left of the tile.
|
|
1391
|
+
* @param {number} y Top of the tile.
|
|
1392
|
+
* @param {number} w Width of the tile.
|
|
1393
|
+
* @param {number} h Height of the tile.
|
|
1394
|
+
* @param {number} gutter Tile gutter.
|
|
1395
|
+
* @param {boolean} transition Apply an alpha transition.
|
|
1396
|
+
* @protected
|
|
1397
|
+
*/
|
|
1398
|
+
drawTile(tile, frameState, x, y, w, h, gutter, transition) {
|
|
1399
|
+
let image;
|
|
1400
|
+
if (tile instanceof DataTile_default) {
|
|
1401
|
+
image = asImageLike(tile.getData());
|
|
1402
|
+
if (!image) {
|
|
1403
|
+
throw new Error("Rendering array data is not yet supported");
|
|
1404
|
+
}
|
|
1405
|
+
} else {
|
|
1406
|
+
image = this.getTileImage(
|
|
1407
|
+
/** @type {import("../../ImageTile.js").default} */
|
|
1408
|
+
tile
|
|
1409
|
+
);
|
|
1410
|
+
}
|
|
1411
|
+
if (!image) {
|
|
1412
|
+
return;
|
|
1413
|
+
}
|
|
1414
|
+
const context = this.getRenderContext(frameState);
|
|
1415
|
+
const uid = getUid(this);
|
|
1416
|
+
const layerState = frameState.layerStatesArray[frameState.layerIndex];
|
|
1417
|
+
const alpha = layerState.opacity * (transition ? tile.getAlpha(uid, frameState.time) : 1);
|
|
1418
|
+
const alphaChanged = alpha !== context.globalAlpha;
|
|
1419
|
+
if (alphaChanged) {
|
|
1420
|
+
context.save();
|
|
1421
|
+
context.globalAlpha = alpha;
|
|
1422
|
+
}
|
|
1423
|
+
context.drawImage(
|
|
1424
|
+
image,
|
|
1425
|
+
gutter,
|
|
1426
|
+
gutter,
|
|
1427
|
+
image.width - 2 * gutter,
|
|
1428
|
+
image.height - 2 * gutter,
|
|
1429
|
+
x,
|
|
1430
|
+
y,
|
|
1431
|
+
w,
|
|
1432
|
+
h
|
|
1433
|
+
);
|
|
1434
|
+
if (alphaChanged) {
|
|
1435
|
+
context.restore();
|
|
1436
|
+
}
|
|
1437
|
+
if (alpha !== layerState.opacity) {
|
|
1438
|
+
frameState.animate = true;
|
|
1439
|
+
} else if (transition) {
|
|
1440
|
+
tile.endTransition(uid);
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
/**
|
|
1444
|
+
* @return {HTMLCanvasElement|OffscreenCanvas} Image
|
|
1445
|
+
*/
|
|
1446
|
+
getImage() {
|
|
1447
|
+
const context = this.context;
|
|
1448
|
+
return context ? context.canvas : null;
|
|
1449
|
+
}
|
|
1450
|
+
/**
|
|
1451
|
+
* Get the image from a tile.
|
|
1452
|
+
* @param {import("../../ImageTile.js").default} tile Tile.
|
|
1453
|
+
* @return {HTMLCanvasElement|OffscreenCanvas|HTMLImageElement|HTMLVideoElement} Image.
|
|
1454
|
+
* @protected
|
|
1455
|
+
*/
|
|
1456
|
+
getTileImage(tile) {
|
|
1457
|
+
return tile.getImage();
|
|
1458
|
+
}
|
|
1459
|
+
/**
|
|
1460
|
+
* @param {!Object<string, !Object<string, boolean>>} usedTiles Used tiles.
|
|
1461
|
+
* @param {import("../../source/Tile.js").default} tileSource Tile source.
|
|
1462
|
+
* @param {import('../../Tile.js').default} tile Tile.
|
|
1463
|
+
* @protected
|
|
1464
|
+
*/
|
|
1465
|
+
updateUsedTiles(usedTiles, tileSource, tile) {
|
|
1466
|
+
const tileSourceKey = getUid(tileSource);
|
|
1467
|
+
if (!(tileSourceKey in usedTiles)) {
|
|
1468
|
+
usedTiles[tileSourceKey] = {};
|
|
1469
|
+
}
|
|
1470
|
+
usedTiles[tileSourceKey][tile.getKey()] = true;
|
|
1471
|
+
}
|
|
1472
|
+
};
|
|
1473
|
+
var TileLayer_default = CanvasTileLayerRenderer;
|
|
1474
|
+
|
|
1475
|
+
// node_modules/ol/layer/BaseTile.js
|
|
1476
|
+
init_dirname();
|
|
1477
|
+
init_buffer();
|
|
1478
|
+
init_process();
|
|
1479
|
+
|
|
1480
|
+
// node_modules/ol/layer/TileProperty.js
|
|
1481
|
+
init_dirname();
|
|
1482
|
+
init_buffer();
|
|
1483
|
+
init_process();
|
|
1484
|
+
var TileProperty_default = {
|
|
1485
|
+
PRELOAD: "preload",
|
|
1486
|
+
USE_INTERIM_TILES_ON_ERROR: "useInterimTilesOnError"
|
|
1487
|
+
};
|
|
1488
|
+
|
|
1489
|
+
// node_modules/ol/layer/BaseTile.js
|
|
1490
|
+
var BaseTileLayer = class extends Layer_default2 {
|
|
1491
|
+
/**
|
|
1492
|
+
* @param {Options<TileSourceType>} [options] Tile layer options.
|
|
1493
|
+
*/
|
|
1494
|
+
constructor(options) {
|
|
1495
|
+
options = options ? options : {};
|
|
1496
|
+
const baseOptions = Object.assign({}, options);
|
|
1497
|
+
const cacheSize = options.cacheSize;
|
|
1498
|
+
delete options.cacheSize;
|
|
1499
|
+
delete baseOptions.preload;
|
|
1500
|
+
delete baseOptions.useInterimTilesOnError;
|
|
1501
|
+
super(baseOptions);
|
|
1502
|
+
this.on;
|
|
1503
|
+
this.once;
|
|
1504
|
+
this.un;
|
|
1505
|
+
this.cacheSize_ = cacheSize;
|
|
1506
|
+
this.setPreload(options.preload !== void 0 ? options.preload : 0);
|
|
1507
|
+
this.setUseInterimTilesOnError(
|
|
1508
|
+
options.useInterimTilesOnError !== void 0 ? options.useInterimTilesOnError : true
|
|
1509
|
+
);
|
|
1510
|
+
}
|
|
1511
|
+
/**
|
|
1512
|
+
* @return {number|undefined} The suggested cache size
|
|
1513
|
+
* @protected
|
|
1514
|
+
*/
|
|
1515
|
+
getCacheSize() {
|
|
1516
|
+
return this.cacheSize_;
|
|
1517
|
+
}
|
|
1518
|
+
/**
|
|
1519
|
+
* Return the level as number to which we will preload tiles up to.
|
|
1520
|
+
* @return {number} The level to preload tiles up to.
|
|
1521
|
+
* @observable
|
|
1522
|
+
* @api
|
|
1523
|
+
*/
|
|
1524
|
+
getPreload() {
|
|
1525
|
+
return (
|
|
1526
|
+
/** @type {number} */
|
|
1527
|
+
this.get(TileProperty_default.PRELOAD)
|
|
1528
|
+
);
|
|
1529
|
+
}
|
|
1530
|
+
/**
|
|
1531
|
+
* Set the level as number to which we will preload tiles up to.
|
|
1532
|
+
* @param {number} preload The level to preload tiles up to.
|
|
1533
|
+
* @observable
|
|
1534
|
+
* @api
|
|
1535
|
+
*/
|
|
1536
|
+
setPreload(preload) {
|
|
1537
|
+
this.set(TileProperty_default.PRELOAD, preload);
|
|
1538
|
+
}
|
|
1539
|
+
/**
|
|
1540
|
+
* Deprecated. Whether we use interim tiles on error.
|
|
1541
|
+
* @return {boolean} Use interim tiles on error.
|
|
1542
|
+
* @observable
|
|
1543
|
+
* @api
|
|
1544
|
+
*/
|
|
1545
|
+
getUseInterimTilesOnError() {
|
|
1546
|
+
return (
|
|
1547
|
+
/** @type {boolean} */
|
|
1548
|
+
this.get(TileProperty_default.USE_INTERIM_TILES_ON_ERROR)
|
|
1549
|
+
);
|
|
1550
|
+
}
|
|
1551
|
+
/**
|
|
1552
|
+
* Deprecated. Set whether we use interim tiles on error.
|
|
1553
|
+
* @param {boolean} useInterimTilesOnError Use interim tiles on error.
|
|
1554
|
+
* @observable
|
|
1555
|
+
* @api
|
|
1556
|
+
*/
|
|
1557
|
+
setUseInterimTilesOnError(useInterimTilesOnError) {
|
|
1558
|
+
this.set(TileProperty_default.USE_INTERIM_TILES_ON_ERROR, useInterimTilesOnError);
|
|
1559
|
+
}
|
|
1560
|
+
/**
|
|
1561
|
+
* Get data for a pixel location. The return type depends on the source data. For image tiles,
|
|
1562
|
+
* a four element RGBA array will be returned. For data tiles, the array length will match the
|
|
1563
|
+
* number of bands in the dataset. For requests outside the layer extent, `null` will be returned.
|
|
1564
|
+
* Data for a image tiles can only be retrieved if the source's `crossOrigin` property is set.
|
|
1565
|
+
*
|
|
1566
|
+
* ```js
|
|
1567
|
+
* // display layer data on every pointer move
|
|
1568
|
+
* map.on('pointermove', (event) => {
|
|
1569
|
+
* console.log(layer.getData(event.pixel));
|
|
1570
|
+
* });
|
|
1571
|
+
* ```
|
|
1572
|
+
* @param {import("../pixel").Pixel} pixel Pixel.
|
|
1573
|
+
* @return {Uint8ClampedArray|Uint8Array|Float32Array|DataView|null} Pixel data.
|
|
1574
|
+
* @api
|
|
1575
|
+
* @override
|
|
1576
|
+
*/
|
|
1577
|
+
getData(pixel) {
|
|
1578
|
+
return super.getData(pixel);
|
|
1579
|
+
}
|
|
1580
|
+
};
|
|
1581
|
+
var BaseTile_default = BaseTileLayer;
|
|
1582
|
+
|
|
1583
|
+
// node_modules/ol/layer/Tile.js
|
|
1584
|
+
var TileLayer = class extends BaseTile_default {
|
|
1585
|
+
/**
|
|
1586
|
+
* @param {import("./BaseTile.js").Options<TileSourceType>} [options] Tile layer options.
|
|
1587
|
+
*/
|
|
1588
|
+
constructor(options) {
|
|
1589
|
+
super(options);
|
|
1590
|
+
}
|
|
1591
|
+
/**
|
|
1592
|
+
* @override
|
|
1593
|
+
*/
|
|
1594
|
+
createRenderer() {
|
|
1595
|
+
return new TileLayer_default(this, {
|
|
1596
|
+
cacheSize: this.getCacheSize()
|
|
1597
|
+
});
|
|
1598
|
+
}
|
|
1599
|
+
};
|
|
1600
|
+
var Tile_default3 = TileLayer;
|
|
1601
|
+
|
|
1602
|
+
// node_modules/ol/uri.js
|
|
1603
|
+
init_dirname();
|
|
1604
|
+
init_buffer();
|
|
1605
|
+
init_process();
|
|
1606
|
+
var zRegEx = /\{z\}/g;
|
|
1607
|
+
var xRegEx = /\{x\}/g;
|
|
1608
|
+
var yRegEx = /\{y\}/g;
|
|
1609
|
+
var dashYRegEx = /\{-y\}/g;
|
|
1610
|
+
function renderXYZTemplate(template, z, x, y, maxY) {
|
|
1611
|
+
return template.replace(zRegEx, z.toString()).replace(xRegEx, x.toString()).replace(yRegEx, y.toString()).replace(dashYRegEx, function() {
|
|
1612
|
+
if (maxY === void 0) {
|
|
1613
|
+
throw new Error(
|
|
1614
|
+
"If the URL template has a {-y} placeholder, the grid extent must be known"
|
|
1615
|
+
);
|
|
1616
|
+
}
|
|
1617
|
+
return (maxY - y).toString();
|
|
1618
|
+
});
|
|
1619
|
+
}
|
|
1620
|
+
function pickUrl(urls, z, x, y) {
|
|
1621
|
+
const hash = hashZXY(z, x, y);
|
|
1622
|
+
const index = modulo(hash, urls.length);
|
|
1623
|
+
return urls[index];
|
|
1624
|
+
}
|
|
1625
|
+
function expandUrl(url) {
|
|
1626
|
+
const urls = [];
|
|
1627
|
+
let match = /\{([a-z])-([a-z])\}/.exec(url);
|
|
1628
|
+
if (match) {
|
|
1629
|
+
const startCharCode = match[1].charCodeAt(0);
|
|
1630
|
+
const stopCharCode = match[2].charCodeAt(0);
|
|
1631
|
+
let charCode;
|
|
1632
|
+
for (charCode = startCharCode; charCode <= stopCharCode; ++charCode) {
|
|
1633
|
+
urls.push(url.replace(match[0], String.fromCharCode(charCode)));
|
|
1634
|
+
}
|
|
1635
|
+
return urls;
|
|
1636
|
+
}
|
|
1637
|
+
match = /\{(\d+)-(\d+)\}/.exec(url);
|
|
1638
|
+
if (match) {
|
|
1639
|
+
const stop = parseInt(match[2], 10);
|
|
1640
|
+
for (let i = parseInt(match[1], 10); i <= stop; i++) {
|
|
1641
|
+
urls.push(url.replace(match[0], i.toString()));
|
|
1642
|
+
}
|
|
1643
|
+
return urls;
|
|
1644
|
+
}
|
|
1645
|
+
urls.push(url);
|
|
1646
|
+
return urls;
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
export {
|
|
1650
|
+
ImageTile_default,
|
|
1651
|
+
Tile_default2 as Tile_default,
|
|
1652
|
+
LRUCache_default,
|
|
1653
|
+
TileLayer_default,
|
|
1654
|
+
TileProperty_default,
|
|
1655
|
+
BaseTile_default,
|
|
1656
|
+
Tile_default3 as Tile_default2,
|
|
1657
|
+
renderXYZTemplate,
|
|
1658
|
+
pickUrl,
|
|
1659
|
+
expandUrl
|
|
1660
|
+
};
|