@arcgis/map-components 5.2.0-next.65 → 5.2.0-next.67
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/{RMKRRXJS.js → 3B3RGT2G.js} +1 -1
- package/dist/cdn/{5KBFECNZ.js → 6NWYETZO.js} +1 -1
- package/dist/cdn/{54DPKOI2.js → AKQ23RYL.js} +1 -1
- package/dist/cdn/{FWYUKFIR.js → AOGPP4VX.js} +1 -1
- package/dist/cdn/{HRJIMMTW.js → DY6AWYYR.js} +1 -1
- package/dist/cdn/ERZ355Q7.js +2 -0
- package/dist/cdn/{FBCMR23T.js → FUISFUR3.js} +1 -1
- package/dist/cdn/GP76UUFG.js +2 -0
- package/dist/cdn/{SHNSCLFF.js → IGORAGVE.js} +2 -2
- package/dist/cdn/{WP6ZYNAK.js → KHIHHUKA.js} +1 -1
- package/dist/cdn/{DTR5I2KQ.js → L254HFGW.js} +1 -1
- package/dist/cdn/{ARVSEV26.js → MFRZNKMQ.js} +1 -1
- package/dist/cdn/{LH246IIL.js → N34R2VNP.js} +1 -1
- package/dist/cdn/NCSFZ67G.js +2 -0
- package/dist/cdn/{34HQ4DIU.js → ORO4OWNH.js} +1 -1
- package/dist/cdn/OXJ6JBJF.js +2 -0
- package/dist/cdn/{FOHSM4R7.js → PT33LZD5.js} +1 -1
- package/dist/cdn/QGWMP6TU.js +2 -0
- package/dist/cdn/SRNGMDBR.js +2 -0
- package/dist/cdn/{BYZRGKOW.js → U5NYFDPL.js} +1 -1
- package/dist/cdn/{VC4FPVTG.js → UAFLVW2D.js} +1 -1
- package/dist/cdn/{4IOVE754.js → UDZLCLOW.js} +1 -1
- package/dist/cdn/UJAX7TII.js +2 -0
- package/dist/cdn/USMSBMGF.js +2 -0
- package/dist/cdn/{RWDCU2CO.js → VFFB35S6.js} +1 -1
- package/dist/cdn/XKC3DFCU.js +2 -0
- package/dist/cdn/{3K7YV4SA.js → XVUJEFQE.js} +1 -1
- package/dist/cdn/ZGGP2PLT.js +2 -0
- package/dist/cdn/ZHA4C7BC.js +2 -0
- package/dist/cdn/assets/area-measurement-2d/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/basemap-toggle/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/selection-toolbar/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/layer-list-item.js +170 -0
- package/dist/chunks/layer-list-next.js +1 -1
- package/dist/chunks/slots.js +10 -10
- package/dist/chunks/useArcgisViewReadyError.js +35 -30
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +2 -0
- package/dist/components/arcgis-area-measurement-2d/customElement.js +42 -42
- package/dist/components/arcgis-attachments/customElement.d.ts +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +8 -0
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +61 -61
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +6 -0
- package/dist/components/arcgis-basemap-toggle/customElement.js +30 -22
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +8 -0
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +17 -17
- package/dist/components/arcgis-feature-table/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature-templates-legacy/customElement.d.ts +1 -1
- package/dist/components/arcgis-layer-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +8 -0
- package/dist/components/arcgis-layer-list-next/customElement.js +27 -27
- package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +10 -154
- package/dist/components/{arcgis-oriented-imagery-viewer-image-viewer → arcgis-oriented-imagery-viewer-non-panoramic-viewer}/customElement.d.ts +9 -3
- package/dist/components/arcgis-oriented-imagery-viewer-non-panoramic-viewer/customElement.js +411 -0
- package/dist/components/{arcgis-oriented-imagery-viewer-image-viewer → arcgis-oriented-imagery-viewer-non-panoramic-viewer}/index.js +1 -0
- package/dist/components/{arcgis-oriented-imagery-viewer-image-viewer → arcgis-oriented-imagery-viewer-non-panoramic-viewer}/support/NonPanoramicMedia.d.ts +12 -3
- package/dist/components/arcgis-selection-toolbar/customElement.d.ts +379 -0
- package/dist/components/arcgis-selection-toolbar/customElement.js +191 -0
- package/dist/components/arcgis-selection-toolbar/index.d.ts +1 -0
- package/dist/components/arcgis-selection-toolbar/index.js +10 -0
- package/dist/components/arcgis-selection-toolbar/types.d.ts +8 -0
- package/dist/components/arcgis-table-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-table-list-next/customElement.d.ts +8 -0
- package/dist/components/arcgis-table-list-next/customElement.js +12 -12
- 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/dist/index.d.ts +13 -3
- package/dist/loader.js +6 -5
- package/dist/types/lumina.d.ts +18 -8
- package/dist/types/preact.d.ts +20 -9
- package/dist/types/react.d.ts +22 -10
- package/dist/types/stencil.d.ts +18 -8
- package/package.json +6 -6
- package/dist/cdn/2CRPXLAY.js +0 -2
- package/dist/cdn/3EYX5DTH.js +0 -2
- package/dist/cdn/74IVEAEO.js +0 -2
- package/dist/cdn/EF7LH4GQ.js +0 -2
- package/dist/cdn/GBLPYWL2.js +0 -2
- package/dist/cdn/JA3PSEUL.js +0 -2
- package/dist/cdn/KAXVBIZ7.js +0 -2
- package/dist/cdn/QNQQA4BU.js +0 -2
- package/dist/cdn/VAISR7CN.js +0 -2
- package/dist/cdn/XCCZTOXH.js +0 -2
- package/dist/components/arcgis-oriented-imagery-viewer-image-viewer/customElement.js +0 -231
- /package/dist/cdn/{M5YTVQ3E.js → 2ROKOM2Z.js} +0 -0
- /package/dist/cdn/{JYWV4RJT.js → 37VIO2V5.js} +0 -0
- /package/dist/cdn/{RDWKI3KP.js → 3RVEVJVG.js} +0 -0
- /package/dist/cdn/{57URHW23.js → 4O5BM5AI.js} +0 -0
- /package/dist/cdn/{UHL5U7GJ.js → 4XAKKTWP.js} +0 -0
- /package/dist/cdn/{Y3QCO64W.js → 55GK5OAA.js} +0 -0
- /package/dist/cdn/{CGM2YWJH.js → 5KSNV3AD.js} +0 -0
- /package/dist/cdn/{GJRDLFOY.js → 6CHIESQS.js} +0 -0
- /package/dist/cdn/{3J2BDZNE.js → 6TPIG3XC.js} +0 -0
- /package/dist/cdn/{INJXVNS3.js → 6WOUFI3X.js} +0 -0
- /package/dist/cdn/{I62OLA5J.js → 73PS6B6H.js} +0 -0
- /package/dist/cdn/{SMOBVQX6.js → CBHZA2RM.js} +0 -0
- /package/dist/cdn/{VXYZPWDK.js → D4LXZSJU.js} +0 -0
- /package/dist/cdn/{3XZU4KZX.js → ETAL67B5.js} +0 -0
- /package/dist/cdn/{EAN2ER5F.js → EW7KQ7UM.js} +0 -0
- /package/dist/cdn/{7IA62IHQ.js → FQS7XRHV.js} +0 -0
- /package/dist/cdn/{KU2D7B6L.js → FRNAEEL2.js} +0 -0
- /package/dist/cdn/{F3MJCQ74.js → J3LAIXMY.js} +0 -0
- /package/dist/cdn/{A4LOY55I.js → JOPE2HA7.js} +0 -0
- /package/dist/cdn/{YKVEZBMI.js → LIKCZBSN.js} +0 -0
- /package/dist/cdn/{SKVY2FTI.js → LKS3BW4E.js} +0 -0
- /package/dist/cdn/{MUMLZBK2.js → LNV4R7FO.js} +0 -0
- /package/dist/cdn/{UT4Y7W2I.js → LYVEFTG5.js} +0 -0
- /package/dist/cdn/{YYY2B7Z3.js → M5RPB52H.js} +0 -0
- /package/dist/cdn/{2WS6ADGC.js → QDOF7WAJ.js} +0 -0
- /package/dist/cdn/{3PLX2VZZ.js → QG5I2LDY.js} +0 -0
- /package/dist/cdn/{4WTMWS4L.js → RCXLHOT5.js} +0 -0
- /package/dist/cdn/{KUGHB56Z.js → RMUOAQL7.js} +0 -0
- /package/dist/cdn/{OCYNG6CZ.js → SMGBVJDQ.js} +0 -0
- /package/dist/cdn/{5D5K4ODL.js → SWUDJD3D.js} +0 -0
- /package/dist/cdn/{TDMJD6KE.js → TXH2FVPB.js} +0 -0
- /package/dist/cdn/{ULVWM2Z5.js → TXLEUQGC.js} +0 -0
- /package/dist/cdn/{6D7LJWC3.js → URSO4VYE.js} +0 -0
- /package/dist/cdn/{Z5KZ3J36.js → VISNMKBR.js} +0 -0
- /package/dist/cdn/{WLNDY4AF.js → VM2FDVMM.js} +0 -0
- /package/dist/cdn/{ZIHLJCFU.js → VZMX6AAC.js} +0 -0
- /package/dist/cdn/{4B2SV3DL.js → W3ELQQ2T.js} +0 -0
- /package/dist/cdn/{FFKWCM3U.js → XNUG4O7M.js} +0 -0
- /package/dist/cdn/{6IZPSVRK.js → YNAWY2DP.js} +0 -0
- /package/dist/cdn/{SF5BNNTL.js → ZDEXTEYL.js} +0 -0
- /package/dist/cdn/{BSA3D7EV.js → ZTCPBOG3.js} +0 -0
- /package/dist/cdn/{POCKSTPT.js → ZUKUN26H.js} +0 -0
- /package/dist/cdn/{X7DC4UOR.js → ZWWCLNZL.js} +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.ar.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.bg.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.bs.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.ca.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.cs.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.da.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.de.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.el.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.en.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.es.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.et.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.fi.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.fr.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.he.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.hr.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.hu.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.id.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.it.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.ja.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.ko.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.lt.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.lv.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.nl.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.no.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.pl.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.pt-BR.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.pt-PT.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.ro.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.ru.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.sk.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.sl.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.sr.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.sv.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.th.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.tr.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.uk.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.vi.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.zh-CN.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.zh-HK.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.zh-TW.json +0 -0
- /package/dist/components/{arcgis-oriented-imagery-viewer-image-viewer → arcgis-oriented-imagery-viewer-non-panoramic-viewer}/index.d.ts +0 -0
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as g } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as p, html as _ } from "lit";
|
|
4
|
-
import { LitElement as f } from "@arcgis/lumina";
|
|
5
|
-
import { t as d } from "../../chunks/async-utils.js";
|
|
6
|
-
import { property as c, subclass as u } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
7
|
-
import * as y from "@arcgis/toolkit/log";
|
|
8
|
-
import w from "@arcgis/core/core/Accessor.js";
|
|
9
|
-
import "@arcgis/core/views/MapView.js";
|
|
10
|
-
import C from "@arcgis/core/geometry/SpatialReference.js";
|
|
11
|
-
import { watch as m } from "@arcgis/core/core/reactiveUtils.js";
|
|
12
|
-
import { rotateDimensions as R, registerPanConstraint as v } from "@arcgis/core/applications/Components/OrientedImageryViewer/ImageViewer/utils.js";
|
|
13
|
-
import M from "@arcgis/core/layers/support/TileInfo.js";
|
|
14
|
-
import { u as P } from "../../chunks/useT9n.js";
|
|
15
|
-
import "@arcgis/core/Graphic.js";
|
|
16
|
-
import { G as b } from "../../chunks/graphicsLayerController.js";
|
|
17
|
-
import { createRef as I, ref as L } from "lit/directives/ref.js";
|
|
18
|
-
const G = p`:host{height:100%;--arcgis-view-color-focus: none}`;
|
|
19
|
-
var x = Object.defineProperty, z = Object.getOwnPropertyDescriptor, h = (t, e, i, r) => {
|
|
20
|
-
for (var a = r > 1 ? void 0 : r ? z(e, i) : e, s = t.length - 1, o; s >= 0; s--)
|
|
21
|
-
(o = t[s]) && (a = (r ? o(e, i, a) : o(a)) || a);
|
|
22
|
-
return r && a && x(e, i, a), a;
|
|
23
|
-
};
|
|
24
|
-
let n = class extends w {
|
|
25
|
-
//--------------------------------------------------------------------------
|
|
26
|
-
//
|
|
27
|
-
// Lifecycle
|
|
28
|
-
//
|
|
29
|
-
//--------------------------------------------------------------------------
|
|
30
|
-
constructor(t) {
|
|
31
|
-
super(t), this.autoLoad = !1;
|
|
32
|
-
}
|
|
33
|
-
static isNonPanoramicMedia(t) {
|
|
34
|
-
return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass === "components.oriented-imagery-viewer.support.NonPanoramicMedia";
|
|
35
|
-
}
|
|
36
|
-
destroy() {
|
|
37
|
-
this._cache?.destroy(), this._cache = void 0;
|
|
38
|
-
}
|
|
39
|
-
get layer() {
|
|
40
|
-
return this._cache;
|
|
41
|
-
}
|
|
42
|
-
get size() {
|
|
43
|
-
if (!this._cache || this._cache.destroyed || this._cache.loadError || !this._cache.serviceRasterInfo)
|
|
44
|
-
return;
|
|
45
|
-
const { serviceRasterInfo: t } = this._cache;
|
|
46
|
-
return [t.width, t.height];
|
|
47
|
-
}
|
|
48
|
-
//---------------------------------------------------------------------------
|
|
49
|
-
//
|
|
50
|
-
// Public Methods
|
|
51
|
-
//
|
|
52
|
-
//---------------------------------------------------------------------------
|
|
53
|
-
async load(t) {
|
|
54
|
-
if (this._cache && !this._cache.destroyed)
|
|
55
|
-
return await this._cache.load(t), { layer: this._cache, size: this.size };
|
|
56
|
-
const { url: e, customParameters: i } = this;
|
|
57
|
-
let r = this.datasetFormat;
|
|
58
|
-
if (!e)
|
|
59
|
-
throw new Error("URL is required to load NonPanoramicMedia.");
|
|
60
|
-
if (!r) {
|
|
61
|
-
const o = await import("../../chunks/urlUtils.js");
|
|
62
|
-
if (d(t), r = o.guessExtensionFromURI(e), !r) {
|
|
63
|
-
try {
|
|
64
|
-
r = await o.getDatasetFormat(e);
|
|
65
|
-
} catch {
|
|
66
|
-
y.log("warn", this, "Failed to determine dataset format from URL or response headers."), r = "UNKNOWN FORMAT";
|
|
67
|
-
}
|
|
68
|
-
d(t);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
this.datasetFormat = r;
|
|
72
|
-
const a = (await import("@arcgis/core/layers/ImageryTileLayer.js")).default;
|
|
73
|
-
d(t);
|
|
74
|
-
const s = new a({
|
|
75
|
-
url: e,
|
|
76
|
-
// @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.
|
|
77
|
-
ioConfig: {
|
|
78
|
-
skipExtensions: ["aux.xml", "jgw"],
|
|
79
|
-
skipMapInfo: !0,
|
|
80
|
-
datasetFormat: r
|
|
81
|
-
},
|
|
82
|
-
customParameters: i ?? void 0
|
|
83
|
-
});
|
|
84
|
-
return await s.load(t), d(t), this._cache = s, { layer: this._cache, size: this.size };
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
h([
|
|
88
|
-
c()
|
|
89
|
-
], n.prototype, "_cache", 2);
|
|
90
|
-
h([
|
|
91
|
-
c()
|
|
92
|
-
], n.prototype, "autoLoad", 2);
|
|
93
|
-
h([
|
|
94
|
-
c()
|
|
95
|
-
], n.prototype, "customParameters", 2);
|
|
96
|
-
h([
|
|
97
|
-
c()
|
|
98
|
-
], n.prototype, "datasetFormat", 2);
|
|
99
|
-
h([
|
|
100
|
-
c()
|
|
101
|
-
], n.prototype, "url", 2);
|
|
102
|
-
h([
|
|
103
|
-
c()
|
|
104
|
-
], n.prototype, "layer", 1);
|
|
105
|
-
h([
|
|
106
|
-
c()
|
|
107
|
-
], n.prototype, "size", 1);
|
|
108
|
-
n = h([
|
|
109
|
-
u("components.oriented-imagery-viewer.support.NonPanoramicMedia")
|
|
110
|
-
], n);
|
|
111
|
-
function O(t, e, i, r, a) {
|
|
112
|
-
const { width: s, height: o } = R(t, e, a);
|
|
113
|
-
return Math.max(s / i, o / r);
|
|
114
|
-
}
|
|
115
|
-
const F = 96, A = 39.37, l = A * F;
|
|
116
|
-
function E(t) {
|
|
117
|
-
const e = l * 0.25, i = l * t, r = [];
|
|
118
|
-
let a = i;
|
|
119
|
-
for (; a > e; )
|
|
120
|
-
r.push(a), a *= 0.5;
|
|
121
|
-
r.push(e);
|
|
122
|
-
const { lods: s } = M.create({
|
|
123
|
-
scales: r
|
|
124
|
-
});
|
|
125
|
-
return {
|
|
126
|
-
minScale: i,
|
|
127
|
-
lods: s
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
class N extends f {
|
|
131
|
-
constructor() {
|
|
132
|
-
super(...arguments), this._messages = P(), this._graphicsController = new b(this), this._imageChanged = !1, this._internalMap = I(), this._loading = !1, this.hideHeader = !1, this.hideLoader = !1, this.hideZoomControls = !1, this.rotation = 0;
|
|
133
|
-
}
|
|
134
|
-
static {
|
|
135
|
-
this.properties = { _imageChanged: 16, _internalMap: 16, _image: 16, _loading: 16, _media: 16, hideHeader: 5, hideLoader: 5, hideZoomControls: 5, messageOverrides: 0, media: 0, rotation: 9 };
|
|
136
|
-
}
|
|
137
|
-
static {
|
|
138
|
-
this.styles = [G];
|
|
139
|
-
}
|
|
140
|
-
get imageRenderer() {
|
|
141
|
-
return this._internalMap?.value?.view;
|
|
142
|
-
}
|
|
143
|
-
get map() {
|
|
144
|
-
return this.imageRenderer?.map;
|
|
145
|
-
}
|
|
146
|
-
get media() {
|
|
147
|
-
return this._media;
|
|
148
|
-
}
|
|
149
|
-
set media(e) {
|
|
150
|
-
if (!e) {
|
|
151
|
-
this._mediaAbortController?.abort(), this._media = void 0, this._clearImage();
|
|
152
|
-
return;
|
|
153
|
-
}
|
|
154
|
-
this._media = e instanceof n ? e : new n(e);
|
|
155
|
-
}
|
|
156
|
-
addGraphic(e) {
|
|
157
|
-
this._graphicsController.addGraphic(e);
|
|
158
|
-
}
|
|
159
|
-
addGraphics(e) {
|
|
160
|
-
this._graphicsController.addGraphics(e);
|
|
161
|
-
}
|
|
162
|
-
clearGraphics() {
|
|
163
|
-
this._graphicsController.clearGraphics();
|
|
164
|
-
}
|
|
165
|
-
async mediaOnLoad() {
|
|
166
|
-
return this._mediaPromise && await this._mediaPromise, this._media;
|
|
167
|
-
}
|
|
168
|
-
removeGraphic(e) {
|
|
169
|
-
this._graphicsController.removeGraphic(e);
|
|
170
|
-
}
|
|
171
|
-
removeGraphics(e) {
|
|
172
|
-
this._graphicsController.removeGraphics(e);
|
|
173
|
-
}
|
|
174
|
-
loaded() {
|
|
175
|
-
this.manager.onLifecycle(() => [
|
|
176
|
-
this._createResizeConstraint(),
|
|
177
|
-
this._createRotationHandler(),
|
|
178
|
-
this._createPanConstraint(),
|
|
179
|
-
m(() => this._media, (e) => {
|
|
180
|
-
this._mediaAbortController?.abort(), e && (this._mediaAbortController = new AbortController(), this._mediaPromise = this._loadMediaInternal(e, this._mediaAbortController));
|
|
181
|
-
}, {
|
|
182
|
-
initial: !0,
|
|
183
|
-
sync: !0
|
|
184
|
-
})
|
|
185
|
-
]);
|
|
186
|
-
}
|
|
187
|
-
_createPanConstraint() {
|
|
188
|
-
return m(() => ({ image: this._image, imageRenderer: this.imageRenderer }), ({ image: e, imageRenderer: i }) => {
|
|
189
|
-
!e || !i?.ready || v(i, e);
|
|
190
|
-
}, { sync: !0, initial: !0 });
|
|
191
|
-
}
|
|
192
|
-
_createResizeConstraint() {
|
|
193
|
-
return m(() => {
|
|
194
|
-
if (!this.imageRenderer?.ready || !this._image)
|
|
195
|
-
return;
|
|
196
|
-
const { width: e, height: i } = this._image.serviceRasterInfo, { width: r, height: a, rotation: s } = this.imageRenderer;
|
|
197
|
-
return O(e, i, r, a, s);
|
|
198
|
-
}, (e) => {
|
|
199
|
-
if (!e || !this.imageRenderer)
|
|
200
|
-
return;
|
|
201
|
-
const { constraints: i, scale: r } = this.imageRenderer, a = i.minScale, { lods: s, minScale: o } = E(e);
|
|
202
|
-
i.set({
|
|
203
|
-
minScale: o,
|
|
204
|
-
lods: s
|
|
205
|
-
}), this.imageRenderer.scale = this._imageChanged || Math.abs(r - a) <= 1e-6 ? o : r, this._imageChanged = !1;
|
|
206
|
-
}, { sync: !0, initial: !0 });
|
|
207
|
-
}
|
|
208
|
-
_createRotationHandler() {
|
|
209
|
-
return m(() => this.rotation, (e) => {
|
|
210
|
-
this.imageRenderer && (this.imageRenderer.constraints.rotationEnabled = !0, this.imageRenderer.rotation = e, this.imageRenderer.constraints.rotationEnabled = !1);
|
|
211
|
-
}, { sync: !0, initial: !0 });
|
|
212
|
-
}
|
|
213
|
-
_clearImage() {
|
|
214
|
-
this._image?.destroy(), this._image = void 0;
|
|
215
|
-
}
|
|
216
|
-
async _loadMediaInternal(e, i) {
|
|
217
|
-
if (this._loading = !0, this._clearImage(), !e)
|
|
218
|
-
throw new Error("No media provided");
|
|
219
|
-
const { layer: r } = await e.load(i).finally(() => {
|
|
220
|
-
this._loading = !1;
|
|
221
|
-
});
|
|
222
|
-
d(i), this._imageChanged = !0, this._image = r, this.imageRenderer?.map?.layers.add(this._image);
|
|
223
|
-
}
|
|
224
|
-
render() {
|
|
225
|
-
return _`<calcite-panel .loading=${this.hideLoader ? void 0 : this._loading} .heading=${this.hideHeader ? void 0 : this._messages.title}><arcgis-map hide-attribution .spatialReference=${C.WebMercator} ${L(this._internalMap)}><arcgis-zoom .hidden=${this.hideZoomControls} .messageOverrides=${this.messageOverrides} slot=top-left></arcgis-zoom></arcgis-map></calcite-panel>`;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
g("arcgis-oriented-imagery-viewer-image-viewer", N);
|
|
229
|
-
export {
|
|
230
|
-
N as ArcgisOrientedImageryViewerImageViewer
|
|
231
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|