@arcgis/map-components 1.0.0-beta.16 → 1.0.0-beta.17
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/app-globals-0f993ce5.js +3 -0
- package/dist/{esm → arcgis-map-components}/arcgis-area-measurement-2d.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-area-measurement-3d.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-attachments.entry.js +2 -2
- package/dist/arcgis-map-components/arcgis-basemap-gallery.entry.js +93 -0
- package/dist/{esm → arcgis-map-components}/arcgis-basemap-layer-list.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-basemap-toggle.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-bookmarks.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-building-explorer.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-compass.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-coordinate-conversion.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-daylight.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-directions.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-directline-measurement-3d.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-distance-measurement-2d.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-editor.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-elevation-profile.entry.js +2 -2
- package/dist/{components/arcgis-expand2.js → arcgis-map-components/arcgis-expand.entry.js} +11 -30
- package/dist/{esm → arcgis-map-components}/arcgis-feature-form.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-feature-table.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-feature-templates.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-feature.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-features.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-floor-filter.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-fullscreen.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-histogram-range-slider.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-histogram.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-home.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-layer-list.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-legend.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-line-of-sight.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-locate.entry.js +2 -2
- package/dist/arcgis-map-components/arcgis-map-components.esm.js +148 -1
- package/dist/{components/arcgis-map.js → arcgis-map-components/arcgis-map.entry.js} +10 -36
- package/dist/{esm → arcgis-map-components}/arcgis-measurement.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-navigation-toggle.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-print.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-scale-bar.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-scale-range-slider.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-scene.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-search.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-shadow-cast.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-sketch.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-slice.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-slider.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-swipe.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-table-list.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-time-slider.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-track.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-utility-network-trace.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-value-picker.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-weather.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-zoom.entry.js +2 -2
- package/dist/arcgis-map-components/css-shim-b7d3d95f.js +4 -0
- package/dist/arcgis-map-components/dom-64053c71.js +73 -0
- package/dist/arcgis-map-components/index-82d260eb.js +8293 -0
- package/dist/arcgis-map-components/index-d9a93dfb.js +3371 -0
- package/dist/arcgis-map-components/index.esm.js +1 -0
- package/dist/arcgis-map-components/shadow-css-008a49f5.js +387 -0
- package/package.json +3 -3
- package/dist/arcgis-map-components/p-095e0075.js +0 -1
- package/dist/arcgis-map-components/p-0a81674b.entry.js +0 -1
- package/dist/arcgis-map-components/p-0b5368a6.entry.js +0 -1
- package/dist/arcgis-map-components/p-0dddef29.entry.js +0 -1
- package/dist/arcgis-map-components/p-0decaa03.entry.js +0 -1
- package/dist/arcgis-map-components/p-1126ae71.entry.js +0 -1
- package/dist/arcgis-map-components/p-1307fe8a.entry.js +0 -1
- package/dist/arcgis-map-components/p-1401deea.js +0 -1
- package/dist/arcgis-map-components/p-1e5e5ed9.js +0 -2
- package/dist/arcgis-map-components/p-23530601.entry.js +0 -1
- package/dist/arcgis-map-components/p-3b5c0098.entry.js +0 -1
- package/dist/arcgis-map-components/p-406f187c.entry.js +0 -1
- package/dist/arcgis-map-components/p-5396bcb5.entry.js +0 -1
- package/dist/arcgis-map-components/p-5a87f5c4.entry.js +0 -1
- package/dist/arcgis-map-components/p-5cabdee7.js +0 -1
- package/dist/arcgis-map-components/p-69214958.entry.js +0 -1
- package/dist/arcgis-map-components/p-6e69fe28.entry.js +0 -1
- package/dist/arcgis-map-components/p-741086a4.entry.js +0 -1
- package/dist/arcgis-map-components/p-79080368.entry.js +0 -1
- package/dist/arcgis-map-components/p-7e5545cf.entry.js +0 -1
- package/dist/arcgis-map-components/p-7e90f27c.entry.js +0 -1
- package/dist/arcgis-map-components/p-80fd5534.entry.js +0 -1
- package/dist/arcgis-map-components/p-81a3bd3b.entry.js +0 -1
- package/dist/arcgis-map-components/p-85b278c1.entry.js +0 -1
- package/dist/arcgis-map-components/p-866d57e1.entry.js +0 -1
- package/dist/arcgis-map-components/p-86acdf29.entry.js +0 -1
- package/dist/arcgis-map-components/p-8bf81a13.entry.js +0 -1
- package/dist/arcgis-map-components/p-95287b70.entry.js +0 -1
- package/dist/arcgis-map-components/p-95aa4e86.entry.js +0 -1
- package/dist/arcgis-map-components/p-9634a446.entry.js +0 -1
- package/dist/arcgis-map-components/p-9d16369e.entry.js +0 -1
- package/dist/arcgis-map-components/p-a094dafc.entry.js +0 -1
- package/dist/arcgis-map-components/p-a6ab7f72.entry.js +0 -1
- package/dist/arcgis-map-components/p-a7715a1a.entry.js +0 -1
- package/dist/arcgis-map-components/p-aa73b1cb.entry.js +0 -1
- package/dist/arcgis-map-components/p-ae017ef1.entry.js +0 -1
- package/dist/arcgis-map-components/p-b5182c68.entry.js +0 -1
- package/dist/arcgis-map-components/p-b813c9e6.js +0 -1
- package/dist/arcgis-map-components/p-bfb9ceb4.entry.js +0 -1
- package/dist/arcgis-map-components/p-c28ede1a.entry.js +0 -1
- package/dist/arcgis-map-components/p-c64bceeb.entry.js +0 -1
- package/dist/arcgis-map-components/p-c726b024.entry.js +0 -1
- package/dist/arcgis-map-components/p-d0dc4119.entry.js +0 -1
- package/dist/arcgis-map-components/p-d2274db9.entry.js +0 -1
- package/dist/arcgis-map-components/p-d5b79b4e.entry.js +0 -1
- package/dist/arcgis-map-components/p-d9c0253a.entry.js +0 -1
- package/dist/arcgis-map-components/p-db02ac80.entry.js +0 -1
- package/dist/arcgis-map-components/p-dfbbbdad.entry.js +0 -1
- package/dist/arcgis-map-components/p-e432eb73.entry.js +0 -1
- package/dist/arcgis-map-components/p-e4f5a3f5.entry.js +0 -1
- package/dist/arcgis-map-components/p-f32183ab.entry.js +0 -1
- package/dist/arcgis-map-components/p-f9b78102.entry.js +0 -1
- package/dist/arcgis-map-components/p-fa591c93.entry.js +0 -1
- package/dist/arcgis-map-components/p-fee8b15a.entry.js +0 -1
- package/dist/cjs/arcgis-area-measurement-2d.cjs.entry.js +0 -101
- package/dist/cjs/arcgis-area-measurement-3d.cjs.entry.js +0 -94
- package/dist/cjs/arcgis-attachments.cjs.entry.js +0 -73
- package/dist/cjs/arcgis-basemap-gallery_3.cjs.entry.js +0 -281
- package/dist/cjs/arcgis-basemap-layer-list.cjs.entry.js +0 -144
- package/dist/cjs/arcgis-basemap-toggle.cjs.entry.js +0 -115
- package/dist/cjs/arcgis-bookmarks.cjs.entry.js +0 -140
- package/dist/cjs/arcgis-building-explorer.cjs.entry.js +0 -80
- package/dist/cjs/arcgis-compass.cjs.entry.js +0 -90
- package/dist/cjs/arcgis-coordinate-conversion.cjs.entry.js +0 -158
- package/dist/cjs/arcgis-daylight.cjs.entry.js +0 -116
- package/dist/cjs/arcgis-directions.cjs.entry.js +0 -194
- package/dist/cjs/arcgis-directline-measurement-3d.cjs.entry.js +0 -114
- package/dist/cjs/arcgis-distance-measurement-2d.cjs.entry.js +0 -106
- package/dist/cjs/arcgis-editor.cjs.entry.js +0 -180
- package/dist/cjs/arcgis-elevation-profile.cjs.entry.js +0 -136
- package/dist/cjs/arcgis-feature-form.cjs.entry.js +0 -36
- package/dist/cjs/arcgis-feature-table.cjs.entry.js +0 -300
- package/dist/cjs/arcgis-feature-templates.cjs.entry.js +0 -73
- package/dist/cjs/arcgis-feature.cjs.entry.js +0 -106
- package/dist/cjs/arcgis-features.cjs.entry.js +0 -133
- package/dist/cjs/arcgis-floor-filter.cjs.entry.js +0 -134
- package/dist/cjs/arcgis-fullscreen.cjs.entry.js +0 -92
- package/dist/cjs/arcgis-histogram-range-slider.cjs.entry.js +0 -80
- package/dist/cjs/arcgis-histogram.cjs.entry.js +0 -36
- package/dist/cjs/arcgis-home.cjs.entry.js +0 -108
- package/dist/cjs/arcgis-layer-list.cjs.entry.js +0 -128
- package/dist/cjs/arcgis-legend.cjs.entry.js +0 -146
- package/dist/cjs/arcgis-line-of-sight.cjs.entry.js +0 -94
- package/dist/cjs/arcgis-locate.cjs.entry.js +0 -158
- package/dist/cjs/arcgis-map-components.cjs.js +0 -23
- package/dist/cjs/arcgis-measurement.cjs.entry.js +0 -123
- package/dist/cjs/arcgis-navigation-toggle.cjs.entry.js +0 -97
- package/dist/cjs/arcgis-print.cjs.entry.js +0 -163
- package/dist/cjs/arcgis-scale-bar.cjs.entry.js +0 -106
- package/dist/cjs/arcgis-scale-range-slider.cjs.entry.js +0 -146
- package/dist/cjs/arcgis-scene.cjs.entry.js +0 -106
- package/dist/cjs/arcgis-search.cjs.entry.js +0 -276
- package/dist/cjs/arcgis-shadow-cast.cjs.entry.js +0 -95
- package/dist/cjs/arcgis-sketch.cjs.entry.js +0 -201
- package/dist/cjs/arcgis-slice.cjs.entry.js +0 -103
- package/dist/cjs/arcgis-slider.cjs.entry.js +0 -233
- package/dist/cjs/arcgis-swipe.cjs.entry.js +0 -117
- package/dist/cjs/arcgis-table-list.cjs.entry.js +0 -118
- package/dist/cjs/arcgis-time-slider.cjs.entry.js +0 -216
- package/dist/cjs/arcgis-track.cjs.entry.js +0 -147
- package/dist/cjs/arcgis-utility-network-trace.cjs.entry.js +0 -162
- package/dist/cjs/arcgis-value-picker.cjs.entry.js +0 -160
- package/dist/cjs/arcgis-weather.cjs.entry.js +0 -86
- package/dist/cjs/arcgis-zoom.cjs.entry.js +0 -100
- package/dist/cjs/component-utils-933b7aca.js +0 -76
- package/dist/cjs/disconnected-306cb220.js +0 -55
- package/dist/cjs/index-6b51d5a0.js +0 -1607
- package/dist/cjs/index-ef2acc94.js +0 -717
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -22
- package/dist/cjs/mapping-utils-c2c7b994.js +0 -40
- package/dist/components/arcgis-area-measurement-2d.js +0 -128
- package/dist/components/arcgis-area-measurement-3d.js +0 -121
- package/dist/components/arcgis-attachments.js +0 -99
- package/dist/components/arcgis-basemap-gallery.js +0 -124
- package/dist/components/arcgis-basemap-layer-list.js +0 -175
- package/dist/components/arcgis-basemap-toggle.js +0 -143
- package/dist/components/arcgis-bookmarks.js +0 -169
- package/dist/components/arcgis-building-explorer.js +0 -105
- package/dist/components/arcgis-compass.js +0 -109
- package/dist/components/arcgis-coordinate-conversion.js +0 -193
- package/dist/components/arcgis-daylight.js +0 -144
- package/dist/components/arcgis-directions.js +0 -230
- package/dist/components/arcgis-directline-measurement-3d.js +0 -142
- package/dist/components/arcgis-distance-measurement-2d.js +0 -133
- package/dist/components/arcgis-editor.js +0 -219
- package/dist/components/arcgis-elevation-profile.js +0 -166
- package/dist/components/arcgis-expand.js +0 -6
- package/dist/components/arcgis-feature-form.js +0 -55
- package/dist/components/arcgis-feature-table.js +0 -355
- package/dist/components/arcgis-feature-templates.js +0 -98
- package/dist/components/arcgis-feature.js +0 -133
- package/dist/components/arcgis-features.js +0 -169
- package/dist/components/arcgis-floor-filter.js +0 -164
- package/dist/components/arcgis-fullscreen.js +0 -111
- package/dist/components/arcgis-histogram-range-slider.js +0 -106
- package/dist/components/arcgis-histogram.js +0 -55
- package/dist/components/arcgis-home.js +0 -129
- package/dist/components/arcgis-layer-list.js +0 -158
- package/dist/components/arcgis-legend.js +0 -177
- package/dist/components/arcgis-line-of-sight.js +0 -120
- package/dist/components/arcgis-locate.js +0 -184
- package/dist/components/arcgis-measurement.js +0 -153
- package/dist/components/arcgis-navigation-toggle.js +0 -117
- package/dist/components/arcgis-print.js +0 -197
- package/dist/components/arcgis-scale-bar.js +0 -133
- package/dist/components/arcgis-scale-range-slider.js +0 -177
- package/dist/components/arcgis-scene.js +0 -127
- package/dist/components/arcgis-search.js +0 -330
- package/dist/components/arcgis-shadow-cast.js +0 -121
- package/dist/components/arcgis-sketch.js +0 -238
- package/dist/components/arcgis-slice.js +0 -130
- package/dist/components/arcgis-slider.js +0 -281
- package/dist/components/arcgis-swipe.js +0 -140
- package/dist/components/arcgis-table-list.js +0 -147
- package/dist/components/arcgis-time-slider.js +0 -256
- package/dist/components/arcgis-track.js +0 -171
- package/dist/components/arcgis-utility-network-trace.js +0 -197
- package/dist/components/arcgis-value-picker.js +0 -198
- package/dist/components/arcgis-weather.js +0 -111
- package/dist/components/arcgis-zoom.js +0 -121
- package/dist/components/disconnected.js +0 -122
- package/dist/components/index.js +0 -52
- package/dist/components/index2.js +0 -638
- package/dist/components/mapping-utils.js +0 -38
- package/dist/esm/arcgis-basemap-gallery_3.entry.js +0 -275
- package/dist/esm/arcgis-map-components.js +0 -18
- package/dist/esm/index-ad26b6d0.js +0 -638
- package/dist/esm/index-eb3ead33.js +0 -1579
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -18
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/loader/cdn.js +0 -3
- package/dist/loader/index.cjs.js +0 -3
- package/dist/loader/index.d.ts +0 -21
- package/dist/loader/index.es2017.js +0 -3
- package/dist/loader/index.js +0 -4
- package/dist/loader/package.json +0 -11
- /package/dist/{esm → arcgis-map-components}/component-utils-d3552de2.js +0 -0
- /package/dist/{esm → arcgis-map-components}/disconnected-bc5fc8bc.js +0 -0
- /package/dist/{esm → arcgis-map-components}/mapping-utils-26beb904.js +0 -0
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-6b51d5a0.js');
|
|
6
|
-
const index$1 = require('./index-ef2acc94.js');
|
|
7
|
-
const componentUtils = require('./component-utils-933b7aca.js');
|
|
8
|
-
const disconnected = require('./disconnected-306cb220.js');
|
|
9
|
-
|
|
10
|
-
const arcgisBuildingExplorerCss = "";
|
|
11
|
-
|
|
12
|
-
const ArcgisBuildingExplorer = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
index.registerInstance(this, hostRef);
|
|
15
|
-
this.widgetReady = index.createEvent(this, "widgetReady", 7);
|
|
16
|
-
this.referenceElement = undefined;
|
|
17
|
-
this.position = "bottom-left";
|
|
18
|
-
this.expandable = false;
|
|
19
|
-
this.widget = undefined;
|
|
20
|
-
this.view = undefined;
|
|
21
|
-
}
|
|
22
|
-
//--------------------------------------------------------------------------
|
|
23
|
-
//
|
|
24
|
-
// Watchers
|
|
25
|
-
//
|
|
26
|
-
//--------------------------------------------------------------------------
|
|
27
|
-
positionWatcher(newValue) {
|
|
28
|
-
if (newValue !== undefined && this.widget) {
|
|
29
|
-
if (typeof this.view !== "string") {
|
|
30
|
-
this.view.ui.move(this.childElem, newValue);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
referenceElementWatcher(newValue) {
|
|
35
|
-
componentUtils.referenceElementHelper(this, newValue);
|
|
36
|
-
}
|
|
37
|
-
viewWatcher(newValue) {
|
|
38
|
-
if (newValue !== undefined && this.widget) {
|
|
39
|
-
this.widget.view = newValue;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
//--------------------------------------------------------------------------
|
|
43
|
-
//
|
|
44
|
-
// Lifecycle
|
|
45
|
-
//
|
|
46
|
-
//--------------------------------------------------------------------------
|
|
47
|
-
async componentDidLoad() {
|
|
48
|
-
const params = {
|
|
49
|
-
container: this.childElem
|
|
50
|
-
};
|
|
51
|
-
if (this.view) {
|
|
52
|
-
params.view = this.view;
|
|
53
|
-
}
|
|
54
|
-
const widget = await index$1.newWidgetsBuildingExplorer(params);
|
|
55
|
-
this.widget = widget;
|
|
56
|
-
if (this.view) {
|
|
57
|
-
widget.view = this.view;
|
|
58
|
-
}
|
|
59
|
-
this.widgetReady.emit(true);
|
|
60
|
-
componentUtils.checkForView(this);
|
|
61
|
-
}
|
|
62
|
-
disconnectedCallback() {
|
|
63
|
-
disconnected.onDisconnectedHelper(this);
|
|
64
|
-
}
|
|
65
|
-
render() {
|
|
66
|
-
if (this.expandable) {
|
|
67
|
-
return (index.h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, index.h("div", { ref: (el) => (this.childElem = el) })));
|
|
68
|
-
}
|
|
69
|
-
return index.h("div", { ref: (el) => (this.childElem = el) });
|
|
70
|
-
}
|
|
71
|
-
get el() { return index.getElement(this); }
|
|
72
|
-
static get watchers() { return {
|
|
73
|
-
"position": ["positionWatcher"],
|
|
74
|
-
"referenceElement": ["referenceElementWatcher"],
|
|
75
|
-
"view": ["viewWatcher"]
|
|
76
|
-
}; }
|
|
77
|
-
};
|
|
78
|
-
ArcgisBuildingExplorer.style = arcgisBuildingExplorerCss;
|
|
79
|
-
|
|
80
|
-
exports.arcgis_building_explorer = ArcgisBuildingExplorer;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-6b51d5a0.js');
|
|
6
|
-
const index$1 = require('./index-ef2acc94.js');
|
|
7
|
-
const componentUtils = require('./component-utils-933b7aca.js');
|
|
8
|
-
const disconnected = require('./disconnected-306cb220.js');
|
|
9
|
-
|
|
10
|
-
const arcgisCompassCss = "";
|
|
11
|
-
|
|
12
|
-
const ArcgisCompass = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
index.registerInstance(this, hostRef);
|
|
15
|
-
this.widgetReady = index.createEvent(this, "widgetReady", 7);
|
|
16
|
-
this.referenceElement = undefined;
|
|
17
|
-
this.position = "bottom-left";
|
|
18
|
-
this.widget = undefined;
|
|
19
|
-
this.view = undefined;
|
|
20
|
-
}
|
|
21
|
-
//--------------------------------------------------------------------------
|
|
22
|
-
//
|
|
23
|
-
// Watchers
|
|
24
|
-
//
|
|
25
|
-
//--------------------------------------------------------------------------
|
|
26
|
-
positionWatcher(newValue) {
|
|
27
|
-
if (newValue !== undefined && this.widget) {
|
|
28
|
-
if (typeof this.view !== "string") {
|
|
29
|
-
this.view.ui.move(this.childElem, newValue);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
referenceElementWatcher(newValue) {
|
|
34
|
-
componentUtils.referenceElementHelper(this, newValue);
|
|
35
|
-
}
|
|
36
|
-
viewWatcher(newValue) {
|
|
37
|
-
if (newValue !== undefined && this.widget) {
|
|
38
|
-
this.widget.view = newValue;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
//--------------------------------------------------------------------------
|
|
42
|
-
//
|
|
43
|
-
// Methods
|
|
44
|
-
//
|
|
45
|
-
//--------------------------------------------------------------------------
|
|
46
|
-
async reset() {
|
|
47
|
-
return this.widget?.reset();
|
|
48
|
-
}
|
|
49
|
-
//--------------------------------------------------------------------------
|
|
50
|
-
//
|
|
51
|
-
// Lifecycle
|
|
52
|
-
//
|
|
53
|
-
//--------------------------------------------------------------------------
|
|
54
|
-
async componentDidLoad() {
|
|
55
|
-
const params = this._createParams();
|
|
56
|
-
const widget = await index$1.newWidgetsCompass(params);
|
|
57
|
-
this.widget = widget;
|
|
58
|
-
this.widgetReady.emit(true);
|
|
59
|
-
componentUtils.checkForView(this);
|
|
60
|
-
}
|
|
61
|
-
disconnectedCallback() {
|
|
62
|
-
disconnected.onDisconnectedHelper(this);
|
|
63
|
-
}
|
|
64
|
-
render() {
|
|
65
|
-
return index.h("div", { ref: (el) => (this.childElem = el) });
|
|
66
|
-
}
|
|
67
|
-
//--------------------------------------------------------------------------
|
|
68
|
-
//
|
|
69
|
-
// Private Methods
|
|
70
|
-
//
|
|
71
|
-
//--------------------------------------------------------------------------
|
|
72
|
-
_createParams() {
|
|
73
|
-
const params = {
|
|
74
|
-
container: this.childElem
|
|
75
|
-
};
|
|
76
|
-
if (this.view) {
|
|
77
|
-
params.view = this.view;
|
|
78
|
-
}
|
|
79
|
-
return params;
|
|
80
|
-
}
|
|
81
|
-
get el() { return index.getElement(this); }
|
|
82
|
-
static get watchers() { return {
|
|
83
|
-
"position": ["positionWatcher"],
|
|
84
|
-
"referenceElement": ["referenceElementWatcher"],
|
|
85
|
-
"view": ["viewWatcher"]
|
|
86
|
-
}; }
|
|
87
|
-
};
|
|
88
|
-
ArcgisCompass.style = arcgisCompassCss;
|
|
89
|
-
|
|
90
|
-
exports.arcgis_compass = ArcgisCompass;
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-6b51d5a0.js');
|
|
6
|
-
const index$1 = require('./index-ef2acc94.js');
|
|
7
|
-
const componentUtils = require('./component-utils-933b7aca.js');
|
|
8
|
-
const disconnected = require('./disconnected-306cb220.js');
|
|
9
|
-
|
|
10
|
-
const arcgisCoordinateConversionCss = "";
|
|
11
|
-
|
|
12
|
-
const ArcgisCoordinateConversion = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
index.registerInstance(this, hostRef);
|
|
15
|
-
this.widgetReady = index.createEvent(this, "widgetReady", 7);
|
|
16
|
-
this.referenceElement = undefined;
|
|
17
|
-
this.conversions = undefined;
|
|
18
|
-
this.currentLocation = undefined;
|
|
19
|
-
this.formats = undefined;
|
|
20
|
-
this.locationSymbol = undefined;
|
|
21
|
-
this.mode = undefined;
|
|
22
|
-
this.multipleConversions = undefined;
|
|
23
|
-
this.orientation = undefined;
|
|
24
|
-
this.storageEnabled = undefined;
|
|
25
|
-
this.storageType = undefined;
|
|
26
|
-
this.position = "bottom-left";
|
|
27
|
-
this.expandable = false;
|
|
28
|
-
this.view = undefined;
|
|
29
|
-
this.widget = undefined;
|
|
30
|
-
}
|
|
31
|
-
//--------------------------------------------------------------------------
|
|
32
|
-
//
|
|
33
|
-
// Watchers
|
|
34
|
-
//
|
|
35
|
-
//--------------------------------------------------------------------------
|
|
36
|
-
positionWatcher(newValue) {
|
|
37
|
-
if (newValue !== undefined && this.widget) {
|
|
38
|
-
if (typeof this.view !== "string") {
|
|
39
|
-
this.view.ui.move(this.childElem, newValue);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
conversionsWatcher(newValue) {
|
|
44
|
-
if (newValue !== undefined && this.widget) {
|
|
45
|
-
this.widget.conversions = newValue;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
formatsWatcher(newValue) {
|
|
49
|
-
if (newValue !== undefined && this.widget) {
|
|
50
|
-
this.widget.formats = newValue;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
locationSymbolWatcher(newValue) {
|
|
54
|
-
if (newValue !== undefined && this.widget) {
|
|
55
|
-
this.widget.locationSymbol = newValue;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
modeWatcher(newValue) {
|
|
59
|
-
if (newValue !== undefined && this.widget) {
|
|
60
|
-
this.widget.mode = newValue;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
multipleConversionsWatcher(newValue) {
|
|
64
|
-
if (newValue !== undefined && this.widget) {
|
|
65
|
-
this.widget.multipleConversions = newValue;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
orientationWatcher(newValue) {
|
|
69
|
-
if (newValue !== undefined && this.widget) {
|
|
70
|
-
this.widget.orientation = newValue;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
storageEnabledWatcher(newValue) {
|
|
74
|
-
if (newValue !== undefined && this.widget) {
|
|
75
|
-
this.widget.storageEnabled = newValue;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
storageTypeWatcher(newValue) {
|
|
79
|
-
if (newValue !== undefined && this.widget) {
|
|
80
|
-
this.widget.storageType = newValue;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
referenceElementWatcher(newValue) {
|
|
84
|
-
componentUtils.referenceElementHelper(this, newValue);
|
|
85
|
-
}
|
|
86
|
-
viewWatcher(newValue) {
|
|
87
|
-
if (newValue !== undefined && this.widget) {
|
|
88
|
-
this.widget.view = newValue;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
//--------------------------------------------------------------------------
|
|
92
|
-
//
|
|
93
|
-
// Methods
|
|
94
|
-
//
|
|
95
|
-
//--------------------------------------------------------------------------
|
|
96
|
-
async reverseConvert(coordinate, format) {
|
|
97
|
-
return this.widget?.reverseConvert(coordinate, format);
|
|
98
|
-
}
|
|
99
|
-
//--------------------------------------------------------------------------
|
|
100
|
-
//
|
|
101
|
-
// Lifecycle
|
|
102
|
-
//
|
|
103
|
-
//--------------------------------------------------------------------------
|
|
104
|
-
async componentDidLoad() {
|
|
105
|
-
const params = this._createParams();
|
|
106
|
-
const widget = await index$1.newWidgetsCoordinateConversion(params);
|
|
107
|
-
this.widget = widget;
|
|
108
|
-
await this._addWatchers();
|
|
109
|
-
this.widgetReady.emit(true);
|
|
110
|
-
componentUtils.checkForView(this);
|
|
111
|
-
}
|
|
112
|
-
disconnectedCallback() {
|
|
113
|
-
disconnected.onDisconnectedHelper(this);
|
|
114
|
-
}
|
|
115
|
-
render() {
|
|
116
|
-
if (this.expandable) {
|
|
117
|
-
return (index.h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, index.h("div", { ref: (el) => (this.childElem = el) })));
|
|
118
|
-
}
|
|
119
|
-
return index.h("div", { ref: (el) => (this.childElem = el) });
|
|
120
|
-
}
|
|
121
|
-
//--------------------------------------------------------------------------
|
|
122
|
-
//
|
|
123
|
-
// Private Methods
|
|
124
|
-
//
|
|
125
|
-
//--------------------------------------------------------------------------
|
|
126
|
-
async _addWatchers() {
|
|
127
|
-
const { watch } = await index$1.importCoreReactiveUtils();
|
|
128
|
-
watch(() => this.widget.currentLocation, (value) => (this.currentLocation = value), {
|
|
129
|
-
initial: true
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
_createParams() {
|
|
133
|
-
const params = {
|
|
134
|
-
container: this.childElem
|
|
135
|
-
};
|
|
136
|
-
if (this.view) {
|
|
137
|
-
params.view = this.view;
|
|
138
|
-
}
|
|
139
|
-
return params;
|
|
140
|
-
}
|
|
141
|
-
get el() { return index.getElement(this); }
|
|
142
|
-
static get watchers() { return {
|
|
143
|
-
"position": ["positionWatcher"],
|
|
144
|
-
"conversions": ["conversionsWatcher"],
|
|
145
|
-
"formats": ["formatsWatcher"],
|
|
146
|
-
"locationSymbol": ["locationSymbolWatcher"],
|
|
147
|
-
"mode": ["modeWatcher"],
|
|
148
|
-
"multipleConversions": ["multipleConversionsWatcher"],
|
|
149
|
-
"orientation": ["orientationWatcher"],
|
|
150
|
-
"storageEnabled": ["storageEnabledWatcher"],
|
|
151
|
-
"storageType": ["storageTypeWatcher"],
|
|
152
|
-
"referenceElement": ["referenceElementWatcher"],
|
|
153
|
-
"view": ["viewWatcher"]
|
|
154
|
-
}; }
|
|
155
|
-
};
|
|
156
|
-
ArcgisCoordinateConversion.style = arcgisCoordinateConversionCss;
|
|
157
|
-
|
|
158
|
-
exports.arcgis_coordinate_conversion = ArcgisCoordinateConversion;
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-6b51d5a0.js');
|
|
6
|
-
const index$1 = require('./index-ef2acc94.js');
|
|
7
|
-
const componentUtils = require('./component-utils-933b7aca.js');
|
|
8
|
-
const disconnected = require('./disconnected-306cb220.js');
|
|
9
|
-
|
|
10
|
-
const arcgisDaylightCss = "";
|
|
11
|
-
|
|
12
|
-
const ArcgisDaylight = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
index.registerInstance(this, hostRef);
|
|
15
|
-
this.widgetReady = index.createEvent(this, "widgetReady", 7);
|
|
16
|
-
this.referenceElement = undefined;
|
|
17
|
-
this.dateOrSeason = undefined;
|
|
18
|
-
this.playSpeedMultiplier = undefined;
|
|
19
|
-
this.timeSliderSteps = undefined;
|
|
20
|
-
this.position = "bottom-left";
|
|
21
|
-
this.expandable = false;
|
|
22
|
-
this.view = undefined;
|
|
23
|
-
this.widget = undefined;
|
|
24
|
-
}
|
|
25
|
-
//--------------------------------------------------------------------------
|
|
26
|
-
//
|
|
27
|
-
// Watchers
|
|
28
|
-
//
|
|
29
|
-
//--------------------------------------------------------------------------
|
|
30
|
-
positionWatcher(newValue) {
|
|
31
|
-
if (newValue !== undefined && this.widget) {
|
|
32
|
-
if (typeof this.view !== "string") {
|
|
33
|
-
this.view.ui.move(this.childElem, newValue);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
dateOrSeasonWatcher(newValue) {
|
|
38
|
-
if (newValue !== undefined && this.widget) {
|
|
39
|
-
this.widget.dateOrSeason = newValue;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
playSpeedMultiplierWatcher(newValue) {
|
|
43
|
-
if (newValue !== undefined && this.widget) {
|
|
44
|
-
this.widget.playSpeedMultiplier = newValue;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
timeSliderStepsWatcher(newValue) {
|
|
48
|
-
if (newValue !== undefined && this.widget) {
|
|
49
|
-
this.widget.timeSliderSteps = newValue;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
referenceElementWatcher(newValue) {
|
|
53
|
-
componentUtils.referenceElementHelper(this, newValue);
|
|
54
|
-
}
|
|
55
|
-
viewWatcher(newValue) {
|
|
56
|
-
if (newValue !== undefined && this.widget) {
|
|
57
|
-
this.widget.view = newValue;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
//--------------------------------------------------------------------------
|
|
61
|
-
//
|
|
62
|
-
// Lifecycle
|
|
63
|
-
//
|
|
64
|
-
//--------------------------------------------------------------------------
|
|
65
|
-
async componentDidLoad() {
|
|
66
|
-
const params = this._createParams();
|
|
67
|
-
const widget = await index$1.newWidgetsDaylight(params);
|
|
68
|
-
this.widget = widget;
|
|
69
|
-
this.widgetReady.emit(true);
|
|
70
|
-
componentUtils.checkForView(this);
|
|
71
|
-
}
|
|
72
|
-
disconnectedCallback() {
|
|
73
|
-
disconnected.onDisconnectedHelper(this);
|
|
74
|
-
}
|
|
75
|
-
render() {
|
|
76
|
-
if (this.expandable) {
|
|
77
|
-
return (index.h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, index.h("div", { ref: (el) => (this.childElem = el) })));
|
|
78
|
-
}
|
|
79
|
-
return index.h("div", { ref: (el) => (this.childElem = el) });
|
|
80
|
-
}
|
|
81
|
-
//--------------------------------------------------------------------------
|
|
82
|
-
//
|
|
83
|
-
// Private Methods
|
|
84
|
-
//
|
|
85
|
-
//--------------------------------------------------------------------------
|
|
86
|
-
_createParams() {
|
|
87
|
-
const params = {
|
|
88
|
-
container: this.childElem
|
|
89
|
-
};
|
|
90
|
-
if (this.view) {
|
|
91
|
-
params.view = this.view;
|
|
92
|
-
}
|
|
93
|
-
if (this.dateOrSeason) {
|
|
94
|
-
params.dateOrSeason = this.dateOrSeason;
|
|
95
|
-
}
|
|
96
|
-
if (this.playSpeedMultiplier) {
|
|
97
|
-
params.playSpeedMultiplier = this.playSpeedMultiplier;
|
|
98
|
-
}
|
|
99
|
-
if (this.timeSliderSteps) {
|
|
100
|
-
params.timeSliderSteps = this.timeSliderSteps;
|
|
101
|
-
}
|
|
102
|
-
return params;
|
|
103
|
-
}
|
|
104
|
-
get el() { return index.getElement(this); }
|
|
105
|
-
static get watchers() { return {
|
|
106
|
-
"position": ["positionWatcher"],
|
|
107
|
-
"dateOrSeason": ["dateOrSeasonWatcher"],
|
|
108
|
-
"playSpeedMultiplier": ["playSpeedMultiplierWatcher"],
|
|
109
|
-
"timeSliderSteps": ["timeSliderStepsWatcher"],
|
|
110
|
-
"referenceElement": ["referenceElementWatcher"],
|
|
111
|
-
"view": ["viewWatcher"]
|
|
112
|
-
}; }
|
|
113
|
-
};
|
|
114
|
-
ArcgisDaylight.style = arcgisDaylightCss;
|
|
115
|
-
|
|
116
|
-
exports.arcgis_daylight = ArcgisDaylight;
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-6b51d5a0.js');
|
|
6
|
-
const index$1 = require('./index-ef2acc94.js');
|
|
7
|
-
const componentUtils = require('./component-utils-933b7aca.js');
|
|
8
|
-
const disconnected = require('./disconnected-306cb220.js');
|
|
9
|
-
|
|
10
|
-
const arcgisDirectionsCss = "";
|
|
11
|
-
|
|
12
|
-
const ArcgisDirections = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
index.registerInstance(this, hostRef);
|
|
15
|
-
this.widgetReady = index.createEvent(this, "widgetReady", 7);
|
|
16
|
-
this.referenceElement = undefined;
|
|
17
|
-
this.apiKey = undefined;
|
|
18
|
-
this.itemId = undefined;
|
|
19
|
-
this.lastRoute = undefined;
|
|
20
|
-
this.layer = undefined;
|
|
21
|
-
this.maxStops = undefined;
|
|
22
|
-
this.searchProperties = undefined;
|
|
23
|
-
this.unit = undefined;
|
|
24
|
-
this.position = "bottom-left";
|
|
25
|
-
this.expandable = false;
|
|
26
|
-
this.view = undefined;
|
|
27
|
-
this.widget = undefined;
|
|
28
|
-
}
|
|
29
|
-
//--------------------------------------------------------------------------
|
|
30
|
-
//
|
|
31
|
-
// Watchers
|
|
32
|
-
//
|
|
33
|
-
//--------------------------------------------------------------------------
|
|
34
|
-
positionWatcher(newValue) {
|
|
35
|
-
if (newValue !== undefined && this.widget) {
|
|
36
|
-
if (typeof this.view !== "string") {
|
|
37
|
-
this.view.ui.move(this.childElem, newValue);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
apiKeyWatcher(value) {
|
|
42
|
-
if (value && this.widget) {
|
|
43
|
-
this.widget.apiKey = value;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
itemIdWatcher(value) {
|
|
47
|
-
if (value && this.widget) {
|
|
48
|
-
index$1.newLayersRouteLayer({
|
|
49
|
-
portalItem: {
|
|
50
|
-
id: value
|
|
51
|
-
}
|
|
52
|
-
}).then((layer) => {
|
|
53
|
-
this.layer = layer;
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
layerWatcher(value) {
|
|
58
|
-
if (value && this.widget) {
|
|
59
|
-
this.widget.layer = value;
|
|
60
|
-
this.view?.map.add(this.layer);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
maxStopsWatcher(value) {
|
|
64
|
-
if (value && this.widget) {
|
|
65
|
-
this.widget.maxStops = value;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
searchPropertiesWatcher(value) {
|
|
69
|
-
if (value && this.widget) {
|
|
70
|
-
this.widget.searchProperties = value;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
unitWatcher(value) {
|
|
74
|
-
if (value && this.widget) {
|
|
75
|
-
this.widget.unit = value;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
referenceElementWatcher(newValue) {
|
|
79
|
-
componentUtils.referenceElementHelper(this, newValue);
|
|
80
|
-
}
|
|
81
|
-
viewWatcher(newValue) {
|
|
82
|
-
if (newValue !== undefined && this.widget) {
|
|
83
|
-
this.widget.view = newValue;
|
|
84
|
-
if (this.layer) {
|
|
85
|
-
this.widget.view.map.add(this.layer);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
//--------------------------------------------------------------------------
|
|
90
|
-
//
|
|
91
|
-
// Methods
|
|
92
|
-
//
|
|
93
|
-
//--------------------------------------------------------------------------
|
|
94
|
-
async getDirections() {
|
|
95
|
-
return this.widget?.getDirections();
|
|
96
|
-
}
|
|
97
|
-
async save() {
|
|
98
|
-
return this.widget?.save();
|
|
99
|
-
}
|
|
100
|
-
async saveAs(portalItem, options) {
|
|
101
|
-
return this.widget?.saveAs(portalItem, options);
|
|
102
|
-
}
|
|
103
|
-
async zoomToRoute() {
|
|
104
|
-
return this.widget?.zoomToRoute();
|
|
105
|
-
}
|
|
106
|
-
//--------------------------------------------------------------------------
|
|
107
|
-
//
|
|
108
|
-
// Lifecycle
|
|
109
|
-
//
|
|
110
|
-
//--------------------------------------------------------------------------
|
|
111
|
-
async componentDidLoad() {
|
|
112
|
-
const params = await this._createParams();
|
|
113
|
-
const widget = await index$1.newWidgetsDirections(params);
|
|
114
|
-
this.widget = widget;
|
|
115
|
-
await this._addWatchers();
|
|
116
|
-
this.widgetReady.emit(true);
|
|
117
|
-
componentUtils.checkForView(this);
|
|
118
|
-
}
|
|
119
|
-
disconnectedCallback() {
|
|
120
|
-
disconnected.onDisconnectedHelper(this);
|
|
121
|
-
}
|
|
122
|
-
render() {
|
|
123
|
-
if (this.expandable) {
|
|
124
|
-
return (index.h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, index.h("div", { ref: (el) => (this.childElem = el) })));
|
|
125
|
-
}
|
|
126
|
-
return index.h("div", { ref: (el) => (this.childElem = el) });
|
|
127
|
-
}
|
|
128
|
-
//--------------------------------------------------------------------------
|
|
129
|
-
//
|
|
130
|
-
// Private Methods
|
|
131
|
-
//
|
|
132
|
-
//--------------------------------------------------------------------------
|
|
133
|
-
async _addWatchers() {
|
|
134
|
-
const { watch } = await index$1.importCoreReactiveUtils();
|
|
135
|
-
watch(() => this.widget.lastRoute, (value) => (this.lastRoute = value), {
|
|
136
|
-
initial: true
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
async _createParams() {
|
|
140
|
-
const params = {
|
|
141
|
-
container: this.childElem
|
|
142
|
-
};
|
|
143
|
-
if (this.view) {
|
|
144
|
-
params.view = this.view;
|
|
145
|
-
}
|
|
146
|
-
if (this.apiKey) {
|
|
147
|
-
params.apiKey = this.apiKey;
|
|
148
|
-
}
|
|
149
|
-
if (this.itemId) {
|
|
150
|
-
params.layer = await index$1.newLayersRouteLayer({
|
|
151
|
-
portalItem: {
|
|
152
|
-
id: this.itemId
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
this.layer = params.layer;
|
|
156
|
-
}
|
|
157
|
-
else if (this.layer) {
|
|
158
|
-
params.layer = this.layer;
|
|
159
|
-
this.layer = params.layer;
|
|
160
|
-
}
|
|
161
|
-
else {
|
|
162
|
-
params.layer = await index$1.newLayersRouteLayer({});
|
|
163
|
-
this.layer = params.layer;
|
|
164
|
-
}
|
|
165
|
-
if (this.layer !== undefined) {
|
|
166
|
-
this.view?.map.add(this.layer);
|
|
167
|
-
}
|
|
168
|
-
if (this.maxStops !== undefined) {
|
|
169
|
-
params.maxStops = this.maxStops;
|
|
170
|
-
}
|
|
171
|
-
if (this.searchProperties) {
|
|
172
|
-
params.searchProperties = this.searchProperties;
|
|
173
|
-
}
|
|
174
|
-
if (this.unit) {
|
|
175
|
-
params.unit = this.unit;
|
|
176
|
-
}
|
|
177
|
-
return params;
|
|
178
|
-
}
|
|
179
|
-
get el() { return index.getElement(this); }
|
|
180
|
-
static get watchers() { return {
|
|
181
|
-
"position": ["positionWatcher"],
|
|
182
|
-
"apiKey": ["apiKeyWatcher"],
|
|
183
|
-
"itemId": ["itemIdWatcher"],
|
|
184
|
-
"layer": ["layerWatcher"],
|
|
185
|
-
"maxStops": ["maxStopsWatcher"],
|
|
186
|
-
"searchProperties": ["searchPropertiesWatcher"],
|
|
187
|
-
"unit": ["unitWatcher"],
|
|
188
|
-
"referenceElement": ["referenceElementWatcher"],
|
|
189
|
-
"view": ["viewWatcher"]
|
|
190
|
-
}; }
|
|
191
|
-
};
|
|
192
|
-
ArcgisDirections.style = arcgisDirectionsCss;
|
|
193
|
-
|
|
194
|
-
exports.arcgis_directions = ArcgisDirections;
|