@arcgis/map-components 5.0.0-next.80 → 5.0.0-next.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{JQU5U3ZU.js → 26SEXAYF.js} +2 -2
- package/dist/cdn/2H4NTP4A.js +4 -0
- package/dist/cdn/{MLURAS3L.js → 2MZBQGTD.js} +2 -2
- package/dist/cdn/2RJ5V2FI.js +4 -0
- package/dist/cdn/{7SNJLTNQ.js → 2WH2Y4DH.js} +2 -2
- package/dist/cdn/37VELF5K.js +4 -0
- package/dist/cdn/{4WRVIALY.js → 3FFNQFUY.js} +2 -2
- package/dist/cdn/{6CVDWKD5.js → 3FOWQOIH.js} +2 -2
- package/dist/cdn/{K4K6UWC6.js → 3HZKVKYP.js} +2 -2
- package/dist/cdn/{LRMRRSOU.js → 3QB7AFV7.js} +2 -2
- package/dist/cdn/3QMNWTPL.js +4 -0
- package/dist/cdn/{QMVF5SPK.js → 3QQVLN67.js} +2 -2
- package/dist/cdn/{GK37ZELD.js → 3TUELLLH.js} +2 -2
- package/dist/cdn/{LR4JC5XY.js → 42KRBF2T.js} +2 -2
- package/dist/cdn/{IQ6ZBXGI.js → 46NFUNG3.js} +2 -2
- package/dist/cdn/4CJZ3E6C.js +4 -0
- package/dist/cdn/4IW7TDLR.js +4 -0
- package/dist/cdn/4RC7CUPI.js +4 -0
- package/dist/cdn/4XE65MIO.js +4 -0
- package/dist/cdn/{NKWLFEKV.js → 4ZYDGOGQ.js} +2 -2
- package/dist/cdn/5CTEFIFH.js +4 -0
- package/dist/cdn/{Z7VYMDET.js → 5E7IRRLX.js} +2 -2
- package/dist/cdn/{QOND6DY3.js → 5GDKATN6.js} +2 -2
- package/dist/cdn/{ZVJBXKM2.js → 5GZIGBOV.js} +2 -2
- package/dist/cdn/{GOZYCTW2.js → 5NTX26SL.js} +2 -2
- package/dist/cdn/{ZJWQCEPH.js → 5OJZ7CVC.js} +2 -2
- package/dist/cdn/{PLYQX7ZE.js → 5XMUGCAA.js} +2 -2
- package/dist/cdn/5YZDKAEQ.js +4 -0
- package/dist/cdn/{WOC3JQQI.js → 67LQ5QHR.js} +2 -2
- package/dist/cdn/{FHTK6YOL.js → 6DINRENY.js} +2 -2
- package/dist/cdn/{PXKBZ567.js → 6OLT7ZOX.js} +2 -2
- package/dist/cdn/{255J3KXD.js → 6R235QDG.js} +2 -2
- package/dist/cdn/6YKZDIIS.js +4 -0
- package/dist/cdn/{MZQDRDCF.js → 6ZTYTVY4.js} +2 -2
- package/dist/cdn/72OSHUPM.js +4 -0
- package/dist/cdn/{TNVPM3RT.js → 73FMDUSF.js} +2 -2
- package/dist/cdn/74YZXL7J.js +4 -0
- package/dist/cdn/{WEREE5LI.js → 7CX6W3AO.js} +2 -2
- package/dist/cdn/7ETPXD2P.js +4 -0
- package/dist/cdn/{5FBGOF4W.js → 7GPEXQ5I.js} +1 -1
- package/dist/cdn/{VCLO57PV.js → 7HF6JIVF.js} +2 -2
- package/dist/cdn/{X2TZCMBP.js → 7KEM2SBV.js} +2 -2
- package/dist/cdn/{OTJIM4LK.js → 7QX4CWDA.js} +2 -2
- package/dist/cdn/{MDHHDDC4.js → 7SFXQFGL.js} +1 -1
- package/dist/cdn/{X4EJL363.js → 7Y4RTISB.js} +2 -2
- package/dist/cdn/A53WYAA6.js +4 -0
- package/dist/cdn/{FXOKJK6S.js → A6QO6YVU.js} +2 -2
- package/dist/cdn/{H3YZPVCA.js → AEVSRVAC.js} +1 -1
- package/dist/cdn/AFVDJVZN.js +4 -0
- package/dist/cdn/{NWWBUNJW.js → AHT5457P.js} +1 -1
- package/dist/cdn/AQMX6X5B.js +4 -0
- package/dist/cdn/{2DAT3HSB.js → AXBMFA7E.js} +2 -2
- package/dist/cdn/{Z7UTM32E.js → B2MFLBUN.js} +2 -2
- package/dist/cdn/{Q2YJCIIR.js → BCN7VNPC.js} +2 -2
- package/dist/cdn/{CBYUMQUJ.js → BDAQ42KB.js} +2 -2
- package/dist/cdn/{JPNTQNPZ.js → BDTEWEJI.js} +2 -2
- package/dist/cdn/{75QWSWJ2.js → BKGE3LJV.js} +2 -2
- package/dist/cdn/BPO5RPUF.js +4 -0
- package/dist/cdn/{V643ZTWK.js → BQLSMND7.js} +2 -2
- package/dist/cdn/{SDP5FCQI.js → BQQQPHNX.js} +2 -2
- package/dist/cdn/BSIOZSON.js +4 -0
- package/dist/cdn/{RFIFVHIH.js → BYWCCC55.js} +2 -2
- package/dist/cdn/{4L4L7WNO.js → C4HC7FT4.js} +2 -2
- package/dist/cdn/CAAEYXTH.js +4 -0
- package/dist/cdn/CDHWN6GU.js +4 -0
- package/dist/cdn/{UYWTFPMW.js → CIZU6FH6.js} +2 -2
- package/dist/cdn/CNFCZCD4.js +4 -0
- package/dist/cdn/CRHIFTJ7.js +4 -0
- package/dist/cdn/DBHG3BRI.js +4 -0
- package/dist/cdn/DIDHI3WG.js +5 -0
- package/dist/cdn/DMPX6GSU.js +4 -0
- package/dist/cdn/DNQEWOZD.js +4 -0
- package/dist/cdn/DRA5JLFU.js +4 -0
- package/dist/cdn/{ERD6FSZF.js → DRLG2WKU.js} +2 -2
- package/dist/cdn/{4KMRE3YK.js → DRM6Y7BK.js} +2 -2
- package/dist/cdn/{OOLEHYKD.js → DTOVOTMN.js} +2 -2
- package/dist/cdn/EBUD5BKB.js +4 -0
- package/dist/cdn/{M5FRMZZC.js → ECWQ2XCA.js} +2 -2
- package/dist/cdn/{C54KKFUB.js → EV256SCZ.js} +1 -1
- package/dist/cdn/{KRINUQJJ.js → EXTX2G2J.js} +2 -2
- package/dist/cdn/{3EYKWS4Y.js → F5EOE2KR.js} +2 -2
- package/dist/cdn/{3MDCVWP5.js → FC26QVVV.js} +2 -2
- package/dist/cdn/{YICNJOG3.js → FDAFZFXF.js} +2 -2
- package/dist/cdn/FGR6L6W5.js +4 -0
- package/dist/cdn/{PZACBJDP.js → FH57CILD.js} +1 -1
- package/dist/cdn/FMFPL2SL.js +4 -0
- package/dist/cdn/{AMNP6JCL.js → FRFX3HJJ.js} +2 -2
- package/dist/cdn/{D54AXVLZ.js → G6LODG4B.js} +2 -2
- package/dist/cdn/{SKVW5OFT.js → G7XXMLVR.js} +2 -2
- package/dist/cdn/GAAJYW55.js +4 -0
- package/dist/cdn/{TLVASQEZ.js → GHCG66MK.js} +2 -2
- package/dist/cdn/{NQ66E4RD.js → GNC4XLHG.js} +2 -2
- package/dist/cdn/{KFTW7NWB.js → GNRMH7L6.js} +2 -2
- package/dist/cdn/{CN2ZN2PW.js → GO77SVFD.js} +2 -2
- package/dist/cdn/{JKHMX4WV.js → GRAC756F.js} +2 -2
- package/dist/cdn/GTLLS5RB.js +4 -0
- package/dist/cdn/{QBKLH3G2.js → H2NU52NH.js} +2 -2
- package/dist/cdn/{OPV3MEYC.js → H2PWITHF.js} +2 -2
- package/dist/cdn/{YYVSQPLG.js → H5BUTEQQ.js} +2 -2
- package/dist/cdn/{F5ILWP3C.js → HHVVQDUO.js} +2 -2
- package/dist/cdn/{LMXTDQLB.js → HO5EYJOH.js} +2 -2
- package/dist/cdn/HZKL5CJL.js +4 -0
- package/dist/cdn/I3AX4K3U.js +4 -0
- package/dist/cdn/{K257VXBF.js → IAR73YCD.js} +2 -2
- package/dist/cdn/{SVKSWNJY.js → IASLWFRY.js} +2 -2
- package/dist/cdn/{3Y22X6GT.js → IBB667DU.js} +2 -2
- package/dist/cdn/{LRS6YFLC.js → IH2PSWZZ.js} +2 -2
- package/dist/cdn/{TI2MSE7A.js → IIS2R4TG.js} +2 -2
- package/dist/cdn/{LKZ6U6JP.js → IPEZSPR4.js} +2 -2
- package/dist/cdn/{Z3HITJSD.js → IQ36R63V.js} +2 -2
- package/dist/cdn/IQIC5YAC.js +4 -0
- package/dist/cdn/{HJ73VNNZ.js → IQOAM4K2.js} +2 -2
- package/dist/cdn/{CEOHI4T6.js → ITN4WMXI.js} +2 -2
- package/dist/cdn/{DHNINSNP.js → IWJAIGN5.js} +2 -2
- package/dist/cdn/{HMJGX5QZ.js → J3UEH6JM.js} +1 -1
- package/dist/cdn/{GR5TK44O.js → J7SDQU6W.js} +2 -2
- package/dist/cdn/{APHGGF5H.js → JAJ6RPJV.js} +2 -2
- package/dist/cdn/{YSAWKZSM.js → JFAFXOE4.js} +2 -2
- package/dist/cdn/JH7VOJAT.js +4 -0
- package/dist/cdn/{B3KVJ6E5.js → JVI6APRW.js} +2 -2
- package/dist/cdn/{N6CJDHAQ.js → JVSBCZPI.js} +2 -2
- package/dist/cdn/{UWWZ5Q5Y.js → JW7WWADK.js} +2 -2
- package/dist/cdn/{TP3VSTFD.js → K3GI3CBR.js} +2 -2
- package/dist/cdn/{4NIFXU4O.js → KLIUVBXK.js} +2 -2
- package/dist/cdn/KY6EZPE4.js +4 -0
- package/dist/cdn/KZHB7CYN.js +4 -0
- package/dist/cdn/L2EPYUDT.js +4 -0
- package/dist/cdn/{CUNAOCTI.js → L567QR4W.js} +2 -2
- package/dist/cdn/{LQBHGHKE.js → LKLPUVHS.js} +2 -2
- package/dist/cdn/{5C7HSYZU.js → LMWQAM5N.js} +2 -2
- package/dist/cdn/{KYNW4LVI.js → LN7J2QTQ.js} +2 -2
- package/dist/cdn/{SA6BAAMY.js → MQUXA7UH.js} +2 -2
- package/dist/cdn/MRM3JPRW.js +4 -0
- package/dist/cdn/MVSFIWKF.js +9 -0
- package/dist/cdn/{A6IRD32U.js → MX3SCXZ7.js} +2 -2
- package/dist/cdn/{5LR7BRXK.js → MXUI2YSS.js} +2 -2
- package/dist/cdn/NIUM3JFQ.js +4 -0
- package/dist/cdn/NOX77JSX.js +4 -0
- package/dist/cdn/{CYRMGDQQ.js → NPIQYLLU.js} +2 -2
- package/dist/cdn/{X2SS6I3F.js → NSWCLIKO.js} +2 -2
- package/dist/cdn/{G7NJFXZ6.js → NSYPHBHN.js} +2 -2
- package/dist/cdn/{E2QMZ6EU.js → NVSEUE4V.js} +2 -2
- package/dist/cdn/{CJOFXTLL.js → NWBJZXPP.js} +2 -2
- package/dist/cdn/{AEYDMZ6Y.js → O5F7VVU7.js} +1 -1
- package/dist/cdn/{GSP3MXMO.js → O6USS5MB.js} +2 -2
- package/dist/cdn/{AK6YAMIG.js → OHX7LABL.js} +2 -2
- package/dist/cdn/{LU4XEFNF.js → OHXNQV57.js} +2 -2
- package/dist/cdn/OINCEHMF.js +4 -0
- package/dist/cdn/{LTESLCXU.js → ONJRUJU5.js} +2 -2
- package/dist/cdn/P3D353MQ.js +4 -0
- package/dist/cdn/PGZ6ZH5V.js +4 -0
- package/dist/cdn/POIKCAFJ.js +4 -0
- package/dist/cdn/{AGBJN2ZZ.js → PVH5T6TY.js} +2 -2
- package/dist/cdn/{HSMJOI73.js → QDRT6QXW.js} +2 -2
- package/dist/cdn/{7HQQFIMI.js → QFAX67GP.js} +2 -2
- package/dist/cdn/{OCOE5L2Z.js → QKQHDP5N.js} +2 -2
- package/dist/cdn/{OUYBMJLJ.js → QNYJCSQE.js} +2 -2
- package/dist/cdn/{XAERRYMI.js → QOJRDQVJ.js} +2 -2
- package/dist/cdn/QS6EWKXL.js +4 -0
- package/dist/cdn/{DXPDPFSV.js → QZ6INP3M.js} +2 -2
- package/dist/cdn/R7NPD6HD.js +4 -0
- package/dist/cdn/{VGCTCVRR.js → R7ZJNSTZ.js} +2 -2
- package/dist/cdn/RCCK2ZQ4.js +4 -0
- package/dist/cdn/RCDG4XH7.js +4 -0
- package/dist/cdn/RFBW3HT3.js +4 -0
- package/dist/cdn/RHGNHIST.js +4 -0
- package/dist/cdn/{C4ZHSNOM.js → RIOETIAV.js} +2 -2
- package/dist/cdn/RLQR2C42.js +4 -0
- package/dist/cdn/{R6WZP3CX.js → RVOQHQPD.js} +2 -2
- package/dist/cdn/SDVGROWT.js +4 -0
- package/dist/cdn/{SG5NHCC2.js → SGZHDUTQ.js} +2 -2
- package/dist/cdn/{55XQTAMH.js → SLA6BBTX.js} +2 -2
- package/dist/cdn/{Z2BPGGEH.js → SLY7QD6G.js} +2 -2
- package/dist/cdn/SMSYDV2I.js +4 -0
- package/dist/cdn/SNG35SOQ.js +4 -0
- package/dist/cdn/{3K2GFFVF.js → SRR3Q6BM.js} +2 -2
- package/dist/cdn/{RDZXCA47.js → SWKS4LBY.js} +2 -2
- package/dist/cdn/{WKYGF3TE.js → SYPNX2RO.js} +2 -2
- package/dist/cdn/{LDZVHVXF.js → T5D2MUKU.js} +2 -2
- package/dist/cdn/T5IQKN42.js +4 -0
- package/dist/cdn/T6SUYSV7.js +4 -0
- package/dist/cdn/TAGZEUED.js +4 -0
- package/dist/cdn/TBAYPGNO.js +4 -0
- package/dist/cdn/TBMOSZD7.js +4 -0
- package/dist/cdn/{CMNJ4QSP.js → TF5TXYL6.js} +2 -2
- package/dist/cdn/{SMINTWLU.js → TSQFY2PP.js} +2 -2
- package/dist/cdn/U72V3MBS.js +4 -0
- package/dist/cdn/UEEUEJIL.js +4 -0
- package/dist/cdn/UHCG72GB.js +4 -0
- package/dist/cdn/{TQODZCPO.js → UMCPAU75.js} +2 -2
- package/dist/cdn/{SBLP6SJJ.js → UOEGM7I7.js} +2 -2
- package/dist/cdn/{YNNEBNPH.js → UPTH25U2.js} +2 -2
- package/dist/cdn/UQI7XQDK.js +4 -0
- package/dist/cdn/{AAMCEBLH.js → URW527U3.js} +1 -1
- package/dist/cdn/USMELDC3.js +4 -0
- package/dist/cdn/{NANDRY7W.js → UTCHR537.js} +2 -2
- package/dist/cdn/UWHD7XXO.js +4 -0
- package/dist/cdn/{MYXPSQXQ.js → V3HIZXNK.js} +2 -2
- package/dist/cdn/VHJRB2BU.js +4 -0
- package/dist/cdn/{5KDIG2UL.js → VKQ33L2V.js} +1 -1
- package/dist/cdn/VMH6E5ZN.js +4 -0
- package/dist/cdn/{CB7EI264.js → VOJMV2QF.js} +2 -2
- package/dist/cdn/{CS3N4NV7.js → WGTU4W4S.js} +2 -2
- package/dist/cdn/WMUIWFJU.js +4 -0
- package/dist/cdn/{FXY7TOVP.js → WNBI4MLR.js} +2 -2
- package/dist/cdn/{VOX35BZ7.js → WOHTTQ2H.js} +2 -2
- package/dist/cdn/{43W4564X.js → WRAPYG25.js} +2 -2
- package/dist/cdn/{LYMUCZ5J.js → WRPURMQD.js} +2 -2
- package/dist/cdn/WSOE3NTJ.js +4 -0
- package/dist/cdn/{W3Y6MZRX.js → XGGMMKPT.js} +2 -2
- package/dist/cdn/XGIFHWEQ.js +4 -0
- package/dist/cdn/{F2BCKR6G.js → XGPOY7Q3.js} +2 -2
- package/dist/cdn/XIYYAC64.js +4 -0
- package/dist/cdn/{DPQQNPII.js → XKL5SUT7.js} +2 -2
- package/dist/cdn/{OCIQTTY7.js → XLWZT3HL.js} +1 -1
- package/dist/cdn/{WOLJSBSW.js → XOSWEKJI.js} +1 -1
- package/dist/cdn/{5GCEEFSQ.js → XRVKHPTW.js} +2 -2
- package/dist/cdn/{D737FLAI.js → XZHW7JJ6.js} +2 -2
- package/dist/cdn/Y63FMZUT.js +4 -0
- package/dist/cdn/{NVLRNBFE.js → YQTRSQ2H.js} +1 -1
- package/dist/cdn/YSNPHAIY.js +4 -0
- package/dist/cdn/{22HC5WWZ.js → YU65RWBB.js} +2 -2
- package/dist/cdn/{G3YUXGM5.js → YUCHSKWY.js} +2 -2
- package/dist/cdn/{PQHKUE73.js → Z2OBG4KE.js} +2 -2
- package/dist/cdn/ZADMOKYH.js +4 -0
- package/dist/cdn/ZAS22RTQ.js +4 -0
- package/dist/cdn/ZBD7SZ67.js +4 -0
- package/dist/cdn/{WFTTBCPM.js → ZF5GJDYU.js} +2 -2
- package/dist/cdn/{V7HPJ2SK.js → ZHP3ZEFW.js} +2 -2
- package/dist/cdn/{QM3TB7TA.js → ZPK3BN53.js} +1 -1
- package/dist/cdn/ZPYQFGOL.js +4 -0
- package/dist/cdn/{AE4EJLEE.js → ZTUJ4KTP.js} +2 -2
- package/dist/cdn/{QABYUK7R.js → ZVBVR6S3.js} +2 -2
- package/dist/cdn/ZXCB3KJO.js +4 -0
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/AnalysisViewModel.js +66 -65
- package/dist/chunks/action-utils.js +48 -56
- package/dist/chunks/async-utils.js +1 -1
- package/dist/chunks/basemap-gallery-resources.js +1 -1
- package/dist/chunks/chart-utils.js +1 -1
- package/dist/chunks/chartCommon.js +1 -1
- package/dist/chunks/component-utils.js +26 -25
- package/dist/chunks/constants.js +1 -1
- package/dist/chunks/createCloseEvent.js +1 -1
- package/dist/chunks/esri-main.js +2 -2
- package/dist/chunks/feature-utils.js +60 -55
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/handle.js +1 -1
- package/dist/chunks/heading.js +1 -1
- package/dist/chunks/layer-list.js +1 -1
- package/dist/chunks/legacyIcon.js +1 -1
- package/dist/chunks/maybe.js +1 -1
- package/dist/chunks/measurementUtils.js +1 -1
- package/dist/chunks/runtime.js +2 -2
- package/dist/chunks/screenLocation.js +1 -1
- package/dist/chunks/slots.js +2 -2
- package/dist/chunks/svgUtils.js +1 -1
- package/dist/chunks/time-utils.js +1 -1
- package/dist/chunks/univariateUtils.js +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +48 -61
- package/dist/chunks/useHandles.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/useView.js +1 -1
- package/dist/chunks/useViewModel.js +1 -1
- package/dist/chunks/useWidget.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/visible-element.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-attachments/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.d.ts +1 -1
- package/dist/components/arcgis-bookmarks/customElement.js +2 -1
- package/dist/components/arcgis-building-explorer/customElement.d.ts +1 -1
- package/dist/components/arcgis-building-explorer/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-color-select/customElement.js +1 -1
- package/dist/components/arcgis-compass/customElement.d.ts +1 -1
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-directional-pad/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.d.ts +2 -2
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-editor/customElement.d.ts +1 -1
- package/dist/components/arcgis-editor/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-settings/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-statistics/customElement.js +1 -1
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-feature/customElement.js +1 -1
- package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
- package/dist/components/arcgis-feature-content/customElement.js +1 -1
- package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
- package/dist/components/arcgis-feature-expression/customElement.js +1 -1
- package/dist/components/arcgis-feature-fields/customElement.js +1 -1
- package/dist/components/arcgis-feature-form/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-feature-media/customElement.js +1 -1
- package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.d.ts +1 -1
- package/dist/components/arcgis-features/customElement.js +2 -1
- package/dist/components/arcgis-floor-filter/customElement.d.ts +1 -1
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.js +1 -1
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-home/customElement.d.ts +1 -1
- package/dist/components/arcgis-home/customElement.js +1 -1
- package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-relationship-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
- package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
- package/dist/components/arcgis-link-chart/customElement.d.ts +3 -3
- package/dist/components/arcgis-link-chart/customElement.js +7 -4
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
- package/dist/components/arcgis-locate/customElement.d.ts +1 -1
- package/dist/components/arcgis-locate/customElement.js +178 -177
- package/dist/components/arcgis-map/customElement.d.ts +3 -3
- package/dist/components/arcgis-map/customElement.js +29 -26
- package/dist/components/arcgis-measurement/customElement.js +1 -1
- package/dist/components/arcgis-measurement-content/customElement.js +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
- package/dist/components/arcgis-placement/customElement.js +1 -1
- package/dist/components/arcgis-popup/customElement.d.ts +1 -1
- package/dist/components/arcgis-popup/customElement.js +1 -1
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +8 -1
- package/dist/components/arcgis-presentation/customElement.js +75 -42
- package/dist/components/arcgis-print/customElement.js +2 -1
- package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
- package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
- package/dist/components/arcgis-print-export-button/customElement.js +1 -1
- package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-format-select/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
- package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
- package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
- package/dist/components/arcgis-print-template-select/customElement.js +1 -1
- package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.d.ts +3 -3
- package/dist/components/arcgis-scene/customElement.js +12 -9
- package/dist/components/arcgis-search/customElement.d.ts +1 -1
- package/dist/components/arcgis-search/customElement.js +1 -1
- package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-discrete-config/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-duration-config/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-threshold-config/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.js +2 -1
- package/dist/components/arcgis-slice/customElement.js +1 -1
- package/dist/components/arcgis-spinner/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.js +1 -1
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
- package/dist/components/arcgis-track/customElement.d.ts +1 -1
- package/dist/components/arcgis-track/customElement.js +1 -1
- package/dist/components/arcgis-unit-select/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-associations/customElement.js +11 -10
- package/dist/components/arcgis-utility-network-subnetwork-info/customElement.js +15 -14
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +5 -4
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +33 -34
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +131 -130
- package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.js +1 -1
- package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
- package/dist/components/arcgis-video/customElement.d.ts +1 -2
- package/dist/components/arcgis-video/customElement.js +2 -1
- package/dist/components/arcgis-video-player/customElement.js +1 -1
- package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
- package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
- package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
- package/dist/components/arcgis-volume-measurement/customElement.js +1 -1
- package/dist/components/arcgis-weather/customElement.js +55 -59
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/controllers/uiController.d.ts +2 -0
- package/dist/docs/api.json +14 -14
- package/dist/docs/docs.json +9 -9
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +5 -5
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/utils/geolocation-utils.d.ts +2 -1
- package/package.json +3 -3
- package/dist/cdn/2VUJVJMW.js +0 -4
- package/dist/cdn/345YRAYH.js +0 -4
- package/dist/cdn/3ZUQF7S3.js +0 -4
- package/dist/cdn/4BDYYSLZ.js +0 -4
- package/dist/cdn/4NI2WCTX.js +0 -4
- package/dist/cdn/4Q5ZZ75M.js +0 -4
- package/dist/cdn/533YIBQ7.js +0 -4
- package/dist/cdn/5KMMLYXS.js +0 -4
- package/dist/cdn/5RJ52EP6.js +0 -4
- package/dist/cdn/6FTCTGRX.js +0 -4
- package/dist/cdn/6H32KQKM.js +0 -4
- package/dist/cdn/6H6UBSWI.js +0 -4
- package/dist/cdn/6QYZ56IK.js +0 -9
- package/dist/cdn/73KKC5NL.js +0 -4
- package/dist/cdn/7ACMIP4R.js +0 -4
- package/dist/cdn/B4BHVZP5.js +0 -4
- package/dist/cdn/BBBW3LEE.js +0 -4
- package/dist/cdn/BRLPRORO.js +0 -4
- package/dist/cdn/C5QHZ4YF.js +0 -4
- package/dist/cdn/CCTFQQEY.js +0 -4
- package/dist/cdn/CY7MJ7HO.js +0 -4
- package/dist/cdn/DLM45UJC.js +0 -4
- package/dist/cdn/E5RKYOSM.js +0 -4
- package/dist/cdn/EFZKNEGI.js +0 -4
- package/dist/cdn/ESI2N77R.js +0 -4
- package/dist/cdn/F5IZBBBW.js +0 -4
- package/dist/cdn/FNASSELR.js +0 -4
- package/dist/cdn/GS6S2HYX.js +0 -4
- package/dist/cdn/HBTCALXX.js +0 -4
- package/dist/cdn/HHBAD7M4.js +0 -5
- package/dist/cdn/HMMBEVZK.js +0 -4
- package/dist/cdn/IJ4NY5TB.js +0 -4
- package/dist/cdn/IJ6RT2NF.js +0 -4
- package/dist/cdn/IM5C3M2A.js +0 -4
- package/dist/cdn/IMI3C7SI.js +0 -4
- package/dist/cdn/IO7KAQJ2.js +0 -4
- package/dist/cdn/J2HSN3LR.js +0 -4
- package/dist/cdn/JHKQ6ATZ.js +0 -4
- package/dist/cdn/JHXA3FZQ.js +0 -4
- package/dist/cdn/JKI2KJKC.js +0 -4
- package/dist/cdn/JP52AYWR.js +0 -4
- package/dist/cdn/K2OF3BY6.js +0 -4
- package/dist/cdn/K6KNUGM6.js +0 -4
- package/dist/cdn/KYCTZE47.js +0 -4
- package/dist/cdn/L7C5AHV3.js +0 -4
- package/dist/cdn/LK5FUK75.js +0 -4
- package/dist/cdn/LMQAY6DE.js +0 -4
- package/dist/cdn/LYZPURA3.js +0 -4
- package/dist/cdn/MIMPRSCR.js +0 -4
- package/dist/cdn/MJFCNQIV.js +0 -4
- package/dist/cdn/NAGOHZPR.js +0 -4
- package/dist/cdn/OONCH27B.js +0 -4
- package/dist/cdn/P7PZNWP7.js +0 -4
- package/dist/cdn/PHCNUZ45.js +0 -4
- package/dist/cdn/PN5DU5G5.js +0 -4
- package/dist/cdn/PTBDPTLY.js +0 -4
- package/dist/cdn/PWYS4CJV.js +0 -4
- package/dist/cdn/QUT6BUPY.js +0 -4
- package/dist/cdn/QVYWE5OS.js +0 -4
- package/dist/cdn/QZWE5GYC.js +0 -4
- package/dist/cdn/RC2N6XWL.js +0 -4
- package/dist/cdn/RFKAHMRK.js +0 -4
- package/dist/cdn/RKEORSYJ.js +0 -4
- package/dist/cdn/RMQ4CBJF.js +0 -4
- package/dist/cdn/RSXAQL5W.js +0 -4
- package/dist/cdn/SQNOVHEE.js +0 -4
- package/dist/cdn/T5KF53YR.js +0 -4
- package/dist/cdn/T6STY3XC.js +0 -4
- package/dist/cdn/T7KVIZTW.js +0 -4
- package/dist/cdn/TD4F5MAF.js +0 -4
- package/dist/cdn/TJGWJ3IR.js +0 -4
- package/dist/cdn/UDZGZBON.js +0 -4
- package/dist/cdn/UP6BJDX2.js +0 -4
- package/dist/cdn/VALY53GL.js +0 -4
- package/dist/cdn/W7SGLHQH.js +0 -4
- package/dist/cdn/WLM6CK2D.js +0 -4
- package/dist/cdn/WQEEOHNC.js +0 -4
- package/dist/cdn/WRYS2BEZ.js +0 -4
- package/dist/cdn/XAONUTNT.js +0 -4
- package/dist/cdn/XL2ERBXV.js +0 -4
- package/dist/cdn/XNF6NPR6.js +0 -4
|
@@ -1,129 +1,130 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { css as
|
|
3
|
-
import { usePropertyChange as
|
|
4
|
-
import { classes as
|
|
1
|
+
import { c as G } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as z, html as g } from "lit";
|
|
3
|
+
import { usePropertyChange as F } from "@arcgis/lumina/controllers";
|
|
4
|
+
import { classes as j } from "@arcgis/toolkit/dom";
|
|
5
5
|
import { watch as v } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
|
-
import { LitElement as
|
|
7
|
-
import { u as
|
|
8
|
-
import { createRef as
|
|
9
|
-
import { m as
|
|
10
|
-
import { l as
|
|
11
|
-
import { property as n, subclass as
|
|
6
|
+
import { LitElement as k, createEvent as f, safeClassMap as w, nothing as Q } from "@arcgis/lumina";
|
|
7
|
+
import { u as V } from "../../chunks/useT9n.js";
|
|
8
|
+
import { createRef as H, ref as K } from "lit/directives/ref.js";
|
|
9
|
+
import { m as J } from "../../chunks/useViewModel.js";
|
|
10
|
+
import { l as q } from "../../chunks/legacyIcon.js";
|
|
11
|
+
import { property as n, subclass as S } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
12
12
|
import u from "@arcgis/core/core/Error.js";
|
|
13
|
-
import { onLocaleChange as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { t as
|
|
17
|
-
import
|
|
13
|
+
import { onLocaleChange as B } from "@arcgis/core/intl.js";
|
|
14
|
+
import W from "@arcgis/core/PopupTemplate.js";
|
|
15
|
+
import X from "@arcgis/core/support/actions/ActionButton.js";
|
|
16
|
+
import { t as Z, a as C } from "../../chunks/async-utils.js";
|
|
17
|
+
import Y from "@arcgis/core/core/Accessor.js";
|
|
18
18
|
import T from "@arcgis/core/Graphic.js";
|
|
19
|
-
import
|
|
20
|
-
import
|
|
19
|
+
import $ from "@arcgis/core/symbols/CIMSymbol.js";
|
|
20
|
+
import ee from "@arcgis/core/geometry/Point.js";
|
|
21
21
|
import * as b from "@arcgis/core/geometry/operators/projectOperator.js";
|
|
22
22
|
import A from "@arcgis/core/config.js";
|
|
23
|
-
import { geographicToWebMercator as
|
|
24
|
-
import
|
|
25
|
-
import { project as
|
|
26
|
-
import
|
|
27
|
-
import {
|
|
23
|
+
import { geographicToWebMercator as te } from "@arcgis/core/geometry/support/webMercatorUtils.js";
|
|
24
|
+
import oe from "@arcgis/core/portal/Portal.js";
|
|
25
|
+
import { project as ie } from "@arcgis/core/rest/geometryService.js";
|
|
26
|
+
import re from "@arcgis/core/rest/support/ProjectParameters.js";
|
|
27
|
+
import { log as O } from "@arcgis/toolkit/log";
|
|
28
|
+
import { g as ae } from "../../chunks/globalCss.js";
|
|
28
29
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
29
30
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
30
|
-
v5.0.0-next.
|
|
31
|
-
const
|
|
31
|
+
v5.0.0-next.82 */
|
|
32
|
+
const se = z`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}calcite-button{width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl)}}:host{width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl)}`;
|
|
32
33
|
let E = !1;
|
|
33
|
-
const
|
|
34
|
+
const ne = {
|
|
34
35
|
maximumAge: 0,
|
|
35
36
|
timeout: 15e3,
|
|
36
37
|
enableHighAccuracy: !0
|
|
37
38
|
};
|
|
38
|
-
function
|
|
39
|
+
function ce(t) {
|
|
39
40
|
const e = "geolocation" in navigator;
|
|
40
|
-
return e ||
|
|
41
|
+
return e || O("warn", t, "Geolocation is not supported by this browser."), e;
|
|
41
42
|
}
|
|
42
|
-
function
|
|
43
|
+
function le(t) {
|
|
43
44
|
const e = window.isSecureContext;
|
|
44
|
-
return e || E || (E = !0,
|
|
45
|
+
return e || E || (E = !0, O("warn", t, "Geolocation requires a secure origin.")), e;
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
-
return
|
|
47
|
+
function pe(t) {
|
|
48
|
+
return ce(t) && le(t);
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
-
return
|
|
50
|
+
function de(t) {
|
|
51
|
+
return t ??= ne, new Promise((o, r) => {
|
|
51
52
|
setTimeout(
|
|
52
53
|
() => r(new u("geolocation:timeout", "getting the current geolocation position timed out")),
|
|
53
|
-
|
|
54
|
-
), navigator.geolocation.getCurrentPosition(o, r,
|
|
54
|
+
t?.timeout ?? 15e3
|
|
55
|
+
), navigator.geolocation.getCurrentPosition(o, r, t ?? void 0);
|
|
55
56
|
});
|
|
56
57
|
}
|
|
57
|
-
function
|
|
58
|
-
const { position: o, view: r } =
|
|
58
|
+
function ue(t, e) {
|
|
59
|
+
const { position: o, view: r } = t, a = he(o)?.coords;
|
|
59
60
|
if (!a)
|
|
60
61
|
throw new u("geometry-service:no-coords", "Geolocation has no coordinates");
|
|
61
|
-
const s =
|
|
62
|
-
return
|
|
62
|
+
const s = me(a);
|
|
63
|
+
return ge(s, r, e);
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
-
const
|
|
66
|
-
accuracy:
|
|
67
|
-
altitude:
|
|
68
|
-
altitudeAccuracy:
|
|
69
|
-
heading:
|
|
70
|
-
latitude:
|
|
71
|
-
longitude:
|
|
72
|
-
speed:
|
|
65
|
+
function he(t) {
|
|
66
|
+
const e = t?.coords || {}, o = {
|
|
67
|
+
accuracy: e.accuracy,
|
|
68
|
+
altitude: e.altitude,
|
|
69
|
+
altitudeAccuracy: e.altitudeAccuracy,
|
|
70
|
+
heading: e.heading,
|
|
71
|
+
latitude: e.latitude,
|
|
72
|
+
longitude: e.longitude,
|
|
73
|
+
speed: e.speed,
|
|
73
74
|
toJSON() {
|
|
74
75
|
return {};
|
|
75
76
|
}
|
|
76
77
|
};
|
|
77
|
-
return
|
|
78
|
+
return t && {
|
|
78
79
|
coords: o,
|
|
79
|
-
timestamp:
|
|
80
|
+
timestamp: t.timestamp,
|
|
80
81
|
toJSON() {
|
|
81
82
|
return {};
|
|
82
83
|
}
|
|
83
84
|
};
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
-
return new
|
|
87
|
-
longitude:
|
|
88
|
-
latitude:
|
|
86
|
+
function me({ longitude: t, latitude: e, altitude: o }) {
|
|
87
|
+
return new ee({
|
|
88
|
+
longitude: t,
|
|
89
|
+
latitude: e,
|
|
89
90
|
z: o || void 0,
|
|
90
91
|
spatialReference: {
|
|
91
92
|
wkid: 4326
|
|
92
93
|
}
|
|
93
94
|
});
|
|
94
95
|
}
|
|
95
|
-
async function
|
|
96
|
-
if (!
|
|
97
|
-
return await Promise.resolve(
|
|
98
|
-
const r =
|
|
99
|
-
return r.isWGS84 ? await Promise.resolve(
|
|
96
|
+
async function ge(t, e, o) {
|
|
97
|
+
if (!e)
|
|
98
|
+
return await Promise.resolve(t);
|
|
99
|
+
const r = e.spatialReference;
|
|
100
|
+
return r.isWGS84 ? await Promise.resolve(t) : r.isWebMercator ? await Promise.resolve(te(t)) : b.isLoaded() ? await Promise.resolve(b.execute(t, r)) : await fe(o).then(async (i) => {
|
|
100
101
|
if (!i)
|
|
101
102
|
throw new u("geometry-service:missing-url", "Geometry service URL is missing");
|
|
102
|
-
const a = new
|
|
103
|
-
geometries: [
|
|
103
|
+
const a = new re({
|
|
104
|
+
geometries: [t],
|
|
104
105
|
outSpatialReference: r
|
|
105
106
|
});
|
|
106
|
-
return (await
|
|
107
|
+
return (await ie(i, a, o))[0];
|
|
107
108
|
});
|
|
108
109
|
}
|
|
109
|
-
async function
|
|
110
|
+
async function fe(t) {
|
|
110
111
|
if (A.geometryServiceUrl)
|
|
111
112
|
return await Promise.resolve(A.geometryServiceUrl);
|
|
112
|
-
const
|
|
113
|
+
const e = oe.getDefault();
|
|
113
114
|
try {
|
|
114
|
-
await
|
|
115
|
+
await e.load(t);
|
|
115
116
|
} catch {
|
|
116
117
|
}
|
|
117
|
-
return
|
|
118
|
+
return e.helperServices?.geometry?.url;
|
|
118
119
|
}
|
|
119
|
-
var
|
|
120
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
121
|
-
(s =
|
|
122
|
-
return r && i &&
|
|
120
|
+
var ve = Object.defineProperty, ye = Object.getOwnPropertyDescriptor, p = (t, e, o, r) => {
|
|
121
|
+
for (var i = r > 1 ? void 0 : r ? ye(e, o) : e, a = t.length - 1, s; a >= 0; a--)
|
|
122
|
+
(s = t[a]) && (i = (r ? s(e, o, i) : s(i)) || i);
|
|
123
|
+
return r && i && ve(e, o, i), i;
|
|
123
124
|
};
|
|
124
|
-
const
|
|
125
|
-
function x(
|
|
126
|
-
const
|
|
125
|
+
const we = 2500;
|
|
126
|
+
function x(t) {
|
|
127
|
+
const e = {
|
|
127
128
|
type: "CIMVectorMarker",
|
|
128
129
|
enable: !0,
|
|
129
130
|
anchorPoint: {
|
|
@@ -132,7 +133,7 @@ function x(e) {
|
|
|
132
133
|
},
|
|
133
134
|
anchorPointUnits: "Relative",
|
|
134
135
|
dominantSizeAxis3D: "Y",
|
|
135
|
-
size:
|
|
136
|
+
size: t === "background" ? 16 : 14,
|
|
136
137
|
billboardMode3D: "FaceNearPlane",
|
|
137
138
|
frame: {
|
|
138
139
|
xmin: 0,
|
|
@@ -196,13 +197,13 @@ function x(e) {
|
|
|
196
197
|
joinStyle: "Round",
|
|
197
198
|
lineStyle3D: "Strip",
|
|
198
199
|
miterLimit: 10,
|
|
199
|
-
width:
|
|
200
|
+
width: t === "background" ? 0 : 2,
|
|
200
201
|
color: [255, 255, 255, 255]
|
|
201
202
|
},
|
|
202
203
|
{
|
|
203
204
|
type: "CIMSolidFill",
|
|
204
205
|
enable: !0,
|
|
205
|
-
color:
|
|
206
|
+
color: t === "background" ? [0, 0, 0, 66] : [0, 122, 194, 255]
|
|
206
207
|
}
|
|
207
208
|
]
|
|
208
209
|
}
|
|
@@ -211,9 +212,9 @@ function x(e) {
|
|
|
211
212
|
scaleSymbolsProportionally: !0,
|
|
212
213
|
respectFrame: !0
|
|
213
214
|
};
|
|
214
|
-
return
|
|
215
|
+
return t === "background" && (e.offsetX = 0, e.offsetY = -1), e;
|
|
215
216
|
}
|
|
216
|
-
const
|
|
217
|
+
const L = {
|
|
217
218
|
type: "CIMPictureMarker",
|
|
218
219
|
primitiveName: "headingOverride",
|
|
219
220
|
enable: !0,
|
|
@@ -229,12 +230,12 @@ const O = {
|
|
|
229
230
|
scaleX: 1,
|
|
230
231
|
textureFilter: "Picture",
|
|
231
232
|
url: "data:image/png;base64,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"
|
|
232
|
-
},
|
|
233
|
+
}, be = x("layer"), Ae = x("background"), Ee = new $({
|
|
233
234
|
data: {
|
|
234
235
|
type: "CIMSymbolReference",
|
|
235
236
|
symbol: {
|
|
236
237
|
type: "CIMPointSymbol",
|
|
237
|
-
symbolLayers: [
|
|
238
|
+
symbolLayers: [be, Ae, L],
|
|
238
239
|
angleAlignment: "Map"
|
|
239
240
|
},
|
|
240
241
|
primitiveOverrides: [
|
|
@@ -263,15 +264,15 @@ const O = {
|
|
|
263
264
|
]
|
|
264
265
|
}
|
|
265
266
|
});
|
|
266
|
-
let c = class extends
|
|
267
|
+
let c = class extends Y {
|
|
267
268
|
constructor() {
|
|
268
269
|
super(...arguments), this._geolocationUsable = !0, this.goToLocationEnabled = !0, this.graphic = new T({
|
|
269
|
-
symbol:
|
|
270
|
+
symbol: Ee
|
|
270
271
|
}), this.rotationEnabled = !0;
|
|
271
272
|
}
|
|
272
273
|
//#region Lifecycle
|
|
273
274
|
initialize() {
|
|
274
|
-
|
|
275
|
+
pe(this) || (this._geolocationUsable = !1), this.addHandles([
|
|
275
276
|
v(
|
|
276
277
|
() => this.view?.type,
|
|
277
278
|
() => this._handleViewTypeChange(),
|
|
@@ -290,53 +291,53 @@ let c = class extends Z {
|
|
|
290
291
|
* Clears the locate graphic from the view.
|
|
291
292
|
*/
|
|
292
293
|
_clearGraphic() {
|
|
293
|
-
const { view:
|
|
294
|
-
|
|
294
|
+
const { view: t, graphic: e } = this;
|
|
295
|
+
t && e && t.graphics.remove(e);
|
|
295
296
|
}
|
|
296
297
|
/**
|
|
297
298
|
* Adds the graphic to the view.
|
|
298
299
|
*/
|
|
299
300
|
_addGraphic() {
|
|
300
|
-
const { view:
|
|
301
|
-
!
|
|
301
|
+
const { view: t, graphic: e } = this;
|
|
302
|
+
!t?.graphics || !e || t.graphics.includes(e) || t.graphics.push(e);
|
|
302
303
|
}
|
|
303
304
|
_handleViewTypeChange() {
|
|
304
|
-
|
|
305
|
+
L.enable = this.view?.type === "2d";
|
|
305
306
|
}
|
|
306
|
-
_getScaleWithinConstraints(
|
|
307
|
-
if (!
|
|
308
|
-
return
|
|
309
|
-
if (
|
|
310
|
-
const { effectiveMaxScale: o, effectiveMinScale: r } =
|
|
311
|
-
return Math.min(r, Math.max(o,
|
|
307
|
+
_getScaleWithinConstraints(t, e) {
|
|
308
|
+
if (!e)
|
|
309
|
+
return t;
|
|
310
|
+
if (e.type === "2d") {
|
|
311
|
+
const { effectiveMaxScale: o, effectiveMinScale: r } = e.constraints;
|
|
312
|
+
return Math.min(r, Math.max(o, t));
|
|
312
313
|
}
|
|
313
|
-
return
|
|
314
|
+
return t;
|
|
314
315
|
}
|
|
315
|
-
_getScale(
|
|
316
|
-
const { scale:
|
|
317
|
-
return this._getScaleWithinConstraints(o,
|
|
316
|
+
_getScale(t) {
|
|
317
|
+
const { scale: e } = this, o = typeof e == "number" ? e : we;
|
|
318
|
+
return this._getScaleWithinConstraints(o, t);
|
|
318
319
|
}
|
|
319
|
-
_getHeading(
|
|
320
|
-
const o =
|
|
320
|
+
_getHeading(t, e) {
|
|
321
|
+
const o = e?.spatialReference, r = o?.isWebMercator || o?.isGeographic, i = t.coords?.heading;
|
|
321
322
|
return !r || typeof i != "number" || Number.isNaN(i) || i < 0 || i > 360 ? null : i;
|
|
322
323
|
}
|
|
323
|
-
_addHeading(
|
|
324
|
-
const { heading:
|
|
325
|
-
if (!(!r ||
|
|
324
|
+
_addHeading(t) {
|
|
325
|
+
const { heading: e, target: o, view: r } = t;
|
|
326
|
+
if (!(!r || e === null)) {
|
|
326
327
|
if (r.type === "3d") {
|
|
327
|
-
o.heading =
|
|
328
|
+
o.heading = e;
|
|
328
329
|
return;
|
|
329
330
|
}
|
|
330
|
-
r.type === "2d" && (o.rotation = 360 -
|
|
331
|
+
r.type === "2d" && (o.rotation = 360 - e);
|
|
331
332
|
}
|
|
332
333
|
}
|
|
333
|
-
async _animatePoint(
|
|
334
|
+
async _animatePoint(t, e, o, r) {
|
|
334
335
|
const { view: i } = this;
|
|
335
336
|
if (!this.goToLocationEnabled || !i)
|
|
336
337
|
return;
|
|
337
338
|
const a = {
|
|
338
|
-
target:
|
|
339
|
-
scale:
|
|
339
|
+
target: t,
|
|
340
|
+
scale: e
|
|
340
341
|
};
|
|
341
342
|
this.rotationEnabled && this._addHeading({
|
|
342
343
|
heading: o,
|
|
@@ -344,35 +345,35 @@ let c = class extends Z {
|
|
|
344
345
|
view: i
|
|
345
346
|
});
|
|
346
347
|
const s = { signal: r.signal };
|
|
347
|
-
if (
|
|
348
|
-
return this.goToOverride(i, {
|
|
348
|
+
if (Z(s), this.goToOverride && i)
|
|
349
|
+
return await this.goToOverride(i, {
|
|
349
350
|
target: a,
|
|
350
351
|
options: s
|
|
351
352
|
});
|
|
352
353
|
await i.goTo(a, s);
|
|
353
354
|
}
|
|
354
|
-
async updatePosition(
|
|
355
|
+
async updatePosition(t, e) {
|
|
355
356
|
try {
|
|
356
|
-
const o = this.view, r = await
|
|
357
|
+
const o = this.view, r = await ue({ position: t, view: o }, { signal: e.signal }), { graphic: i } = this, { timestamp: a, coords: s } = t, { accuracy: m, altitude: h, altitudeAccuracy: N, latitude: D, longitude: R, speed: U } = s, y = this._getHeading(t, o), I = {
|
|
357
358
|
timestamp: a,
|
|
358
359
|
accuracy: m,
|
|
359
360
|
altitude: h,
|
|
360
|
-
altitudeAccuracy:
|
|
361
|
+
altitudeAccuracy: N,
|
|
361
362
|
heading: y,
|
|
362
|
-
latitude:
|
|
363
|
-
longitude:
|
|
364
|
-
speed:
|
|
363
|
+
latitude: D,
|
|
364
|
+
longitude: R,
|
|
365
|
+
speed: U
|
|
365
366
|
};
|
|
366
|
-
i && (i.geometry = r, i.attributes =
|
|
367
|
-
const
|
|
368
|
-
await this._animatePoint(r,
|
|
367
|
+
i && (i.geometry = r, i.attributes = I);
|
|
368
|
+
const _ = this._getScale(o);
|
|
369
|
+
await this._animatePoint(r, _, y, e);
|
|
369
370
|
} catch (o) {
|
|
370
|
-
if (!
|
|
371
|
+
if (!C(o))
|
|
371
372
|
throw new u("geolocation-positioning:invalid-point", "Cannot position invalid point", {
|
|
372
373
|
error: o
|
|
373
374
|
});
|
|
374
375
|
}
|
|
375
|
-
return
|
|
376
|
+
return t;
|
|
376
377
|
}
|
|
377
378
|
//#endregion
|
|
378
379
|
};
|
|
@@ -403,33 +404,33 @@ p([
|
|
|
403
404
|
n()
|
|
404
405
|
], c.prototype, "view", 2);
|
|
405
406
|
c = p([
|
|
406
|
-
|
|
407
|
+
S("map-components.geolocation.GeolocationPositioning")
|
|
407
408
|
], c);
|
|
408
|
-
var
|
|
409
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
410
|
-
(s =
|
|
411
|
-
return r && i &&
|
|
409
|
+
var Pe = Object.defineProperty, Me = Object.getOwnPropertyDescriptor, d = (t, e, o, r) => {
|
|
410
|
+
for (var i = r > 1 ? void 0 : r ? Me(e, o) : e, a = t.length - 1, s; a >= 0; a--)
|
|
411
|
+
(s = t[a]) && (i = (r ? s(e, o, i) : s(i)) || i);
|
|
412
|
+
return r && i && Pe(e, o, i), i;
|
|
412
413
|
};
|
|
413
|
-
const
|
|
414
|
+
const Se = new X({
|
|
414
415
|
icon: "trash",
|
|
415
416
|
id: "remove-selected-feature",
|
|
416
417
|
title: "{messages.remove}",
|
|
417
418
|
className: "esri-icon-trash"
|
|
418
419
|
});
|
|
419
|
-
function Ce(
|
|
420
|
-
return new
|
|
421
|
-
title:
|
|
420
|
+
function Ce(t) {
|
|
421
|
+
return new W({
|
|
422
|
+
title: t.currentLocation,
|
|
422
423
|
fieldInfos: [
|
|
423
424
|
{
|
|
424
425
|
fieldName: "timestamp",
|
|
425
|
-
label:
|
|
426
|
+
label: t.timestamp,
|
|
426
427
|
format: {
|
|
427
428
|
dateFormat: "short-date-short-time"
|
|
428
429
|
}
|
|
429
430
|
},
|
|
430
431
|
{
|
|
431
432
|
fieldName: "latitude",
|
|
432
|
-
label:
|
|
433
|
+
label: t.latitude,
|
|
433
434
|
format: {
|
|
434
435
|
places: 4,
|
|
435
436
|
digitSeparator: !0
|
|
@@ -437,7 +438,7 @@ function Ce(e) {
|
|
|
437
438
|
},
|
|
438
439
|
{
|
|
439
440
|
fieldName: "longitude",
|
|
440
|
-
label:
|
|
441
|
+
label: t.longitude,
|
|
441
442
|
format: {
|
|
442
443
|
places: 4,
|
|
443
444
|
digitSeparator: !0
|
|
@@ -445,7 +446,7 @@ function Ce(e) {
|
|
|
445
446
|
},
|
|
446
447
|
{
|
|
447
448
|
fieldName: "accuracy",
|
|
448
|
-
label:
|
|
449
|
+
label: t.accuracy,
|
|
449
450
|
format: {
|
|
450
451
|
places: 0,
|
|
451
452
|
digitSeparator: !0
|
|
@@ -453,7 +454,7 @@ function Ce(e) {
|
|
|
453
454
|
},
|
|
454
455
|
{
|
|
455
456
|
fieldName: "altitude",
|
|
456
|
-
label:
|
|
457
|
+
label: t.altitude,
|
|
457
458
|
format: {
|
|
458
459
|
places: 0,
|
|
459
460
|
digitSeparator: !0
|
|
@@ -461,7 +462,7 @@ function Ce(e) {
|
|
|
461
462
|
},
|
|
462
463
|
{
|
|
463
464
|
fieldName: "altitudeAccuracy",
|
|
464
|
-
label:
|
|
465
|
+
label: t.altitudeAccuracy,
|
|
465
466
|
format: {
|
|
466
467
|
places: 0,
|
|
467
468
|
digitSeparator: !0
|
|
@@ -469,7 +470,7 @@ function Ce(e) {
|
|
|
469
470
|
},
|
|
470
471
|
{
|
|
471
472
|
fieldName: "heading",
|
|
472
|
-
label:
|
|
473
|
+
label: t.heading,
|
|
473
474
|
format: {
|
|
474
475
|
places: 0,
|
|
475
476
|
digitSeparator: !0
|
|
@@ -477,14 +478,14 @@ function Ce(e) {
|
|
|
477
478
|
},
|
|
478
479
|
{
|
|
479
480
|
fieldName: "speed",
|
|
480
|
-
label:
|
|
481
|
+
label: t.speed,
|
|
481
482
|
format: {
|
|
482
483
|
places: 0,
|
|
483
484
|
digitSeparator: !0
|
|
484
485
|
}
|
|
485
486
|
}
|
|
486
487
|
],
|
|
487
|
-
actions: [
|
|
488
|
+
actions: [Se.clone()],
|
|
488
489
|
content: [
|
|
489
490
|
{
|
|
490
491
|
type: "fields"
|
|
@@ -494,16 +495,16 @@ function Ce(e) {
|
|
|
494
495
|
}
|
|
495
496
|
let l = class extends c {
|
|
496
497
|
//#region Lifecycle
|
|
497
|
-
constructor(
|
|
498
|
-
super(
|
|
498
|
+
constructor(t) {
|
|
499
|
+
super(t), this.popupEnabled = !0, this.locate = this.locate.bind(this);
|
|
499
500
|
}
|
|
500
501
|
initialize() {
|
|
501
502
|
this.addHandles([
|
|
502
|
-
|
|
503
|
-
const { graphic:
|
|
504
|
-
if (!
|
|
503
|
+
B(() => {
|
|
504
|
+
const { graphic: t, view: e } = this;
|
|
505
|
+
if (!t)
|
|
505
506
|
return;
|
|
506
|
-
|
|
507
|
+
e?.graphics?.includes(t) && this._updatePopupTemplate(t);
|
|
507
508
|
})
|
|
508
509
|
]);
|
|
509
510
|
}
|
|
@@ -520,18 +521,18 @@ let l = class extends c {
|
|
|
520
521
|
throw new u("locate:disabled-state", "Cannot locate when disabled.");
|
|
521
522
|
if (this.state === "feature-unsupported")
|
|
522
523
|
throw new u("locate:feature-unsupported-state", "Cannot locate in unsecure domain.");
|
|
523
|
-
const
|
|
524
|
-
this._locateController =
|
|
524
|
+
const t = new AbortController();
|
|
525
|
+
this._locateController = t, this.error = void 0;
|
|
525
526
|
try {
|
|
526
|
-
const
|
|
527
|
-
if (await this.updatePosition(
|
|
527
|
+
const e = await de(this.geolocationOptions);
|
|
528
|
+
if (await this.updatePosition(e, t), this._locateController !== t)
|
|
528
529
|
return null;
|
|
529
530
|
const { graphic: o } = this;
|
|
530
|
-
return o && this._updatePopupTemplate(o), this._addGraphic(), this.currentPosition =
|
|
531
|
-
} catch (
|
|
532
|
-
if (
|
|
531
|
+
return o && this._updatePopupTemplate(o), this._addGraphic(), this.currentPosition = e, this._locateController = void 0, e;
|
|
532
|
+
} catch (e) {
|
|
533
|
+
if (C(e))
|
|
533
534
|
return null;
|
|
534
|
-
throw
|
|
535
|
+
throw t === this._locateController && (this._locateController = void 0), this.error = e, e;
|
|
535
536
|
}
|
|
536
537
|
}
|
|
537
538
|
cancelLocate() {
|
|
@@ -539,11 +540,11 @@ let l = class extends c {
|
|
|
539
540
|
}
|
|
540
541
|
//#endregion
|
|
541
542
|
//#region Private Methods
|
|
542
|
-
_updatePopupTemplate(
|
|
543
|
+
_updatePopupTemplate(t) {
|
|
543
544
|
if (!this.popupEnabled)
|
|
544
545
|
return;
|
|
545
|
-
const
|
|
546
|
-
this.destroyed || o || (
|
|
546
|
+
const e = Ce(this.messages), o = t !== this.graphic;
|
|
547
|
+
this.destroyed || o || (t.popupTemplate = e);
|
|
547
548
|
}
|
|
548
549
|
//#endregion
|
|
549
550
|
};
|
|
@@ -566,23 +567,23 @@ d([
|
|
|
566
567
|
n({ readOnly: !0 })
|
|
567
568
|
], l.prototype, "state", 1);
|
|
568
569
|
l = d([
|
|
569
|
-
|
|
570
|
+
S("map-components.locate.LocateViewModel")
|
|
570
571
|
], l);
|
|
571
572
|
const P = {
|
|
572
573
|
base: "locate",
|
|
573
574
|
button: "arcgis-button"
|
|
574
|
-
}, M = "gps-off",
|
|
575
|
-
class
|
|
575
|
+
}, M = "gps-off", Te = J(l);
|
|
576
|
+
class Oe extends k {
|
|
576
577
|
constructor() {
|
|
577
|
-
super(), this.locateButtonElement =
|
|
578
|
+
super(), this.locateButtonElement = H(), this.messages = V(), this.viewModel = Te(this), this.hideErrorTooltip = () => {
|
|
578
579
|
this.isErrorTooltipOpen = !1;
|
|
579
|
-
}, this.isErrorTooltipOpen = !1, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.geolocationOptions = this.viewModel.geolocationOptions, this.goToLocationDisabled = this.viewModel.goToLocationEnabled, this.goToOverride = this.viewModel.goToOverride, this.graphic = this.viewModel.graphic, this.icon = M, this.popupDisabled = this.viewModel.popupEnabled, this.scale = this.viewModel.scale, this.state = this.viewModel.state, this.arcgisError = f(), this.arcgisPropertyChange =
|
|
580
|
+
}, this.isErrorTooltipOpen = !1, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.geolocationOptions = this.viewModel.geolocationOptions, this.goToLocationDisabled = this.viewModel.goToLocationEnabled, this.goToOverride = this.viewModel.goToOverride, this.graphic = this.viewModel.graphic, this.icon = M, this.popupDisabled = this.viewModel.popupEnabled, this.scale = this.viewModel.scale, this.state = this.viewModel.state, this.arcgisError = f(), this.arcgisPropertyChange = F()("state"), this.arcgisReady = f(), this.arcgisSuccess = f(), this.listenOn(document, "click", this.hideErrorTooltip);
|
|
580
581
|
}
|
|
581
582
|
static {
|
|
582
583
|
this.properties = { isErrorTooltipOpen: 16, view: 0, autoDestroyDisabled: 5, geolocationOptions: 0, goToLocationDisabled: 7, goToOverride: 0, graphic: 0, icon: 1, label: 1, messageOverrides: 0, popupDisabled: 5, position: 3, referenceElement: 1, scale: 9, state: 3 };
|
|
583
584
|
}
|
|
584
585
|
static {
|
|
585
|
-
this.styles =
|
|
586
|
+
this.styles = se;
|
|
586
587
|
}
|
|
587
588
|
async cancelLocate() {
|
|
588
589
|
this.viewModel.cancelLocate();
|
|
@@ -595,31 +596,31 @@ class Te extends j {
|
|
|
595
596
|
}
|
|
596
597
|
loaded() {
|
|
597
598
|
this.viewModel.messages = { ...this.messages, ...this.messageOverrides }, this.manager.onLifecycle(() => [
|
|
598
|
-
v(() => this.viewModel.error, (
|
|
599
|
-
this.isErrorTooltipOpen = !!
|
|
599
|
+
v(() => this.viewModel.error, (e) => {
|
|
600
|
+
this.isErrorTooltipOpen = !!e, this.arcgisError.emit({ error: e });
|
|
600
601
|
}),
|
|
601
|
-
v(() => this.viewModel.currentPosition, (
|
|
602
|
-
this.arcgisSuccess.emit({ position:
|
|
602
|
+
v(() => this.viewModel.currentPosition, (e) => {
|
|
603
|
+
this.arcgisSuccess.emit({ position: e });
|
|
603
604
|
})
|
|
604
605
|
]);
|
|
605
606
|
}
|
|
606
|
-
_localizeError(
|
|
607
|
-
if (
|
|
608
|
-
return
|
|
609
|
-
if (
|
|
610
|
-
return
|
|
607
|
+
_localizeError(e) {
|
|
608
|
+
if (e instanceof GeolocationPositionError)
|
|
609
|
+
return e.code === GeolocationPositionError.PERMISSION_DENIED ? this.messages?.permissionError : e.code === GeolocationPositionError.TIMEOUT ? this.messages?.timeoutError : this.messages?.positionUnavailable;
|
|
610
|
+
if (e instanceof Error)
|
|
611
|
+
return e.message;
|
|
611
612
|
}
|
|
612
613
|
_locate() {
|
|
613
|
-
const { viewModel:
|
|
614
|
-
|
|
614
|
+
const { viewModel: e } = this;
|
|
615
|
+
e.state === "locating" ? e.cancelLocate() : e.locate().catch(() => {
|
|
615
616
|
});
|
|
616
617
|
}
|
|
617
618
|
render() {
|
|
618
|
-
const { viewModel:
|
|
619
|
-
return g`<div class=${w(
|
|
619
|
+
const { viewModel: e, icon: o } = this, { state: r } = e, i = r === "locating", a = i ? this.messages.cancel : this.messages.title, s = r === "feature-unsupported", m = q === void 0 ? M : void 0, h = this._localizeError(this.viewModel?.error);
|
|
620
|
+
return g`<div class=${w(j(P.base, P.button))}>${!s && g`<calcite-button class=${w(ae.widgetButton)} .disabled=${r === "disabled"} .loading=${i} .iconStart=${i ? void 0 : o ?? m} kind=neutral .label=${a} @click=${this._locate} title=${a ?? Q} ${K(this.locateButtonElement)}></calcite-button>` || ""}${h ? g`<calcite-tooltip .open=${this.isErrorTooltipOpen} overlay-positioning=fixed .referenceElement=${this.locateButtonElement.value}>${h}</calcite-tooltip>` : null}</div>`;
|
|
620
621
|
}
|
|
621
622
|
}
|
|
622
|
-
|
|
623
|
+
G("arcgis-locate", Oe);
|
|
623
624
|
export {
|
|
624
|
-
|
|
625
|
+
Oe as ArcgisLocate
|
|
625
626
|
};
|