@arcgis/map-components 4.29.0-beta.76 → 4.29.0-beta.77

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.
Files changed (30) hide show
  1. package/dist/arcgis-map-components/arcgis-map-components.esm.js +1 -1
  2. package/dist/arcgis-map-components/arcgis-map-components.esm.js.map +1 -1
  3. package/dist/arcgis-map-components/p-9d9417bb.entry.js +2 -0
  4. package/dist/arcgis-map-components/p-9d9417bb.entry.js.map +1 -0
  5. package/dist/arcgis-map-components/p-c27946f8.entry.js +2 -0
  6. package/dist/arcgis-map-components/p-c27946f8.entry.js.map +1 -0
  7. package/dist/cjs/arcgis-basemap-gallery_3.cjs.entry.js +45 -22
  8. package/dist/cjs/arcgis-basemap-gallery_3.cjs.entry.js.map +1 -1
  9. package/dist/cjs/arcgis-map-components.cjs.js +1 -1
  10. package/dist/cjs/arcgis-map.cjs.entry.js +27 -21
  11. package/dist/cjs/arcgis-map.cjs.entry.js.map +1 -1
  12. package/dist/cjs/loader.cjs.js +1 -1
  13. package/dist/components/arcgis-map.js +28 -21
  14. package/dist/components/arcgis-map.js.map +1 -1
  15. package/dist/components/arcgis-scene.js +48 -23
  16. package/dist/components/arcgis-scene.js.map +1 -1
  17. package/dist/esm/arcgis-basemap-gallery_3.entry.js +45 -22
  18. package/dist/esm/arcgis-basemap-gallery_3.entry.js.map +1 -1
  19. package/dist/esm/arcgis-map-components.js +1 -1
  20. package/dist/esm/arcgis-map.entry.js +27 -21
  21. package/dist/esm/arcgis-map.entry.js.map +1 -1
  22. package/dist/esm/loader.js +1 -1
  23. package/dist/types/components/map/map.d.ts +13 -12
  24. package/dist/types/components/scene/scene.d.ts +15 -13
  25. package/dist/types/components.d.ts +42 -38
  26. package/package.json +5 -5
  27. package/dist/arcgis-map-components/p-8bf4b85e.entry.js +0 -2
  28. package/dist/arcgis-map-components/p-8bf4b85e.entry.js.map +0 -1
  29. package/dist/arcgis-map-components/p-c74a83ee.entry.js +0 -2
  30. package/dist/arcgis-map-components/p-c74a83ee.entry.js.map +0 -1
@@ -22,37 +22,38 @@ export declare class ArcgisMap implements ViewElement {
22
22
  fatalError: ArcGISMapView["fatalError"];
23
23
  floors: ArcGISMapView["floors"];
24
24
  floorsWatcher(value: ArcGISMapView["floors"]): void;
25
+ gamepad: __esri.GamepadSettings;
25
26
  graphics: ArcGISMapView["graphics"];
26
27
  graphicsWatcher(value: ArcGISMapView["graphics"]): void;
27
28
  highlightOptions: ArcGISMapView["highlightOptions"];
28
29
  highlightOptionsWatcher(value: ArcGISMapView["highlightOptions"]): void;
29
- interacting: ArcGISMapView["interacting"];
30
+ interacting: boolean;
30
31
  itemId: string;
31
32
  itemIdWatcher(value: string, old: string): void;
32
33
  layerViews: ArcGISMapView["layerViews"];
33
34
  magnifier: ArcGISMapView["magnifier"];
34
35
  map: ArcGISWebMap;
35
36
  mapWatcher(value: ArcGISWebMap): void;
36
- navigating: ArcGISMapView["navigating"];
37
+ navigating: boolean;
37
38
  navigation: ArcGISMapView["navigation"];
38
39
  navigationWatcher(value: ArcGISMapView["navigation"]): void;
39
40
  padding: ArcGISMapView["padding"];
40
41
  paddingWatcher(value: ArcGISMapView["padding"]): void;
41
42
  popup: ArcGISMapView["popup"];
42
- popupEnabled: ArcGISMapView["popupEnabled"];
43
- popupEnabledWatcher(value: ArcGISMapView["popupEnabled"]): void;
44
- ready: ArcGISMapView["ready"];
43
+ popupEnabled: boolean;
44
+ popupEnabledWatcher(value: boolean, old: boolean): void;
45
+ ready: boolean;
45
46
  resizeAlign: ArcGISMapView["resizeAlign"];
46
47
  resizeAlignWatcher(value: ArcGISMapView["resizeAlign"]): void;
47
48
  resolution: ArcGISMapView["resolution"];
48
- rotation: ArcGISMapView["rotation"];
49
- rotationWatcher(value: ArcGISMapView["rotation"]): void;
49
+ rotation: number;
50
+ rotationWatcher(value: number): void;
50
51
  scale: number;
51
52
  scaleWatcher(value: number, old: number): void;
52
53
  spatialReference: ArcGISMapView["spatialReference"];
53
54
  spatialReferenceWatcher(value: ArcGISMapView["spatialReference"]): void;
54
- stationary: ArcGISMapView["stationary"];
55
- suspended: ArcGISMapView["suspended"];
55
+ stationary: boolean;
56
+ suspended: boolean;
56
57
  theme: ArcGISMapView["theme"];
57
58
  themeWatcher(value: ArcGISMapView["theme"]): void;
58
59
  timeExtent: ArcGISMapView["timeExtent"];
@@ -61,7 +62,7 @@ export declare class ArcgisMap implements ViewElement {
61
62
  timeZoneWatcher(value: ArcGISMapView["timeZone"]): void;
62
63
  toMap: ArcGISMapView["toMap"];
63
64
  toScreen: ArcGISMapView["toScreen"];
64
- updating: ArcGISMapView["updating"];
65
+ updating: boolean;
65
66
  viewpoint: ArcGISMapView["viewpoint"];
66
67
  viewpointWatcher(value: ArcGISMapView["viewpoint"]): void;
67
68
  zoom: number;
@@ -92,9 +93,9 @@ export declare class ArcgisMap implements ViewElement {
92
93
  arcgisViewPointerUp: EventEmitter<__esri.ViewPointerUpEvent>;
93
94
  closePopup(): Promise<void>;
94
95
  destroy(): Promise<void>;
95
- goTo(target: __esri.GoToTarget2D, options?: __esri.GoToOptions2D): Promise<void>;
96
+ goTo(target: __esri.GoToTarget2D, options?: __esri.GoToOptions2D): Promise<any>;
96
97
  hitTest(screenPoint: __esri.ScreenPoint, options?: Record<string, any>): Promise<__esri.HitTestResult>;
97
- openPopup(options?: Record<string, any>): Promise<void>;
98
+ openPopup(options?: Record<string, any>): Promise<any>;
98
99
  takeScreenshot(options?: Record<string, any>): Promise<__esri.Screenshot>;
99
100
  tryFatalErrorRecovery(): Promise<void>;
100
101
  whenLayerView(layer: __esri.Layer): Promise<__esri.LayerView>;
@@ -7,8 +7,8 @@ export declare class ArcgisScene implements ViewElement {
7
7
  el: HTMLDivElement;
8
8
  _hostElement: HTMLArcgisSceneElement;
9
9
  allLayerViews: ArcGISSceneView["allLayerViews"];
10
- alphaCompositingEnabled: ArcGISSceneView["alphaCompositingEnabled"];
11
- alphaCompositingEnabledWatcher(value: ArcGISSceneView["alphaCompositingEnabled"]): void;
10
+ alphaCompositingEnabled: boolean;
11
+ alphaCompositingEnabledWatcher(value: boolean): void;
12
12
  analyses: ArcGISSceneView["analyses"];
13
13
  basemapView: ArcGISSceneView["basemapView"];
14
14
  basemap: ArcGISWebScene["basemap"];
@@ -29,44 +29,47 @@ export declare class ArcgisScene implements ViewElement {
29
29
  fatalError: ArcGISSceneView["fatalError"];
30
30
  floors: ArcGISSceneView["floors"];
31
31
  floorsWatcher(value: ArcGISSceneView["floors"]): void;
32
+ gamepad: __esri.GamepadSettings;
32
33
  graphics: ArcGISSceneView["graphics"];
33
34
  graphicsWatcher(value: ArcGISSceneView["graphics"]): void;
35
+ ground: ArcGISWebScene["ground"];
36
+ groundWatcher(value: string): void;
34
37
  groundView: ArcGISSceneView["groundView"];
35
38
  highlightOptions: ArcGISSceneView["highlightOptions"];
36
39
  highlightOptionsWatcher(value: ArcGISSceneView["highlightOptions"]): void;
37
- interacting: ArcGISSceneView["interacting"];
40
+ interacting: boolean;
38
41
  itemId: string;
39
42
  itemIdWatcher(value: string, old: string): void;
40
43
  layerViews: ArcGISSceneView["layerViews"];
41
44
  magnifier: ArcGISSceneView["magnifier"];
42
45
  map: ArcGISWebScene;
43
46
  mapWatcher(value: ArcGISWebScene): void;
44
- navigating: ArcGISSceneView["navigating"];
47
+ navigating: boolean;
45
48
  navigation: ArcGISSceneView["navigation"];
46
49
  navigationWatcher(value: ArcGISSceneView["navigation"]): void;
47
50
  padding: ArcGISSceneView["padding"];
48
51
  paddingWatcher(value: ArcGISSceneView["padding"]): void;
49
52
  performanceInfo: ArcGISSceneView["performanceInfo"];
50
53
  popup: ArcGISSceneView["popup"];
51
- popupEnabled: ArcGISSceneView["popupEnabled"];
52
- popupEnabledWatcher(value: ArcGISSceneView["popupEnabled"]): void;
54
+ popupEnabled: boolean;
55
+ popupEnabledWatcher(value: boolean, old: boolean): void;
53
56
  qualityProfile: ArcGISSceneView["qualityProfile"];
54
57
  qualityProfileWatcher(value: ArcGISSceneView["qualityProfile"]): void;
55
- ready: ArcGISSceneView["ready"];
58
+ ready: boolean;
56
59
  resolution: ArcGISSceneView["resolution"];
57
60
  scale: number;
58
61
  scaleWatcher(value: number, old: number): void;
59
62
  spatialReference: ArcGISSceneView["spatialReference"];
60
63
  spatialReferenceWatcher(value: ArcGISSceneView["spatialReference"]): void;
61
- stationary: ArcGISSceneView["stationary"];
62
- suspended: ArcGISSceneView["suspended"];
64
+ stationary: boolean;
65
+ suspended: boolean;
63
66
  theme: ArcGISSceneView["theme"];
64
67
  themeWatcher(value: ArcGISSceneView["theme"]): void;
65
68
  timeExtent: ArcGISSceneView["timeExtent"];
66
69
  timeExtentWatcher(value: ArcGISSceneView["timeExtent"]): void;
67
70
  toMap: ArcGISSceneView["toMap"];
68
71
  toScreen: ArcGISSceneView["toScreen"];
69
- updating: ArcGISSceneView["updating"];
72
+ updating: boolean;
70
73
  viewingMode: ArcGISSceneView["viewingMode"];
71
74
  viewingModeWatcher(value: ArcGISSceneView["viewingMode"]): void;
72
75
  viewpoint: ArcGISSceneView["viewpoint"];
@@ -77,7 +80,6 @@ export declare class ArcgisScene implements ViewElement {
77
80
  * Internal view of the component.
78
81
  */
79
82
  view: ArcGISSceneView;
80
- disableNavigation: boolean;
81
83
  config: __esri.config;
82
84
  _watchHandles: __esri.WatchHandle[];
83
85
  arcgisViewReadyChange: EventEmitter;
@@ -101,9 +103,9 @@ export declare class ArcgisScene implements ViewElement {
101
103
  arcgisViewPointerUp: EventEmitter<__esri.ViewPointerUpEvent>;
102
104
  closePopup(): Promise<void>;
103
105
  destroy(): Promise<void>;
104
- goTo(target: __esri.GoToTarget3D, options?: __esri.GoToOptions3D): Promise<void>;
106
+ goTo(target: __esri.GoToTarget3D, options?: __esri.GoToOptions3D): Promise<any>;
105
107
  hitTest(screenPoint: __esri.ScreenPoint, options?: Record<string, any>): Promise<__esri.HitTestResult>;
106
- openPopup(options?: Record<string, any>): Promise<void>;
108
+ openPopup(options?: Record<string, any>): Promise<any>;
107
109
  takeScreenshot(options?: Record<string, any>): Promise<__esri.Screenshot>;
108
110
  tryFatalErrorRecovery(): Promise<void>;
109
111
  whenAnalysisView(analysis: __esri.AreaMeasurementAnalysis | __esri.DimensionAnalysis | __esri.DirectLineMeasurementAnalysis | __esri.LineOfSightAnalysis | __esri.SliceAnalysis): Promise<__esri.AreaMeasurementAnalysisView3D | __esri.DimensionAnalysisView | __esri.DirectLineMeasurementAnalysisView3D | __esri.LineOfSightAnalysisView3D | __esri.SliceAnalysisView3D>;
@@ -560,29 +560,30 @@ export namespace Components {
560
560
  "extent": ArcGISMapView["extent"];
561
561
  "fatalError": ArcGISMapView["fatalError"];
562
562
  "floors": ArcGISMapView["floors"];
563
- "goTo": (target: __esri.GoToTarget2D, options?: __esri.GoToOptions2D) => Promise<void>;
563
+ "gamepad": __esri.GamepadSettings;
564
+ "goTo": (target: __esri.GoToTarget2D, options?: __esri.GoToOptions2D) => Promise<any>;
564
565
  "graphics": ArcGISMapView["graphics"];
565
566
  "highlightOptions": ArcGISMapView["highlightOptions"];
566
567
  "hitTest": (screenPoint: __esri.ScreenPoint, options?: Record<string, any>) => Promise<__esri.HitTestResult>;
567
- "interacting": ArcGISMapView["interacting"];
568
+ "interacting": boolean;
568
569
  "itemId": string;
569
570
  "layerViews": ArcGISMapView["layerViews"];
570
571
  "magnifier": ArcGISMapView["magnifier"];
571
572
  "map": ArcGISWebMap;
572
- "navigating": ArcGISMapView["navigating"];
573
+ "navigating": boolean;
573
574
  "navigation": ArcGISMapView["navigation"];
574
- "openPopup": (options?: Record<string, any>) => Promise<void>;
575
+ "openPopup": (options?: Record<string, any>) => Promise<any>;
575
576
  "padding": ArcGISMapView["padding"];
576
577
  "popup": ArcGISMapView["popup"];
577
- "popupEnabled": ArcGISMapView["popupEnabled"];
578
- "ready": ArcGISMapView["ready"];
578
+ "popupEnabled": boolean;
579
+ "ready": boolean;
579
580
  "resizeAlign": ArcGISMapView["resizeAlign"];
580
581
  "resolution": ArcGISMapView["resolution"];
581
- "rotation": ArcGISMapView["rotation"];
582
+ "rotation": number;
582
583
  "scale": number;
583
584
  "spatialReference": ArcGISMapView["spatialReference"];
584
- "stationary": ArcGISMapView["stationary"];
585
- "suspended": ArcGISMapView["suspended"];
585
+ "stationary": boolean;
586
+ "suspended": boolean;
586
587
  "takeScreenshot": (options?: Record<string, any>) => Promise<__esri.Screenshot>;
587
588
  "theme": ArcGISMapView["theme"];
588
589
  "timeExtent": ArcGISMapView["timeExtent"];
@@ -590,7 +591,7 @@ export namespace Components {
590
591
  "toMap": ArcGISMapView["toMap"];
591
592
  "toScreen": ArcGISMapView["toScreen"];
592
593
  "tryFatalErrorRecovery": () => Promise<void>;
593
- "updating": ArcGISMapView["updating"];
594
+ "updating": boolean;
594
595
  /**
595
596
  * Internal view of the component.
596
597
  */
@@ -665,7 +666,7 @@ export namespace Components {
665
666
  }
666
667
  interface ArcgisScene {
667
668
  "allLayerViews": ArcGISSceneView["allLayerViews"];
668
- "alphaCompositingEnabled": ArcGISSceneView["alphaCompositingEnabled"];
669
+ "alphaCompositingEnabled": boolean;
669
670
  "analyses": ArcGISSceneView["analyses"];
670
671
  "basemap": ArcGISWebScene["basemap"];
671
672
  "basemapView": ArcGISSceneView["basemapView"];
@@ -676,42 +677,43 @@ export namespace Components {
676
677
  "constraints": ArcGISSceneView["constraints"];
677
678
  "destroy": () => Promise<void>;
678
679
  "destroyDisabled": boolean;
679
- "disableNavigation": boolean;
680
680
  "environment": ArcGISSceneView["environment"];
681
681
  "extent": ArcGISSceneView["extent"];
682
682
  "fatalError": ArcGISSceneView["fatalError"];
683
683
  "floors": ArcGISSceneView["floors"];
684
- "goTo": (target: __esri.GoToTarget3D, options?: __esri.GoToOptions3D) => Promise<void>;
684
+ "gamepad": __esri.GamepadSettings;
685
+ "goTo": (target: __esri.GoToTarget3D, options?: __esri.GoToOptions3D) => Promise<any>;
685
686
  "graphics": ArcGISSceneView["graphics"];
687
+ "ground": ArcGISWebScene["ground"];
686
688
  "groundView": ArcGISSceneView["groundView"];
687
689
  "highlightOptions": ArcGISSceneView["highlightOptions"];
688
690
  "hitTest": (screenPoint: __esri.ScreenPoint, options?: Record<string, any>) => Promise<__esri.HitTestResult>;
689
- "interacting": ArcGISSceneView["interacting"];
691
+ "interacting": boolean;
690
692
  "itemId": string;
691
693
  "layerViews": ArcGISSceneView["layerViews"];
692
694
  "magnifier": ArcGISSceneView["magnifier"];
693
695
  "map": ArcGISWebScene;
694
- "navigating": ArcGISSceneView["navigating"];
696
+ "navigating": boolean;
695
697
  "navigation": ArcGISSceneView["navigation"];
696
- "openPopup": (options?: Record<string, any>) => Promise<void>;
698
+ "openPopup": (options?: Record<string, any>) => Promise<any>;
697
699
  "padding": ArcGISSceneView["padding"];
698
700
  "performanceInfo": ArcGISSceneView["performanceInfo"];
699
701
  "popup": ArcGISSceneView["popup"];
700
- "popupEnabled": ArcGISSceneView["popupEnabled"];
702
+ "popupEnabled": boolean;
701
703
  "qualityProfile": ArcGISSceneView["qualityProfile"];
702
- "ready": ArcGISSceneView["ready"];
704
+ "ready": boolean;
703
705
  "resolution": ArcGISSceneView["resolution"];
704
706
  "scale": number;
705
707
  "spatialReference": ArcGISSceneView["spatialReference"];
706
- "stationary": ArcGISSceneView["stationary"];
707
- "suspended": ArcGISSceneView["suspended"];
708
+ "stationary": boolean;
709
+ "suspended": boolean;
708
710
  "takeScreenshot": (options?: Record<string, any>) => Promise<__esri.Screenshot>;
709
711
  "theme": ArcGISSceneView["theme"];
710
712
  "timeExtent": ArcGISSceneView["timeExtent"];
711
713
  "toMap": ArcGISSceneView["toMap"];
712
714
  "toScreen": ArcGISSceneView["toScreen"];
713
715
  "tryFatalErrorRecovery": () => Promise<void>;
714
- "updating": ArcGISSceneView["updating"];
716
+ "updating": boolean;
715
717
  /**
716
718
  * Internal view of the component.
717
719
  */
@@ -2686,14 +2688,15 @@ declare namespace LocalJSX {
2686
2688
  "extent"?: ArcGISMapView["extent"];
2687
2689
  "fatalError"?: ArcGISMapView["fatalError"];
2688
2690
  "floors"?: ArcGISMapView["floors"];
2691
+ "gamepad"?: __esri.GamepadSettings;
2689
2692
  "graphics"?: ArcGISMapView["graphics"];
2690
2693
  "highlightOptions"?: ArcGISMapView["highlightOptions"];
2691
- "interacting"?: ArcGISMapView["interacting"];
2694
+ "interacting"?: boolean;
2692
2695
  "itemId"?: string;
2693
2696
  "layerViews"?: ArcGISMapView["layerViews"];
2694
2697
  "magnifier"?: ArcGISMapView["magnifier"];
2695
2698
  "map"?: ArcGISWebMap;
2696
- "navigating"?: ArcGISMapView["navigating"];
2699
+ "navigating"?: boolean;
2697
2700
  "navigation"?: ArcGISMapView["navigation"];
2698
2701
  "onArcgisViewChange"?: (event: ArcgisMapCustomEvent<any>) => void;
2699
2702
  "onArcgisViewClick"?: (event: ArcgisMapCustomEvent<__esri.ViewClickEvent>) => void;
@@ -2716,21 +2719,21 @@ declare namespace LocalJSX {
2716
2719
  "onArcgisViewReadyChange"?: (event: ArcgisMapCustomEvent<any>) => void;
2717
2720
  "padding"?: ArcGISMapView["padding"];
2718
2721
  "popup"?: ArcGISMapView["popup"];
2719
- "popupEnabled"?: ArcGISMapView["popupEnabled"];
2720
- "ready"?: ArcGISMapView["ready"];
2722
+ "popupEnabled"?: boolean;
2723
+ "ready"?: boolean;
2721
2724
  "resizeAlign"?: ArcGISMapView["resizeAlign"];
2722
2725
  "resolution"?: ArcGISMapView["resolution"];
2723
- "rotation"?: ArcGISMapView["rotation"];
2726
+ "rotation"?: number;
2724
2727
  "scale"?: number;
2725
2728
  "spatialReference"?: ArcGISMapView["spatialReference"];
2726
- "stationary"?: ArcGISMapView["stationary"];
2727
- "suspended"?: ArcGISMapView["suspended"];
2729
+ "stationary"?: boolean;
2730
+ "suspended"?: boolean;
2728
2731
  "theme"?: ArcGISMapView["theme"];
2729
2732
  "timeExtent"?: ArcGISMapView["timeExtent"];
2730
2733
  "timeZone"?: ArcGISMapView["timeZone"];
2731
2734
  "toMap"?: ArcGISMapView["toMap"];
2732
2735
  "toScreen"?: ArcGISMapView["toScreen"];
2733
- "updating"?: ArcGISMapView["updating"];
2736
+ "updating"?: boolean;
2734
2737
  /**
2735
2738
  * Internal view of the component.
2736
2739
  */
@@ -2810,7 +2813,7 @@ declare namespace LocalJSX {
2810
2813
  }
2811
2814
  interface ArcgisScene {
2812
2815
  "allLayerViews"?: ArcGISSceneView["allLayerViews"];
2813
- "alphaCompositingEnabled"?: ArcGISSceneView["alphaCompositingEnabled"];
2816
+ "alphaCompositingEnabled"?: boolean;
2814
2817
  "analyses"?: ArcGISSceneView["analyses"];
2815
2818
  "basemap"?: ArcGISWebScene["basemap"];
2816
2819
  "basemapView"?: ArcGISSceneView["basemapView"];
@@ -2819,20 +2822,21 @@ declare namespace LocalJSX {
2819
2822
  "clippingArea"?: ArcGISSceneView["clippingArea"];
2820
2823
  "constraints"?: ArcGISSceneView["constraints"];
2821
2824
  "destroyDisabled"?: boolean;
2822
- "disableNavigation"?: boolean;
2823
2825
  "environment"?: ArcGISSceneView["environment"];
2824
2826
  "extent"?: ArcGISSceneView["extent"];
2825
2827
  "fatalError"?: ArcGISSceneView["fatalError"];
2826
2828
  "floors"?: ArcGISSceneView["floors"];
2829
+ "gamepad"?: __esri.GamepadSettings;
2827
2830
  "graphics"?: ArcGISSceneView["graphics"];
2831
+ "ground"?: ArcGISWebScene["ground"];
2828
2832
  "groundView"?: ArcGISSceneView["groundView"];
2829
2833
  "highlightOptions"?: ArcGISSceneView["highlightOptions"];
2830
- "interacting"?: ArcGISSceneView["interacting"];
2834
+ "interacting"?: boolean;
2831
2835
  "itemId"?: string;
2832
2836
  "layerViews"?: ArcGISSceneView["layerViews"];
2833
2837
  "magnifier"?: ArcGISSceneView["magnifier"];
2834
2838
  "map"?: ArcGISWebScene;
2835
- "navigating"?: ArcGISSceneView["navigating"];
2839
+ "navigating"?: boolean;
2836
2840
  "navigation"?: ArcGISSceneView["navigation"];
2837
2841
  "onArcgisViewChange"?: (event: ArcgisSceneCustomEvent<any>) => void;
2838
2842
  "onArcgisViewClick"?: (event: ArcgisSceneCustomEvent<__esri.ViewClickEvent>) => void;
@@ -2856,19 +2860,19 @@ declare namespace LocalJSX {
2856
2860
  "padding"?: ArcGISSceneView["padding"];
2857
2861
  "performanceInfo"?: ArcGISSceneView["performanceInfo"];
2858
2862
  "popup"?: ArcGISSceneView["popup"];
2859
- "popupEnabled"?: ArcGISSceneView["popupEnabled"];
2863
+ "popupEnabled"?: boolean;
2860
2864
  "qualityProfile"?: ArcGISSceneView["qualityProfile"];
2861
- "ready"?: ArcGISSceneView["ready"];
2865
+ "ready"?: boolean;
2862
2866
  "resolution"?: ArcGISSceneView["resolution"];
2863
2867
  "scale"?: number;
2864
2868
  "spatialReference"?: ArcGISSceneView["spatialReference"];
2865
- "stationary"?: ArcGISSceneView["stationary"];
2866
- "suspended"?: ArcGISSceneView["suspended"];
2869
+ "stationary"?: boolean;
2870
+ "suspended"?: boolean;
2867
2871
  "theme"?: ArcGISSceneView["theme"];
2868
2872
  "timeExtent"?: ArcGISSceneView["timeExtent"];
2869
2873
  "toMap"?: ArcGISSceneView["toMap"];
2870
2874
  "toScreen"?: ArcGISSceneView["toScreen"];
2871
- "updating"?: ArcGISSceneView["updating"];
2875
+ "updating"?: boolean;
2872
2876
  /**
2873
2877
  * Internal view of the component.
2874
2878
  */
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@arcgis/map-components",
3
3
  "description": "ArcGIS Map Components",
4
4
  "homepage": "https://developers.arcgis.com/javascript/latest/",
5
- "version": "4.29.0-beta.76",
5
+ "version": "4.29.0-beta.77",
6
6
  "module": "dist/components/index.js",
7
7
  "main": "dist/index.cjs.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -51,10 +51,10 @@
51
51
  "@stencil/core": "4.8.2"
52
52
  },
53
53
  "devDependencies": {
54
- "@arcgis/components-plugins": "4.29.0-beta.76",
55
- "@arcgis/components-utils": "4.29.0-beta.76",
54
+ "@arcgis/components-plugins": "4.29.0-beta.77",
55
+ "@arcgis/components-utils": "4.29.0-beta.77",
56
56
  "@arcgis/core": ">=4.29.0-next <4.30",
57
- "@arcgis/core-adapter": "4.29.0-beta.76",
57
+ "@arcgis/core-adapter": "4.29.0-beta.77",
58
58
  "@arcgis/typescript-config": "1.0.0",
59
59
  "@esri/calcite-components": "^2.1.0",
60
60
  "@stencil/angular-output-target": "0.8.1",
@@ -86,5 +86,5 @@
86
86
  "@arcgis/core": ">=4.29.0-next <4.30",
87
87
  "@esri/calcite-components": "^2.1.0"
88
88
  },
89
- "gitHead": "77452307e73f942cb7ba1815ea7029e21ba20730"
89
+ "gitHead": "cfcdb634f411bc47b57d96379f8f7a4ae41f77b3"
90
90
  }
@@ -1,2 +0,0 @@
1
- import{r as i,c as t,h as s,g as e}from"./p-8896b456.js";import{n as h,i as n,a,b as r,c}from"./p-758f6c5a.js";import{r as d,c as o,a as f,i as u,b as l,d as p,e as W,f as g}from"./p-6eddf41d.js";import{o as w}from"./p-8cd5e748.js";const m="";const y=class{constructor(s){i(this,s);this.widgetReady=t(this,"widgetReady",7);this._watchHandles=[];this.referenceElement=undefined;this.activeBasemap=undefined;this.position="bottom-left";this.expandable=false;this.source=undefined;this.view=undefined;this.widget=undefined}referenceElementWatcher(i){d(this,i)}positionWatcher(i){if(i!==undefined&&this.widget){this.view.ui.move(this.childElem,i)}}sourceWatcher(i){if(this.widget){this.widget.source=i}}viewWatcher(i){if(i!==undefined&&this.widget){this.widget.view=i}}async componentDidLoad(){const i=this._createParams();const t=await h(i);this.widget=t;await this._addWatchers();this.widgetReady.emit({widget:this.widget});o(this)}disconnectedCallback(){w(this)}render(){if(this.expandable){return s("arcgis-expand",{position:this.position,ref:i=>this.expandElem=i},s("div",{ref:i=>this.childElem=i}))}return s("div",{ref:i=>this.childElem=i})}async _addWatchers(){const{watch:i}=await n();f(this,i((()=>this.widget.source),(()=>this.source=this.widget.source),{initial:true}));f(this,i((()=>this.widget.activeBasemap),(i=>this.activeBasemap=i),{initial:true}))}_createParams(){const i={container:this.childElem};if(this.view){i.view=this.view}return i}get el(){return e(this)}static get watchers(){return{referenceElement:["referenceElementWatcher"],position:["positionWatcher"],source:["sourceWatcher"],view:["viewWatcher"]}}};y.style=m;const v="arcgis-expand>.esri-expand__content--expanded{background-color:var(--calcite-ui-background)}";const b=class{constructor(s){i(this,s);this.widgetReady=t(this,"widgetReady",7);this._watchHandles=[];this.autoCollapse=false;this.closeOnEsc=true;this.collapseIcon=undefined;this.collapseTooltip=undefined;this.expanded=false;this.expandIcon=undefined;this.expandTooltip=undefined;this.group=undefined;this.iconNumber=undefined;this.mode="auto";this.referenceElement=undefined;this.position="top-right";this.view=undefined;this.widget=undefined}autoCollapseWatcher(i){if(i!==undefined&&this.widget){this.widget.autoCollapse=i}}closeOnEscWatcher(i){if(i!==undefined&&this.widget){this.widget.closeOnEsc=i}}collapseIconWatcher(i){if(this.widget){this.widget.collapseIcon=i;this.widget.collapseIconClass=i}}collapseTooltipWatcher(i){if(this.widget){this.widget.collapseTooltip=i}}expandedWatcher(i){if(i!==undefined&&this.widget){this.widget.expanded=i}}expandIconWatcher(i){if(this.widget){this.widget.expandIcon=i;this.widget.expandIconClass=i}}expandTooltipWatcher(i){if(this.widget){this.widget.expandTooltip=i}}groupWatcher(i){if(this.widget){this.widget.group=i}}iconNumberWatcher(i){if(i!==undefined&&this.widget){this.widget.iconNumber=i}}modeWatcher(i){if(this.widget){this.widget.mode=i}}referenceElementWatcher(i){d(this,i)}viewWatcher(i){if(i!==undefined&&this.widget){this.widget.view=i}}positionWatcher(i){if(i!==undefined&&this.widget){this.view.ui.move(this.childElem,i)}}async collapse(){this.widget?.collapse()}async expand(){this.widget?.expand()}async toggle(){if(this.expanded)await this.collapse();else await this.expand()}async componentDidLoad(){const i=this._createParams();const t=await a(i);this.widget=t;this._checkForView()}disconnectedCallback(){w(this)}render(){return s("div",{ref:i=>this.childElem=i})}_createParams(){const i={container:this.childElem};if(this.autoCollapse!==undefined){i.autoCollapse=this.autoCollapse}if(this.closeOnEsc!==undefined){i.closeOnEsc=this.closeOnEsc}if(this.collapseIcon){i.collapseIcon=this.collapseIcon;i.collapseIconClass=this.collapseIcon}if(this.collapseTooltip){i.collapseTooltip=this.collapseTooltip}if(this.expanded!==undefined){i.expanded=this.expanded}if(this.expandIcon){console.log("expandIcon",this.expandIcon);i.expandIcon=this.expandIcon;i.expandIconClass=this.expandIcon}if(this.expandTooltip){i.expandTooltip=this.expandTooltip}if(this.group){i.group=this.group}if(this.iconNumber!==undefined){i.iconNumber=this.iconNumber}if(this.mode){i.mode=this.mode}if(this.view){i.view=this.view}return i}_checkForView(){const i=this.el.closest("arcgis-map")||this.el.closest("arcgis-scene");if(i?.view){this.view=i.view;this.view.ui.add(this.childElem,this.position);this.widgetReady.emit({widget:this.widget})}else if(i){const t=()=>{i.removeEventListener("arcgisViewReadyChange",t,false);this.view=i.view;this.view.ui.add(this.childElem,this.position);this.widgetReady.emit({widget:this.widget})};i.addEventListener("arcgisViewReadyChange",t,false)}}get el(){return e(this)}static get watchers(){return{autoCollapse:["autoCollapseWatcher"],closeOnEsc:["closeOnEscWatcher"],collapseIcon:["collapseIconWatcher"],collapseTooltip:["collapseTooltipWatcher"],expanded:["expandedWatcher"],expandIcon:["expandIconWatcher"],expandTooltip:["expandTooltipWatcher"],group:["groupWatcher"],iconNumber:["iconNumberWatcher"],mode:["modeWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"],position:["positionWatcher"]}}};b.style=v;const V=".arcgis-scene{padding:0;margin:0;height:100%;width:100%}";const x=class{constructor(s){i(this,s);this.arcgisViewReadyChange=t(this,"arcgisViewReadyChange",7);this.arcgisViewChange=t(this,"arcgisViewChange",7);this.arcgisViewClick=t(this,"arcgisViewClick",7);this.arcgisViewDoubleClick=t(this,"arcgisViewDoubleClick",7);this.arcgisViewDrag=t(this,"arcgisViewDrag",7);this.arcgisViewHold=t(this,"arcgisViewHold",7);this.arcgisViewImmediateClick=t(this,"arcgisViewImmediateClick",7);this.arcgisViewImmediateDoubleClick=t(this,"arcgisViewImmediateDoubleClick",7);this.arcgisViewKeyDown=t(this,"arcgisViewKeyDown",7);this.arcgisViewKeyUp=t(this,"arcgisViewKeyUp",7);this.arcgisViewLayerviewCreate=t(this,"arcgisViewLayerviewCreate",7);this.arcgisViewLayerviewCreateError=t(this,"arcgisViewLayerviewCreateError",7);this.arcgisViewLayerviewDestroy=t(this,"arcgisViewLayerviewDestroy",7);this.arcgisViewMouseWheel=t(this,"arcgisViewMouseWheel",7);this.arcgisViewPointerDown=t(this,"arcgisViewPointerDown",7);this.arcgisViewPointerEnter=t(this,"arcgisViewPointerEnter",7);this.arcgisViewPointerLeave=t(this,"arcgisViewPointerLeave",7);this.arcgisViewPointerMove=t(this,"arcgisViewPointerMove",7);this.arcgisViewPointerUp=t(this,"arcgisViewPointerUp",7);this._watchHandles=[];this.allLayerViews=undefined;this.alphaCompositingEnabled=undefined;this.analyses=undefined;this.basemapView=undefined;this.basemap=undefined;this.camera=undefined;this.center=undefined;this.clippingArea=undefined;this.constraints=undefined;this.destroyDisabled=false;this.environment=undefined;this.extent=undefined;this.fatalError=undefined;this.floors=undefined;this.graphics=undefined;this.groundView=undefined;this.highlightOptions=undefined;this.interacting=undefined;this.itemId=undefined;this.layerViews=undefined;this.magnifier=undefined;this.map=undefined;this.navigating=undefined;this.navigation=undefined;this.padding=undefined;this.performanceInfo=undefined;this.popup=undefined;this.popupEnabled=undefined;this.qualityProfile=undefined;this.ready=undefined;this.resolution=undefined;this.scale=undefined;this.spatialReference=undefined;this.stationary=undefined;this.suspended=undefined;this.theme=undefined;this.timeExtent=undefined;this.toMap=undefined;this.toScreen=undefined;this.updating=undefined;this.viewingMode=undefined;this.viewpoint=undefined;this.zoom=undefined;this.view=undefined;this.disableNavigation=false}alphaCompositingEnabledWatcher(i){if(i!==undefined&&this.view){this.view.alphaCompositingEnabled=i}}basemapWatcher(i){if(this.view?.map&&u(i)){this.view.map.basemap=i}}cameraWatcher(i){if(this.view&&i&&l(this.view.camera,i)){this.view.camera=i}}centerWatcher(i){if(this.view&&i&&!this.view.center?.equals(i)){this.view.center=i}}clippingAreaWatcher(i){if(this.view&&i&&!this.view.clippingArea?.equals(i)){this.view.clippingArea=i}}constraintsWatcher(i){if(this.view){this.view.constraints=i}}environmentWatcher(i){if(this.view&&i&&p(this.view.environment,i)){this.view.environment=i}}extentWatcher(i){if(this.view&&i&&!this.view.extent.equals(i)){this.view.extent=i}}floorsWatcher(i){if(this.view){this.view.floors=i}}graphicsWatcher(i){if(this.view){this.view.graphics=i}}highlightOptionsWatcher(i){if(this.view){this.view.highlightOptions=i}}itemIdWatcher(i,t){if(i!==t){if(this.view?.map){this._updateMap()}else{this._loadMap()}}}mapWatcher(i){if(this.view){this.view.map=i}}navigationWatcher(i){if(this.view){this.view.navigation=i}}paddingWatcher(i){if(this.view){this.view.padding=i}}popupEnabledWatcher(i){if(i!==undefined&&this.view){this.view.popupEnabled=i}}qualityProfileWatcher(i){if(this.view&&this.view.qualityProfile!==i){this.view.qualityProfile=i}}scaleWatcher(i,t){if(this.view&&this.view.stationary&&!this.view.interacting&&i!=null&&i!==t){this.view.scale=i}}spatialReferenceWatcher(i){if(this.view&&i&&!this.view.spatialReference.equals(i)){this.view.spatialReference=i}}themeWatcher(i){if(this.view){this.view.theme=i}}timeExtentWatcher(i){if(this.view){this.view.timeExtent=i}}viewingModeWatcher(i){if(this.view){this.view.viewingMode=i}}viewpointWatcher(i){if(this.view&&W(this.view.viewpoint,i)){this.view.viewpoint=i}}zoomWatcher(i,t){if(this.view&&this.view.stationary&&!this.view.interacting&&i!==t&&g(i)){this.view.zoom=i}}async closePopup(){this.view?.closePopup()}async destroy(){if(this.destroyDisabled){this._clearWatchHandles();this.view.destroy()}}async goTo(i,t){return await(this.view?.goTo(i,t))}async hitTest(i,t){return await(this.view?.hitTest(i,t))}async openPopup(i){return await(this.view?.openPopup(i))}async takeScreenshot(i){return await(this.view?.takeScreenshot(i))}async tryFatalErrorRecovery(){this.view?.tryFatalErrorRecovery()}async whenAnalysisView(i){return await(this.view?.whenAnalysisView(i))}async whenLayerView(i){return await(this.view?.whenLayerView(i))}async connectedCallback(){this.view=await r({})}async componentWillLoad(){await this._loadMap()}componentDidRender(){if(this.view&&!this.view.container){this.view.container=this.el}}componentDidLoad(){this._proxyEvents()}disconnectedCallback(){this.destroy()}render(){return s("div",{class:"arcgis-scene",ref:i=>this.el=i})}_clearWatchHandles(){this._watchHandles.forEach((i=>i.remove()));this._watchHandles=[]}async _addWatchers(){const{watch:i,when:t}=await n();f(this,[i((()=>this.view.ready),(()=>{this.ready=this.view.ready;this.arcgisViewReadyChange.emit()}),{initial:true}),i((()=>this.view.stationary),(()=>{this.stationary=this.view.stationary;this.interacting=this.view.interacting;this.navigating=this.view.navigating;this.arcgisViewChange.emit()}),{initial:true}),t((()=>this.view.stationary),(()=>{this.camera=this.view.camera;this.center=this.view.center;this.extent=this.view.extent;this.scale=this.view.scale;this.viewpoint=this.view.viewpoint;this.zoom=this.view.zoom;this.spatialReference=this.view.spatialReference})),i((()=>this.view.allLayerViews),(()=>{this.allLayerViews=this.view.allLayerViews}),{initial:true}),i((()=>this.view.analyses),(()=>{this.analyses=this.view.analyses}),{initial:true}),i((()=>this.view.map?.basemap),(()=>{this.basemap=this.view.map?.basemap}),{initial:true}),i((()=>this.view.basemapView),(()=>{this.basemapView=this.view.basemapView}),{initial:true}),i((()=>this.view.environment),(()=>{this.environment=this.view.environment}),{initial:true}),i((()=>this.view.fatalError),(()=>{this.fatalError=this.view.fatalError}),{initial:true}),i((()=>this.view.graphics),(()=>{this.graphics=this.view.graphics}),{initial:true}),i((()=>this.view.groundView),(()=>{this.groundView=this.view.groundView}),{initial:true}),i((()=>this.view.interacting),(()=>{this.interacting=this.view.interacting})),i((()=>this.view.navigating),(()=>{this.navigating=this.view.navigating})),i((()=>this.view.stationary),(()=>{this.stationary=this.view.stationary})),i((()=>this.view.layerViews),(()=>{this.layerViews=this.view.layerViews}),{initial:true}),i((()=>this.view.navigation),(()=>{this.navigation=this.view.navigation}),{initial:true}),i((()=>this.view.map),(()=>{this.map=this.view.map}),{initial:true}),i((()=>this.view.performanceInfo),(()=>{this.performanceInfo=this.view.performanceInfo})),i((()=>this.view.popup),(()=>{this.popup=this.view.popup}),{initial:true}),i((()=>this.view.qualityProfile),(()=>{this.qualityProfile=this.view.qualityProfile}),{initial:true}),i((()=>this.view.resolution),(()=>{this.resolution=this.view.resolution}),{initial:true}),i((()=>this.view.suspended),(()=>{this.suspended=this.view.suspended}),{initial:true}),i((()=>this.view.updating),(()=>{this.updating=this.view.updating}),{initial:true})])}async _createMap(){const i={};if(this.itemId){i.portalItem=this._createPortalItem()}if(this.basemap){i.basemap=this.basemap}else if(u(this.itemId)){i.basemap="topo-vector"}const t=await c(i);return t}_createPortalItem(){const i={};if(this.itemId){i.id=this.itemId}return i}_createViewParams(){const i={};if(this.center){if(typeof this.center==="string"){i.center=this.center.split(",").map((i=>Number(i)))}else{i.center=this.center}}if(this.constraints){i.constraints=this.constraints}if(this.extent){i.extent=this.extent}if(this.floors){i.floors=this.floors}if(this.highlightOptions){i.highlightOptions=this.highlightOptions}if(this.map){i.map=this.map}if(this.navigation){i.navigation=this.navigation}if(this.popupEnabled!==undefined){i.popupEnabled=this.popupEnabled}if(this.scale!==undefined){i.scale=this.scale}if(this.spatialReference){i.spatialReference=this.spatialReference}if(this.theme){i.theme=this.theme}if(this.timeExtent){i.timeExtent=this.timeExtent}if(this.viewpoint){i.viewpoint=this.viewpoint}if(this.zoom!==undefined){i.zoom=this.zoom}return i}async _loadMap(){const i=await this._createMap();const t=this._createViewParams();const s=await r({map:i,...t});this.view=s;s.when((async()=>{this.toMap=s.toMap.bind(s);this.toScreen=s.toScreen.bind(s);await this._addWatchers()}))}_proxyEvents(){f(this,[this.view.on("click",(i=>{this.arcgisViewClick.emit(i)})),this.view.on("double-click",(i=>{this.arcgisViewDoubleClick.emit(i)})),this.view.on("drag",(i=>{this.arcgisViewDrag.emit(i)})),this.view.on("hold",(i=>{this.arcgisViewHold.emit(i)})),this.view.on("immediate-click",(i=>{this.arcgisViewImmediateClick.emit(i)})),this.view.on("immediate-double-click",(i=>{this.arcgisViewImmediateDoubleClick.emit(i)})),this.view.on("key-down",(i=>{this.arcgisViewKeyDown.emit(i)})),this.view.on("key-up",(i=>{this.arcgisViewKeyUp.emit(i)})),this.view.on("layerview-create",(i=>{this.arcgisViewLayerviewCreate.emit(i)})),this.view.on("layerview-create-error",(i=>{this.arcgisViewLayerviewCreateError.emit(i)})),this.view.on("layerview-destroy",(i=>{this.arcgisViewLayerviewDestroy.emit(i)})),this.view.on("mouse-wheel",(i=>{this.arcgisViewMouseWheel.emit(i)})),this.view.on("pointer-down",(i=>{this.arcgisViewPointerDown.emit(i)})),this.view.on("pointer-enter",(i=>{this.arcgisViewPointerEnter.emit(i)})),this.view.on("pointer-leave",(i=>{this.arcgisViewPointerLeave.emit(i)})),this.view.on("pointer-move",(i=>{this.arcgisViewPointerMove.emit(i)})),this.view.on("pointer-up",(i=>{this.arcgisViewPointerUp.emit(i)}))])}async _updateMap(){if(this.view?.map){this.view.map.destroy();const i=await this._createMap();this.view.map=i}}get _hostElement(){return e(this)}static get watchers(){return{alphaCompositingEnabled:["alphaCompositingEnabledWatcher"],basemap:["basemapWatcher"],camera:["cameraWatcher"],center:["centerWatcher"],clippingArea:["clippingAreaWatcher"],constraints:["constraintsWatcher"],environment:["environmentWatcher"],extent:["extentWatcher"],floors:["floorsWatcher"],graphics:["graphicsWatcher"],highlightOptions:["highlightOptionsWatcher"],itemId:["itemIdWatcher"],map:["mapWatcher"],navigation:["navigationWatcher"],padding:["paddingWatcher"],popupEnabled:["popupEnabledWatcher"],qualityProfile:["qualityProfileWatcher"],scale:["scaleWatcher"],spatialReference:["spatialReferenceWatcher"],theme:["themeWatcher"],timeExtent:["timeExtentWatcher"],viewingMode:["viewingModeWatcher"],viewpoint:["viewpointWatcher"],zoom:["zoomWatcher"]}}};x.style=V;export{y as arcgis_basemap_gallery,b as arcgis_expand,x as arcgis_scene};
2
- //# sourceMappingURL=p-8bf4b85e.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["basemapGalleryCss","ArcgisBasemapGallery","this","_watchHandles","referenceElementWatcher","newValue","referenceElementHelper","positionWatcher","undefined","widget","view","ui","move","childElem","sourceWatcher","source","viewWatcher","componentDidLoad","params","_createParams","newWidgetsBasemapGallery","_addWatchers","widgetReady","emit","checkForView","disconnectedCallback","onDisconnectedHelper","render","expandable","h","position","ref","el","expandElem","watch","importCoreReactiveUtils","addHandles","initial","activeBasemap","basemap","container","expandCss","ArcgisExpand","autoCollapseWatcher","autoCollapse","closeOnEscWatcher","closeOnEsc","collapseIconWatcher","collapseIcon","collapseIconClass","collapseTooltipWatcher","collapseTooltip","expandedWatcher","expanded","expandIconWatcher","expandIcon","expandIconClass","expandTooltipWatcher","expandTooltip","groupWatcher","group","iconNumberWatcher","iconNumber","modeWatcher","mode","collapse","expand","toggle","newWidgetsExpand","_checkForView","console","log","viewRef","closest","add","handler","removeEventListener","addEventListener","sceneCss","ArcgisScene","alphaCompositingEnabledWatcher","value","alphaCompositingEnabled","basemapWatcher","map","isNullOrEmptyString","cameraWatcher","isNotSameCamera","camera","centerWatcher","center","equals","clippingAreaWatcher","clippingArea","constraintsWatcher","constraints","environmentWatcher","isNotSameEnvironment","environment","extentWatcher","extent","floorsWatcher","floors","graphicsWatcher","graphics","highlightOptionsWatcher","highlightOptions","itemIdWatcher","old","_updateMap","_loadMap","mapWatcher","navigationWatcher","navigation","paddingWatcher","padding","popupEnabledWatcher","popupEnabled","qualityProfileWatcher","qualityProfile","scaleWatcher","stationary","interacting","scale","spatialReferenceWatcher","spatialReference","themeWatcher","theme","timeExtentWatcher","timeExtent","viewingModeWatcher","viewingMode","viewpointWatcher","isNotSameViewpoint","viewpoint","zoomWatcher","isValidInteger","zoom","closePopup","destroy","destroyDisabled","_clearWatchHandles","goTo","target","options","hitTest","screenPoint","openPopup","takeScreenshot","tryFatalErrorRecovery","whenAnalysisView","analysis","whenLayerView","layer","connectedCallback","newViewsSceneView","componentWillLoad","componentDidRender","_proxyEvents","class","forEach","handle","remove","when","ready","arcgisViewReadyChange","navigating","arcgisViewChange","allLayerViews","analyses","basemapView","fatalError","groundView","layerViews","performanceInfo","popup","resolution","suspended","updating","_createMap","mapParams","itemId","portalItem","_createPortalItem","newWebScene","item","id","_createViewParams","split","x","Number","async","toMap","bind","toScreen","on","event","arcgisViewClick","arcgisViewDoubleClick","arcgisViewDrag","arcgisViewHold","arcgisViewImmediateClick","arcgisViewImmediateDoubleClick","arcgisViewKeyDown","arcgisViewKeyUp","arcgisViewLayerviewCreate","arcgisViewLayerviewCreateError","arcgisViewLayerviewDestroy","arcgisViewMouseWheel","arcgisViewPointerDown","arcgisViewPointerEnter","arcgisViewPointerLeave","arcgisViewPointerMove","arcgisViewPointerUp"],"sources":["src/components/basemap-gallery/basemap-gallery.css?tag=arcgis-basemap-gallery","src/components/basemap-gallery/basemap-gallery.tsx","src/components/expand/expand.css?tag=arcgis-expand","src/components/expand/expand.tsx","src/components/scene/scene.css?tag=arcgis-scene","src/components/scene/scene.tsx"],"sourcesContent":[null,"import type { EventEmitter, VNode } from \"@stencil/core\";\nimport { Component, Element, Event, Prop, Watch, h } from \"@stencil/core\";\n\n// arcgis imports\nimport { importCoreReactiveUtils, newWidgetsBasemapGallery } from \"@arcgis/core-adapter\";\nimport type BasemapGallery from \"@arcgis/core/widgets/BasemapGallery\";\nimport type { ArcgisReferenceElement } from \"../../utils/component-utils\";\nimport { addHandles, checkForView, referenceElementHelper } from \"../../utils/component-utils\";\nimport { onDisconnectedHelper } from \"../../utils/disconnected\";\nimport type { ExpandableComponent } from \"../../utils/expandable\";\nimport type { ArcGISMapView, ArcGISSceneView } from \"../types\";\n\nexport type BasemapGalleryWidget = InstanceType<typeof BasemapGallery>;\n\n@Component({\n tag: \"arcgis-basemap-gallery\",\n styleUrl: \"basemap-gallery.css\",\n shadow: false\n})\nexport class ArcgisBasemapGallery implements ExpandableComponent {\n //--------------------------------------------------------------------------\n //\n // Element\n //\n //--------------------------------------------------------------------------\n\n @Element() el!: HTMLDivElement;\n\n childElem: HTMLDivElement;\n\n expandElem: HTMLArcgisExpandElement;\n\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n\n @Prop() referenceElement: ArcgisReferenceElement | string;\n\n @Watch(\"referenceElement\")\n referenceElementWatcher(newValue: ArcgisReferenceElement | string): void {\n referenceElementHelper(this, newValue);\n }\n\n @Prop({ mutable: true }) activeBasemap: BasemapGalleryWidget[\"activeBasemap\"];\n\n @Prop() position = \"bottom-left\";\n\n @Watch(\"position\")\n positionWatcher(newValue: string): void {\n if (newValue !== undefined && this.widget) {\n this.view.ui.move(this.childElem, newValue);\n }\n }\n\n @Prop() expandable = false;\n\n @Prop({ mutable: true }) source: BasemapGalleryWidget[\"source\"];\n\n @Watch(\"source\")\n sourceWatcher(newValue: BasemapGalleryWidget[\"source\"]): void {\n if (this.widget) {\n this.widget.source = newValue;\n }\n }\n\n @Prop({ mutable: true }) view: ArcGISMapView | ArcGISSceneView;\n\n @Watch(\"view\")\n viewWatcher(newValue: ArcGISMapView | ArcGISSceneView): void {\n if (newValue !== undefined && this.widget) {\n this.widget.view = newValue;\n }\n }\n\n @Prop({ mutable: true }) widget: BasemapGalleryWidget;\n\n _watchHandles: __esri.WatchHandle[] = [];\n\n //--------------------------------------------------------------------------\n //\n // Events\n //\n //--------------------------------------------------------------------------\n\n @Event({ cancelable: true }) widgetReady!: EventEmitter<{ widget: __esri.BasemapGallery }>;\n\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n\n async componentDidLoad(): Promise<void> {\n const params = this._createParams();\n const widget = await newWidgetsBasemapGallery(params);\n\n this.widget = widget;\n\n await this._addWatchers();\n\n this.widgetReady.emit({ widget: this.widget });\n\n checkForView(this);\n }\n\n disconnectedCallback(): void {\n onDisconnectedHelper(this);\n }\n\n render(): VNode {\n if (this.expandable) {\n return (\n <arcgis-expand position={this.position} ref={(el) => (this.expandElem = el!)}>\n <div ref={(el) => (this.childElem = el!)}></div>\n </arcgis-expand>\n );\n }\n return <div ref={(el) => (this.childElem = el!)}></div>;\n }\n\n //--------------------------------------------------------------------------\n //\n // Private Interal Methods\n //\n //--------------------------------------------------------------------------\n\n private async _addWatchers() {\n const { watch } = await importCoreReactiveUtils();\n\n addHandles(\n this,\n watch(\n () => this.widget.source,\n () => (this.source = this.widget.source),\n {\n initial: true\n }\n )\n );\n\n addHandles(\n this,\n watch(\n () => this.widget.activeBasemap,\n (basemap) => (this.activeBasemap = basemap),\n {\n initial: true\n }\n )\n );\n }\n\n private _createParams(): Partial<InstanceType<typeof BasemapGallery>> {\n const params: Partial<InstanceType<typeof BasemapGallery>> = {\n container: this.childElem\n };\n\n if (this.view) {\n params.view = this.view;\n }\n\n return params;\n }\n}\n","arcgis-expand > .esri-expand__content--expanded {\n background-color: var(--calcite-ui-background);\n}\n","import { newWidgetsExpand } from \"@arcgis/core-adapter\";\nimport type Expand from \"@arcgis/core/widgets/Expand\";\nimport type { EventEmitter, VNode } from \"@stencil/core\";\nimport { Component, Element, Event, Method, Prop, Watch, h } from \"@stencil/core\";\nimport type { ArcgisReferenceElement } from \"../../utils/component-utils\";\nimport { referenceElementHelper } from \"../../utils/component-utils\";\nimport { onDisconnectedHelper } from \"../../utils/disconnected\";\n\n// arcgis imports\nimport type { ArcGISMapView, ArcGISSceneView } from \"../types\";\n\nexport type ExpandWidget = InstanceType<typeof Expand>;\n\n@Component({\n tag: \"arcgis-expand\",\n styleUrl: \"expand.css\",\n shadow: false\n})\nexport class ArcgisExpand {\n @Element() el!: HTMLDivElement;\n\n childElem: HTMLDivElement;\n\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n\n @Prop() autoCollapse: ExpandWidget[\"autoCollapse\"] = false;\n\n @Watch(\"autoCollapse\")\n autoCollapseWatcher(newValue: boolean): void {\n if (newValue !== undefined && this.widget) {\n this.widget.autoCollapse = newValue;\n }\n }\n\n @Prop() closeOnEsc: ExpandWidget[\"closeOnEsc\"] = true;\n\n @Watch(\"closeOnEsc\")\n closeOnEscWatcher(newValue: boolean): void {\n if (newValue !== undefined && this.widget) {\n this.widget.closeOnEsc = newValue;\n }\n }\n\n @Prop() collapseIcon: ExpandWidget[\"collapseIcon\"];\n\n @Watch(\"collapseIcon\")\n collapseIconWatcher(newValue: string): void {\n if (this.widget) {\n this.widget.collapseIcon = newValue;\n this.widget.collapseIconClass = newValue;\n }\n }\n\n @Prop() collapseTooltip: ExpandWidget[\"collapseTooltip\"];\n\n @Watch(\"collapseTooltip\")\n collapseTooltipWatcher(newValue: string): void {\n if (this.widget) {\n this.widget.collapseTooltip = newValue;\n }\n }\n\n @Prop() expanded: ExpandWidget[\"expanded\"] = false;\n\n @Watch(\"expanded\")\n expandedWatcher(newValue: boolean): void {\n if (newValue !== undefined && this.widget) {\n this.widget.expanded = newValue;\n }\n }\n\n @Prop() expandIcon: ExpandWidget[\"expandIcon\"];\n\n @Watch(\"expandIcon\")\n expandIconWatcher(newValue: string): void {\n if (this.widget) {\n this.widget.expandIcon = newValue;\n this.widget.expandIconClass = newValue;\n }\n }\n\n @Prop() expandTooltip: ExpandWidget[\"expandTooltip\"];\n\n @Watch(\"expandTooltip\")\n expandTooltipWatcher(newValue: string): void {\n if (this.widget) {\n this.widget.expandTooltip = newValue;\n }\n }\n\n @Prop() group: ExpandWidget[\"group\"];\n\n @Watch(\"group\")\n groupWatcher(newValue: string): void {\n if (this.widget) {\n this.widget.group = newValue;\n }\n }\n\n @Prop() iconNumber: ExpandWidget[\"iconNumber\"];\n\n @Watch(\"iconNumber\")\n iconNumberWatcher(newValue: number): void {\n if (newValue !== undefined && this.widget) {\n this.widget.iconNumber = newValue;\n }\n }\n\n @Prop() mode: ExpandWidget[\"mode\"] = \"auto\";\n\n @Watch(\"mode\")\n modeWatcher(newValue: ExpandWidget[\"mode\"]): void {\n if (this.widget) {\n this.widget.mode = newValue;\n }\n }\n\n @Prop() referenceElement: ArcgisReferenceElement | string;\n\n @Watch(\"referenceElement\")\n referenceElementWatcher(newValue: ArcgisReferenceElement | string): void {\n referenceElementHelper(this, newValue);\n }\n\n @Prop() position = \"top-right\";\n\n @Prop({ mutable: true }) view: ArcGISMapView | ArcGISSceneView;\n\n @Watch(\"view\")\n viewWatcher(newValue: ArcGISMapView | ArcGISSceneView): void {\n if (newValue !== undefined && this.widget) {\n this.widget.view = newValue;\n }\n }\n\n @Watch(\"position\")\n positionWatcher(newValue: string): void {\n if (newValue !== undefined && this.widget) {\n this.view.ui.move(this.childElem, newValue);\n }\n }\n\n @Prop({ mutable: true }) widget: ExpandWidget;\n\n _watchHandles: __esri.WatchHandle[] = [];\n\n //--------------------------------------------------------------------------\n //\n // Events\n //\n //--------------------------------------------------------------------------\n\n @Event({ cancelable: true }) widgetReady!: EventEmitter<{ widget: __esri.Expand }>;\n\n //--------------------------------------------------------------------------\n //\n // Methods\n //\n //--------------------------------------------------------------------------\n\n @Method()\n async collapse(): Promise<void> {\n this.widget?.collapse();\n }\n\n @Method()\n async expand(): Promise<void> {\n this.widget?.expand();\n }\n\n @Method()\n async toggle(): Promise<void> {\n if (this.expanded) await this.collapse();\n else await this.expand();\n }\n\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n\n async componentDidLoad(): Promise<void> {\n const params = this._createParams();\n\n const widget = await newWidgetsExpand(params);\n\n this.widget = widget;\n\n this._checkForView();\n }\n\n disconnectedCallback(): void {\n onDisconnectedHelper(this);\n }\n\n render(): VNode {\n return <div ref={(el) => (this.childElem = el!)}></div>;\n }\n\n //--------------------------------------------------------------------------\n //\n // Private Internal Methods\n //\n //--------------------------------------------------------------------------\n\n private _createParams(): __esri.ExpandProperties {\n const params: __esri.ExpandProperties = {\n container: this.childElem\n };\n\n if (this.autoCollapse !== undefined) {\n params.autoCollapse = this.autoCollapse;\n }\n\n if (this.closeOnEsc !== undefined) {\n params.closeOnEsc = this.closeOnEsc;\n }\n\n if (this.collapseIcon) {\n params.collapseIcon = this.collapseIcon;\n params.collapseIconClass = this.collapseIcon;\n }\n\n if (this.collapseTooltip) {\n params.collapseTooltip = this.collapseTooltip;\n }\n\n if (this.expanded !== undefined) {\n params.expanded = this.expanded;\n }\n\n if (this.expandIcon) {\n console.log(\"expandIcon\", this.expandIcon);\n params.expandIcon = this.expandIcon;\n params.expandIconClass = this.expandIcon;\n }\n\n if (this.expandTooltip) {\n params.expandTooltip = this.expandTooltip;\n }\n\n if (this.group) {\n params.group = this.group;\n }\n\n if (this.iconNumber !== undefined) {\n params.iconNumber = this.iconNumber;\n }\n\n if (this.mode) {\n params.mode = this.mode;\n }\n\n if (this.view) {\n params.view = this.view;\n }\n\n return params;\n }\n\n private _checkForView(): void {\n const viewRef = this.el.closest(\"arcgis-map\") || this.el.closest(\"arcgis-scene\");\n if (viewRef?.view) {\n this.view = viewRef.view;\n this.view.ui.add(this.childElem, this.position);\n this.widgetReady.emit({ widget: this.widget });\n } else if (viewRef) {\n const handler = () => {\n viewRef.removeEventListener(\"arcgisViewReadyChange\", handler, false);\n this.view = viewRef.view;\n this.view.ui.add(this.childElem, this.position);\n this.widgetReady.emit({ widget: this.widget });\n };\n viewRef.addEventListener(\"arcgisViewReadyChange\", handler, false);\n }\n }\n}\n",".arcgis-scene {\n padding: 0;\n margin: 0;\n height: 100%;\n width: 100%;\n}\n","import type { EventEmitter, VNode } from \"@stencil/core\";\nimport { Component, Element, Event, Method, Prop, Watch, h } from \"@stencil/core\";\n\n// arcgis imports\nimport { importCoreReactiveUtils, newViewsSceneView, newWebScene } from \"@arcgis/core-adapter\";\nimport type WebScene from \"@arcgis/core/WebScene\";\nimport type { ViewElement } from \"../../utils/component-utils\";\nimport {\n addHandles,\n isNotSameCamera,\n isNotSameEnvironment,\n isNotSameViewpoint,\n isNullOrEmptyString,\n isValidInteger\n} from \"../../utils/component-utils\";\nimport type { ArcGISSceneView } from \"../types\";\n\nexport type ArcGISWebScene = InstanceType<typeof WebScene>;\n\n@Component({\n tag: \"arcgis-scene\",\n styleUrl: \"scene.css\",\n shadow: false\n})\nexport class ArcgisScene implements ViewElement {\n //--------------------------------------------------------------------------\n //\n // Elements\n //\n //--------------------------------------------------------------------------\n\n el: HTMLDivElement;\n\n @Element() _hostElement!: HTMLArcgisSceneElement;\n\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n\n @Prop({ mutable: true }) allLayerViews: ArcGISSceneView[\"allLayerViews\"];\n\n @Prop() alphaCompositingEnabled: ArcGISSceneView[\"alphaCompositingEnabled\"];\n\n @Watch(\"alphaCompositingEnabled\")\n alphaCompositingEnabledWatcher(value: ArcGISSceneView[\"alphaCompositingEnabled\"]): void {\n if (value !== undefined && this.view) {\n this.view.alphaCompositingEnabled = value;\n }\n }\n\n @Prop({ mutable: true }) analyses: ArcGISSceneView[\"analyses\"];\n\n @Prop({ mutable: true }) basemapView: ArcGISSceneView[\"basemapView\"];\n\n @Prop({ mutable: true }) basemap: ArcGISWebScene[\"basemap\"];\n\n @Watch(\"basemap\")\n basemapWatcher(value: string): void {\n if (this.view?.map && isNullOrEmptyString(value)) {\n this.view.map.basemap = value as any;\n }\n }\n\n @Prop({ mutable: true }) camera: ArcGISSceneView[\"camera\"];\n\n @Watch(\"camera\")\n cameraWatcher(value: ArcGISSceneView[\"camera\"]): void {\n if (this.view && value && isNotSameCamera(this.view.camera, value)) {\n this.view.camera = value;\n }\n }\n\n @Prop({ mutable: true }) center: ArcGISSceneView[\"center\"] | string;\n\n @Watch(\"center\")\n centerWatcher(value: ArcGISSceneView[\"center\"]): void {\n if (this.view && value && !this.view.center?.equals(value)) {\n this.view.center = value;\n }\n }\n\n @Prop() clippingArea: ArcGISSceneView[\"clippingArea\"];\n\n @Watch(\"clippingArea\")\n clippingAreaWatcher(value: ArcGISSceneView[\"clippingArea\"]): void {\n if (this.view && value && !this.view.clippingArea?.equals(value)) {\n this.view.clippingArea = value;\n }\n }\n\n @Prop() constraints: ArcGISSceneView[\"constraints\"];\n\n @Watch(\"constraints\")\n constraintsWatcher(value: ArcGISSceneView[\"constraints\"]): void {\n if (this.view) {\n this.view.constraints = value;\n }\n }\n\n @Prop() destroyDisabled = false;\n\n @Prop({ mutable: true }) environment: ArcGISSceneView[\"environment\"];\n\n @Watch(\"environment\")\n environmentWatcher(value: ArcGISSceneView[\"environment\"]): void {\n if (\n this.view &&\n value &&\n isNotSameEnvironment(this.view.environment as __esri.Environment, value as __esri.Environment)\n ) {\n this.view.environment = value;\n }\n }\n\n @Prop({ mutable: true }) extent: ArcGISSceneView[\"extent\"];\n\n @Watch(\"extent\")\n extentWatcher(value: ArcGISSceneView[\"extent\"]): void {\n if (this.view && value && !this.view.extent.equals(value)) {\n this.view.extent = value;\n }\n }\n\n @Prop({ mutable: true }) fatalError: ArcGISSceneView[\"fatalError\"];\n\n @Prop() floors: ArcGISSceneView[\"floors\"];\n\n @Watch(\"floors\")\n floorsWatcher(value: ArcGISSceneView[\"floors\"]): void {\n if (this.view) {\n this.view.floors = value;\n }\n }\n\n @Prop({ mutable: true }) graphics: ArcGISSceneView[\"graphics\"];\n\n @Watch(\"graphics\")\n graphicsWatcher(value: ArcGISSceneView[\"graphics\"]): void {\n if (this.view) {\n this.view.graphics = value;\n }\n }\n\n @Prop({ mutable: true }) groundView: ArcGISSceneView[\"groundView\"];\n\n @Prop() highlightOptions: ArcGISSceneView[\"highlightOptions\"];\n\n @Watch(\"highlightOptions\")\n highlightOptionsWatcher(value: ArcGISSceneView[\"highlightOptions\"]): void {\n if (this.view) {\n this.view.highlightOptions = value;\n }\n }\n\n @Prop({ mutable: true }) interacting: ArcGISSceneView[\"interacting\"];\n\n @Prop({ mutable: true, reflect: true }) itemId: string;\n\n @Watch(\"itemId\")\n itemIdWatcher(value: string, old: string): void {\n // NOTE: there is an issue when users set the value to undefined.\n // https://github.com/ionic-team/stencil/issues/2814\n // If user sets `itemid` to `undefined`, Stencil 2 will log the following warning:\n // `The state/prop \"${propName}\" changed during rendering.`\n // `This can potentially lead to infinite-loops and other bugs.`\n //\n // It appears consumer setting the value to null does not cause this warning.\n // In Stencil 4, if a user sets property to undefined, will trigger change, but\n // will not remove attribute from DOM.\n if (value !== old) {\n if (this.view?.map) {\n this._updateMap();\n } else {\n this._loadMap();\n }\n }\n }\n\n @Prop({ mutable: true }) layerViews: ArcGISSceneView[\"layerViews\"];\n\n @Prop({ mutable: true }) magnifier: ArcGISSceneView[\"magnifier\"];\n\n @Prop({ mutable: true }) map: ArcGISWebScene;\n\n @Watch(\"map\")\n mapWatcher(value: ArcGISWebScene): void {\n if (this.view) {\n this.view.map = value;\n }\n }\n\n @Prop({ mutable: true }) navigating: ArcGISSceneView[\"navigating\"];\n\n @Prop({ mutable: true }) navigation: ArcGISSceneView[\"navigation\"];\n\n @Watch(\"navigation\")\n navigationWatcher(value: ArcGISSceneView[\"navigation\"]): void {\n if (this.view) {\n this.view.navigation = value;\n }\n }\n\n @Prop() padding: ArcGISSceneView[\"padding\"];\n\n @Watch(\"padding\")\n paddingWatcher(value: ArcGISSceneView[\"padding\"]): void {\n if (this.view) {\n this.view.padding = value;\n }\n }\n\n @Prop({ mutable: true }) performanceInfo: ArcGISSceneView[\"performanceInfo\"];\n\n @Prop({ mutable: true }) popup: ArcGISSceneView[\"popup\"];\n\n @Prop() popupEnabled: ArcGISSceneView[\"popupEnabled\"];\n\n @Watch(\"popupEnabled\")\n popupEnabledWatcher(value: ArcGISSceneView[\"popupEnabled\"]): void {\n if (value !== undefined && this.view) {\n this.view.popupEnabled = value;\n }\n }\n\n @Prop({ mutable: true }) qualityProfile: ArcGISSceneView[\"qualityProfile\"];\n\n @Watch(\"qualityProfile\")\n qualityProfileWatcher(value: ArcGISSceneView[\"qualityProfile\"]): void {\n if (this.view && this.view.qualityProfile !== value) {\n this.view.qualityProfile = value;\n }\n }\n\n @Prop({ mutable: true }) ready: ArcGISSceneView[\"ready\"];\n\n @Prop({ mutable: true }) resolution: ArcGISSceneView[\"resolution\"];\n\n @Prop({ mutable: true }) scale: number;\n\n @Watch(\"scale\")\n scaleWatcher(value: number, old: number): void {\n if (this.view && this.view.stationary && !this.view.interacting && value != null && value !== old) {\n this.view.scale = value;\n }\n }\n\n @Prop({ mutable: true }) spatialReference: ArcGISSceneView[\"spatialReference\"];\n\n @Watch(\"spatialReference\")\n spatialReferenceWatcher(value: ArcGISSceneView[\"spatialReference\"]): void {\n if (this.view && value && !this.view.spatialReference.equals(value)) {\n this.view.spatialReference = value;\n }\n }\n\n @Prop({ mutable: true }) stationary: ArcGISSceneView[\"stationary\"];\n\n @Prop({ mutable: true, reflect: true }) suspended: ArcGISSceneView[\"suspended\"];\n\n @Prop() theme: ArcGISSceneView[\"theme\"];\n\n @Watch(\"theme\")\n themeWatcher(value: ArcGISSceneView[\"theme\"]): void {\n if (this.view) {\n this.view.theme = value;\n }\n }\n\n @Prop() timeExtent: ArcGISSceneView[\"timeExtent\"];\n\n @Watch(\"timeExtent\")\n timeExtentWatcher(value: ArcGISSceneView[\"timeExtent\"]): void {\n if (this.view) {\n this.view.timeExtent = value;\n }\n }\n\n // Start functions as properties\n\n @Prop({ mutable: true }) toMap: ArcGISSceneView[\"toMap\"];\n\n @Prop({ mutable: true }) toScreen: ArcGISSceneView[\"toScreen\"];\n\n // End functions as properties\n\n @Prop({ mutable: true, reflect: true }) updating: ArcGISSceneView[\"updating\"];\n\n @Prop() viewingMode: ArcGISSceneView[\"viewingMode\"];\n\n @Watch(\"viewingMode\")\n viewingModeWatcher(value: ArcGISSceneView[\"viewingMode\"]): void {\n if (this.view) {\n this.view.viewingMode = value;\n }\n }\n\n @Prop({ mutable: true }) viewpoint: ArcGISSceneView[\"viewpoint\"];\n\n @Watch(\"viewpoint\")\n viewpointWatcher(value: ArcGISSceneView[\"viewpoint\"]): void {\n if (this.view && isNotSameViewpoint(this.view.viewpoint, value)) {\n this.view.viewpoint = value;\n }\n }\n\n @Prop({ mutable: true, reflect: true }) zoom: number;\n\n @Watch(\"zoom\")\n zoomWatcher(value: number, old: number): void {\n if (this.view && this.view.stationary && !this.view.interacting && value !== old && isValidInteger(value)) {\n this.view.zoom = value;\n }\n }\n\n /**\n * Internal view of the component.\n */\n @Prop({ mutable: true }) view: ArcGISSceneView;\n\n @Prop() disableNavigation = false;\n\n config: __esri.config;\n\n _watchHandles: __esri.WatchHandle[] = [];\n\n //--------------------------------------------------------------------------\n //\n // Events\n //\n //--------------------------------------------------------------------------\n\n @Event({ cancelable: true }) arcgisViewReadyChange!: EventEmitter;\n @Event({ cancelable: true }) arcgisViewChange!: EventEmitter;\n\n // proxy view events\n @Event({ cancelable: true }) arcgisViewClick!: EventEmitter<__esri.ViewClickEvent>;\n @Event({ cancelable: true }) arcgisViewDoubleClick!: EventEmitter<__esri.ViewDoubleClickEvent>;\n @Event({ cancelable: true }) arcgisViewDrag!: EventEmitter<__esri.ViewDragEvent>;\n @Event({ cancelable: true }) arcgisViewHold!: EventEmitter<__esri.ViewHoldEvent>;\n @Event({ cancelable: true }) arcgisViewImmediateClick!: EventEmitter<__esri.ViewImmediateClickEvent>;\n @Event({ cancelable: true }) arcgisViewImmediateDoubleClick!: EventEmitter<__esri.ViewImmediateDoubleClickEvent>;\n @Event({ cancelable: true }) arcgisViewKeyDown!: EventEmitter<__esri.ViewKeyDownEvent>;\n @Event({ cancelable: true }) arcgisViewKeyUp!: EventEmitter<__esri.ViewKeyUpEvent>;\n @Event({ cancelable: true }) arcgisViewLayerviewCreate!: EventEmitter<__esri.ViewLayerviewCreateEvent>;\n @Event({ cancelable: true }) arcgisViewLayerviewCreateError!: EventEmitter<__esri.ViewLayerviewCreateErrorEvent>;\n @Event({ cancelable: true }) arcgisViewLayerviewDestroy!: EventEmitter<__esri.ViewLayerviewDestroyEvent>;\n @Event({ cancelable: true }) arcgisViewMouseWheel!: EventEmitter<__esri.ViewMouseWheelEvent>;\n @Event({ cancelable: true }) arcgisViewPointerDown!: EventEmitter<__esri.ViewPointerDownEvent>;\n @Event({ cancelable: true }) arcgisViewPointerEnter!: EventEmitter<__esri.ViewPointerEnterEvent>;\n @Event({ cancelable: true }) arcgisViewPointerLeave!: EventEmitter<__esri.ViewPointerLeaveEvent>;\n @Event({ cancelable: true }) arcgisViewPointerMove!: EventEmitter<__esri.ViewPointerMoveEvent>;\n @Event({ cancelable: true }) arcgisViewPointerUp!: EventEmitter<__esri.ViewPointerUpEvent>;\n\n //--------------------------------------------------------------------------\n //\n // Methods\n //\n //--------------------------------------------------------------------------\n\n @Method()\n async closePopup(): Promise<void> {\n this.view?.closePopup();\n }\n\n @Method()\n async destroy(): Promise<void> {\n if (this.destroyDisabled) {\n this._clearWatchHandles();\n this.view.destroy();\n }\n }\n\n @Method()\n async goTo(target: __esri.GoToTarget3D, options?: __esri.GoToOptions3D): Promise<void> {\n return await this.view?.goTo(target, options);\n }\n\n @Method()\n async hitTest(screenPoint: __esri.ScreenPoint, options?: Record<string, any>): Promise<__esri.HitTestResult> {\n return await this.view?.hitTest(screenPoint, options);\n }\n\n @Method()\n async openPopup(options?: Record<string, any>): Promise<void> {\n return await this.view?.openPopup(options);\n }\n\n @Method()\n async takeScreenshot(options?: Record<string, any>): Promise<__esri.Screenshot> {\n return await this.view?.takeScreenshot(options);\n }\n\n @Method()\n async tryFatalErrorRecovery(): Promise<void> {\n this.view?.tryFatalErrorRecovery();\n }\n\n @Method()\n async whenAnalysisView(\n analysis:\n | __esri.AreaMeasurementAnalysis\n | __esri.DimensionAnalysis\n | __esri.DirectLineMeasurementAnalysis\n | __esri.LineOfSightAnalysis\n | __esri.SliceAnalysis\n ): Promise<\n | __esri.AreaMeasurementAnalysisView3D\n | __esri.DimensionAnalysisView\n | __esri.DirectLineMeasurementAnalysisView3D\n | __esri.LineOfSightAnalysisView3D\n | __esri.SliceAnalysisView3D\n > {\n return await this.view?.whenAnalysisView(analysis);\n }\n\n @Method()\n async whenLayerView(layer: __esri.Layer): Promise<__esri.LayerView> {\n return await this.view?.whenLayerView(layer);\n }\n\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n\n async connectedCallback(): Promise<void> {\n this.view = await newViewsSceneView({});\n }\n\n async componentWillLoad(): Promise<void> {\n await this._loadMap();\n }\n\n componentDidRender(): void {\n if (this.view && !this.view.container) {\n this.view.container = this.el;\n }\n }\n\n componentDidLoad(): void {\n this._proxyEvents();\n }\n\n disconnectedCallback(): void {\n this.destroy();\n }\n\n render(): VNode {\n return <div class=\"arcgis-scene\" ref={(el) => (this.el = el!)}></div>;\n }\n\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n\n private _clearWatchHandles(): void {\n this._watchHandles.forEach((handle) => handle.remove());\n this._watchHandles = [];\n }\n\n private async _addWatchers() {\n const { watch, when } = await importCoreReactiveUtils();\n\n addHandles(this, [\n // watch for ready and emit arcgisViewReadyChange event\n watch(\n () => this.view.ready,\n () => {\n this.ready = this.view.ready;\n this.arcgisViewReadyChange.emit();\n },\n {\n initial: true\n }\n ),\n // watch for stationary and emit arcgisViewChange event\n watch(\n () => this.view.stationary,\n () => {\n this.stationary = this.view.stationary;\n this.interacting = this.view.interacting;\n this.navigating = this.view.navigating;\n this.arcgisViewChange.emit();\n },\n {\n initial: true\n }\n ),\n // when view stationary is true, update these props:\n // zoom, scale, center, rotation, extent, camera, viewpoint\n when(\n () => this.view.stationary,\n () => {\n this.camera = this.view.camera;\n this.center = this.view.center;\n this.extent = this.view.extent;\n this.scale = this.view.scale;\n this.viewpoint = this.view.viewpoint;\n this.zoom = this.view.zoom;\n this.spatialReference = this.view.spatialReference;\n }\n ),\n // watchers for other props to update component\n watch(\n () => this.view.allLayerViews,\n () => {\n this.allLayerViews = this.view.allLayerViews;\n },\n {\n initial: true\n }\n ),\n watch(\n () => this.view.analyses,\n () => {\n this.analyses = this.view.analyses;\n },\n {\n initial: true\n }\n ),\n watch(\n () => this.view.map?.basemap,\n () => {\n this.basemap = this.view.map?.basemap as any;\n },\n {\n initial: true\n }\n ),\n watch(\n () => this.view.basemapView,\n () => {\n this.basemapView = this.view.basemapView;\n },\n {\n initial: true\n }\n ),\n watch(\n () => this.view.environment,\n () => {\n this.environment = this.view.environment;\n },\n {\n initial: true\n }\n ),\n watch(\n () => this.view.fatalError,\n () => {\n this.fatalError = this.view.fatalError;\n },\n {\n initial: true\n }\n ),\n watch(\n () => this.view.graphics,\n () => {\n this.graphics = this.view.graphics;\n },\n {\n initial: true\n }\n ),\n watch(\n () => this.view.groundView,\n () => {\n this.groundView = this.view.groundView;\n },\n {\n initial: true\n }\n ),\n // Start: arcgisStationaryChange events\n watch(\n () => this.view.interacting,\n () => {\n this.interacting = this.view.interacting;\n }\n ),\n watch(\n () => this.view.navigating,\n () => {\n this.navigating = this.view.navigating;\n }\n ),\n watch(\n () => this.view.stationary,\n () => {\n this.stationary = this.view.stationary;\n }\n ),\n watch(\n () => this.view.layerViews,\n () => {\n this.layerViews = this.view.layerViews;\n },\n {\n initial: true\n }\n ),\n watch(\n () => this.view.navigation,\n () => {\n this.navigation = this.view.navigation;\n },\n {\n initial: true\n }\n ),\n watch(\n () => this.view.map,\n () => {\n this.map = this.view.map as __esri.WebScene;\n },\n {\n initial: true\n }\n ),\n watch(\n () => this.view.performanceInfo,\n () => {\n this.performanceInfo = this.view.performanceInfo;\n }\n ),\n watch(\n () => this.view.popup,\n () => {\n this.popup = this.view.popup;\n },\n {\n initial: true\n }\n ),\n watch(\n () => this.view.qualityProfile,\n () => {\n this.qualityProfile = this.view.qualityProfile;\n },\n {\n initial: true\n }\n ),\n watch(\n () => this.view.resolution,\n () => {\n this.resolution = this.view.resolution;\n },\n {\n initial: true\n }\n ),\n watch(\n () => this.view.suspended,\n () => {\n this.suspended = this.view.suspended;\n },\n {\n initial: true\n }\n ),\n watch(\n () => this.view.updating,\n () => {\n this.updating = this.view.updating;\n },\n {\n initial: true\n }\n )\n ]);\n }\n\n private async _createMap(): Promise<__esri.WebScene> {\n const mapParams: Partial<__esri.WebScene> = {};\n\n if (this.itemId) {\n mapParams.portalItem = this._createPortalItem() as any;\n }\n\n if (this.basemap) {\n mapParams.basemap = this.basemap as any;\n } else if (isNullOrEmptyString(this.itemId)) {\n mapParams.basemap = \"topo-vector\" as any;\n }\n\n const map = await newWebScene(mapParams);\n return map;\n }\n\n private _createPortalItem(): Partial<__esri.PortalItemProperties> {\n const item: Partial<__esri.PortalItemProperties> = {};\n\n if (this.itemId) {\n item.id = this.itemId;\n }\n\n return item;\n }\n\n private _createViewParams(): Partial<__esri.SceneViewProperties> {\n const params: Partial<__esri.SceneViewProperties> = {};\n\n if (this.center) {\n if (typeof this.center === \"string\") {\n params.center = this.center.split(\",\").map((x) => Number(x));\n } else {\n params.center = this.center;\n }\n }\n\n if (this.constraints) {\n params.constraints = this.constraints;\n }\n\n if (this.extent) {\n params.extent = this.extent;\n }\n\n if (this.floors) {\n params.floors = this.floors;\n }\n\n if (this.highlightOptions) {\n params.highlightOptions = this.highlightOptions;\n }\n\n if (this.map) {\n params.map = this.map;\n }\n\n if (this.navigation) {\n params.navigation = this.navigation;\n }\n\n if (this.popupEnabled !== undefined) {\n params.popupEnabled = this.popupEnabled;\n }\n\n if (this.scale !== undefined) {\n params.scale = this.scale;\n }\n\n if (this.spatialReference) {\n params.spatialReference = this.spatialReference;\n }\n\n if (this.theme) {\n params.theme = this.theme;\n }\n\n if (this.timeExtent) {\n params.timeExtent = this.timeExtent;\n }\n\n if (this.viewpoint) {\n params.viewpoint = this.viewpoint;\n }\n\n if (this.zoom !== undefined) {\n params.zoom = this.zoom;\n }\n\n return params;\n }\n\n private async _loadMap(): Promise<void> {\n const map = await this._createMap();\n\n const params = this._createViewParams();\n\n const view = await newViewsSceneView({\n map,\n ...params\n });\n\n this.view = view;\n\n view.when(async () => {\n // proxy view functions\n this.toMap = view.toMap.bind(view);\n this.toScreen = view.toScreen.bind(view);\n await this._addWatchers();\n });\n }\n\n private _proxyEvents(): void {\n addHandles(this, [\n this.view.on(\"click\", (event) => {\n this.arcgisViewClick.emit(event);\n }),\n this.view.on(\"double-click\", (event) => {\n this.arcgisViewDoubleClick.emit(event);\n }),\n this.view.on(\"drag\", (event) => {\n this.arcgisViewDrag.emit(event);\n }),\n this.view.on(\"hold\", (event) => {\n this.arcgisViewHold.emit(event);\n }),\n this.view.on(\"immediate-click\", (event) => {\n this.arcgisViewImmediateClick.emit(event);\n }),\n this.view.on(\"immediate-double-click\", (event) => {\n this.arcgisViewImmediateDoubleClick.emit(event);\n }),\n this.view.on(\"key-down\", (event) => {\n this.arcgisViewKeyDown.emit(event);\n }),\n this.view.on(\"key-up\", (event) => {\n this.arcgisViewKeyUp.emit(event);\n }),\n this.view.on(\"layerview-create\", (event) => {\n this.arcgisViewLayerviewCreate.emit(event);\n }),\n this.view.on(\"layerview-create-error\", (event) => {\n this.arcgisViewLayerviewCreateError.emit(event);\n }),\n this.view.on(\"layerview-destroy\", (event) => {\n this.arcgisViewLayerviewDestroy.emit(event);\n }),\n this.view.on(\"mouse-wheel\", (event) => {\n this.arcgisViewMouseWheel.emit(event);\n }),\n this.view.on(\"pointer-down\", (event) => {\n this.arcgisViewPointerDown.emit(event);\n }),\n this.view.on(\"pointer-enter\", (event) => {\n this.arcgisViewPointerEnter.emit(event);\n }),\n this.view.on(\"pointer-leave\", (event) => {\n this.arcgisViewPointerLeave.emit(event);\n }),\n this.view.on(\"pointer-move\", (event) => {\n this.arcgisViewPointerMove.emit(event);\n }),\n this.view.on(\"pointer-up\", (event) => {\n this.arcgisViewPointerUp.emit(event);\n })\n ]);\n }\n\n private async _updateMap(): Promise<void> {\n if (this.view?.map) {\n this.view.map.destroy();\n const map = await this._createMap();\n this.view.map = map;\n }\n }\n}\n"],"mappings":"wOAAA,MAAMA,EAAoB,G,MCmBbC,EAAoB,M,kEA2D/BC,KAAAC,cAAsC,G,2EA/BnB,c,gBASE,M,gEAfrB,uBAAAC,CAAwBC,GACtBC,EAAuBJ,KAAMG,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".arcgis-map{padding:0;margin:0;height:100%;width:100%}";const f=class{constructor(s){i(this,s);this.arcgisViewReadyChange=t(this,"arcgisViewReadyChange",7);this.arcgisViewChange=t(this,"arcgisViewChange",7);this.arcgisViewClick=t(this,"arcgisViewClick",7);this.arcgisViewDoubleClick=t(this,"arcgisViewDoubleClick",7);this.arcgisViewDrag=t(this,"arcgisViewDrag",7);this.arcgisViewHold=t(this,"arcgisViewHold",7);this.arcgisViewImmediateClick=t(this,"arcgisViewImmediateClick",7);this.arcgisViewImmediateDoubleClick=t(this,"arcgisViewImmediateDoubleClick",7);this.arcgisViewKeyDown=t(this,"arcgisViewKeyDown",7);this.arcgisViewKeyUp=t(this,"arcgisViewKeyUp",7);this.arcgisViewLayerviewCreate=t(this,"arcgisViewLayerviewCreate",7);this.arcgisViewLayerviewCreateError=t(this,"arcgisViewLayerviewCreateError",7);this.arcgisViewLayerviewDestroy=t(this,"arcgisViewLayerviewDestroy",7);this.arcgisViewMouseWheel=t(this,"arcgisViewMouseWheel",7);this.arcgisViewPointerDown=t(this,"arcgisViewPointerDown",7);this.arcgisViewPointerEnter=t(this,"arcgisViewPointerEnter",7);this.arcgisViewPointerLeave=t(this,"arcgisViewPointerLeave",7);this.arcgisViewPointerMove=t(this,"arcgisViewPointerMove",7);this.arcgisViewPointerUp=t(this,"arcgisViewPointerUp",7);this._watchHandles=[];this.allLayerViews=undefined;this.background=undefined;this.basemapView=undefined;this.basemap=undefined;this.center=undefined;this.constraints=undefined;this.destroyDisabled=false;this.extent=undefined;this.fatalError=undefined;this.floors=undefined;this.graphics=undefined;this.highlightOptions=undefined;this.interacting=undefined;this.itemId=undefined;this.layerViews=undefined;this.magnifier=undefined;this.map=undefined;this.navigating=undefined;this.navigation=undefined;this.padding=undefined;this.popup=undefined;this.popupEnabled=undefined;this.ready=undefined;this.resizeAlign=undefined;this.resolution=undefined;this.rotation=undefined;this.scale=undefined;this.spatialReference=undefined;this.stationary=undefined;this.suspended=undefined;this.theme=undefined;this.timeExtent=undefined;this.timeZone=undefined;this.toMap=undefined;this.toScreen=undefined;this.updating=undefined;this.viewpoint=undefined;this.zoom=undefined;this.view=undefined}backgroundWatcher(i){if(this.view){this.background=i}}basemapWatcher(i){if(this.view?.map&&r(i)){this.view.map.basemap=i}}centerWatcher(i){if(this.view&&i&&!this.view.center.equals(i)){this.view.center=i}}constraintsWatcher(i){if(this.view){this.view.constraints=i}}extentWatcher(i){if(this.view&&i&&!this.view.extent.equals(i)){this.view.extent=i}}floorsWatcher(i){if(this.view){this.view.floors=i}}graphicsWatcher(i){if(this.view){this.view.graphics=i}}highlightOptionsWatcher(i){if(this.view){this.view.highlightOptions=i}}itemIdWatcher(i,t){if(i!==t){if(this.view?.map){this._updateMap()}else{this._loadMap()}}}mapWatcher(i){if(this.view){this.view.map=i}}navigationWatcher(i){if(this.view){this.view.navigation=i}}paddingWatcher(i){if(this.view){this.view.padding=i}}popupEnabledWatcher(i){if(i!==undefined&&this.view){this.view.popupEnabled=i}}resizeAlignWatcher(i){if(this.view){this.view.resizeAlign=i}}rotationWatcher(i){if(this.view&&this.view.rotation!==i){this.view.rotation=i}}scaleWatcher(i,t){if(!this.view?.interacting&&i!=null&&i!==t){this.view.scale=i}}spatialReferenceWatcher(i){if(this.view&&i&&!this.view.spatialReference.equals(i)){this.view.spatialReference=i}}themeWatcher(i){if(this.view){this.view.theme=i}}timeExtentWatcher(i){if(this.view){this.view.timeExtent=i}}timeZoneWatcher(i){if(this.view){this.view.timeZone=i}}viewpointWatcher(i){if(this.view&&c(this.view.viewpoint,i)){this.view.viewpoint=i}}zoomWatcher(i,t){if(!this.view?.interacting&&i!=null&&i!==t){this.view.zoom=i}}async closePopup(){this.view?.closePopup()}async destroy(){if(this.destroyDisabled){this._clearWatchHandles();this.view.destroy()}}async goTo(i,t){return await(this.view?.goTo(i,t))}async hitTest(i,t){return await(this.view?.hitTest(i,t))}async openPopup(i){return await(this.view?.openPopup(i))}async takeScreenshot(i){return await(this.view?.takeScreenshot(i))}async tryFatalErrorRecovery(){this.view?.tryFatalErrorRecovery()}async whenLayerView(i){return await(this.view?.whenLayerView(i))}async connectedCallback(){this.view=await e({})}async componentWillLoad(){await this._loadMap()}componentDidRender(){if(this.view&&!this.view.container){this.view.container=this.el}}componentDidLoad(){this._proxyEvents()}disconnectedCallback(){this.destroy()}render(){return s("div",{class:"arcgis-map",ref:i=>this.el=i})}_clearWatchHandles(){this._watchHandles.forEach((i=>i.remove()));this._watchHandles=[]}async _addWatchers(){const{watch:i,when:t}=await a();d(this,[i((()=>this.view.ready),(()=>{this.ready=this.view.ready;this.arcgisViewReadyChange.emit()}),{initial:true}),i((()=>this.view.stationary),(()=>{this.stationary=this.view.stationary;this.interacting=this.view.interacting;this.navigating=this.view.navigating;this.arcgisViewChange.emit()}),{initial:true}),t((()=>this.view.stationary),(()=>{this.center=this.view.center;this.extent=this.view.extent;this.scale=this.view.scale;this.viewpoint=this.view.viewpoint;this.zoom=this.view.zoom;this.spatialReference=this.view.spatialReference})),i((()=>this.view.allLayerViews),(()=>{this.allLayerViews=this.view.allLayerViews}),{initial:true}),i((()=>this.view.map?.basemap),(()=>{this.basemap=this.view.map?.basemap}),{initial:true}),i((()=>this.view.fatalError),(()=>{this.fatalError=this.view.fatalError}),{initial:true}),i((()=>this.view.graphics),(()=>{this.graphics=this.view.graphics}),{initial:true}),i((()=>this.view.layerViews),(()=>{this.layerViews=this.view.layerViews}),{initial:true}),i((()=>this.view.navigation),(()=>{this.navigation=this.view.navigation}),{initial:true}),i((()=>this.view.map),(()=>{this.map=this.view.map}),{initial:true}),i((()=>this.view.popup),(()=>{this.popup=this.view.popup}),{initial:true}),i((()=>this.view.resolution),(()=>{this.resolution=this.view.resolution}),{initial:true}),i((()=>this.view.rotation),(()=>{this.rotation=this.view.rotation}),{initial:true}),i((()=>this.view.suspended),(()=>{this.suspended=this.view.suspended}),{initial:true}),i((()=>this.view.updating),(()=>{this.updating=this.view.updating}),{initial:true})])}async _createMap(){const i={};if(this.itemId){i.portalItem=this._createPortalItem()}if(this.basemap){i.basemap=this.basemap}else if(r(this.itemId)){i.basemap="topo-vector"}const t=await n(i);return t}_createPortalItem(){const i={};if(this.itemId){i.id=this.itemId}return i}_createViewParams(){const i={};if(this.background){i.background=this.background}if(this.center){if(typeof this.center==="string"){i.center=this.center.split(",").map((i=>Number(i)))}else{i.center=this.center}}if(this.constraints){i.constraints=this.constraints}if(this.extent){i.extent=this.extent}if(this.floors){i.floors=this.floors}if(this.highlightOptions){i.highlightOptions=this.highlightOptions}if(this.map){i.map=this.map}if(this.navigation){i.navigation=this.navigation}if(this.popupEnabled!==undefined){i.popupEnabled=this.popupEnabled}if(this.rotation!==undefined){i.rotation=this.rotation}if(this.scale!==undefined){i.scale=this.scale}if(this.spatialReference){i.spatialReference=this.spatialReference}if(this.theme){i.theme=this.theme}if(this.timeExtent){i.timeExtent=this.timeExtent}if(this.timeZone){i.timeZone=this.timeZone}if(this.viewpoint){i.viewpoint=this.viewpoint}if(this.zoom!==undefined){i.zoom=this.zoom}return i}async _loadMap(){this.map||(this.map=await this._createMap());const i=this._createViewParams();const t=await e({...i});this.view=t;t.when((async()=>{this.toMap=t.toMap.bind(t);this.toScreen=t.toScreen.bind(t);await this._addWatchers()}))}_proxyEvents(){d(this,[this.view.on("click",(i=>{this.arcgisViewClick.emit(i)})),this.view.on("double-click",(i=>{this.arcgisViewDoubleClick.emit(i)})),this.view.on("drag",(i=>{this.arcgisViewDrag.emit(i)})),this.view.on("hold",(i=>{this.arcgisViewHold.emit(i)})),this.view.on("immediate-click",(i=>{this.arcgisViewImmediateClick.emit(i)})),this.view.on("immediate-double-click",(i=>{this.arcgisViewImmediateDoubleClick.emit(i)})),this.view.on("key-down",(i=>{this.arcgisViewKeyDown.emit(i)})),this.view.on("key-up",(i=>{this.arcgisViewKeyUp.emit(i)})),this.view.on("layerview-create",(i=>{this.arcgisViewLayerviewCreate.emit(i)})),this.view.on("layerview-create-error",(i=>{this.arcgisViewLayerviewCreateError.emit(i)})),this.view.on("layerview-destroy",(i=>{this.arcgisViewLayerviewDestroy.emit(i)})),this.view.on("mouse-wheel",(i=>{this.arcgisViewMouseWheel.emit(i)})),this.view.on("pointer-down",(i=>{this.arcgisViewPointerDown.emit(i)})),this.view.on("pointer-enter",(i=>{this.arcgisViewPointerEnter.emit(i)})),this.view.on("pointer-leave",(i=>{this.arcgisViewPointerLeave.emit(i)})),this.view.on("pointer-move",(i=>{this.arcgisViewPointerMove.emit(i)})),this.view.on("pointer-up",(i=>{this.arcgisViewPointerUp.emit(i)}))])}async _updateMap(){if(this.view?.map){this.view.map.destroy();const i=await this._createMap();this.view.map=i}}get _hostElement(){return h(this)}static get watchers(){return{background:["backgroundWatcher"],basemap:["basemapWatcher"],center:["centerWatcher"],constraints:["constraintsWatcher"],extent:["extentWatcher"],floors:["floorsWatcher"],graphics:["graphicsWatcher"],highlightOptions:["highlightOptionsWatcher"],itemId:["itemIdWatcher"],map:["mapWatcher"],navigation:["navigationWatcher"],padding:["paddingWatcher"],popupEnabled:["popupEnabledWatcher"],resizeAlign:["resizeAlignWatcher"],rotation:["rotationWatcher"],scale:["scaleWatcher"],spatialReference:["spatialReferenceWatcher"],theme:["themeWatcher"],timeExtent:["timeExtentWatcher"],timeZone:["timeZoneWatcher"],viewpoint:["viewpointWatcher"],zoom:["zoomWatcher"]}}};f.style=o;export{f as arcgis_map};
2
- //# sourceMappingURL=p-c74a83ee.entry.js.map