@arcgis/map-components 4.28.0-beta.9 → 4.29.0-beta.0
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/arcgis-map-components/arcgis-map-components.esm.js +1 -1
- package/dist/arcgis-map-components/{p-2fd925ca.entry.js → p-01d9efae.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-ecf7fc37.entry.js → p-06df2252.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-fc030349.entry.js → p-109bebac.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-68646c61.entry.js → p-11e7ce02.entry.js} +1 -1
- package/dist/arcgis-map-components/p-1435356e.entry.js +1 -0
- package/dist/arcgis-map-components/{p-7abce241.entry.js → p-174f9d11.entry.js} +1 -1
- package/dist/arcgis-map-components/p-18c653a4.entry.js +1 -0
- package/dist/arcgis-map-components/{p-1e190d5b.entry.js → p-198374aa.entry.js} +1 -1
- package/dist/arcgis-map-components/p-1b5e33ea.entry.js +1 -0
- package/dist/arcgis-map-components/{p-2db2577e.entry.js → p-1c631990.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-7e190cc8.entry.js → p-1e9abc6d.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-ea86c3a4.entry.js → p-2165089c.entry.js} +1 -1
- package/dist/arcgis-map-components/p-21721d4b.entry.js +1 -0
- package/dist/arcgis-map-components/p-25089dd3.entry.js +1 -0
- package/dist/arcgis-map-components/{p-dd338d8a.entry.js → p-2792ef61.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-0dfeaa97.entry.js → p-2a84985d.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-1e6d8c41.entry.js → p-2abff98f.entry.js} +1 -1
- package/dist/arcgis-map-components/p-2becbf01.entry.js +1 -0
- package/dist/arcgis-map-components/{p-468ba851.entry.js → p-2c5be6b0.entry.js} +1 -1
- package/dist/arcgis-map-components/p-2cf30ef5.entry.js +1 -0
- package/dist/arcgis-map-components/{p-091d4493.entry.js → p-30ef17d7.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-ad5290c9.entry.js → p-312ff83f.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-67ff797c.entry.js → p-3155dc12.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-c3dada67.entry.js → p-3279d5e4.entry.js} +1 -1
- package/dist/arcgis-map-components/p-3361d81f.entry.js +1 -0
- package/dist/arcgis-map-components/p-3587b4d8.entry.js +1 -0
- package/dist/arcgis-map-components/{p-f58b60c7.entry.js → p-35b675ca.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-edf58b44.entry.js → p-364d4187.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-659610e7.entry.js → p-37eceffa.entry.js} +1 -1
- package/dist/arcgis-map-components/p-39443d81.entry.js +1 -0
- package/dist/arcgis-map-components/{p-5a021a17.entry.js → p-3b5560bb.entry.js} +1 -1
- package/dist/arcgis-map-components/p-3bd2d0aa.entry.js +1 -0
- package/dist/arcgis-map-components/p-3d55c74c.entry.js +1 -0
- package/dist/arcgis-map-components/p-3e676259.entry.js +1 -0
- package/dist/arcgis-map-components/{p-73d00de1.entry.js → p-43c52a2d.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-14749f65.entry.js → p-47629a4c.entry.js} +1 -1
- package/dist/arcgis-map-components/p-4b5fa9a2.entry.js +1 -0
- package/dist/arcgis-map-components/p-4bb15110.entry.js +1 -0
- package/dist/arcgis-map-components/p-4c103777.entry.js +1 -0
- package/dist/arcgis-map-components/{p-c3ace9c2.entry.js → p-4d5e7ddd.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-bb8e0d09.entry.js → p-4dfcfa91.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-77e1789b.entry.js → p-4fa3c6fe.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-a4d66952.entry.js → p-501861a1.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-59eeb050.entry.js → p-535bf289.entry.js} +1 -1
- package/dist/arcgis-map-components/p-56d3bde2.entry.js +1 -0
- package/dist/arcgis-map-components/p-576ef000.entry.js +1 -0
- package/dist/arcgis-map-components/p-5a91868a.entry.js +1 -0
- package/dist/arcgis-map-components/{p-96d19c1a.entry.js → p-5d835456.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-3fa85124.entry.js → p-5db2786d.entry.js} +1 -1
- package/dist/arcgis-map-components/p-5ea3ce11.entry.js +1 -0
- package/dist/arcgis-map-components/p-620959fc.js +1 -0
- package/dist/arcgis-map-components/{p-59e90608.entry.js → p-64607de6.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-2ee35a41.entry.js → p-69374811.entry.js} +1 -1
- package/dist/arcgis-map-components/p-69b6541c.entry.js +1 -0
- package/dist/arcgis-map-components/{p-6dbba964.entry.js → p-6c3e28cd.entry.js} +1 -1
- package/dist/arcgis-map-components/p-721673c8.entry.js +1 -0
- package/dist/arcgis-map-components/p-737f79f3.entry.js +1 -0
- package/dist/arcgis-map-components/p-76af5d10.entry.js +1 -0
- package/dist/arcgis-map-components/p-7add1ddc.entry.js +1 -0
- package/dist/arcgis-map-components/{p-b1b46d88.entry.js → p-82462685.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-3be968a1.entry.js → p-83b8f950.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-d1ca9ab9.entry.js → p-859d99ff.entry.js} +1 -1
- package/dist/arcgis-map-components/p-8c18a99c.entry.js +1 -0
- package/dist/arcgis-map-components/{p-46bcef6f.entry.js → p-8d184d92.entry.js} +1 -1
- package/dist/arcgis-map-components/p-8fde8001.entry.js +1 -0
- package/dist/arcgis-map-components/p-9040f50a.entry.js +1 -0
- package/dist/arcgis-map-components/p-927f8748.entry.js +1 -0
- package/dist/arcgis-map-components/p-93b5c951.entry.js +1 -0
- package/dist/arcgis-map-components/p-96b72ddd.js +1 -0
- package/dist/arcgis-map-components/p-99ab4a91.entry.js +1 -0
- package/dist/arcgis-map-components/p-9aad48fe.entry.js +1 -0
- package/dist/arcgis-map-components/p-9c1b8e69.entry.js +1 -0
- package/dist/arcgis-map-components/{p-75fe9abd.entry.js → p-9cfcd5e2.entry.js} +1 -1
- package/dist/arcgis-map-components/p-9daf744f.entry.js +1 -0
- package/dist/arcgis-map-components/p-9e667282.entry.js +1 -0
- package/dist/arcgis-map-components/p-a242b477.entry.js +1 -0
- package/dist/arcgis-map-components/p-a5f78ba3.entry.js +1 -0
- package/dist/arcgis-map-components/p-a67dda4e.entry.js +1 -0
- package/dist/arcgis-map-components/{p-84bca99d.entry.js → p-acb4a35a.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-8d4d14db.entry.js → p-aed5d6b3.entry.js} +1 -1
- package/dist/arcgis-map-components/p-b19043d5.entry.js +1 -0
- package/dist/arcgis-map-components/p-b47a4384.entry.js +1 -0
- package/dist/arcgis-map-components/{p-af108a38.entry.js → p-b9acaa74.entry.js} +1 -1
- package/dist/arcgis-map-components/p-ba19bf3b.entry.js +1 -0
- package/dist/arcgis-map-components/{p-0ea677ba.entry.js → p-ba6ee56b.entry.js} +1 -1
- package/dist/arcgis-map-components/p-c0d9a07e.entry.js +1 -0
- package/dist/arcgis-map-components/p-c63a5c7f.entry.js +1 -0
- package/dist/arcgis-map-components/p-c6e11b15.entry.js +1 -0
- package/dist/arcgis-map-components/p-ce14e49f.entry.js +1 -0
- package/dist/arcgis-map-components/p-d3fbbf3f.entry.js +1 -0
- package/dist/arcgis-map-components/{p-dab815b7.entry.js → p-d8be8a46.entry.js} +1 -1
- package/dist/arcgis-map-components/p-dafb17cf.entry.js +1 -0
- package/dist/arcgis-map-components/{p-1a43e8d8.entry.js → p-dd2f47ce.entry.js} +1 -1
- package/dist/arcgis-map-components/p-df6a6059.entry.js +1 -0
- package/dist/arcgis-map-components/{p-e52cb479.entry.js → p-e15196d8.entry.js} +1 -1
- package/dist/arcgis-map-components/p-ec2cc024.entry.js +1 -0
- package/dist/arcgis-map-components/{p-91c5ef0f.entry.js → p-ef0b3818.entry.js} +1 -1
- package/dist/arcgis-map-components/p-f03d0e30.entry.js +1 -0
- package/dist/arcgis-map-components/p-f0e5dcc7.entry.js +1 -0
- package/dist/arcgis-map-components/p-f5cc7f2d.entry.js +1 -0
- package/dist/arcgis-map-components/p-f5fd6688.entry.js +1 -0
- package/dist/arcgis-map-components/p-f7b74cd4.entry.js +1 -0
- package/dist/cjs/arcgis-area-measurement-2d.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-area-measurement-3d.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-attachments.cjs.entry.js +1 -1
- package/dist/cjs/{arcgis-directional-pad.cjs.entry.js → arcgis-basemap-gallery.cjs.entry.js} +22 -25
- package/dist/cjs/{arcgis-search.cjs.entry.js → arcgis-basemap-gallery_4.cjs.entry.js} +273 -1
- package/dist/cjs/arcgis-basemap-layer-list.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-basemap-toggle.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-bookmarks.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-building-explorer.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-compass.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-coordinate-conversion.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-daylight.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-directions.cjs.entry.js +6 -6
- package/dist/cjs/arcgis-directline-measurement-3d.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-distance-measurement-2d.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-editor.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-elevation-profile.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-expand_4.cjs.entry.js +758 -0
- package/dist/cjs/arcgis-feature-form.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-feature-table.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-feature-templates.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-feature.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-features.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-floor-filter.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-fullscreen.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-histogram-range-slider.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-histogram.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-home.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-layer-list.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-legend.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-line-of-sight.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-locate.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-map-components.cjs.js +1 -1
- package/dist/cjs/arcgis-measurement.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-navigation-toggle.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-print.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-scale-bar.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-scale-range-slider.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-scene.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-shadow-cast.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-sketch.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-slice.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-slider.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-swipe.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-table-list.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-time-slider.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-track.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-utility-network-associations.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-utility-network-trace.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-utility-network-validate-topology.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-value-picker.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-weather.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-zoom.cjs.entry.js +1 -1
- package/dist/cjs/index-6b51d5a0.js +6 -14
- package/dist/cjs/{index-1bd145e7.js → index-bfda1cdc.js} +0 -12
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/components/arcgis-area-measurement-2d.js +1 -1
- package/dist/components/arcgis-area-measurement-3d.js +1 -1
- package/dist/components/arcgis-basemap-gallery.js +1 -1
- package/dist/components/arcgis-basemap-layer-list.js +1 -1
- package/dist/components/arcgis-basemap-toggle.js +1 -1
- package/dist/components/arcgis-bookmarks.js +1 -1
- package/dist/components/arcgis-building-explorer.js +1 -1
- package/dist/components/arcgis-compass.js +1 -1
- package/dist/components/arcgis-coordinate-conversion.js +1 -1
- package/dist/components/arcgis-daylight.js +1 -1
- package/dist/components/arcgis-directions.js +8 -8
- package/dist/components/arcgis-directline-measurement-3d.js +2 -2
- package/dist/components/arcgis-distance-measurement-2d.js +2 -2
- package/dist/components/arcgis-editor.js +2 -2
- package/dist/components/arcgis-elevation-profile.js +2 -2
- package/dist/components/arcgis-expand2.js +2 -2
- package/dist/components/arcgis-feature-form.js +1 -1
- package/dist/components/arcgis-feature-table.js +21 -21
- package/dist/components/arcgis-feature-templates.js +1 -1
- package/dist/components/arcgis-feature.js +2 -2
- package/dist/components/arcgis-features.js +2 -2
- package/dist/components/arcgis-floor-filter.js +2 -2
- package/dist/components/arcgis-fullscreen.js +2 -2
- package/dist/components/arcgis-histogram-range-slider.js +1 -1
- package/dist/components/arcgis-histogram.js +1 -1
- package/dist/components/arcgis-home.js +2 -2
- package/dist/components/arcgis-layer-list.js +2 -2
- package/dist/components/arcgis-legend.js +2 -2
- package/dist/components/arcgis-line-of-sight.js +2 -2
- package/dist/components/arcgis-locate.js +2 -2
- package/dist/components/arcgis-map.js +3 -3
- package/dist/components/arcgis-measurement.js +2 -2
- package/dist/components/arcgis-navigation-toggle.js +2 -2
- package/dist/components/arcgis-print.js +2 -2
- package/dist/components/arcgis-scale-bar.js +2 -2
- package/dist/components/arcgis-scale-range-slider.js +2 -2
- package/dist/components/arcgis-scene.js +3 -3
- package/dist/components/arcgis-search.js +2 -2
- package/dist/components/arcgis-shadow-cast.js +2 -2
- package/dist/components/arcgis-sketch.js +2 -2
- package/dist/components/arcgis-slice.js +2 -2
- package/dist/components/arcgis-slider.js +1 -1
- package/dist/components/arcgis-swipe.js +2 -2
- package/dist/components/arcgis-table-list.js +2 -2
- package/dist/components/arcgis-time-slider.js +2 -2
- package/dist/components/arcgis-track.js +2 -2
- package/dist/components/arcgis-utility-network-associations.js +2 -2
- package/dist/components/arcgis-utility-network-trace.js +2 -2
- package/dist/components/arcgis-utility-network-validate-topology.js +2 -2
- package/dist/components/arcgis-value-picker.js +2 -2
- package/dist/components/arcgis-weather.js +2 -2
- package/dist/components/arcgis-zoom.js +2 -2
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.js +0 -1
- package/dist/components/index2.js +1 -12
- package/dist/esm/arcgis-area-measurement-2d.entry.js +1 -1
- package/dist/esm/arcgis-area-measurement-3d.entry.js +1 -1
- package/dist/esm/arcgis-attachments.entry.js +1 -1
- package/dist/esm/{arcgis-directional-pad.entry.js → arcgis-basemap-gallery.entry.js} +23 -26
- package/dist/esm/{arcgis-search.entry.js → arcgis-basemap-gallery_4.entry.js} +271 -2
- package/dist/esm/arcgis-basemap-layer-list.entry.js +1 -1
- package/dist/esm/arcgis-basemap-toggle.entry.js +1 -1
- package/dist/esm/arcgis-bookmarks.entry.js +1 -1
- package/dist/esm/arcgis-building-explorer.entry.js +1 -1
- package/dist/esm/arcgis-compass.entry.js +1 -1
- package/dist/esm/arcgis-coordinate-conversion.entry.js +1 -1
- package/dist/esm/arcgis-daylight.entry.js +1 -1
- package/dist/esm/arcgis-directions.entry.js +6 -6
- package/dist/esm/arcgis-directline-measurement-3d.entry.js +1 -1
- package/dist/esm/arcgis-distance-measurement-2d.entry.js +1 -1
- package/dist/esm/arcgis-editor.entry.js +1 -1
- package/dist/esm/arcgis-elevation-profile.entry.js +1 -1
- package/dist/esm/arcgis-expand_4.entry.js +751 -0
- package/dist/esm/arcgis-feature-form.entry.js +1 -1
- package/dist/esm/arcgis-feature-table.entry.js +1 -1
- package/dist/esm/arcgis-feature-templates.entry.js +1 -1
- package/dist/esm/arcgis-feature.entry.js +1 -1
- package/dist/esm/arcgis-features.entry.js +1 -1
- package/dist/esm/arcgis-floor-filter.entry.js +1 -1
- package/dist/esm/arcgis-fullscreen.entry.js +1 -1
- package/dist/esm/arcgis-histogram-range-slider.entry.js +1 -1
- package/dist/esm/arcgis-histogram.entry.js +1 -1
- package/dist/esm/arcgis-home.entry.js +1 -1
- package/dist/esm/arcgis-layer-list.entry.js +1 -1
- package/dist/esm/arcgis-legend.entry.js +1 -1
- package/dist/esm/arcgis-line-of-sight.entry.js +1 -1
- package/dist/esm/arcgis-locate.entry.js +1 -1
- package/dist/esm/arcgis-map-components.js +1 -1
- package/dist/esm/arcgis-measurement.entry.js +1 -1
- package/dist/esm/arcgis-navigation-toggle.entry.js +1 -1
- package/dist/esm/arcgis-print.entry.js +1 -1
- package/dist/esm/arcgis-scale-bar.entry.js +1 -1
- package/dist/esm/arcgis-scale-range-slider.entry.js +1 -1
- package/dist/esm/arcgis-scene.entry.js +1 -1
- package/dist/esm/arcgis-shadow-cast.entry.js +1 -1
- package/dist/esm/arcgis-sketch.entry.js +1 -1
- package/dist/esm/arcgis-slice.entry.js +1 -1
- package/dist/esm/arcgis-slider.entry.js +1 -1
- package/dist/esm/arcgis-swipe.entry.js +1 -1
- package/dist/esm/arcgis-table-list.entry.js +1 -1
- package/dist/esm/arcgis-time-slider.entry.js +1 -1
- package/dist/esm/arcgis-track.entry.js +1 -1
- package/dist/esm/arcgis-utility-network-associations.entry.js +1 -1
- package/dist/esm/arcgis-utility-network-trace.entry.js +1 -1
- package/dist/esm/arcgis-utility-network-validate-topology.entry.js +1 -1
- package/dist/esm/arcgis-value-picker.entry.js +1 -1
- package/dist/esm/arcgis-weather.entry.js +1 -1
- package/dist/esm/arcgis-zoom.entry.js +1 -1
- package/dist/esm/{index-85c249d6.js → index-60c6bcb8.js} +1 -12
- package/dist/esm/index-c227d296.js +660 -0
- package/dist/esm/index-eb3ead33.js +6 -14
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/arcgis-directions/arcgis-directions.d.ts +2 -2
- package/dist/types/components/arcgis-feature-table/arcgis-feature-table.d.ts +2 -5
- package/dist/types/components.d.ts +2 -35
- package/package.json +19 -14
- package/dist/arcgis-map-components/p-109ba82f.entry.js +0 -1
- package/dist/arcgis-map-components/p-3461eee5.entry.js +0 -1
- package/dist/arcgis-map-components/p-4185d368.entry.js +0 -1
- package/dist/arcgis-map-components/p-5c5e6d7d.entry.js +0 -1
- package/dist/arcgis-map-components/p-7c798923.entry.js +0 -1
- package/dist/arcgis-map-components/p-b81b9227.entry.js +0 -1
- package/dist/arcgis-map-components/p-ebab1b79.js +0 -1
- package/dist/cjs/arcgis-basemap-gallery_3.cjs.entry.js +0 -281
- package/dist/components/arcgis-directional-pad.d.ts +0 -11
- package/dist/components/arcgis-directional-pad.js +0 -126
- package/dist/esm/arcgis-basemap-gallery_3.entry.js +0 -275
- package/dist/types/components/arcgis-directional-pad/arcgis-directional-pad.d.ts +0 -29
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-6b51d5a0.js');
|
|
6
|
-
const index$1 = require('./index-1bd145e7.js');
|
|
7
|
-
const componentUtils = require('./component-utils-cbd20e88.js');
|
|
8
|
-
const disconnected = require('./disconnected-306cb220.js');
|
|
9
|
-
const mappingUtils = require('./mapping-utils-c2c7b994.js');
|
|
10
|
-
|
|
11
|
-
const arcgisBasemapGalleryCss = "";
|
|
12
|
-
|
|
13
|
-
const ArcgisBasemapGallery = class {
|
|
14
|
-
constructor(hostRef) {
|
|
15
|
-
index.registerInstance(this, hostRef);
|
|
16
|
-
this.widgetReady = index.createEvent(this, "widgetReady", 7);
|
|
17
|
-
this.referenceElement = undefined;
|
|
18
|
-
this.activeBasemap = undefined;
|
|
19
|
-
this.position = "bottom-left";
|
|
20
|
-
this.expandable = false;
|
|
21
|
-
this.source = undefined;
|
|
22
|
-
this.view = undefined;
|
|
23
|
-
this.widget = undefined;
|
|
24
|
-
}
|
|
25
|
-
//--------------------------------------------------------------------------
|
|
26
|
-
//
|
|
27
|
-
// Watchers
|
|
28
|
-
//
|
|
29
|
-
//--------------------------------------------------------------------------
|
|
30
|
-
positionWatcher(newValue) {
|
|
31
|
-
if (newValue !== undefined && this.widget) {
|
|
32
|
-
if (typeof this.view !== "string") {
|
|
33
|
-
this.view.ui.move(this.childElem, newValue);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
referenceElementWatcher(newValue) {
|
|
38
|
-
componentUtils.referenceElementHelper(this, newValue);
|
|
39
|
-
}
|
|
40
|
-
viewWatcher(newValue) {
|
|
41
|
-
if (newValue !== undefined && this.widget) {
|
|
42
|
-
this.widget.view = newValue;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
//--------------------------------------------------------------------------
|
|
46
|
-
//
|
|
47
|
-
// Lifecycle
|
|
48
|
-
//
|
|
49
|
-
//--------------------------------------------------------------------------
|
|
50
|
-
async componentDidLoad() {
|
|
51
|
-
const params = this._createParams();
|
|
52
|
-
const widget = await index$1.newWidgetsBasemapGallery(params);
|
|
53
|
-
this.widget = widget;
|
|
54
|
-
this.widget.when(() => {
|
|
55
|
-
this.source = this.widget.source;
|
|
56
|
-
});
|
|
57
|
-
await this._addWatchers();
|
|
58
|
-
this.widgetReady.emit({ widget: this.widget });
|
|
59
|
-
componentUtils.checkForView(this);
|
|
60
|
-
}
|
|
61
|
-
disconnectedCallback() {
|
|
62
|
-
disconnected.onDisconnectedHelper(this);
|
|
63
|
-
}
|
|
64
|
-
render() {
|
|
65
|
-
if (this.expandable) {
|
|
66
|
-
return (index.h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, index.h("div", { ref: (el) => (this.childElem = el) })));
|
|
67
|
-
}
|
|
68
|
-
return index.h("div", { ref: (el) => (this.childElem = el) });
|
|
69
|
-
}
|
|
70
|
-
//--------------------------------------------------------------------------
|
|
71
|
-
//
|
|
72
|
-
// Private Interal Methods
|
|
73
|
-
//
|
|
74
|
-
//--------------------------------------------------------------------------
|
|
75
|
-
async _addWatchers() {
|
|
76
|
-
const { watch } = await index$1.importCoreReactiveUtils();
|
|
77
|
-
watch(() => this.widget.source, () => (this.source = this.widget.source));
|
|
78
|
-
watch(() => this.widget.activeBasemap, (basemap) => (this.activeBasemap = basemap));
|
|
79
|
-
}
|
|
80
|
-
_createParams() {
|
|
81
|
-
const params = {
|
|
82
|
-
container: this.childElem
|
|
83
|
-
};
|
|
84
|
-
if (this.view) {
|
|
85
|
-
params.view = this.view;
|
|
86
|
-
}
|
|
87
|
-
return params;
|
|
88
|
-
}
|
|
89
|
-
get el() { return index.getElement(this); }
|
|
90
|
-
static get watchers() { return {
|
|
91
|
-
"position": ["positionWatcher"],
|
|
92
|
-
"referenceElement": ["referenceElementWatcher"],
|
|
93
|
-
"view": ["viewWatcher"]
|
|
94
|
-
}; }
|
|
95
|
-
};
|
|
96
|
-
ArcgisBasemapGallery.style = arcgisBasemapGalleryCss;
|
|
97
|
-
|
|
98
|
-
const arcgisExpandCss = "arcgis-expand>.esri-expand__content--expanded{background-color:var(--calcite-ui-background)}";
|
|
99
|
-
|
|
100
|
-
const ArcgisExpand = class {
|
|
101
|
-
constructor(hostRef) {
|
|
102
|
-
index.registerInstance(this, hostRef);
|
|
103
|
-
this.widgetReady = index.createEvent(this, "widgetReady", 7);
|
|
104
|
-
this.referenceElement = undefined;
|
|
105
|
-
this.position = "top-right";
|
|
106
|
-
this.view = undefined;
|
|
107
|
-
this.widget = undefined;
|
|
108
|
-
}
|
|
109
|
-
//--------------------------------------------------------------------------
|
|
110
|
-
//
|
|
111
|
-
// Watchers
|
|
112
|
-
//
|
|
113
|
-
//--------------------------------------------------------------------------
|
|
114
|
-
positionWatcher(newValue) {
|
|
115
|
-
if (newValue !== undefined && this.widget) {
|
|
116
|
-
if (typeof this.view !== "string") {
|
|
117
|
-
this.view.ui.move(this.childElem, newValue);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
referenceElementWatcher(newValue) {
|
|
122
|
-
componentUtils.referenceElementHelper(this, newValue);
|
|
123
|
-
}
|
|
124
|
-
viewWatcher(newValue) {
|
|
125
|
-
if (newValue !== undefined && this.widget) {
|
|
126
|
-
this.widget.view = newValue;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
//--------------------------------------------------------------------------
|
|
130
|
-
//
|
|
131
|
-
// Lifecycle
|
|
132
|
-
//
|
|
133
|
-
//--------------------------------------------------------------------------
|
|
134
|
-
async componentDidLoad() {
|
|
135
|
-
const widget = await index$1.newWidgetsExpand({
|
|
136
|
-
container: this.childElem
|
|
137
|
-
});
|
|
138
|
-
this.widget = widget;
|
|
139
|
-
if (this.view) {
|
|
140
|
-
this.widget.view = this.view;
|
|
141
|
-
}
|
|
142
|
-
this._checkForView();
|
|
143
|
-
}
|
|
144
|
-
disconnectedCallback() {
|
|
145
|
-
disconnected.onDisconnectedHelper(this);
|
|
146
|
-
}
|
|
147
|
-
render() {
|
|
148
|
-
return index.h("div", { ref: (el) => (this.childElem = el) });
|
|
149
|
-
}
|
|
150
|
-
//--------------------------------------------------------------------------
|
|
151
|
-
//
|
|
152
|
-
// Private Internal Methods
|
|
153
|
-
//
|
|
154
|
-
//--------------------------------------------------------------------------
|
|
155
|
-
_checkForView() {
|
|
156
|
-
const viewRef = this.el.closest("arcgis-map") || this.el.closest("arcgis-scene");
|
|
157
|
-
if (viewRef?.view) {
|
|
158
|
-
this.view = viewRef.view;
|
|
159
|
-
this.view.ui.add(this.childElem, this.position);
|
|
160
|
-
this.widgetReady.emit({ widget: this.widget });
|
|
161
|
-
}
|
|
162
|
-
else if (viewRef) {
|
|
163
|
-
const handler = () => {
|
|
164
|
-
this.view = viewRef.view;
|
|
165
|
-
this.view.ui.add(this.childElem, this.position);
|
|
166
|
-
this.widgetReady.emit({ widget: this.widget });
|
|
167
|
-
};
|
|
168
|
-
viewRef.addEventListener("viewReady", handler, false);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
get el() { return index.getElement(this); }
|
|
172
|
-
static get watchers() { return {
|
|
173
|
-
"position": ["positionWatcher"],
|
|
174
|
-
"referenceElement": ["referenceElementWatcher"],
|
|
175
|
-
"view": ["viewWatcher"]
|
|
176
|
-
}; }
|
|
177
|
-
};
|
|
178
|
-
ArcgisExpand.style = arcgisExpandCss;
|
|
179
|
-
|
|
180
|
-
const arcgisMapCss = ".arcgis-map{padding:0;margin:0;height:100%;width:100%}";
|
|
181
|
-
|
|
182
|
-
const ArcgisMap = class {
|
|
183
|
-
constructor(hostRef) {
|
|
184
|
-
index.registerInstance(this, hostRef);
|
|
185
|
-
this.viewReady = index.createEvent(this, "viewReady", 7);
|
|
186
|
-
this.apiKey = undefined;
|
|
187
|
-
this.basemap = undefined;
|
|
188
|
-
this.disableNavigation = false;
|
|
189
|
-
this.itemId = undefined;
|
|
190
|
-
this.zoom = undefined;
|
|
191
|
-
this.center = undefined;
|
|
192
|
-
this.view = undefined;
|
|
193
|
-
}
|
|
194
|
-
//--------------------------------------------------------------------------
|
|
195
|
-
//
|
|
196
|
-
// Watchers
|
|
197
|
-
//
|
|
198
|
-
//--------------------------------------------------------------------------
|
|
199
|
-
apiKeyWatcher(value) {
|
|
200
|
-
this.config.apiKey = value;
|
|
201
|
-
}
|
|
202
|
-
itemIdWatcher(value, old) {
|
|
203
|
-
if (value && value !== old) {
|
|
204
|
-
this.loadMap();
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
//--------------------------------------------------------------------------
|
|
208
|
-
//
|
|
209
|
-
// Lifecycle
|
|
210
|
-
//
|
|
211
|
-
//--------------------------------------------------------------------------
|
|
212
|
-
async componentWillLoad() {
|
|
213
|
-
this.config = await index$1.importConfig();
|
|
214
|
-
if (this.apiKey) {
|
|
215
|
-
this.config.apiKey = this.apiKey;
|
|
216
|
-
}
|
|
217
|
-
await this.loadMap();
|
|
218
|
-
}
|
|
219
|
-
componentDidRender() {
|
|
220
|
-
if (this.view) {
|
|
221
|
-
this.view.container = this.el;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
render() {
|
|
225
|
-
return index.h("div", { class: "arcgis-map", ref: (el) => (this.el = el) });
|
|
226
|
-
}
|
|
227
|
-
//--------------------------------------------------------------------------
|
|
228
|
-
//
|
|
229
|
-
// Private Methods
|
|
230
|
-
//
|
|
231
|
-
//--------------------------------------------------------------------------
|
|
232
|
-
async loadMap() {
|
|
233
|
-
const mapParams = {};
|
|
234
|
-
if (this.itemId) {
|
|
235
|
-
mapParams.portalItem = {
|
|
236
|
-
id: this.itemId
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
if (this.basemap) {
|
|
240
|
-
mapParams.basemap = this.basemap;
|
|
241
|
-
}
|
|
242
|
-
const map = await index$1.newWebMap(mapParams);
|
|
243
|
-
const params = {};
|
|
244
|
-
if (this.zoom) {
|
|
245
|
-
params.zoom = this.zoom;
|
|
246
|
-
}
|
|
247
|
-
if (this.center) {
|
|
248
|
-
if (typeof this.center === "string") {
|
|
249
|
-
params.center = this.center.split(",").map((x) => Number(x));
|
|
250
|
-
}
|
|
251
|
-
else {
|
|
252
|
-
params.center = this.center;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
const view = await index$1.newViewsMapView({
|
|
256
|
-
map,
|
|
257
|
-
...params
|
|
258
|
-
});
|
|
259
|
-
const { watch } = await index$1.importCoreReactiveUtils();
|
|
260
|
-
this.view = view;
|
|
261
|
-
watch(() => this.view.center, (center) => {
|
|
262
|
-
const value = `${center.longitude},${center.latitude}`;
|
|
263
|
-
this.center = value;
|
|
264
|
-
});
|
|
265
|
-
watch(() => this.view.zoom, (value) => (this.zoom = value));
|
|
266
|
-
if (this.disableNavigation) {
|
|
267
|
-
mappingUtils.disableNavigation(this.view);
|
|
268
|
-
}
|
|
269
|
-
this.view.when(() => this.viewReady.emit({ view: this.view }));
|
|
270
|
-
}
|
|
271
|
-
get hostElem() { return index.getElement(this); }
|
|
272
|
-
static get watchers() { return {
|
|
273
|
-
"apiKey": ["apiKeyWatcher"],
|
|
274
|
-
"itemId": ["itemIdWatcher"]
|
|
275
|
-
}; }
|
|
276
|
-
};
|
|
277
|
-
ArcgisMap.style = arcgisMapCss;
|
|
278
|
-
|
|
279
|
-
exports.arcgis_basemap_gallery = ArcgisBasemapGallery;
|
|
280
|
-
exports.arcgis_expand = ArcgisExpand;
|
|
281
|
-
exports.arcgis_map = ArcgisMap;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface ArcgisDirectionalPad extends Components.ArcgisDirectionalPad, HTMLElement {}
|
|
4
|
-
export const ArcgisDirectionalPad: {
|
|
5
|
-
prototype: ArcgisDirectionalPad;
|
|
6
|
-
new (): ArcgisDirectionalPad;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { l as newWidgetsDirectionalPad } from './index2.js';
|
|
3
|
-
import { u as updateForView, c as checkForView, o as onDisconnectedHelper } from './disconnected.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './arcgis-expand2.js';
|
|
5
|
-
|
|
6
|
-
const arcgisDirectionalPadCss = "arcgis-directional-pad{}";
|
|
7
|
-
|
|
8
|
-
const ArcgisDirectionalPad$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
13
|
-
this.referenceElement = undefined;
|
|
14
|
-
this.visualScale = undefined;
|
|
15
|
-
this.view = undefined;
|
|
16
|
-
this.position = "bottom-left";
|
|
17
|
-
this.expandable = false;
|
|
18
|
-
this.widget = undefined;
|
|
19
|
-
}
|
|
20
|
-
//--------------------------------------------------------------------------
|
|
21
|
-
//
|
|
22
|
-
// Watchers
|
|
23
|
-
//
|
|
24
|
-
//--------------------------------------------------------------------------
|
|
25
|
-
positionWatcher(newValue) {
|
|
26
|
-
if (newValue !== undefined && this.widget) {
|
|
27
|
-
if (typeof this.view !== "string") {
|
|
28
|
-
this.view.ui.move(this.childElem, newValue);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
visualScaleWatcher(newValue) {
|
|
33
|
-
if (newValue !== undefined && this.widget) {
|
|
34
|
-
this.widget.visualScale = newValue;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
referenceElementWatcher(newValue) {
|
|
38
|
-
if (typeof newValue === "string") {
|
|
39
|
-
updateForView(newValue).then((view) => {
|
|
40
|
-
this.widget.view = view;
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
else if (newValue !== undefined && this.widget) {
|
|
44
|
-
this.widget.view = newValue.view;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
viewWatcher(newValue) {
|
|
48
|
-
if (newValue !== undefined && this.widget) {
|
|
49
|
-
this.widget.view = newValue;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
//--------------------------------------------------------------------------
|
|
53
|
-
//
|
|
54
|
-
// Lifecycle
|
|
55
|
-
//
|
|
56
|
-
//--------------------------------------------------------------------------
|
|
57
|
-
async componentDidLoad() {
|
|
58
|
-
const params = this._createParams();
|
|
59
|
-
const widget = await newWidgetsDirectionalPad(params);
|
|
60
|
-
this.widget = widget;
|
|
61
|
-
this.widgetReady.emit({ widget: this.widget });
|
|
62
|
-
checkForView(this);
|
|
63
|
-
}
|
|
64
|
-
disconnectedCallback() {
|
|
65
|
-
onDisconnectedHelper(this);
|
|
66
|
-
}
|
|
67
|
-
render() {
|
|
68
|
-
if (this.expandable) {
|
|
69
|
-
return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
|
|
70
|
-
}
|
|
71
|
-
return h("div", { ref: (el) => (this.childElem = el) });
|
|
72
|
-
}
|
|
73
|
-
//--------------------------------------------------------------------------
|
|
74
|
-
//
|
|
75
|
-
// Private Methods
|
|
76
|
-
//
|
|
77
|
-
//--------------------------------------------------------------------------
|
|
78
|
-
_createParams() {
|
|
79
|
-
const params = {
|
|
80
|
-
container: this.childElem
|
|
81
|
-
};
|
|
82
|
-
if (this.visualScale !== undefined) {
|
|
83
|
-
params.visualScale = this.visualScale;
|
|
84
|
-
}
|
|
85
|
-
return params;
|
|
86
|
-
}
|
|
87
|
-
get el() { return this; }
|
|
88
|
-
static get watchers() { return {
|
|
89
|
-
"position": ["positionWatcher"],
|
|
90
|
-
"visualScale": ["visualScaleWatcher"],
|
|
91
|
-
"referenceElement": ["referenceElementWatcher"],
|
|
92
|
-
"view": ["viewWatcher"]
|
|
93
|
-
}; }
|
|
94
|
-
static get style() { return arcgisDirectionalPadCss; }
|
|
95
|
-
}, [0, "arcgis-directional-pad", {
|
|
96
|
-
"referenceElement": [1, "reference-element"],
|
|
97
|
-
"visualScale": [1, "visual-scale"],
|
|
98
|
-
"view": [16],
|
|
99
|
-
"position": [1],
|
|
100
|
-
"expandable": [4],
|
|
101
|
-
"widget": [1040]
|
|
102
|
-
}]);
|
|
103
|
-
function defineCustomElement$1() {
|
|
104
|
-
if (typeof customElements === "undefined") {
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
const components = ["arcgis-directional-pad", "arcgis-expand"];
|
|
108
|
-
components.forEach(tagName => { switch (tagName) {
|
|
109
|
-
case "arcgis-directional-pad":
|
|
110
|
-
if (!customElements.get(tagName)) {
|
|
111
|
-
customElements.define(tagName, ArcgisDirectionalPad$1);
|
|
112
|
-
}
|
|
113
|
-
break;
|
|
114
|
-
case "arcgis-expand":
|
|
115
|
-
if (!customElements.get(tagName)) {
|
|
116
|
-
defineCustomElement$2();
|
|
117
|
-
}
|
|
118
|
-
break;
|
|
119
|
-
} });
|
|
120
|
-
}
|
|
121
|
-
defineCustomElement$1();
|
|
122
|
-
|
|
123
|
-
const ArcgisDirectionalPad = ArcgisDirectionalPad$1;
|
|
124
|
-
const defineCustomElement = defineCustomElement$1;
|
|
125
|
-
|
|
126
|
-
export { ArcgisDirectionalPad, defineCustomElement };
|
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-eb3ead33.js';
|
|
2
|
-
import { n as newWidgetsBasemapGallery, i as importCoreReactiveUtils, a as newWidgetsExpand, b as importConfig, c as newWebMap, d as newViewsMapView } from './index-85c249d6.js';
|
|
3
|
-
import { r as referenceElementHelper, c as checkForView } from './component-utils-2ebdae59.js';
|
|
4
|
-
import { o as onDisconnectedHelper } from './disconnected-bc5fc8bc.js';
|
|
5
|
-
import { d as disableNavigation } from './mapping-utils-26beb904.js';
|
|
6
|
-
|
|
7
|
-
const arcgisBasemapGalleryCss = "";
|
|
8
|
-
|
|
9
|
-
const ArcgisBasemapGallery = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
registerInstance(this, hostRef);
|
|
12
|
-
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
13
|
-
this.referenceElement = undefined;
|
|
14
|
-
this.activeBasemap = undefined;
|
|
15
|
-
this.position = "bottom-left";
|
|
16
|
-
this.expandable = false;
|
|
17
|
-
this.source = undefined;
|
|
18
|
-
this.view = undefined;
|
|
19
|
-
this.widget = undefined;
|
|
20
|
-
}
|
|
21
|
-
//--------------------------------------------------------------------------
|
|
22
|
-
//
|
|
23
|
-
// Watchers
|
|
24
|
-
//
|
|
25
|
-
//--------------------------------------------------------------------------
|
|
26
|
-
positionWatcher(newValue) {
|
|
27
|
-
if (newValue !== undefined && this.widget) {
|
|
28
|
-
if (typeof this.view !== "string") {
|
|
29
|
-
this.view.ui.move(this.childElem, newValue);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
referenceElementWatcher(newValue) {
|
|
34
|
-
referenceElementHelper(this, newValue);
|
|
35
|
-
}
|
|
36
|
-
viewWatcher(newValue) {
|
|
37
|
-
if (newValue !== undefined && this.widget) {
|
|
38
|
-
this.widget.view = newValue;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
//--------------------------------------------------------------------------
|
|
42
|
-
//
|
|
43
|
-
// Lifecycle
|
|
44
|
-
//
|
|
45
|
-
//--------------------------------------------------------------------------
|
|
46
|
-
async componentDidLoad() {
|
|
47
|
-
const params = this._createParams();
|
|
48
|
-
const widget = await newWidgetsBasemapGallery(params);
|
|
49
|
-
this.widget = widget;
|
|
50
|
-
this.widget.when(() => {
|
|
51
|
-
this.source = this.widget.source;
|
|
52
|
-
});
|
|
53
|
-
await this._addWatchers();
|
|
54
|
-
this.widgetReady.emit({ widget: this.widget });
|
|
55
|
-
checkForView(this);
|
|
56
|
-
}
|
|
57
|
-
disconnectedCallback() {
|
|
58
|
-
onDisconnectedHelper(this);
|
|
59
|
-
}
|
|
60
|
-
render() {
|
|
61
|
-
if (this.expandable) {
|
|
62
|
-
return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
|
|
63
|
-
}
|
|
64
|
-
return h("div", { ref: (el) => (this.childElem = el) });
|
|
65
|
-
}
|
|
66
|
-
//--------------------------------------------------------------------------
|
|
67
|
-
//
|
|
68
|
-
// Private Interal Methods
|
|
69
|
-
//
|
|
70
|
-
//--------------------------------------------------------------------------
|
|
71
|
-
async _addWatchers() {
|
|
72
|
-
const { watch } = await importCoreReactiveUtils();
|
|
73
|
-
watch(() => this.widget.source, () => (this.source = this.widget.source));
|
|
74
|
-
watch(() => this.widget.activeBasemap, (basemap) => (this.activeBasemap = basemap));
|
|
75
|
-
}
|
|
76
|
-
_createParams() {
|
|
77
|
-
const params = {
|
|
78
|
-
container: this.childElem
|
|
79
|
-
};
|
|
80
|
-
if (this.view) {
|
|
81
|
-
params.view = this.view;
|
|
82
|
-
}
|
|
83
|
-
return params;
|
|
84
|
-
}
|
|
85
|
-
get el() { return getElement(this); }
|
|
86
|
-
static get watchers() { return {
|
|
87
|
-
"position": ["positionWatcher"],
|
|
88
|
-
"referenceElement": ["referenceElementWatcher"],
|
|
89
|
-
"view": ["viewWatcher"]
|
|
90
|
-
}; }
|
|
91
|
-
};
|
|
92
|
-
ArcgisBasemapGallery.style = arcgisBasemapGalleryCss;
|
|
93
|
-
|
|
94
|
-
const arcgisExpandCss = "arcgis-expand>.esri-expand__content--expanded{background-color:var(--calcite-ui-background)}";
|
|
95
|
-
|
|
96
|
-
const ArcgisExpand = class {
|
|
97
|
-
constructor(hostRef) {
|
|
98
|
-
registerInstance(this, hostRef);
|
|
99
|
-
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
100
|
-
this.referenceElement = undefined;
|
|
101
|
-
this.position = "top-right";
|
|
102
|
-
this.view = undefined;
|
|
103
|
-
this.widget = undefined;
|
|
104
|
-
}
|
|
105
|
-
//--------------------------------------------------------------------------
|
|
106
|
-
//
|
|
107
|
-
// Watchers
|
|
108
|
-
//
|
|
109
|
-
//--------------------------------------------------------------------------
|
|
110
|
-
positionWatcher(newValue) {
|
|
111
|
-
if (newValue !== undefined && this.widget) {
|
|
112
|
-
if (typeof this.view !== "string") {
|
|
113
|
-
this.view.ui.move(this.childElem, newValue);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
referenceElementWatcher(newValue) {
|
|
118
|
-
referenceElementHelper(this, newValue);
|
|
119
|
-
}
|
|
120
|
-
viewWatcher(newValue) {
|
|
121
|
-
if (newValue !== undefined && this.widget) {
|
|
122
|
-
this.widget.view = newValue;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
//--------------------------------------------------------------------------
|
|
126
|
-
//
|
|
127
|
-
// Lifecycle
|
|
128
|
-
//
|
|
129
|
-
//--------------------------------------------------------------------------
|
|
130
|
-
async componentDidLoad() {
|
|
131
|
-
const widget = await newWidgetsExpand({
|
|
132
|
-
container: this.childElem
|
|
133
|
-
});
|
|
134
|
-
this.widget = widget;
|
|
135
|
-
if (this.view) {
|
|
136
|
-
this.widget.view = this.view;
|
|
137
|
-
}
|
|
138
|
-
this._checkForView();
|
|
139
|
-
}
|
|
140
|
-
disconnectedCallback() {
|
|
141
|
-
onDisconnectedHelper(this);
|
|
142
|
-
}
|
|
143
|
-
render() {
|
|
144
|
-
return h("div", { ref: (el) => (this.childElem = el) });
|
|
145
|
-
}
|
|
146
|
-
//--------------------------------------------------------------------------
|
|
147
|
-
//
|
|
148
|
-
// Private Internal Methods
|
|
149
|
-
//
|
|
150
|
-
//--------------------------------------------------------------------------
|
|
151
|
-
_checkForView() {
|
|
152
|
-
const viewRef = this.el.closest("arcgis-map") || this.el.closest("arcgis-scene");
|
|
153
|
-
if (viewRef?.view) {
|
|
154
|
-
this.view = viewRef.view;
|
|
155
|
-
this.view.ui.add(this.childElem, this.position);
|
|
156
|
-
this.widgetReady.emit({ widget: this.widget });
|
|
157
|
-
}
|
|
158
|
-
else if (viewRef) {
|
|
159
|
-
const handler = () => {
|
|
160
|
-
this.view = viewRef.view;
|
|
161
|
-
this.view.ui.add(this.childElem, this.position);
|
|
162
|
-
this.widgetReady.emit({ widget: this.widget });
|
|
163
|
-
};
|
|
164
|
-
viewRef.addEventListener("viewReady", handler, false);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
get el() { return getElement(this); }
|
|
168
|
-
static get watchers() { return {
|
|
169
|
-
"position": ["positionWatcher"],
|
|
170
|
-
"referenceElement": ["referenceElementWatcher"],
|
|
171
|
-
"view": ["viewWatcher"]
|
|
172
|
-
}; }
|
|
173
|
-
};
|
|
174
|
-
ArcgisExpand.style = arcgisExpandCss;
|
|
175
|
-
|
|
176
|
-
const arcgisMapCss = ".arcgis-map{padding:0;margin:0;height:100%;width:100%}";
|
|
177
|
-
|
|
178
|
-
const ArcgisMap = class {
|
|
179
|
-
constructor(hostRef) {
|
|
180
|
-
registerInstance(this, hostRef);
|
|
181
|
-
this.viewReady = createEvent(this, "viewReady", 7);
|
|
182
|
-
this.apiKey = undefined;
|
|
183
|
-
this.basemap = undefined;
|
|
184
|
-
this.disableNavigation = false;
|
|
185
|
-
this.itemId = undefined;
|
|
186
|
-
this.zoom = undefined;
|
|
187
|
-
this.center = undefined;
|
|
188
|
-
this.view = undefined;
|
|
189
|
-
}
|
|
190
|
-
//--------------------------------------------------------------------------
|
|
191
|
-
//
|
|
192
|
-
// Watchers
|
|
193
|
-
//
|
|
194
|
-
//--------------------------------------------------------------------------
|
|
195
|
-
apiKeyWatcher(value) {
|
|
196
|
-
this.config.apiKey = value;
|
|
197
|
-
}
|
|
198
|
-
itemIdWatcher(value, old) {
|
|
199
|
-
if (value && value !== old) {
|
|
200
|
-
this.loadMap();
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
//--------------------------------------------------------------------------
|
|
204
|
-
//
|
|
205
|
-
// Lifecycle
|
|
206
|
-
//
|
|
207
|
-
//--------------------------------------------------------------------------
|
|
208
|
-
async componentWillLoad() {
|
|
209
|
-
this.config = await importConfig();
|
|
210
|
-
if (this.apiKey) {
|
|
211
|
-
this.config.apiKey = this.apiKey;
|
|
212
|
-
}
|
|
213
|
-
await this.loadMap();
|
|
214
|
-
}
|
|
215
|
-
componentDidRender() {
|
|
216
|
-
if (this.view) {
|
|
217
|
-
this.view.container = this.el;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
render() {
|
|
221
|
-
return h("div", { class: "arcgis-map", ref: (el) => (this.el = el) });
|
|
222
|
-
}
|
|
223
|
-
//--------------------------------------------------------------------------
|
|
224
|
-
//
|
|
225
|
-
// Private Methods
|
|
226
|
-
//
|
|
227
|
-
//--------------------------------------------------------------------------
|
|
228
|
-
async loadMap() {
|
|
229
|
-
const mapParams = {};
|
|
230
|
-
if (this.itemId) {
|
|
231
|
-
mapParams.portalItem = {
|
|
232
|
-
id: this.itemId
|
|
233
|
-
};
|
|
234
|
-
}
|
|
235
|
-
if (this.basemap) {
|
|
236
|
-
mapParams.basemap = this.basemap;
|
|
237
|
-
}
|
|
238
|
-
const map = await newWebMap(mapParams);
|
|
239
|
-
const params = {};
|
|
240
|
-
if (this.zoom) {
|
|
241
|
-
params.zoom = this.zoom;
|
|
242
|
-
}
|
|
243
|
-
if (this.center) {
|
|
244
|
-
if (typeof this.center === "string") {
|
|
245
|
-
params.center = this.center.split(",").map((x) => Number(x));
|
|
246
|
-
}
|
|
247
|
-
else {
|
|
248
|
-
params.center = this.center;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
const view = await newViewsMapView({
|
|
252
|
-
map,
|
|
253
|
-
...params
|
|
254
|
-
});
|
|
255
|
-
const { watch } = await importCoreReactiveUtils();
|
|
256
|
-
this.view = view;
|
|
257
|
-
watch(() => this.view.center, (center) => {
|
|
258
|
-
const value = `${center.longitude},${center.latitude}`;
|
|
259
|
-
this.center = value;
|
|
260
|
-
});
|
|
261
|
-
watch(() => this.view.zoom, (value) => (this.zoom = value));
|
|
262
|
-
if (this.disableNavigation) {
|
|
263
|
-
disableNavigation(this.view);
|
|
264
|
-
}
|
|
265
|
-
this.view.when(() => this.viewReady.emit({ view: this.view }));
|
|
266
|
-
}
|
|
267
|
-
get hostElem() { return getElement(this); }
|
|
268
|
-
static get watchers() { return {
|
|
269
|
-
"apiKey": ["apiKeyWatcher"],
|
|
270
|
-
"itemId": ["itemIdWatcher"]
|
|
271
|
-
}; }
|
|
272
|
-
};
|
|
273
|
-
ArcgisMap.style = arcgisMapCss;
|
|
274
|
-
|
|
275
|
-
export { ArcgisBasemapGallery as arcgis_basemap_gallery, ArcgisExpand as arcgis_expand, ArcgisMap as arcgis_map };
|