@arcgis/map-components 5.2.0-next.168 → 5.2.0-next.169
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{OP3MZHXU.js → 3YACO47M.js} +1 -1
- package/dist/cdn/42V6ISWG.js +2 -0
- package/dist/cdn/5VOAPFZ5.js +2 -0
- package/dist/cdn/6ZMVEWJQ.js +2 -0
- package/dist/cdn/{OQPX2UPC.js → AFY6JQ77.js} +1 -1
- package/dist/cdn/{VHM26W3Y.js → AW5FFER6.js} +1 -1
- package/dist/cdn/{NY6QZ4MA.js → ODY56P7R.js} +1 -1
- package/dist/cdn/OOCIGOT6.js +2 -0
- package/dist/cdn/{MZ47CPKO.js → RDBCKSUZ.js} +1 -1
- package/dist/cdn/{7XO4NAD5.js → WC5ZQ5SQ.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/screenLocation.js +10 -10
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +2 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +7 -7
- package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +4 -4
- package/dist/components/arcgis-bookmarks/customElement.d.ts +1 -0
- package/dist/components/arcgis-bookmarks/types.d.ts +2 -2
- package/dist/components/arcgis-building-explorer/customElement.d.ts +5 -5
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +4 -4
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +2 -2
- package/dist/components/arcgis-daylight/customElement.d.ts +4 -4
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +4 -4
- package/dist/components/arcgis-directions/customElement.d.ts +4 -4
- package/dist/components/arcgis-editor/customElement.d.ts +19 -2
- package/dist/components/arcgis-expand/customElement.d.ts +2 -1
- package/dist/components/arcgis-feature-form/customElement.d.ts +7 -7
- package/dist/components/arcgis-feature-table/customElement.d.ts +25 -25
- package/dist/components/arcgis-features/customElement.d.ts +5 -5
- package/dist/components/arcgis-features-next/customElement.d.ts +4 -4
- package/dist/components/arcgis-features-next/customElement.js +27 -26
- package/dist/components/arcgis-grid-controls/customElement.d.ts +1 -1
- package/dist/components/arcgis-layer-list/customElement.d.ts +2 -2
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +6 -6
- package/dist/components/arcgis-legend/customElement.d.ts +1 -1
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +2 -2
- package/dist/components/arcgis-link-chart/customElement.d.ts +6 -6
- package/dist/components/arcgis-map/customElement.d.ts +13 -17
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +0 -1
- package/dist/components/arcgis-oriented-imagery-viewer-non-panoramic-viewer/customElement.js +6 -5
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js +19 -18
- package/dist/components/arcgis-popup/customElement.d.ts +8 -7
- package/dist/components/arcgis-presentation/customElement.d.ts +5 -5
- package/dist/components/arcgis-presentation/customElement.js +74 -75
- package/dist/components/arcgis-print/customElement.d.ts +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.d.ts +4 -4
- package/dist/components/arcgis-scene/customElement.d.ts +10 -13
- package/dist/components/arcgis-search/customElement.d.ts +4 -4
- package/dist/components/arcgis-selection-list/customElement.d.ts +2 -2
- package/dist/components/arcgis-selection-toolbar/customElement.d.ts +6 -6
- package/dist/components/arcgis-sketch/SketchComponentViewModel.d.ts +1 -1
- package/dist/components/arcgis-sketch/customElement.d.ts +20 -2
- package/dist/components/arcgis-sketch/customElement.js +18 -11
- package/dist/components/arcgis-slice/customElement.d.ts +2 -2
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +4 -3
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +2 -2
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +3 -3
- package/dist/components/arcgis-slider-color-legacy/customElement.d.ts +3 -3
- package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +5 -4
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.d.ts +2 -2
- package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +2 -2
- package/dist/components/arcgis-slider-scale-range/customElement.d.ts +4 -4
- package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +3 -3
- package/dist/components/arcgis-table-list-next/customElement.js +5 -5
- package/dist/components/arcgis-time-slider/customElement.d.ts +6 -5
- package/dist/components/arcgis-track/customElement.d.ts +4 -4
- package/dist/components/arcgis-utility-network-associations/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/types.d.ts +272 -9
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.js +25 -33
- package/dist/components/arcgis-utility-network-trace-locations/customElement.d.ts +1 -1
- package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +14 -16
- package/dist/components/arcgis-video/customElement.d.ts +1 -1
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +2 -2
- package/dist/components/arcgis-weather/customElement.d.ts +1 -1
- package/dist/components/slider-legacy/types.d.ts +2 -3
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +6 -6
- package/dist/cdn/2IAD3DI5.js +0 -2
- package/dist/cdn/67UW6MJM.js +0 -2
- package/dist/cdn/C6T7AQOJ.js +0 -2
- package/dist/cdn/CL5JQN4B.js +0 -2
|
@@ -26,10 +26,10 @@ import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.j
|
|
|
26
26
|
* the [arcgis-popup](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) opens within the map whether it is docked
|
|
27
27
|
* or anchored to the selected feature.
|
|
28
28
|
* With the Features component, the same information that Popup provides is shown in a separate container from the map, such as
|
|
29
|
-
*
|
|
29
|
+
* an HTML div within a Calcite Design System
|
|
30
30
|
* [Shell Panel](https://developers.arcgis.com/calcite-design-system/components/shell-panel/).
|
|
31
31
|
*
|
|
32
|
-
* If multiple features are passed into the Features component, the component provides buttons to page
|
|
32
|
+
* If multiple features are passed into the Features component, the component provides buttons to page through the features and a feature menu that allows the
|
|
33
33
|
* list of features to be displayed so the user can choose which feature content to display in the component. The component also respects
|
|
34
34
|
* feature reduction PopupTemplates for [binning](https://developers.arcgis.com/javascript/latest/references/core/layers/support/FeatureReductionBinning/#popupTemplate) and [clustering](https://developers.arcgis.com/javascript/latest/references/core/layers/support/FeatureReductionCluster/#popupTemplate).
|
|
35
35
|
*
|
|
@@ -222,7 +222,7 @@ export abstract class ArcgisFeatures extends LitElement {
|
|
|
222
222
|
* ```js
|
|
223
223
|
* // This title will display in the component unless a selected feature's
|
|
224
224
|
* // PopupTemplate overrides it.
|
|
225
|
-
* featuresComponent.
|
|
225
|
+
* featuresComponent.heading = "Population by zip codes in Southern California";
|
|
226
226
|
* ```
|
|
227
227
|
*/
|
|
228
228
|
accessor heading: string | null | undefined;
|
|
@@ -366,7 +366,7 @@ export abstract class ArcgisFeatures extends LitElement {
|
|
|
366
366
|
*/
|
|
367
367
|
accessor hideUtilityNetworkContent: boolean;
|
|
368
368
|
/**
|
|
369
|
-
* Indicates whether to
|
|
369
|
+
* Indicates whether to disable highlighting the [selectedFeature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#selectedFeature) in the associated
|
|
370
370
|
* [arcgis-map](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/) or [arcgis-scene](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/) component.
|
|
371
371
|
*
|
|
372
372
|
* @default false
|
|
@@ -381,7 +381,7 @@ export abstract class ArcgisFeatures extends LitElement {
|
|
|
381
381
|
*/
|
|
382
382
|
accessor icon: IconName | undefined;
|
|
383
383
|
/**
|
|
384
|
-
* Indicates whether to
|
|
384
|
+
* Indicates whether to disable the default actions in the component.
|
|
385
385
|
* In order to disable any default actions, it is necessary to set `includeDefaultActionsDisabled` to `true`.
|
|
386
386
|
*
|
|
387
387
|
* @default false
|
|
@@ -31,7 +31,7 @@ import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.j
|
|
|
31
31
|
* With the Features (next) component, the same information that Popup provides is shown in a separate container from the map, such as a Calcite Design System
|
|
32
32
|
* [Shell Panel](https://developers.arcgis.com/calcite-design-system/components/shell-panel/).
|
|
33
33
|
*
|
|
34
|
-
* If multiple features are passed into the Features (next) component, the component provides buttons to page
|
|
34
|
+
* If multiple features are passed into the Features (next) component, the component provides buttons to page through the features and a feature menu that allows the
|
|
35
35
|
* list of features to be displayed so the user can choose which feature content to display in the component. The component also respects
|
|
36
36
|
* feature reduction PopupTemplates for [binning](https://developers.arcgis.com/javascript/latest/references/core/layers/support/FeatureReductionBinning/#popupTemplate) and [clustering](https://developers.arcgis.com/javascript/latest/references/core/layers/support/FeatureReductionCluster/#popupTemplate).
|
|
37
37
|
*
|
|
@@ -231,7 +231,7 @@ export abstract class ArcgisFeaturesNext extends LitElement {
|
|
|
231
231
|
* ```js
|
|
232
232
|
* // This title will display in the component unless a selected feature's
|
|
233
233
|
* // PopupTemplate overrides it.
|
|
234
|
-
* featuresComponent.
|
|
234
|
+
* featuresComponent.heading = "Population by zip codes in Southern California";
|
|
235
235
|
* ```
|
|
236
236
|
*/
|
|
237
237
|
accessor heading: string | null | undefined;
|
|
@@ -378,7 +378,7 @@ export abstract class ArcgisFeaturesNext extends LitElement {
|
|
|
378
378
|
*/
|
|
379
379
|
accessor hideUtilityNetworkContent: boolean | undefined;
|
|
380
380
|
/**
|
|
381
|
-
* Indicates whether to
|
|
381
|
+
* Indicates whether to disable highlighting the [selectedFeature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#selectedFeature) in the associated
|
|
382
382
|
* [arcgis-map](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/), [arcgis-scene](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/), or [arcgis-link-chart](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/) component.
|
|
383
383
|
*
|
|
384
384
|
* @default false
|
|
@@ -392,7 +392,7 @@ export abstract class ArcgisFeaturesNext extends LitElement {
|
|
|
392
392
|
*/
|
|
393
393
|
accessor icon: IconName | undefined;
|
|
394
394
|
/**
|
|
395
|
-
* Indicates whether to
|
|
395
|
+
* Indicates whether to disable the default actions in the component.
|
|
396
396
|
* In order to disable any default actions, it is necessary to set `includeDefaultActionsDisabled` to `true`.
|
|
397
397
|
*
|
|
398
398
|
* @default false
|
|
@@ -14,10 +14,10 @@ import { initializeProjection as K } from "@arcgis/core/applications/Components/
|
|
|
14
14
|
import { t as j } from "../../chunks/action-utils.js";
|
|
15
15
|
import { m as G } from "../../chunks/useViewModel.js";
|
|
16
16
|
import { renderingSanitizer as w } from "@arcgis/core/applications/Components/sanitizerUtils.js";
|
|
17
|
-
import { stripHTML as
|
|
17
|
+
import { stripHTML as M } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
18
18
|
import { substitute as u, formatNumber as C } from "@arcgis/core/intl.js";
|
|
19
19
|
import { u as W } from "../../chunks/useT9n.js";
|
|
20
|
-
import { when as X, watch as
|
|
20
|
+
import { when as X, watch as c } from "@arcgis/core/core/reactiveUtils.js";
|
|
21
21
|
import { getGraphicOriginTitle as J } from "@arcgis/core/graphic/getGraphicOriginTitle.js";
|
|
22
22
|
import { a as S } from "../../chunks/maybe.js";
|
|
23
23
|
import { b as Q, a as Y, c as ee } from "../../chunks/keyboard-utils.js";
|
|
@@ -73,7 +73,7 @@ class oe extends V {
|
|
|
73
73
|
}
|
|
74
74
|
get _headingLabel() {
|
|
75
75
|
const e = this._selectedFeatureHeading ?? this.heading;
|
|
76
|
-
return e ?
|
|
76
|
+
return e ? M(e) : void 0;
|
|
77
77
|
}
|
|
78
78
|
get _backLabel() {
|
|
79
79
|
const e = this._headingLabel, { messages: t } = this;
|
|
@@ -162,27 +162,28 @@ class oe extends V {
|
|
|
162
162
|
}
|
|
163
163
|
}),
|
|
164
164
|
X(() => [this.initialDisplayMode === "list" && !!this.viewModel?.selectedFeature, this.viewModel?.active], () => this._setFocusIfTrapEnabled()),
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
165
|
+
c(() => [this.flowItems?.length, this.featureMenuOpen], () => this._setFocusIfTrapEnabled()),
|
|
166
|
+
c(() => this.viewModel?.selectedFeatureIndex, (e, t) => this._selectedFeatureIndexUpdated(e, t)),
|
|
167
|
+
c(() => this.viewModel?.selectedFeature, () => this._removeFlowItems()),
|
|
168
|
+
c(() => this.viewModel?.view?.scale, () => this._viewScaleChange()),
|
|
169
|
+
c(() => this.viewModel?.view, (e, t) => t && this._viewChange()),
|
|
170
|
+
c(() => this._spinnerEl?.screenLocation, () => this._closeOpenActionMenu()),
|
|
171
|
+
c(() => this.selectedFeatureComponent?.viewModel, (e, t) => t && this._removeFlowItems()),
|
|
172
|
+
c(() => [this.viewModel?.features.at(0), this.viewModel?.featureCount ?? 0], ([e, t], i) => {
|
|
172
173
|
const [s, a] = i ?? [void 0, 0];
|
|
173
174
|
(e !== s || t < a) && this._featureMenuViewportScrollTop();
|
|
174
175
|
}),
|
|
175
|
-
|
|
176
|
+
c(() => [this.featureMenuOpen, this.initialDisplayMode, this.open], () => {
|
|
176
177
|
this.viewModel.featureMenuOpen = this.featureMenuOpen, this.open && (this.featureMenuOpen || this.initialDisplayMode === "list") && (this.viewModel.featurePage = 1);
|
|
177
178
|
}, { initial: !0 }),
|
|
178
|
-
|
|
179
|
-
|
|
179
|
+
c(() => this.flowItems.toArray(), () => this._handleFlowItemsChange(), { initial: !0 }),
|
|
180
|
+
c(() => this.viewModel.aggregatedFeaturesEnabled, (e) => {
|
|
180
181
|
e || (this._aggregatedFeatureCount = 0, this._selectedAggregatedFeatureIndex = -1, this._aggregatedFeaturesLoading = !1, this._removeFlowItems());
|
|
181
182
|
}),
|
|
182
|
-
|
|
183
|
+
c(() => this.referenceElement, (e, t) => {
|
|
183
184
|
this._removeSpinner(t), this._createSpinner();
|
|
184
185
|
}, { initial: !0 }),
|
|
185
|
-
|
|
186
|
+
c(() => [
|
|
186
187
|
this.hideSpinner,
|
|
187
188
|
this.viewModel?.view,
|
|
188
189
|
this.viewModel?.location,
|
|
@@ -218,8 +219,8 @@ class oe extends V {
|
|
|
218
219
|
const { features: e, featurePage: t, featuresPerPage: i } = this.viewModel, s = /* @__PURE__ */ new Map(), a = Math.min((t ?? 0) * i, e.length);
|
|
219
220
|
for (let o = 0; o < a; o++) {
|
|
220
221
|
const r = e[o], l = R(r), d = ie(l) ? l : null;
|
|
221
|
-
let
|
|
222
|
-
|
|
222
|
+
let h = s.get(d);
|
|
223
|
+
h || (h = [], s.set(d, h)), h.push(o);
|
|
223
224
|
}
|
|
224
225
|
return s;
|
|
225
226
|
}
|
|
@@ -287,7 +288,7 @@ class oe extends V {
|
|
|
287
288
|
_getActionLabel(e, t) {
|
|
288
289
|
if (e.id !== "zoom-to-feature")
|
|
289
290
|
return null;
|
|
290
|
-
const { messages: i } = this, s = t?.heading, a = t ? s &&
|
|
291
|
+
const { messages: i } = this, s = t?.heading, a = t ? s && M(s) : this._headingLabel;
|
|
291
292
|
return a ? u(i.zoomLabel ?? "", {
|
|
292
293
|
messages: i,
|
|
293
294
|
title: a
|
|
@@ -441,14 +442,14 @@ class oe extends V {
|
|
|
441
442
|
return this.headerActions.map((e) => this._renderHeaderAction(e)).toArray();
|
|
442
443
|
}
|
|
443
444
|
_renderContentFeature(e) {
|
|
444
|
-
const { headingLevel: t, hideCloseButton: i, _isCollapsed: s, _collapseEnabled: a, featureNavigationTop: o, initialDisplayMode: r, selectedFeature: l, hideHeading: d } = this, { active:
|
|
445
|
+
const { headingLevel: t, hideCloseButton: i, _isCollapsed: s, _collapseEnabled: a, featureNavigationTop: o, initialDisplayMode: r, selectedFeature: l, hideHeading: d } = this, { active: h, selectedFeatureItem: f, content: b } = this.viewModel, p = this._getHeading();
|
|
445
446
|
if (r === "list" && !l)
|
|
446
447
|
return null;
|
|
447
|
-
const F = !this._selectedFeaturePending && (f ? !f.content : !
|
|
448
|
+
const F = !this._selectedFeaturePending && (f ? !f.content : !b);
|
|
448
449
|
return n`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${x(I({
|
|
449
450
|
"content-feature": !0,
|
|
450
451
|
"flow-item-collapsed": s
|
|
451
|
-
}))} .closable=${!i} .closed=${!
|
|
452
|
+
}))} .closable=${!i} .closed=${!h} .collapsed=${s} .collapseDirection=${this.collapseDirection ?? (o ? "down" : "up")} .collapsible=${a} .headingLevel=${t} .selected=${e} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController || this._selectedFeatureLoading} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} @keydown=${this._onMainKeydown} .heading=${!d && p ? M(p) : void 0} ${m(this._rootFlowItemNode)}>${this._renderHeader()}${!d && p ? n`<div slot=heading><div .innerHTML=${w.sanitize(p ?? "") ?? ""}></div></div>` : null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${x(I("container", "content-container", {
|
|
452
453
|
"content-hidden": F
|
|
453
454
|
}))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`;
|
|
454
455
|
}
|
|
@@ -469,30 +470,30 @@ class oe extends V {
|
|
|
469
470
|
return i?.size ? n`<calcite-notice class="diagnostics-notice" open kind=info scale=s><span slot=title>${e.maxRecordCountHeading}</span><div slot=message>${i.size <= ne ? this._renderDiagnosticsList(i) : this._renderDiagnosticsMultipleLayers()}</div></calcite-notice>` : null;
|
|
470
471
|
}
|
|
471
472
|
_renderFeatureMenuContainer() {
|
|
472
|
-
const { viewModel: e, hideCloseButton: t, featureMenuTitle: i, messages: s, initialDisplayMode: a, featureMenuOpen: o, _featureFlowItemSelected: r, _collapseEnabled: l, _isCollapsed: d, featureNavigationTop:
|
|
473
|
+
const { viewModel: e, hideCloseButton: t, featureMenuTitle: i, messages: s, initialDisplayMode: a, featureMenuOpen: o, _featureFlowItemSelected: r, _collapseEnabled: l, _isCollapsed: d, featureNavigationTop: h, headingLevel: f } = this, { active: b, features: p, streamingFeatures: F } = e, $ = i ?? s.selectFeature, A = this._backLabel;
|
|
473
474
|
if (a === "feature" && !o)
|
|
474
475
|
return null;
|
|
475
476
|
const O = !r;
|
|
476
477
|
return n`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${x(I({
|
|
477
478
|
"flow-item-collapsed": d
|
|
478
|
-
}))} .closable=${!t} .closed=${!
|
|
479
|
+
}))} .closable=${!t} .closed=${!b} .collapsed=${a === "list" && d} .collapseDirection=${this.collapseDirection ?? (h ? "down" : "up")} .collapsible=${a === "list" && l} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand, back: A }} .description=${this.hideFeatureMenuHeading ? void 0 : u(s.total ?? "", {
|
|
479
480
|
total: p.length
|
|
480
481
|
})} .heading=${this.hideFeatureMenuHeading ? void 0 : $} .headingLevel=${f} .loading=${e.waitingForResult} .selected=${O} @calciteFlowItemBack=${(N) => {
|
|
481
482
|
N.preventDefault(), this._handleFeatureMenuBack();
|
|
482
483
|
}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${m(this._featureMenuViewportNode)}>${a === "list" ? this._renderHeaderActions() : null}${F ? n`<calcite-loader class="loader" inline .label=${s.loading ?? ""} slot=header-actions-end></calcite-loader>` : null}${this._renderDiagnostics()}<div class="container">${this._renderFeatureMenu()}</div><div class="feature-menu-observer" aria-hidden=true ${m(this._featureMenuIntersectionObserverCreated)}></div>${a === "feature" ? n`<calcite-button scale=s appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full .label=${A} title=${A ?? g}>${s.back}</calcite-button>` : null}</calcite-flow-item>`;
|
|
483
484
|
}
|
|
484
485
|
_renderFlowItem(e, t) {
|
|
485
|
-
const { hideCloseButton: i, active: s, hideHeading: a, hideSelectFeature: o, messages: r } = this, l = r.returnToInitialFeature ?? "", d = r?.selectFeature,
|
|
486
|
+
const { hideCloseButton: i, active: s, hideHeading: a, hideSelectFeature: o, messages: r } = this, l = r.returnToInitialFeature ?? "", d = r?.selectFeature, h = "showAllEnabled" in e ? e.showAllEnabled : !1, f = e.flowType === "feature" || e.flowType === "feature-association" || e.flowType === "feature-relationship" && !h, p = e.flowType !== "feature" && f && "isFeatureFromTable" in e && !e.isFeatureFromTable && !o, F = e.flowType === "feature" && this.viewModel.aggregatedFeaturesEnabled ? n`<div class="footer" slot=footer>${this._renderPagination(() => {
|
|
486
487
|
this._aggregatedFeaturesComponent.value?.previous();
|
|
487
488
|
}, () => {
|
|
488
489
|
this._aggregatedFeaturesComponent.value?.next();
|
|
489
490
|
})}${this._renderFeaturePaginationText(this._aggregatedFeatureCount, this._selectedAggregatedFeatureIndex)}</div>` : null;
|
|
490
|
-
return n`<calcite-flow-item .closable=${!i} .closed=${!s} .focusTrapEnabled=${this.focusTrapEnabled} class="flow-item-drill-in" .description=${
|
|
491
|
+
return n`<calcite-flow-item .closable=${!i} .closed=${!s} .focusTrapEnabled=${this.focusTrapEnabled} class="flow-item-drill-in" .description=${M(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${a ? void 0 : M(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${($) => {
|
|
491
492
|
$.preventDefault(), this._handleDrillInBackClick();
|
|
492
493
|
}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${a ? null : n`<div slot=heading><div .innerHTML=${w.sanitize(e.heading ?? "") ?? ""}></div></div>`}<div slot=description><div .innerHTML=${w.sanitize(this._getDrillInFlowItemDescription(e) ?? "") ?? ""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${l ?? ""} title=${l ?? "" ?? g}></calcite-action>${p ? n`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${d ?? ""} title=${d ?? g}></calcite-action>` : null}${f && this._renderActionBar(e) || ""}<div class="container">${e}</div>${F}</calcite-flow-item>`;
|
|
493
494
|
}
|
|
494
495
|
_renderContentContainer() {
|
|
495
|
-
const e = this.flowItems?.toArray(), t = e.length > 0, i = this.viewModel.aggregatedFeaturesEnabled && this.viewModel.selectedFeature?.isAggregate && !t, s = i && e.length === 0, a = e.length === 0 && this._featureFlowItemSelected && !i, o = e?.map((d,
|
|
496
|
+
const e = this.flowItems?.toArray(), t = e.length > 0, i = this.viewModel.aggregatedFeaturesEnabled && this.viewModel.selectedFeature?.isAggregate && !t, s = i && e.length === 0, a = e.length === 0 && this._featureFlowItemSelected && !i, o = e?.map((d, h) => this._renderFlowItem(d, this._featureFlowItemSelected && h === e.length - 1)), r = this._renderBrowseAggregateContainer(!!s), l = this.initialDisplayMode === "list" ? [this._renderFeatureMenuContainer(), this._renderContentFeature(a)] : [this._renderContentFeature(a), this._renderFeatureMenuContainer()];
|
|
496
497
|
return n`<calcite-flow ${m(this._flowContainerNode)}>${l}${r}${o}</calcite-flow>`;
|
|
497
498
|
}
|
|
498
499
|
_renderBrowseAggregateContainer(e) {
|
|
@@ -315,7 +315,7 @@ export abstract class ArcgisGridControls extends LitElement {
|
|
|
315
315
|
accessor theme: GridTheme | null | undefined;
|
|
316
316
|
/**
|
|
317
317
|
* Unit of measure (foot, meter, etc) used when defining the [spacing](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-grid-controls/#spacing) grid cell.
|
|
318
|
-
* Note that units are defined
|
|
318
|
+
* Note that units are defined relative to the map's spatial reference length unit,
|
|
319
319
|
* which will not correspond to geographic distance unless using a special-purpose basemap
|
|
320
320
|
* within a supported target area.
|
|
321
321
|
*
|
|
@@ -18,8 +18,8 @@ import type { FlowLayer } from "@arcgis/core/widgets/LayerList.js";
|
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* The Layer List provides a way to display a list of layers and switch on/off their visibility.
|
|
21
|
-
* The [listItemCreatedFunction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list/#listItemCreatedFunction) and the [ListItem](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/ListItem/) API
|
|
22
|
-
* the developer to configure actions related to the layer, and
|
|
21
|
+
* The [listItemCreatedFunction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list/#listItemCreatedFunction) and the [ListItem](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/ListItem/) API provide access to each layer's properties, allow
|
|
22
|
+
* the developer to configure actions related to the layer, and allow the developer to add content to the item related to the layer.
|
|
23
23
|
*
|
|
24
24
|
* > **Notes**
|
|
25
25
|
* >
|
|
@@ -23,8 +23,8 @@ import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.j
|
|
|
23
23
|
* [tableList](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#tableList) compared to [arcgis-layer-list](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list/). To update at version 6.0, simply remove `-next` from the component name.
|
|
24
24
|
*
|
|
25
25
|
* The Layer List (next) provides a way to display a list of layers and switch on/off their visibility.
|
|
26
|
-
* The [listItemCreatedFunction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#listItemCreatedFunction) and the [Item](https://developers.arcgis.com/javascript/latest/references/core/layerList/Item/) API
|
|
27
|
-
* the developer to configure actions related to the layer, and
|
|
26
|
+
* The [listItemCreatedFunction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#listItemCreatedFunction) and the [Item](https://developers.arcgis.com/javascript/latest/references/core/layerList/Item/) API provide access to each layer's properties, allow
|
|
27
|
+
* the developer to configure actions related to the layer, and allow the developer to add content to the item related to the layer.
|
|
28
28
|
* Track info items can also be configured with custom panel content. Legend panel content is not supported for individual track info parts.
|
|
29
29
|
*
|
|
30
30
|
* > **Notes**
|
|
@@ -96,7 +96,7 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
96
96
|
* // Use reactiveUtils to watch for a selected item in the layerListElement.catalogLayerList
|
|
97
97
|
* const catalogSelectionWatchHandle = reactiveUtils.watch(
|
|
98
98
|
* () =>
|
|
99
|
-
* layerListElement.catalogLayerList?.selectedItems?.at(0)?.layer
|
|
99
|
+
* layerListElement.catalogLayerList?.selectedItems?.at(0)?.layer,
|
|
100
100
|
* (layer) => {
|
|
101
101
|
* layer && handleLayerSelection(layer);
|
|
102
102
|
* },
|
|
@@ -124,7 +124,7 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
124
124
|
* title: "Add layer to map",
|
|
125
125
|
* icon: "add-layer",
|
|
126
126
|
* id: "add-layer"
|
|
127
|
-
* })
|
|
127
|
+
* })
|
|
128
128
|
* ]
|
|
129
129
|
* ];
|
|
130
130
|
* },
|
|
@@ -309,7 +309,7 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
309
309
|
accessor icon: IconName;
|
|
310
310
|
/**
|
|
311
311
|
* [KnowledgeGraphLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/KnowledgeGraphLayer/) specific properties.
|
|
312
|
-
* [KnowledgeGraphLayer#tables](https://developers.arcgis.com/javascript/latest/references/core/layers/KnowledgeGraphLayer/#tables)
|
|
312
|
+
* [KnowledgeGraphLayer#tables](https://developers.arcgis.com/javascript/latest/references/core/layers/KnowledgeGraphLayer/#tables) are displayed
|
|
313
313
|
* as an expandable [arcgis-table-list-next](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-table-list-next/) in the Layer List component and can be accessed with the [tableList](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#tableList) property.
|
|
314
314
|
* This tables list item will only be displayed when knowledge graph layers with tables are loaded in the map.
|
|
315
315
|
* These are the properties that are used to configure the [arcgis-table-list-next](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-table-list-next/).
|
|
@@ -733,7 +733,7 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
733
733
|
* const tableListActionHandle = reactiveUtils.on(
|
|
734
734
|
* () => layerListElement.tableList,
|
|
735
735
|
* "arcgisTriggerAction",
|
|
736
|
-
* (event
|
|
736
|
+
* (event) => {
|
|
737
737
|
* const { action, item } = event.detail;
|
|
738
738
|
* if (action.id === "information") {
|
|
739
739
|
* alert(`${item.layer?.title}`);
|
|
@@ -33,7 +33,7 @@ import type { LayerInfo, LegendModelState } from "@arcgis/core/legend/types.js";
|
|
|
33
33
|
* [VideoLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/VideoLayer/), and
|
|
34
34
|
* [WebTileLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/WebTileLayer/).
|
|
35
35
|
* * [Symbol3D](https://developers.arcgis.com/javascript/latest/references/core/symbols/Symbol3D/) with more than one
|
|
36
|
-
* [symbol](https://developers.arcgis.com/javascript/latest/references/core/symbols/Symbol3DLayer/)
|
|
36
|
+
* [symbol](https://developers.arcgis.com/javascript/latest/references/core/symbols/Symbol3DLayer/) is not supported.
|
|
37
37
|
* * [DictionaryRenderer](https://developers.arcgis.com/javascript/latest/references/core/renderers/DictionaryRenderer/) is not supported.
|
|
38
38
|
* * [TrackInfo](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TrackInfo/) is not supported.
|
|
39
39
|
* * CIM Symbol [primitiveOverride](https://developers.arcgis.com/javascript/latest/references/core/symbols/CIMSymbol/#PrimitiveOverride) is not supported.
|
|
@@ -236,14 +236,14 @@ export abstract class ArcgisLineOfSight extends LitElement {
|
|
|
236
236
|
accessor view: SceneView | undefined;
|
|
237
237
|
/** Clear the current observer and any targets. After calling this method, the user can set a new observer and targets. */
|
|
238
238
|
clear(): Promise<void>;
|
|
239
|
-
/** After [stop()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-line-of-sight/#stop) was called, this method allows
|
|
239
|
+
/** After [stop()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-line-of-sight/#stop) was called, this method allows continuing the line of sight analysis and adding more targets. */
|
|
240
240
|
continue(): Promise<void>;
|
|
241
241
|
/** Permanently destroy the component. */
|
|
242
242
|
destroy(): Promise<void>;
|
|
243
243
|
/** Start a new line of sight analysis. */
|
|
244
244
|
start(): Promise<void>;
|
|
245
245
|
/**
|
|
246
|
-
* Stops the current
|
|
246
|
+
* Stops the current placement of the line of sight analysis. Any lines added so far are kept in the view.
|
|
247
247
|
* Users can still interact with existing targets and the observer, but they cannot place new target points.
|
|
248
248
|
*/
|
|
249
249
|
stop(): Promise<void>;
|
|
@@ -421,7 +421,7 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
421
421
|
* };
|
|
422
422
|
*
|
|
423
423
|
* // Add the options to the highlights collection at the first position
|
|
424
|
-
* view.highlights.add(
|
|
424
|
+
* view.highlights.add(selectionHighlightOptions, 0);
|
|
425
425
|
*/
|
|
426
426
|
accessor highlights: Collection<HighlightOptions>;
|
|
427
427
|
/**
|
|
@@ -727,7 +727,7 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
727
727
|
get suspended(): boolean;
|
|
728
728
|
/**
|
|
729
729
|
* This property specifies the base colors used by some components
|
|
730
|
-
*
|
|
730
|
+
* to render graphics and labels.
|
|
731
731
|
*
|
|
732
732
|
* @since 4.28
|
|
733
733
|
* @see [Theme](https://developers.arcgis.com/javascript/latest/references/core/views/Theme/)
|
|
@@ -762,8 +762,8 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
762
762
|
* map: map,
|
|
763
763
|
* container: "viewDiv",
|
|
764
764
|
* timeExtent: {
|
|
765
|
-
* start: new Date(
|
|
766
|
-
* end: new Date(
|
|
765
|
+
* start: new Date(2019, 2, 24),
|
|
766
|
+
* end: new Date(2019, 2, 31)
|
|
767
767
|
* }
|
|
768
768
|
* });
|
|
769
769
|
*/
|
|
@@ -998,7 +998,7 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
998
998
|
* ```
|
|
999
999
|
*/
|
|
1000
1000
|
readonly arcgisViewFocusRegionSelect: import("@arcgis/lumina").TargetedEvent<this, FocusRegionSelectEvent>;
|
|
1001
|
-
/** Fires
|
|
1001
|
+
/** Fires after holding either a mouse button or a single finger on the view for a short amount of time. */
|
|
1002
1002
|
readonly arcgisViewHold: import("@arcgis/lumina").TargetedEvent<this, HoldEvent>;
|
|
1003
1003
|
/** Fires right after a user clicks on the view. */
|
|
1004
1004
|
readonly arcgisViewImmediateClick: import("@arcgis/lumina").TargetedEvent<this, ImmediateClickEvent>;
|
|
@@ -1006,7 +1006,7 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
1006
1006
|
readonly arcgisViewImmediateDoubleClick: import("@arcgis/lumina").TargetedEvent<this, ImmediateDoubleClickEvent>;
|
|
1007
1007
|
/** Fires after a keyboard key is pressed. */
|
|
1008
1008
|
readonly arcgisViewKeyDown: import("@arcgis/lumina").TargetedEvent<this, KeyDownEvent>;
|
|
1009
|
-
/** Fires after a keyboard key is
|
|
1009
|
+
/** Fires after a keyboard key is released. */
|
|
1010
1010
|
readonly arcgisViewKeyUp: import("@arcgis/lumina").TargetedEvent<this, KeyUpEvent>;
|
|
1011
1011
|
/** Fires after each layer in the link chart has a corresponding LayerView created and rendered in the view. */
|
|
1012
1012
|
readonly arcgisViewLayerviewCreate: import("@arcgis/lumina").TargetedEvent<this, LayerViewCreateEvent>;
|
|
@@ -324,14 +324,12 @@ export abstract class ArcgisMap extends LitElement {
|
|
|
324
324
|
* @example
|
|
325
325
|
* ```js
|
|
326
326
|
* // Updates the view's center point to a pre-determined Point object
|
|
327
|
+
* const viewElement = document.querySelector("arcgis-map");
|
|
327
328
|
* let centerPoint = new Point({
|
|
328
329
|
* x: 12804.24,
|
|
329
330
|
* y: -1894032.09,
|
|
330
|
-
* spatialReference:
|
|
331
|
-
* wkid: viewElement.spatialReference // wkid 2027
|
|
332
|
-
* }
|
|
331
|
+
* spatialReference: viewElement.spatialReference
|
|
333
332
|
* });
|
|
334
|
-
* const viewElement = document.querySelector("arcgis-map");
|
|
335
333
|
* viewElement.center = centerPoint;
|
|
336
334
|
* ```
|
|
337
335
|
* @example
|
|
@@ -637,7 +635,7 @@ export abstract class ArcgisMap extends LitElement {
|
|
|
637
635
|
* };
|
|
638
636
|
*
|
|
639
637
|
* // Add the options to the highlights collection at the first position
|
|
640
|
-
* viewElement.highlights.add(
|
|
638
|
+
* viewElement.highlights.add(selectionHighlightOptions, 0);
|
|
641
639
|
* ```
|
|
642
640
|
*/
|
|
643
641
|
accessor highlights: Collection<HighlightOptions>;
|
|
@@ -977,8 +975,8 @@ export abstract class ArcgisMap extends LitElement {
|
|
|
977
975
|
* viewElement.map.add(csvLayer);
|
|
978
976
|
*
|
|
979
977
|
* viewElement.timeExtent = {
|
|
980
|
-
* start: new Date(
|
|
981
|
-
* end: new Date(
|
|
978
|
+
* start: new Date(2019, 2, 24),
|
|
979
|
+
* end: new Date(2019, 2, 31)
|
|
982
980
|
* };
|
|
983
981
|
* ```
|
|
984
982
|
*/
|
|
@@ -1301,19 +1299,17 @@ export abstract class ArcgisMap extends LitElement {
|
|
|
1301
1299
|
* @example
|
|
1302
1300
|
* ```js
|
|
1303
1301
|
* // Listen for clicks on the view and perform a hit test on a feature layer
|
|
1304
|
-
* viewElement.addEventListener("arcgisViewClick", (event) => {
|
|
1302
|
+
* viewElement.addEventListener("arcgisViewClick", async (event) => {
|
|
1305
1303
|
* // Return hit test results from the feature layer
|
|
1306
1304
|
* // where it intersects the screen coordinates from the click event.
|
|
1307
1305
|
* // The result is a polygon representing the state that was clicked.
|
|
1308
|
-
* viewElement.hitTest(event.detail)
|
|
1309
|
-
*
|
|
1310
|
-
*
|
|
1311
|
-
*
|
|
1312
|
-
*
|
|
1313
|
-
*
|
|
1314
|
-
*
|
|
1315
|
-
* }
|
|
1316
|
-
* });
|
|
1306
|
+
* const response = await viewElement.hitTest(event.detail);
|
|
1307
|
+
* const result = response.results.find((result) => {
|
|
1308
|
+
* return result.type === "graphic" && result.graphic.layer === stateBoundaryFeatureLayer;
|
|
1309
|
+
* });
|
|
1310
|
+
* if (result) {
|
|
1311
|
+
* getPolygonCentroid(result.graphic.geometry);
|
|
1312
|
+
* }
|
|
1317
1313
|
* });
|
|
1318
1314
|
* ```
|
|
1319
1315
|
*/
|
|
@@ -405,7 +405,6 @@ export abstract class ArcgisOrientedImageryViewer extends LitElement {
|
|
|
405
405
|
*/
|
|
406
406
|
loadBestImage(mapPoint: Point, options?: AbortOptions): Promise<void>;
|
|
407
407
|
/**
|
|
408
|
-
* /**
|
|
409
408
|
* Resets the viewer to its initial state.
|
|
410
409
|
* This method clears the currently displayed image or video from the viewer and removes all associated graphics from the map.
|
|
411
410
|
*
|
package/dist/components/arcgis-oriented-imagery-viewer-non-panoramic-viewer/customElement.js
CHANGED
|
@@ -14,7 +14,7 @@ import H from "@arcgis/core/layers/support/TileInfo.js";
|
|
|
14
14
|
import { u as L } from "../../chunks/useT9n.js";
|
|
15
15
|
import { G as z } from "../../chunks/graphicsLayerController.js";
|
|
16
16
|
import { createRef as I, ref as T } from "lit/directives/ref.js";
|
|
17
|
-
const
|
|
17
|
+
const G = x`:host{height:100%;--arcgis-view-color-focus: none}`, R = {
|
|
18
18
|
xmin: -150,
|
|
19
19
|
ymin: 1,
|
|
20
20
|
xmax: 20,
|
|
@@ -23,7 +23,7 @@ const O = x`:host{height:100%;--arcgis-view-color-focus: none}`, R = {
|
|
|
23
23
|
wkid: 4326
|
|
24
24
|
}
|
|
25
25
|
}, g = 1e-6;
|
|
26
|
-
function
|
|
26
|
+
function O(i, e) {
|
|
27
27
|
if (!e)
|
|
28
28
|
return null;
|
|
29
29
|
const t = i.width / 2, a = i.height / 2, r = e.xmin + t, s = e.xmax - t, o = e.ymin + a, c = e.ymax - a;
|
|
@@ -142,7 +142,8 @@ let n = class extends V {
|
|
|
142
142
|
ioConfig: {
|
|
143
143
|
skipExtensions: ["aux.xml", "jgw"],
|
|
144
144
|
skipMapInfo: !0,
|
|
145
|
-
datasetFormat: a
|
|
145
|
+
datasetFormat: a,
|
|
146
|
+
tileGeneration: "immediate"
|
|
146
147
|
},
|
|
147
148
|
customParameters: t ?? void 0
|
|
148
149
|
});
|
|
@@ -218,7 +219,7 @@ class j extends P {
|
|
|
218
219
|
this.properties = { _imageChanged: 16, _internalMap: 16, _layer: 16, _videoTargetExtent: 16, _videoRef: 16, _loading: 16, _media: 16, hideHeader: 5, hideLoader: 5, hideZoomControls: 5, hideVideoControls: 5, messageOverrides: 0, media: 0, rotation: 9 };
|
|
219
220
|
}
|
|
220
221
|
static {
|
|
221
|
-
this.styles = [
|
|
222
|
+
this.styles = [G];
|
|
222
223
|
}
|
|
223
224
|
#t;
|
|
224
225
|
#i;
|
|
@@ -380,7 +381,7 @@ class j extends P {
|
|
|
380
381
|
const { minScale: a } = e.constraints;
|
|
381
382
|
if (!a)
|
|
382
383
|
return;
|
|
383
|
-
const r = e.scale < a - g, s =
|
|
384
|
+
const r = e.scale < a - g, s = O(t, this._videoTargetExtent);
|
|
384
385
|
if (r && !!s) {
|
|
385
386
|
this._enablePan(), e.constraints.geometry = s;
|
|
386
387
|
return;
|
|
@@ -60,8 +60,8 @@ function Ve(r) {
|
|
|
60
60
|
}
|
|
61
61
|
function O({
|
|
62
62
|
data: r,
|
|
63
|
-
center: e =
|
|
64
|
-
size: t =
|
|
63
|
+
center: e = Ge(),
|
|
64
|
+
size: t = Ee,
|
|
65
65
|
horizonPitch: o = 0,
|
|
66
66
|
horizonYaw: i = 0,
|
|
67
67
|
horizonRoll: a = 0
|
|
@@ -90,12 +90,12 @@ function O({
|
|
|
90
90
|
origin: n.extent.center
|
|
91
91
|
}), n.centerAt(s), n;
|
|
92
92
|
}
|
|
93
|
-
const
|
|
93
|
+
const Ge = () => new W({
|
|
94
94
|
x: 0,
|
|
95
95
|
y: 0,
|
|
96
96
|
z: 0,
|
|
97
97
|
spatialReference: H.WebMercator
|
|
98
|
-
}),
|
|
98
|
+
}), Ee = 1e3, ke = 114;
|
|
99
99
|
function De(r, e, t) {
|
|
100
100
|
const o = /* @__PURE__ */ new Map(), i = Array.from(r.keys()).sort((h, p) => h - p)[0], {
|
|
101
101
|
maxCol: a,
|
|
@@ -224,9 +224,9 @@ class Ze {
|
|
|
224
224
|
throw new Error(`No block boundaries found for mesh resolution level ${this._meshResolutionLevel}`);
|
|
225
225
|
const { maxCol: o, minCol: i, maxRow: a, minRow: s } = this._blockBoundaryMap.get(this._meshResolutionLevel), n = a - s + 1, l = o - i + 1, d = We(n, l, t), m = new Float64Array(d * 3), c = new Float32Array(d * 3), h = new Float32Array(d * 2), p = l * (t - 1) + 1, u = l * (t - 1);
|
|
226
226
|
for (let f = 0; f < d; f += 1) {
|
|
227
|
-
const T = Math.floor(f / p), F = f % p, I = 1 - F / (l * (t - 1)), S = T / (n * (t - 1)), N = 180 * (1 - S),
|
|
228
|
-
Math.sin(N * Math.PI / 180) * Math.sin(
|
|
229
|
-
Math.cos(
|
|
227
|
+
const T = Math.floor(f / p), F = f % p, I = 1 - F / (l * (t - 1)), S = T / (n * (t - 1)), N = 180 * (1 - S), G = 360 * (I - 0.5), P = [
|
|
228
|
+
Math.sin(N * Math.PI / 180) * Math.sin(G * Math.PI / 180),
|
|
229
|
+
Math.cos(G * Math.PI / 180) * Math.sin(N * Math.PI / 180),
|
|
230
230
|
-Math.cos(N * Math.PI / 180)
|
|
231
231
|
];
|
|
232
232
|
m[f * 3] = e * P[0], m[f * 3 + 1] = e * P[1], m[f * 3 + 2] = e * P[2], c[f * 3] = -P[0], c[f * 3 + 1] = -P[1], c[f * 3 + 2] = -P[2];
|
|
@@ -273,7 +273,7 @@ class Ze {
|
|
|
273
273
|
const V = $ * 3;
|
|
274
274
|
u += e[V], _ += e[V + 1], g += e[V + 2], p.set($, m), m += 1;
|
|
275
275
|
}
|
|
276
|
-
const T = v - w, F = f - y, I = Math.hypot(u, _, g), S = this.radius * 1.01, [N,
|
|
276
|
+
const T = v - w, F = f - y, I = Math.hypot(u, _, g), S = this.radius * 1.01, [N, G] = this.layer.tileInfo?.size ?? [256, 256], P = 0.5 / N, L = 0.5 / G;
|
|
277
277
|
this._tileAnchorMap.set(
|
|
278
278
|
c,
|
|
279
279
|
I > 0 ? [
|
|
@@ -285,7 +285,7 @@ class Ze {
|
|
|
285
285
|
for (const [R, $] of p) {
|
|
286
286
|
const B = R * 3, M = $ * 3;
|
|
287
287
|
a[M] = e[B], a[M + 1] = e[B + 1], a[M + 2] = e[B + 2], s[M] = t[B], s[M + 1] = t[B + 1], s[M + 2] = t[B + 2];
|
|
288
|
-
const A = R * 2, V = $ * 2,
|
|
288
|
+
const A = R * 2, V = $ * 2, E = o[A], te = o[A + 1], ie = T < d ? 0.5 : (E - w) / T, oe = F < d ? 0.5 : (te - y) / F;
|
|
289
289
|
n[V] = P + ie * (1 - 2 * P), n[V + 1] = L + oe * (1 - 2 * L);
|
|
290
290
|
}
|
|
291
291
|
const D = new Uint32Array(h.length);
|
|
@@ -395,17 +395,17 @@ class je {
|
|
|
395
395
|
const { minRow: n, maxRow: l, minCol: d, maxCol: m } = s, c = l - n + 1, h = m - d + 1, u = Math.max(0.1, Math.min(179.9, o)) - 90, _ = Math.max(0.01, Math.min(360, i)), g = Math.max(0.01, Math.min(180, a)), w = 360 / h, v = 180 / c, y = Math.min(12, w * 0.35), f = Math.min(8, v * 0.35), T = Math.min(360, _ + y * 2), F = Math.min(180, g + f * 2), I = Math.max(-89.9, Math.min(89.9, u - F / 2)), S = Math.max(-89.9, Math.min(89.9, u + F / 2)), N = (M) => {
|
|
396
396
|
const A = (90 - M) / 180, V = Math.floor(A * c);
|
|
397
397
|
return n + Math.max(0, Math.min(c - 1, V));
|
|
398
|
-
},
|
|
399
|
-
const A = this._normalizeHeading(M) / 360,
|
|
400
|
-
return d +
|
|
401
|
-
}, P = this._normalizeHeading(t - T / 2), L = this._normalizeHeading(t + T / 2), D = Math.min(N(S), N(I)), R = Math.max(N(S), N(I)), $ = T >= 360 ? [[d, m]] : P <= L ? [[
|
|
402
|
-
[d,
|
|
403
|
-
[
|
|
398
|
+
}, G = (M) => {
|
|
399
|
+
const A = this._normalizeHeading(M) / 360, E = (Math.floor(A * h) % h + h) % h;
|
|
400
|
+
return d + E;
|
|
401
|
+
}, P = this._normalizeHeading(t - T / 2), L = this._normalizeHeading(t + T / 2), D = Math.min(N(S), N(I)), R = Math.max(N(S), N(I)), $ = T >= 360 ? [[d, m]] : P <= L ? [[G(P), G(L)]] : [
|
|
402
|
+
[d, G(L)],
|
|
403
|
+
[G(P), m]
|
|
404
404
|
], B = /* @__PURE__ */ new Set();
|
|
405
405
|
for (let M = D; M <= R; M += 1)
|
|
406
406
|
for (const [A, V] of $)
|
|
407
|
-
for (let
|
|
408
|
-
B.add(`${e}/${M}/${
|
|
407
|
+
for (let E = A; E <= V; E += 1)
|
|
408
|
+
B.add(`${e}/${M}/${E}`);
|
|
409
409
|
return [...B];
|
|
410
410
|
}
|
|
411
411
|
_normalizeHeading(e) {
|
|
@@ -629,7 +629,8 @@ let b = class extends fe {
|
|
|
629
629
|
// @ts-ignore - datasetFormat is not part of the official ImageryTileLayer properties, but is used in the custom ioConfig for loading the image and is necessary to pass along the format information.
|
|
630
630
|
datasetFormat: this.extension,
|
|
631
631
|
skipMapInfo: !0,
|
|
632
|
-
skipExtensions: ["aux.xml", "jgw"]
|
|
632
|
+
skipExtensions: ["aux.xml", "jgw"],
|
|
633
|
+
tileGeneration: "immediate"
|
|
633
634
|
});
|
|
634
635
|
this._panoramicTileSource = new qe(e);
|
|
635
636
|
const { imageSize: t, baseMesh: o } = await this._panoramicTileSource.load();
|