@arcgis/map-components 1.0.0-beta.17 → 1.0.0-beta.19
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 -148
- package/dist/arcgis-map-components/index.esm.js +0 -1
- package/dist/arcgis-map-components/p-021530fd.entry.js +1 -0
- package/dist/arcgis-map-components/p-0685d15c.entry.js +1 -0
- package/dist/arcgis-map-components/p-09e15a1f.entry.js +1 -0
- package/dist/arcgis-map-components/p-0d77ce8d.entry.js +1 -0
- package/dist/arcgis-map-components/p-0f83c24c.entry.js +1 -0
- package/dist/arcgis-map-components/p-177a536e.entry.js +1 -0
- package/dist/arcgis-map-components/p-1977344d.entry.js +1 -0
- package/dist/arcgis-map-components/p-1b9d7fb5.entry.js +1 -0
- package/dist/arcgis-map-components/p-1e5e5ed9.js +2 -0
- package/dist/arcgis-map-components/p-20c7de19.entry.js +1 -0
- package/dist/arcgis-map-components/p-23aebf98.entry.js +1 -0
- package/dist/arcgis-map-components/p-2bb7a744.entry.js +1 -0
- package/dist/arcgis-map-components/p-2d3406f7.js +1 -0
- package/dist/arcgis-map-components/p-2fdc27af.entry.js +1 -0
- package/dist/arcgis-map-components/p-34df1205.entry.js +1 -0
- package/dist/arcgis-map-components/p-39df01ce.entry.js +1 -0
- package/dist/arcgis-map-components/p-39eb103e.entry.js +1 -0
- package/dist/arcgis-map-components/p-4b213105.entry.js +1 -0
- package/dist/arcgis-map-components/p-53d8e476.entry.js +1 -0
- package/dist/arcgis-map-components/p-57259fd5.entry.js +1 -0
- package/dist/arcgis-map-components/p-5924285b.entry.js +1 -0
- package/dist/arcgis-map-components/p-5cabdee7.js +1 -0
- package/dist/arcgis-map-components/p-68a75dc8.entry.js +1 -0
- package/dist/arcgis-map-components/p-68f62c97.entry.js +1 -0
- package/dist/arcgis-map-components/p-6951ecc2.entry.js +1 -0
- package/dist/arcgis-map-components/p-69aaaa8c.entry.js +1 -0
- package/dist/arcgis-map-components/p-71ba5d8c.entry.js +1 -0
- package/dist/arcgis-map-components/p-796aa573.entry.js +1 -0
- package/dist/arcgis-map-components/p-7e3965a6.entry.js +1 -0
- package/dist/arcgis-map-components/p-85e5fcb4.entry.js +1 -0
- package/dist/arcgis-map-components/p-91b9e93f.entry.js +1 -0
- package/dist/arcgis-map-components/p-9566f3ac.entry.js +1 -0
- package/dist/arcgis-map-components/p-9767670f.entry.js +1 -0
- package/dist/arcgis-map-components/p-9d0e9668.entry.js +1 -0
- package/dist/arcgis-map-components/p-a2ba2654.entry.js +1 -0
- package/dist/arcgis-map-components/p-a47f9c9c.entry.js +1 -0
- package/dist/arcgis-map-components/p-ac2a93fb.entry.js +1 -0
- package/dist/arcgis-map-components/p-b35cd7c1.entry.js +1 -0
- package/dist/arcgis-map-components/p-b59cc744.entry.js +1 -0
- package/dist/arcgis-map-components/p-b699b1d2.entry.js +1 -0
- package/dist/arcgis-map-components/p-b813c9e6.js +1 -0
- package/dist/arcgis-map-components/p-c2d35c80.entry.js +1 -0
- package/dist/arcgis-map-components/p-c9f47845.entry.js +1 -0
- package/dist/arcgis-map-components/p-ca9109da.entry.js +1 -0
- package/dist/arcgis-map-components/p-cdf352de.entry.js +1 -0
- package/dist/arcgis-map-components/p-d360bf58.entry.js +1 -0
- package/dist/arcgis-map-components/p-d3b14bf9.entry.js +1 -0
- package/dist/arcgis-map-components/p-de286635.entry.js +1 -0
- package/dist/arcgis-map-components/p-e230d0a1.entry.js +1 -0
- package/dist/arcgis-map-components/p-e3a2afb4.entry.js +1 -0
- package/dist/arcgis-map-components/p-e8b09e23.entry.js +1 -0
- package/dist/arcgis-map-components/p-ea6ae338.entry.js +1 -0
- package/dist/arcgis-map-components/p-ef4d2a7e.entry.js +1 -0
- package/dist/arcgis-map-components/p-f37dec12.entry.js +1 -0
- package/dist/arcgis-map-components/p-f62ad08d.entry.js +1 -0
- package/dist/arcgis-map-components/p-f6bc527c.js +1 -0
- package/dist/arcgis-map-components/p-f8e2e2ed.entry.js +1 -0
- package/dist/cjs/arcgis-area-measurement-2d.cjs.entry.js +101 -0
- package/dist/cjs/arcgis-area-measurement-3d.cjs.entry.js +94 -0
- package/dist/cjs/arcgis-attachments.cjs.entry.js +73 -0
- package/dist/cjs/arcgis-basemap-gallery_3.cjs.entry.js +281 -0
- package/dist/cjs/arcgis-basemap-layer-list.cjs.entry.js +144 -0
- package/dist/cjs/arcgis-basemap-toggle.cjs.entry.js +115 -0
- package/dist/cjs/arcgis-bookmarks.cjs.entry.js +140 -0
- package/dist/cjs/arcgis-building-explorer.cjs.entry.js +80 -0
- package/dist/cjs/arcgis-compass.cjs.entry.js +90 -0
- package/dist/cjs/arcgis-coordinate-conversion.cjs.entry.js +158 -0
- package/dist/cjs/arcgis-daylight.cjs.entry.js +116 -0
- package/dist/cjs/arcgis-directional-pad.cjs.entry.js +100 -0
- package/dist/cjs/arcgis-directions.cjs.entry.js +194 -0
- package/dist/cjs/arcgis-directline-measurement-3d.cjs.entry.js +114 -0
- package/dist/cjs/arcgis-distance-measurement-2d.cjs.entry.js +106 -0
- package/dist/cjs/arcgis-editor.cjs.entry.js +180 -0
- package/dist/cjs/arcgis-elevation-profile.cjs.entry.js +136 -0
- package/dist/cjs/arcgis-feature-form.cjs.entry.js +36 -0
- package/dist/cjs/arcgis-feature-table.cjs.entry.js +300 -0
- package/dist/cjs/arcgis-feature-templates.cjs.entry.js +73 -0
- package/dist/cjs/arcgis-feature.cjs.entry.js +106 -0
- package/dist/cjs/arcgis-features.cjs.entry.js +133 -0
- package/dist/cjs/arcgis-floor-filter.cjs.entry.js +134 -0
- package/dist/cjs/arcgis-fullscreen.cjs.entry.js +92 -0
- package/dist/cjs/arcgis-histogram-range-slider.cjs.entry.js +80 -0
- package/dist/cjs/arcgis-histogram.cjs.entry.js +36 -0
- package/dist/cjs/arcgis-home.cjs.entry.js +108 -0
- package/dist/cjs/arcgis-layer-list.cjs.entry.js +128 -0
- package/dist/cjs/arcgis-legend.cjs.entry.js +146 -0
- package/dist/cjs/arcgis-line-of-sight.cjs.entry.js +94 -0
- package/dist/cjs/arcgis-locate.cjs.entry.js +158 -0
- package/dist/cjs/arcgis-map-components.cjs.js +23 -0
- package/dist/cjs/arcgis-measurement.cjs.entry.js +123 -0
- package/dist/cjs/arcgis-navigation-toggle.cjs.entry.js +97 -0
- package/dist/cjs/arcgis-print.cjs.entry.js +163 -0
- package/dist/cjs/arcgis-scale-bar.cjs.entry.js +106 -0
- package/dist/cjs/arcgis-scale-range-slider.cjs.entry.js +146 -0
- package/dist/cjs/arcgis-scene.cjs.entry.js +106 -0
- package/dist/cjs/arcgis-search.cjs.entry.js +276 -0
- package/dist/cjs/arcgis-shadow-cast.cjs.entry.js +95 -0
- package/dist/cjs/arcgis-sketch.cjs.entry.js +201 -0
- package/dist/cjs/arcgis-slice.cjs.entry.js +103 -0
- package/dist/cjs/arcgis-slider.cjs.entry.js +233 -0
- package/dist/cjs/arcgis-swipe.cjs.entry.js +117 -0
- package/dist/cjs/arcgis-table-list.cjs.entry.js +118 -0
- package/dist/cjs/arcgis-time-slider.cjs.entry.js +216 -0
- package/dist/cjs/arcgis-track.cjs.entry.js +147 -0
- package/dist/cjs/arcgis-utility-network-associations.cjs.entry.js +220 -0
- package/dist/cjs/arcgis-utility-network-trace.cjs.entry.js +162 -0
- package/dist/cjs/arcgis-utility-network-validate-topology.cjs.entry.js +110 -0
- package/dist/cjs/arcgis-value-picker.cjs.entry.js +160 -0
- package/dist/cjs/arcgis-weather.cjs.entry.js +86 -0
- package/dist/cjs/arcgis-zoom.cjs.entry.js +100 -0
- package/dist/cjs/component-utils-cbd20e88.js +77 -0
- package/dist/cjs/disconnected-306cb220.js +55 -0
- package/dist/cjs/index-6b51d5a0.js +1619 -0
- package/dist/cjs/index-fda6ecee.js +753 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +22 -0
- package/dist/cjs/mapping-utils-c2c7b994.js +40 -0
- package/dist/components/arcgis-area-measurement-2d.js +128 -0
- package/dist/components/arcgis-area-measurement-3d.js +121 -0
- package/dist/components/arcgis-attachments.js +99 -0
- package/dist/{arcgis-map-components/arcgis-basemap-gallery.entry.js → components/arcgis-basemap-gallery.js} +42 -11
- package/dist/components/arcgis-basemap-layer-list.js +175 -0
- package/dist/components/arcgis-basemap-toggle.js +143 -0
- package/dist/components/arcgis-bookmarks.js +169 -0
- package/dist/components/arcgis-building-explorer.js +105 -0
- package/dist/components/arcgis-compass.js +109 -0
- package/dist/components/arcgis-coordinate-conversion.js +193 -0
- package/dist/components/arcgis-daylight.js +144 -0
- package/dist/components/arcgis-directional-pad.d.ts +11 -0
- package/dist/components/arcgis-directional-pad.js +126 -0
- package/dist/components/arcgis-directions.js +230 -0
- package/dist/components/arcgis-directline-measurement-3d.js +142 -0
- package/dist/components/arcgis-distance-measurement-2d.js +133 -0
- package/dist/components/arcgis-editor.js +219 -0
- package/dist/components/arcgis-elevation-profile.js +166 -0
- package/dist/components/arcgis-expand.js +6 -0
- package/dist/{arcgis-map-components/arcgis-expand.entry.js → components/arcgis-expand2.js} +30 -11
- package/dist/components/arcgis-feature-form.js +55 -0
- package/dist/components/arcgis-feature-table.js +355 -0
- package/dist/components/arcgis-feature-templates.js +98 -0
- package/dist/components/arcgis-feature.js +133 -0
- package/dist/components/arcgis-features.js +169 -0
- package/dist/components/arcgis-floor-filter.js +164 -0
- package/dist/components/arcgis-fullscreen.js +111 -0
- package/dist/components/arcgis-histogram-range-slider.js +106 -0
- package/dist/components/arcgis-histogram.js +55 -0
- package/dist/components/arcgis-home.js +129 -0
- package/dist/components/arcgis-layer-list.js +158 -0
- package/dist/components/arcgis-legend.js +177 -0
- package/dist/components/arcgis-line-of-sight.js +120 -0
- package/dist/components/arcgis-locate.js +184 -0
- package/dist/{arcgis-map-components/arcgis-map.entry.js → components/arcgis-map.js} +36 -10
- package/dist/components/arcgis-measurement.js +153 -0
- package/dist/components/arcgis-navigation-toggle.js +117 -0
- package/dist/components/arcgis-print.js +197 -0
- package/dist/components/arcgis-scale-bar.js +133 -0
- package/dist/components/arcgis-scale-range-slider.js +177 -0
- package/dist/components/arcgis-scene.js +127 -0
- package/dist/components/arcgis-search.js +330 -0
- package/dist/components/arcgis-shadow-cast.js +121 -0
- package/dist/components/arcgis-sketch.js +238 -0
- package/dist/components/arcgis-slice.js +130 -0
- package/dist/components/arcgis-slider.js +281 -0
- package/dist/components/arcgis-swipe.js +140 -0
- package/dist/components/arcgis-table-list.js +147 -0
- package/dist/components/arcgis-time-slider.js +256 -0
- package/dist/components/arcgis-track.js +171 -0
- package/dist/components/arcgis-utility-network-associations.d.ts +11 -0
- package/dist/components/arcgis-utility-network-associations.js +258 -0
- package/dist/components/arcgis-utility-network-trace.js +197 -0
- package/dist/components/arcgis-utility-network-validate-topology.d.ts +11 -0
- package/dist/components/arcgis-utility-network-validate-topology.js +137 -0
- package/dist/components/arcgis-value-picker.js +198 -0
- package/dist/components/arcgis-weather.js +111 -0
- package/dist/components/arcgis-zoom.js +121 -0
- package/dist/components/disconnected.js +122 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +55 -0
- package/dist/components/index2.js +671 -0
- package/dist/{arcgis-map-components → esm}/arcgis-area-measurement-2d.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-area-measurement-3d.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-attachments.entry.js +2 -2
- package/dist/esm/arcgis-basemap-gallery_3.entry.js +275 -0
- package/dist/{arcgis-map-components → esm}/arcgis-basemap-layer-list.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-basemap-toggle.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-bookmarks.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-building-explorer.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-compass.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-coordinate-conversion.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-daylight.entry.js +3 -3
- package/dist/esm/arcgis-directional-pad.entry.js +96 -0
- package/dist/{arcgis-map-components → esm}/arcgis-directions.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-directline-measurement-3d.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-distance-measurement-2d.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-editor.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-elevation-profile.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-feature-form.entry.js +2 -2
- package/dist/{arcgis-map-components → esm}/arcgis-feature-table.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-feature-templates.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-feature.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-features.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-floor-filter.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-fullscreen.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-histogram-range-slider.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-histogram.entry.js +2 -2
- package/dist/{arcgis-map-components → esm}/arcgis-home.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-layer-list.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-legend.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-line-of-sight.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-locate.entry.js +3 -3
- package/dist/esm/arcgis-map-components.js +18 -0
- package/dist/{arcgis-map-components → esm}/arcgis-measurement.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-navigation-toggle.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-print.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-scale-bar.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-scale-range-slider.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-scene.entry.js +2 -2
- package/dist/{arcgis-map-components → esm}/arcgis-search.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-shadow-cast.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-sketch.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-slice.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-slider.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-swipe.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-table-list.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-time-slider.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-track.entry.js +3 -3
- package/dist/esm/arcgis-utility-network-associations.entry.js +216 -0
- package/dist/{arcgis-map-components → esm}/arcgis-utility-network-trace.entry.js +3 -3
- package/dist/esm/arcgis-utility-network-validate-topology.entry.js +106 -0
- package/dist/{arcgis-map-components → esm}/arcgis-value-picker.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-weather.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-zoom.entry.js +3 -3
- package/dist/{arcgis-map-components/component-utils-d3552de2.js → esm/component-utils-2ebdae59.js} +1 -1
- package/dist/esm/index-98b79a87.js +671 -0
- package/dist/esm/index-eb3ead33.js +1591 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +18 -0
- package/dist/esm/mapping-utils-26beb904.js +38 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +3 -0
- package/dist/loader/index.cjs.js +3 -0
- package/dist/loader/index.d.ts +21 -0
- package/dist/loader/index.es2017.js +3 -0
- package/dist/loader/index.js +4 -0
- package/dist/loader/package.json +11 -0
- package/dist/types/components/arcgis-directional-pad/arcgis-directional-pad.d.ts +27 -0
- package/dist/types/components/arcgis-utility-network-associations/arcgis-utility-network-associations.d.ts +50 -0
- package/dist/types/components/arcgis-utility-network-validate-topology/arcgis-utility-network-validate-topology.d.ts +28 -0
- package/dist/types/components.d.ts +119 -0
- package/package.json +7 -6
- package/dist/arcgis-map-components/app-globals-0f993ce5.js +0 -3
- package/dist/arcgis-map-components/css-shim-b7d3d95f.js +0 -4
- package/dist/arcgis-map-components/dom-64053c71.js +0 -73
- package/dist/arcgis-map-components/index-82d260eb.js +0 -8293
- package/dist/arcgis-map-components/index-d9a93dfb.js +0 -3371
- package/dist/arcgis-map-components/shadow-css-008a49f5.js +0 -387
- /package/dist/{arcgis-map-components/mapping-utils-26beb904.js → components/mapping-utils.js} +0 -0
- /package/dist/{arcgis-map-components → esm}/disconnected-bc5fc8bc.js +0 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { H as newWidgetsLocate } from './index2.js';
|
|
3
|
+
import { r as referenceElementHelper, c as checkForView, o as onDisconnectedHelper } from './disconnected.js';
|
|
4
|
+
|
|
5
|
+
const arcgisLocateCss = "arcgis-locate{}";
|
|
6
|
+
|
|
7
|
+
const ArcgisLocate$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
12
|
+
this.locateSuccess = createEvent(this, "locateSuccess", 7);
|
|
13
|
+
this.locateError = createEvent(this, "locateError", 7);
|
|
14
|
+
this.referenceElement = undefined;
|
|
15
|
+
this.geolocationOptions = undefined;
|
|
16
|
+
this.goToLocationEnabled = undefined;
|
|
17
|
+
this.graphic = undefined;
|
|
18
|
+
this.popupEnabled = undefined;
|
|
19
|
+
this.scale = undefined;
|
|
20
|
+
this.position = "bottom-left";
|
|
21
|
+
this.view = undefined;
|
|
22
|
+
this.widget = undefined;
|
|
23
|
+
this.useHeadingEnabled = true;
|
|
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
|
+
geolocationOptionsWatcher(newValue) {
|
|
38
|
+
if (newValue !== undefined && this.widget) {
|
|
39
|
+
this.widget.geolocationOptions = newValue;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
goToLocationEnabledWatcher(newValue) {
|
|
43
|
+
if (newValue !== undefined && this.widget) {
|
|
44
|
+
this.widget.goToLocationEnabled = newValue;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
graphicWatcher(newValue) {
|
|
48
|
+
if (newValue !== undefined && this.widget) {
|
|
49
|
+
this.widget.graphic = newValue;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
popupEnabledWatcher(newValue) {
|
|
53
|
+
if (newValue !== undefined && this.widget) {
|
|
54
|
+
this.widget.popupEnabled = newValue;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
scaleWatcher(newValue) {
|
|
58
|
+
if (newValue !== undefined && this.widget) {
|
|
59
|
+
this.widget.scale = newValue;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
referenceElementWatcher(newValue) {
|
|
63
|
+
referenceElementHelper(this, newValue);
|
|
64
|
+
}
|
|
65
|
+
viewWatcher(newValue) {
|
|
66
|
+
if (newValue !== undefined && this.widget) {
|
|
67
|
+
this.widget.view = newValue;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
useHeadingWatcher(newValue) {
|
|
71
|
+
if (this.widget) {
|
|
72
|
+
this.widget.useHeadingEnabled = newValue;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
//--------------------------------------------------------------------------
|
|
76
|
+
//
|
|
77
|
+
// Methods
|
|
78
|
+
//
|
|
79
|
+
//--------------------------------------------------------------------------
|
|
80
|
+
async cancelLocate() {
|
|
81
|
+
return this.widget?.cancelLocate();
|
|
82
|
+
}
|
|
83
|
+
async locate() {
|
|
84
|
+
return this.widget?.locate();
|
|
85
|
+
}
|
|
86
|
+
//--------------------------------------------------------------------------
|
|
87
|
+
//
|
|
88
|
+
// Lifecycle
|
|
89
|
+
//
|
|
90
|
+
//--------------------------------------------------------------------------
|
|
91
|
+
async componentDidLoad() {
|
|
92
|
+
const params = this._createParams();
|
|
93
|
+
const widget = await newWidgetsLocate(params);
|
|
94
|
+
this.widget = widget;
|
|
95
|
+
this._proxyEvents();
|
|
96
|
+
this.widgetReady.emit(true);
|
|
97
|
+
checkForView(this);
|
|
98
|
+
}
|
|
99
|
+
disconnectedCallback() {
|
|
100
|
+
onDisconnectedHelper(this);
|
|
101
|
+
}
|
|
102
|
+
render() {
|
|
103
|
+
return h("div", { ref: (el) => (this.childElem = el) });
|
|
104
|
+
}
|
|
105
|
+
//--------------------------------------------------------------------------
|
|
106
|
+
//
|
|
107
|
+
// Private Methods
|
|
108
|
+
//
|
|
109
|
+
//--------------------------------------------------------------------------
|
|
110
|
+
_createParams() {
|
|
111
|
+
const params = {
|
|
112
|
+
container: this.childElem,
|
|
113
|
+
useHeadingEnabled: this.useHeadingEnabled
|
|
114
|
+
};
|
|
115
|
+
if (this.geolocationOptions !== undefined) {
|
|
116
|
+
params.geolocationOptions = this.geolocationOptions;
|
|
117
|
+
}
|
|
118
|
+
if (this.goToLocationEnabled !== undefined) {
|
|
119
|
+
params.goToLocationEnabled = this.goToLocationEnabled;
|
|
120
|
+
}
|
|
121
|
+
if (this.graphic !== undefined) {
|
|
122
|
+
params.graphic = this.graphic;
|
|
123
|
+
}
|
|
124
|
+
if (this.popupEnabled !== undefined) {
|
|
125
|
+
params.popupEnabled = this.popupEnabled;
|
|
126
|
+
}
|
|
127
|
+
if (this.scale !== undefined) {
|
|
128
|
+
params.scale = this.scale;
|
|
129
|
+
}
|
|
130
|
+
if (this.view) {
|
|
131
|
+
params.view = this.view;
|
|
132
|
+
}
|
|
133
|
+
return params;
|
|
134
|
+
}
|
|
135
|
+
async _proxyEvents() {
|
|
136
|
+
this.widget?.on("locate", (e) => this.locateSuccess.emit(e));
|
|
137
|
+
this.widget?.on("locate-error", (e) => this.locateError.emit(e));
|
|
138
|
+
}
|
|
139
|
+
get el() { return this; }
|
|
140
|
+
static get watchers() { return {
|
|
141
|
+
"position": ["positionWatcher"],
|
|
142
|
+
"geolocationOptions": ["geolocationOptionsWatcher"],
|
|
143
|
+
"goToLocationEnabled": ["goToLocationEnabledWatcher"],
|
|
144
|
+
"graphic": ["graphicWatcher"],
|
|
145
|
+
"popupEnabled": ["popupEnabledWatcher"],
|
|
146
|
+
"scale": ["scaleWatcher"],
|
|
147
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
148
|
+
"view": ["viewWatcher"],
|
|
149
|
+
"useHeadingEnabled": ["useHeadingWatcher"]
|
|
150
|
+
}; }
|
|
151
|
+
static get style() { return arcgisLocateCss; }
|
|
152
|
+
}, [0, "arcgis-locate", {
|
|
153
|
+
"referenceElement": [1, "reference-element"],
|
|
154
|
+
"geolocationOptions": [8, "geolocation-options"],
|
|
155
|
+
"goToLocationEnabled": [4, "go-to-location-enabled"],
|
|
156
|
+
"graphic": [16],
|
|
157
|
+
"popupEnabled": [4, "popup-enabled"],
|
|
158
|
+
"scale": [2],
|
|
159
|
+
"position": [1],
|
|
160
|
+
"view": [16],
|
|
161
|
+
"widget": [1040],
|
|
162
|
+
"useHeadingEnabled": [1028, "use-heading-enabled"],
|
|
163
|
+
"cancelLocate": [64],
|
|
164
|
+
"locate": [64]
|
|
165
|
+
}]);
|
|
166
|
+
function defineCustomElement$1() {
|
|
167
|
+
if (typeof customElements === "undefined") {
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
const components = ["arcgis-locate"];
|
|
171
|
+
components.forEach(tagName => { switch (tagName) {
|
|
172
|
+
case "arcgis-locate":
|
|
173
|
+
if (!customElements.get(tagName)) {
|
|
174
|
+
customElements.define(tagName, ArcgisLocate$1);
|
|
175
|
+
}
|
|
176
|
+
break;
|
|
177
|
+
} });
|
|
178
|
+
}
|
|
179
|
+
defineCustomElement$1();
|
|
180
|
+
|
|
181
|
+
const ArcgisLocate = ArcgisLocate$1;
|
|
182
|
+
const defineCustomElement = defineCustomElement$1;
|
|
183
|
+
|
|
184
|
+
export { ArcgisLocate, defineCustomElement };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { d as disableNavigation } from './mapping-utils
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { I as importConfig, J as newWebMap, K as newViewsMapView, i as importCoreReactiveUtils } from './index2.js';
|
|
3
|
+
import { d as disableNavigation } from './mapping-utils.js';
|
|
4
4
|
|
|
5
5
|
const arcgisMapCss = ".arcgis-map{padding:0;margin:0;height:100%;width:100%}";
|
|
6
6
|
|
|
7
|
-
const ArcgisMap = class {
|
|
8
|
-
constructor(
|
|
9
|
-
|
|
7
|
+
const ArcgisMap$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
10
11
|
this.viewReady = createEvent(this, "viewReady", 7);
|
|
11
12
|
this.apiKey = undefined;
|
|
12
13
|
this.basemap = undefined;
|
|
@@ -93,12 +94,37 @@ const ArcgisMap = class {
|
|
|
93
94
|
}
|
|
94
95
|
this.viewReady.emit(true);
|
|
95
96
|
}
|
|
96
|
-
get hostElem() { return
|
|
97
|
+
get hostElem() { return this; }
|
|
97
98
|
static get watchers() { return {
|
|
98
99
|
"apiKey": ["apiKeyWatcher"],
|
|
99
100
|
"itemId": ["itemIdWatcher"]
|
|
100
101
|
}; }
|
|
101
|
-
}
|
|
102
|
-
|
|
102
|
+
static get style() { return arcgisMapCss; }
|
|
103
|
+
}, [0, "arcgis-map", {
|
|
104
|
+
"apiKey": [1, "api-key"],
|
|
105
|
+
"basemap": [1],
|
|
106
|
+
"disableNavigation": [4, "disable-navigation"],
|
|
107
|
+
"itemId": [1, "item-id"],
|
|
108
|
+
"zoom": [514],
|
|
109
|
+
"center": [513],
|
|
110
|
+
"view": [1040]
|
|
111
|
+
}]);
|
|
112
|
+
function defineCustomElement$1() {
|
|
113
|
+
if (typeof customElements === "undefined") {
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
const components = ["arcgis-map"];
|
|
117
|
+
components.forEach(tagName => { switch (tagName) {
|
|
118
|
+
case "arcgis-map":
|
|
119
|
+
if (!customElements.get(tagName)) {
|
|
120
|
+
customElements.define(tagName, ArcgisMap$1);
|
|
121
|
+
}
|
|
122
|
+
break;
|
|
123
|
+
} });
|
|
124
|
+
}
|
|
125
|
+
defineCustomElement$1();
|
|
126
|
+
|
|
127
|
+
const ArcgisMap = ArcgisMap$1;
|
|
128
|
+
const defineCustomElement = defineCustomElement$1;
|
|
103
129
|
|
|
104
|
-
export { ArcgisMap
|
|
130
|
+
export { ArcgisMap, defineCustomElement };
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { L as newWidgetsMeasurement, i as importCoreReactiveUtils } from './index2.js';
|
|
3
|
+
import { r as referenceElementHelper, c as checkForView, o as onDisconnectedHelper } from './disconnected.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './arcgis-expand2.js';
|
|
5
|
+
|
|
6
|
+
const arcgisMeasurementCss = "arcgis-measurement{}";
|
|
7
|
+
|
|
8
|
+
const ArcgisMeasurement$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.activeTool = undefined;
|
|
15
|
+
this.activeWidget = undefined;
|
|
16
|
+
this.areaUnit = undefined;
|
|
17
|
+
this.linearUnit = undefined;
|
|
18
|
+
this.position = "bottom-left";
|
|
19
|
+
this.expandable = false;
|
|
20
|
+
this.view = undefined;
|
|
21
|
+
this.widget = undefined;
|
|
22
|
+
}
|
|
23
|
+
//--------------------------------------------------------------------------
|
|
24
|
+
//
|
|
25
|
+
// Watchers
|
|
26
|
+
//
|
|
27
|
+
//--------------------------------------------------------------------------
|
|
28
|
+
activeToolWatcher(newValue) {
|
|
29
|
+
if (newValue !== undefined && this.widget) {
|
|
30
|
+
this.widget.activeTool = newValue;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
areaUnitWatcher(newValue) {
|
|
34
|
+
if (newValue !== undefined && this.widget) {
|
|
35
|
+
this.widget.areaUnit = newValue;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
linearUnitWatcher(newValue) {
|
|
39
|
+
if (newValue !== undefined && this.widget) {
|
|
40
|
+
this.widget.linearUnit = newValue;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
positionWatcher(newValue) {
|
|
44
|
+
if (newValue !== undefined && this.widget) {
|
|
45
|
+
if (typeof this.view !== "string") {
|
|
46
|
+
this.view.ui.move(this.childElem, newValue);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
referenceElementWatcher(newValue) {
|
|
51
|
+
referenceElementHelper(this, newValue);
|
|
52
|
+
}
|
|
53
|
+
viewWatcher(newValue) {
|
|
54
|
+
if (newValue !== undefined && this.widget) {
|
|
55
|
+
this.widget.view = newValue;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//--------------------------------------------------------------------------
|
|
59
|
+
//
|
|
60
|
+
// Methods
|
|
61
|
+
//
|
|
62
|
+
//--------------------------------------------------------------------------
|
|
63
|
+
async startMeasurement() {
|
|
64
|
+
return this.widget?.startMeasurement();
|
|
65
|
+
}
|
|
66
|
+
//--------------------------------------------------------------------------
|
|
67
|
+
//
|
|
68
|
+
// Lifecycle
|
|
69
|
+
//
|
|
70
|
+
//--------------------------------------------------------------------------
|
|
71
|
+
async componentDidLoad() {
|
|
72
|
+
const params = this._createParams();
|
|
73
|
+
const widget = await newWidgetsMeasurement(params);
|
|
74
|
+
this.widget = widget;
|
|
75
|
+
await this._addWatchers();
|
|
76
|
+
this.widgetReady.emit(true);
|
|
77
|
+
checkForView(this);
|
|
78
|
+
}
|
|
79
|
+
disconnectedCallback() {
|
|
80
|
+
onDisconnectedHelper(this);
|
|
81
|
+
}
|
|
82
|
+
render() {
|
|
83
|
+
if (this.expandable) {
|
|
84
|
+
return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
|
|
85
|
+
}
|
|
86
|
+
return h("div", { ref: (el) => (this.childElem = el) });
|
|
87
|
+
}
|
|
88
|
+
//--------------------------------------------------------------------------
|
|
89
|
+
//
|
|
90
|
+
// Private Methods
|
|
91
|
+
//
|
|
92
|
+
//--------------------------------------------------------------------------
|
|
93
|
+
async _addWatchers() {
|
|
94
|
+
const { watch } = await importCoreReactiveUtils();
|
|
95
|
+
watch(() => this.widget.activeWidget, (value) => (this.activeWidget = value), {
|
|
96
|
+
initial: true
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
_createParams() {
|
|
100
|
+
const params = {
|
|
101
|
+
container: this.childElem
|
|
102
|
+
};
|
|
103
|
+
if (this.view) {
|
|
104
|
+
params.view = this.view;
|
|
105
|
+
}
|
|
106
|
+
return params;
|
|
107
|
+
}
|
|
108
|
+
get el() { return this; }
|
|
109
|
+
static get watchers() { return {
|
|
110
|
+
"activeTool": ["activeToolWatcher"],
|
|
111
|
+
"areaUnit": ["areaUnitWatcher"],
|
|
112
|
+
"linearUnit": ["linearUnitWatcher"],
|
|
113
|
+
"position": ["positionWatcher"],
|
|
114
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
115
|
+
"view": ["viewWatcher"]
|
|
116
|
+
}; }
|
|
117
|
+
static get style() { return arcgisMeasurementCss; }
|
|
118
|
+
}, [0, "arcgis-measurement", {
|
|
119
|
+
"referenceElement": [1, "reference-element"],
|
|
120
|
+
"activeTool": [1, "active-tool"],
|
|
121
|
+
"activeWidget": [1040],
|
|
122
|
+
"areaUnit": [1, "area-unit"],
|
|
123
|
+
"linearUnit": [1, "linear-unit"],
|
|
124
|
+
"position": [1],
|
|
125
|
+
"expandable": [4],
|
|
126
|
+
"view": [16],
|
|
127
|
+
"widget": [1040],
|
|
128
|
+
"startMeasurement": [64]
|
|
129
|
+
}]);
|
|
130
|
+
function defineCustomElement$1() {
|
|
131
|
+
if (typeof customElements === "undefined") {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
const components = ["arcgis-measurement", "arcgis-expand"];
|
|
135
|
+
components.forEach(tagName => { switch (tagName) {
|
|
136
|
+
case "arcgis-measurement":
|
|
137
|
+
if (!customElements.get(tagName)) {
|
|
138
|
+
customElements.define(tagName, ArcgisMeasurement$1);
|
|
139
|
+
}
|
|
140
|
+
break;
|
|
141
|
+
case "arcgis-expand":
|
|
142
|
+
if (!customElements.get(tagName)) {
|
|
143
|
+
defineCustomElement$2();
|
|
144
|
+
}
|
|
145
|
+
break;
|
|
146
|
+
} });
|
|
147
|
+
}
|
|
148
|
+
defineCustomElement$1();
|
|
149
|
+
|
|
150
|
+
const ArcgisMeasurement = ArcgisMeasurement$1;
|
|
151
|
+
const defineCustomElement = defineCustomElement$1;
|
|
152
|
+
|
|
153
|
+
export { ArcgisMeasurement, defineCustomElement };
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { M as newWidgetsNavigationToggle } from './index2.js';
|
|
3
|
+
import { r as referenceElementHelper, c as checkForView, o as onDisconnectedHelper } from './disconnected.js';
|
|
4
|
+
|
|
5
|
+
const arcgisNavigationToggleCss = "arcgis-navigation-toggle{}";
|
|
6
|
+
|
|
7
|
+
const ArcgisNavigationToggle$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
12
|
+
this.referenceElement = undefined;
|
|
13
|
+
this.layout = undefined;
|
|
14
|
+
this.position = "bottom-left";
|
|
15
|
+
this.view = undefined;
|
|
16
|
+
this.widget = undefined;
|
|
17
|
+
}
|
|
18
|
+
//--------------------------------------------------------------------------
|
|
19
|
+
//
|
|
20
|
+
// Watchers
|
|
21
|
+
//
|
|
22
|
+
//--------------------------------------------------------------------------
|
|
23
|
+
layoutWatcher(newValue) {
|
|
24
|
+
if (newValue !== undefined && this.widget) {
|
|
25
|
+
this.widget.layout = newValue;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
positionWatcher(newValue) {
|
|
29
|
+
if (newValue !== undefined && this.widget) {
|
|
30
|
+
if (typeof this.view !== "string") {
|
|
31
|
+
this.view.ui.move(this.childElem, newValue);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
referenceElementWatcher(newValue) {
|
|
36
|
+
referenceElementHelper(this, newValue);
|
|
37
|
+
}
|
|
38
|
+
viewWatcher(newValue) {
|
|
39
|
+
if (newValue !== undefined && this.widget) {
|
|
40
|
+
this.widget.view = newValue;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
//--------------------------------------------------------------------------
|
|
44
|
+
//
|
|
45
|
+
// Watchers
|
|
46
|
+
//
|
|
47
|
+
//--------------------------------------------------------------------------
|
|
48
|
+
async toggle() {
|
|
49
|
+
return this.widget?.toggle();
|
|
50
|
+
}
|
|
51
|
+
//--------------------------------------------------------------------------
|
|
52
|
+
//
|
|
53
|
+
// Lifecycle
|
|
54
|
+
//
|
|
55
|
+
//--------------------------------------------------------------------------
|
|
56
|
+
async componentDidLoad() {
|
|
57
|
+
const params = this._createParams();
|
|
58
|
+
const widget = await newWidgetsNavigationToggle(params);
|
|
59
|
+
this.widget = widget;
|
|
60
|
+
this.widgetReady.emit(true);
|
|
61
|
+
checkForView(this);
|
|
62
|
+
}
|
|
63
|
+
disconnectedCallback() {
|
|
64
|
+
onDisconnectedHelper(this);
|
|
65
|
+
}
|
|
66
|
+
render() {
|
|
67
|
+
return h("div", { ref: (el) => (this.childElem = el) });
|
|
68
|
+
}
|
|
69
|
+
//--------------------------------------------------------------------------
|
|
70
|
+
//
|
|
71
|
+
// Private Methods
|
|
72
|
+
//
|
|
73
|
+
//--------------------------------------------------------------------------
|
|
74
|
+
_createParams() {
|
|
75
|
+
const params = {
|
|
76
|
+
container: this.childElem
|
|
77
|
+
};
|
|
78
|
+
if (this.view) {
|
|
79
|
+
params.view = this.view;
|
|
80
|
+
}
|
|
81
|
+
return params;
|
|
82
|
+
}
|
|
83
|
+
get el() { return this; }
|
|
84
|
+
static get watchers() { return {
|
|
85
|
+
"layout": ["layoutWatcher"],
|
|
86
|
+
"position": ["positionWatcher"],
|
|
87
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
88
|
+
"view": ["viewWatcher"]
|
|
89
|
+
}; }
|
|
90
|
+
static get style() { return arcgisNavigationToggleCss; }
|
|
91
|
+
}, [0, "arcgis-navigation-toggle", {
|
|
92
|
+
"referenceElement": [1, "reference-element"],
|
|
93
|
+
"layout": [1537],
|
|
94
|
+
"position": [1],
|
|
95
|
+
"view": [16],
|
|
96
|
+
"widget": [1040],
|
|
97
|
+
"toggle": [64]
|
|
98
|
+
}]);
|
|
99
|
+
function defineCustomElement$1() {
|
|
100
|
+
if (typeof customElements === "undefined") {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
const components = ["arcgis-navigation-toggle"];
|
|
104
|
+
components.forEach(tagName => { switch (tagName) {
|
|
105
|
+
case "arcgis-navigation-toggle":
|
|
106
|
+
if (!customElements.get(tagName)) {
|
|
107
|
+
customElements.define(tagName, ArcgisNavigationToggle$1);
|
|
108
|
+
}
|
|
109
|
+
break;
|
|
110
|
+
} });
|
|
111
|
+
}
|
|
112
|
+
defineCustomElement$1();
|
|
113
|
+
|
|
114
|
+
const ArcgisNavigationToggle = ArcgisNavigationToggle$1;
|
|
115
|
+
const defineCustomElement = defineCustomElement$1;
|
|
116
|
+
|
|
117
|
+
export { ArcgisNavigationToggle, defineCustomElement };
|