@arcgis/map-components 4.32.0-next.7 → 4.32.0-next.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/arcgis-map-components/{YAKDNQDU.js → 26IYLFMW.js} +2 -2
- package/dist/arcgis-map-components/2NLVO2DQ.js +6 -0
- package/dist/arcgis-map-components/4DS67L3N.js +6 -0
- package/dist/arcgis-map-components/4U3MD2IE.js +6 -0
- package/dist/arcgis-map-components/5CG53WVB.js +6 -0
- package/dist/arcgis-map-components/5S45K6QF.js +6 -0
- package/dist/arcgis-map-components/5UPWC6GZ.js +6 -0
- package/dist/arcgis-map-components/5XDQP6JG.js +6 -0
- package/dist/arcgis-map-components/6B5KJD57.js +6 -0
- package/dist/arcgis-map-components/6I7U5UCS.js +6 -0
- package/dist/arcgis-map-components/A2A7Z4ID.js +6 -0
- package/dist/arcgis-map-components/AD7FBQ4W.js +6 -0
- package/dist/arcgis-map-components/AEPYAEVB.js +6 -0
- package/dist/arcgis-map-components/{TCHQQ6YP.js → AJBMZJ46.js} +2 -2
- package/dist/arcgis-map-components/ASOVND72.js +6 -0
- package/dist/arcgis-map-components/BDQRZM2Q.js +6 -0
- package/dist/arcgis-map-components/BW6XFJ64.js +6 -0
- package/dist/arcgis-map-components/BWSISUD3.js +6 -0
- package/dist/arcgis-map-components/CE427RF3.js +6 -0
- package/dist/arcgis-map-components/{4ZMBY532.js → DR55OESP.js} +1 -1
- package/dist/arcgis-map-components/{UX4JJY2U.js → DZGDTHN3.js} +2 -2
- package/dist/arcgis-map-components/E5NA4STS.js +6 -0
- package/dist/arcgis-map-components/{JGBTUFPL.js → ECNITWEN.js} +2 -2
- package/dist/arcgis-map-components/EP2NIALP.js +6 -0
- package/dist/arcgis-map-components/G6A2LTFS.js +6 -0
- package/dist/arcgis-map-components/GHMNH7PB.js +6 -0
- package/dist/arcgis-map-components/GOUTHFFW.js +6 -0
- package/dist/arcgis-map-components/H2SRIRSA.js +6 -0
- package/dist/arcgis-map-components/HHSIOPLT.js +6 -0
- package/dist/arcgis-map-components/I6MLF4MJ.js +6 -0
- package/dist/arcgis-map-components/IGEB3BAW.js +6 -0
- package/dist/arcgis-map-components/IWQWKCKH.js +6 -0
- package/dist/arcgis-map-components/KJVDJ5OQ.js +6 -0
- package/dist/arcgis-map-components/LDQ4VWNS.js +6 -0
- package/dist/arcgis-map-components/{LX73HFSX.js → LPX3CLLP.js} +2 -2
- package/dist/arcgis-map-components/LS5OI6R6.js +6 -0
- package/dist/arcgis-map-components/NJA3KSNJ.js +6 -0
- package/dist/arcgis-map-components/NYSPYER3.js +6 -0
- package/dist/arcgis-map-components/{UZQHNANU.js → O37OVJBX.js} +2 -2
- package/dist/arcgis-map-components/OGAYYWBW.js +6 -0
- package/dist/arcgis-map-components/P3VFC5ZQ.js +6 -0
- package/dist/arcgis-map-components/PIXMMVWC.js +6 -0
- package/dist/arcgis-map-components/{ZIY4VYAM.js → PPUMGJ6W.js} +4 -4
- package/dist/arcgis-map-components/PSV23ZT3.js +6 -0
- package/dist/arcgis-map-components/PUWJT4NL.js +6 -0
- package/dist/arcgis-map-components/Q5PZSLA2.js +6 -0
- package/dist/arcgis-map-components/QEXPZ2TP.js +6 -0
- package/dist/arcgis-map-components/{WD4FY5PW.js → QLIW6OTC.js} +2 -2
- package/dist/arcgis-map-components/RBIF6BPB.js +6 -0
- package/dist/arcgis-map-components/RGW45NMO.js +6 -0
- package/dist/arcgis-map-components/RPGH4LB5.js +6 -0
- package/dist/arcgis-map-components/{JYJ4UHNH.js → RW4HTOWG.js} +2 -2
- package/dist/arcgis-map-components/{WVG2XL45.js → RYYEB6TZ.js} +2 -2
- package/dist/arcgis-map-components/S5FY5R2K.js +6 -0
- package/dist/arcgis-map-components/{XDSXW32X.js → SB7AEVIC.js} +2 -2
- package/dist/arcgis-map-components/TQSVOK7C.js +6 -0
- package/dist/arcgis-map-components/{O5XG46EP.js → TVJVBCTP.js} +2 -2
- package/dist/arcgis-map-components/UGW6Q5E5.js +6 -0
- package/dist/arcgis-map-components/{ZIVFGNA3.js → UNA6PFSU.js} +2 -2
- package/dist/arcgis-map-components/V6CV3CBQ.js +6 -0
- package/dist/arcgis-map-components/{6SG2OALL.js → W2WPL3LZ.js} +2 -2
- package/dist/arcgis-map-components/{DR6IOA6M.js → WIFWKZMZ.js} +2 -2
- package/dist/arcgis-map-components/XDUFXVMY.js +6 -0
- package/dist/arcgis-map-components/{EF72I5WZ.js → XQBJES6M.js} +1 -1
- package/dist/arcgis-map-components/XTHTIM4Q.js +6 -0
- package/dist/arcgis-map-components/XWWCB3F4.js +6 -0
- package/dist/arcgis-map-components/XXDM3O3A.js +6 -0
- package/dist/arcgis-map-components/{V6UWCX5S.js → YONYTIVG.js} +2 -2
- package/dist/arcgis-map-components/{XOXPFGC5.js → Z4MFCZ54.js} +2 -2
- package/dist/arcgis-map-components/{WPNJSRZ6.js → Z6SSMZQE.js} +2 -2
- package/dist/arcgis-map-components/ZLNOA2ME.js +6 -0
- package/dist/arcgis-map-components/arcgis-map-components.esm.js +2 -2
- package/dist/chunks/component-utils.js +3 -3
- package/dist/chunks/disconnected.js +1 -1
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/useViewModel.js +1 -1
- package/dist/chunks/useWidget.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +7 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.js +14 -10
- package/dist/components/arcgis-area-measurement-3d/customElement.js +7 -3
- package/dist/components/arcgis-attachments/customElement.d.ts +7 -0
- package/dist/components/arcgis-attachments/customElement.js +11 -7
- package/dist/components/arcgis-basemap-gallery/customElement.js +10 -6
- package/dist/components/arcgis-basemap-layer-list/customElement.js +10 -6
- package/dist/components/arcgis-basemap-toggle/customElement.js +16 -12
- package/dist/components/arcgis-bookmarks/customElement.js +12 -8
- package/dist/components/arcgis-building-explorer/customElement.js +10 -6
- package/dist/components/arcgis-catalog-layer-list/customElement.js +10 -6
- package/dist/components/arcgis-compass/customElement.js +19 -12
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +4 -5
- package/dist/components/arcgis-coordinate-conversion/customElement.js +10 -6
- package/dist/components/arcgis-daylight/customElement.d.ts +7 -0
- package/dist/components/arcgis-daylight/customElement.js +12 -8
- package/dist/components/arcgis-directional-pad/customElement.js +12 -8
- package/dist/components/arcgis-directions/customElement.js +16 -12
- package/dist/components/arcgis-directline-measurement-3d/customElement.d.ts +7 -1
- package/dist/components/arcgis-directline-measurement-3d/customElement.js +10 -6
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +0 -7
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +14 -10
- package/dist/components/arcgis-editor/customElement.js +11 -7
- package/dist/components/arcgis-elevation-profile/customElement.js +10 -6
- package/dist/components/arcgis-expand/customElement.js +2 -2
- package/dist/components/arcgis-feature/customElement.js +18 -14
- package/dist/components/arcgis-feature-form/customElement.d.ts +7 -0
- package/dist/components/arcgis-feature-form/customElement.js +10 -6
- package/dist/components/arcgis-feature-table/customElement.d.ts +3 -1
- package/dist/components/arcgis-feature-table/customElement.js +8 -8
- package/dist/components/arcgis-feature-templates/customElement.d.ts +7 -0
- package/dist/components/arcgis-feature-templates/customElement.js +10 -6
- package/dist/components/arcgis-features/customElement.d.ts +7 -0
- package/dist/components/arcgis-features/customElement.js +10 -6
- package/dist/components/arcgis-floor-filter/customElement.d.ts +7 -0
- package/dist/components/arcgis-floor-filter/customElement.js +10 -6
- package/dist/components/arcgis-fullscreen/customElement.js +15 -11
- package/dist/components/arcgis-histogram/customElement.d.ts +7 -0
- package/dist/components/arcgis-histogram/customElement.js +10 -6
- package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +0 -4
- package/dist/components/arcgis-histogram-range-slider/customElement.js +12 -8
- package/dist/components/arcgis-home/customElement.js +15 -11
- package/dist/components/arcgis-layer-list/customElement.js +10 -6
- package/dist/components/arcgis-legend/customElement.js +10 -6
- package/dist/components/arcgis-line-of-sight/customElement.js +12 -8
- package/dist/components/arcgis-locate/customElement.js +14 -10
- package/dist/components/arcgis-map/customElement.js +32 -32
- package/dist/components/arcgis-measurement/customElement.js +10 -6
- package/dist/components/arcgis-navigation-toggle/customElement.js +12 -8
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +12 -8
- package/dist/components/arcgis-placement/customElement.js +1 -1
- package/dist/components/arcgis-print/customElement.js +10 -6
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.js +10 -6
- package/dist/components/arcgis-scene/customElement.d.ts +18 -1
- package/dist/components/arcgis-scene/customElement.js +30 -13
- package/dist/components/arcgis-search/customElement.d.ts +7 -1
- package/dist/components/arcgis-search/customElement.js +10 -6
- package/dist/components/arcgis-shadow-cast/customElement.js +10 -6
- package/dist/components/arcgis-sketch/customElement.d.ts +7 -0
- package/dist/components/arcgis-sketch/customElement.js +12 -8
- package/dist/components/arcgis-slice/customElement.js +12 -8
- package/dist/components/arcgis-slider/customElement.js +7 -7
- package/dist/components/arcgis-swipe/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.js +15 -11
- package/dist/components/arcgis-time-slider/customElement.js +13 -9
- package/dist/components/arcgis-track/customElement.d.ts +1 -1
- package/dist/components/arcgis-track/customElement.js +13 -9
- package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.d.ts +0 -7
- package/dist/components/arcgis-value-picker/customElement.js +10 -6
- package/dist/components/arcgis-version-management/customElement.js +1 -1
- package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
- package/dist/components/arcgis-weather/customElement.js +12 -8
- package/dist/components/arcgis-zoom/customElement.js +7 -7
- package/dist/controllers/useViewModel.d.ts +3 -1
- package/dist/controllers/useWidget.d.ts +1 -1
- package/dist/docs/docs.json +48 -7
- package/dist/docs/manifest.json +59 -11
- package/dist/docs/vscode.html-custom-data.json +10 -5
- package/dist/docs/web-types.json +30 -10
- package/dist/index.d.ts +8 -3
- package/dist/index.js +7 -4
- package/dist/loader.js +2 -2
- package/dist/types/components.d.ts +1 -5
- package/dist/types/lumina.d.ts +2 -1
- package/dist/types/preact.d.ts +2 -1
- package/dist/types/react.d.ts +2 -1
- package/dist/types/stencil.d.ts +2 -1
- package/package.json +7 -7
- package/dist/arcgis-map-components/2A25TYG6.js +0 -6
- package/dist/arcgis-map-components/2N55O26O.js +0 -6
- package/dist/arcgis-map-components/2QSFHBVG.js +0 -6
- package/dist/arcgis-map-components/2TOMY7TD.js +0 -6
- package/dist/arcgis-map-components/52PFU3FG.js +0 -6
- package/dist/arcgis-map-components/5X4OBSHN.js +0 -6
- package/dist/arcgis-map-components/64YWLPOV.js +0 -6
- package/dist/arcgis-map-components/6ATH4SYH.js +0 -6
- package/dist/arcgis-map-components/7BUGSZRT.js +0 -6
- package/dist/arcgis-map-components/7JXHFKEX.js +0 -6
- package/dist/arcgis-map-components/7KTLQHJ5.js +0 -6
- package/dist/arcgis-map-components/AK3FXQDM.js +0 -6
- package/dist/arcgis-map-components/AWVMMDFK.js +0 -6
- package/dist/arcgis-map-components/B7OXFC7J.js +0 -6
- package/dist/arcgis-map-components/BRXQ33AJ.js +0 -6
- package/dist/arcgis-map-components/DAKYQPUS.js +0 -6
- package/dist/arcgis-map-components/DEGQKFZW.js +0 -6
- package/dist/arcgis-map-components/DSXTSZOH.js +0 -6
- package/dist/arcgis-map-components/E2EPRMSI.js +0 -6
- package/dist/arcgis-map-components/F63CZB7R.js +0 -6
- package/dist/arcgis-map-components/FJB34PJD.js +0 -6
- package/dist/arcgis-map-components/FLLDDWNY.js +0 -6
- package/dist/arcgis-map-components/FTOXJ6Y2.js +0 -6
- package/dist/arcgis-map-components/H6WFGH37.js +0 -6
- package/dist/arcgis-map-components/HVSLLIFX.js +0 -6
- package/dist/arcgis-map-components/IBQQAJNR.js +0 -6
- package/dist/arcgis-map-components/J4YWDWCW.js +0 -6
- package/dist/arcgis-map-components/J6RZCZEJ.js +0 -6
- package/dist/arcgis-map-components/KFWR3743.js +0 -6
- package/dist/arcgis-map-components/KT7V76Z5.js +0 -6
- package/dist/arcgis-map-components/LEYT65FJ.js +0 -6
- package/dist/arcgis-map-components/LNUEJ2YO.js +0 -6
- package/dist/arcgis-map-components/MNBV2LVQ.js +0 -6
- package/dist/arcgis-map-components/MRUGEIEN.js +0 -6
- package/dist/arcgis-map-components/O5F6WGV3.js +0 -6
- package/dist/arcgis-map-components/OL46KGZ3.js +0 -6
- package/dist/arcgis-map-components/ONF42IHH.js +0 -6
- package/dist/arcgis-map-components/ORBUFGQZ.js +0 -6
- package/dist/arcgis-map-components/P7R7WEZQ.js +0 -6
- package/dist/arcgis-map-components/PGZJFOZB.js +0 -6
- package/dist/arcgis-map-components/Q73GCMNG.js +0 -6
- package/dist/arcgis-map-components/QELGYUUG.js +0 -6
- package/dist/arcgis-map-components/QLGVLJYK.js +0 -6
- package/dist/arcgis-map-components/R3IRKDGV.js +0 -6
- package/dist/arcgis-map-components/RVVU7ACX.js +0 -6
- package/dist/arcgis-map-components/S6IT5W3C.js +0 -6
- package/dist/arcgis-map-components/SC2UR5WA.js +0 -6
- package/dist/arcgis-map-components/TPKPZQWV.js +0 -6
- package/dist/arcgis-map-components/WQEUM47V.js +0 -6
- package/dist/arcgis-map-components/XU7RHRB6.js +0 -6
- package/dist/arcgis-map-components/ZZDXJBNG.js +0 -6
@@ -1,17 +1,17 @@
|
|
1
1
|
import { c as w } from "../../chunks/runtime.js";
|
2
|
-
import { load as
|
3
|
-
import { makeAccessorController as r, reEmitEvent as
|
4
|
-
import { newWebMap as
|
5
|
-
import { e as s,
|
6
|
-
import { LitElement as
|
7
|
-
import { css as
|
2
|
+
import { load as c } from "@arcgis/components-controllers";
|
3
|
+
import { makeAccessorController as r, reEmitEvent as e, accessorSupport as p } from "@arcgis/components-controllers/accessor";
|
4
|
+
import { newWebMap as v, newViewsMapView as d, importCoreReactiveUtils as m } from "@arcgis/core-adapter";
|
5
|
+
import { e as s, i as l } from "../../chunks/component-utils.js";
|
6
|
+
import { LitElement as g, createEvent as a, noShadowRoot as u } from "@arcgis/lumina";
|
7
|
+
import { css as y } from "@lit/reactive-element/css-tag.js";
|
8
8
|
/*!
|
9
9
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
10
10
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
11
|
-
* v4.32.0-next.
|
11
|
+
* v4.32.0-next.9
|
12
12
|
*/
|
13
|
-
const f =
|
14
|
-
|
13
|
+
const f = y`.arcgis-map{padding:0;margin:0;height:100%;width:100%}`, V = r(
|
14
|
+
v,
|
15
15
|
/**
|
16
16
|
* Since omitProps is only needed for typing, not runtime, `{} as { ... }` is
|
17
17
|
* a hack to remove them from the runtime code. This argument is not used at
|
@@ -21,16 +21,16 @@ const f = u`.arcgis-map{padding:0;margin:0;height:100%;width:100%}`, V = r(
|
|
21
21
|
* in an externalized package.
|
22
22
|
*/
|
23
23
|
{}
|
24
|
-
), b = r(
|
25
|
-
class _ extends
|
24
|
+
), b = r(d, {});
|
25
|
+
class _ extends g {
|
26
26
|
constructor() {
|
27
|
-
super(...arguments), this._map = V(this, { editConstructorProperties: this._editMapProperties }), this.reactiveUtils =
|
27
|
+
super(...arguments), this._map = V(this, { editConstructorProperties: this._editMapProperties }), this.reactiveUtils = c(m), this.view = b(this, { editConstructorProperties: this._editViewProperties }), this.allLayerViews = this.view.allLayerViews, this.autoDestroyDisabled = !1, this.background = this.view.background, this.basemap = this._map.basemap, this.basemapView = this.view.basemapView, this.constraints = this.view.constraints, this.fatalError = this.view.fatalError, this.floors = this.view.floors, this.graphics = this.view.graphics, this.ground = this._map.ground, this.highlightOptions = this.view.highlightOptions, this.ipsInfo = this._map.ipsInfo, this.layerViews = this.view.layerViews, this.magnifier = this.view.magnifier, this.map = this.view.map, this.navigation = this.view.navigation, this.padding = this.view.padding, this.popup = this.view.popup, this.popupDisabled = this.view.popupEnabled, this.ready = this.view.ready, this.resizeAlign = this.view.resizeAlign, this.resolution = this.view.resolution, this.rotation = this.view.rotation, this.spatialReference = this.view.spatialReference, this.suspended = this.view.suspended, this.theme = this.view.theme, this.timeExtent = this.view.timeExtent, this.timeZone = this.view.timeZone, this.updating = this.view.updating, this.arcgisViewChange = a(), this.arcgisViewClick = e(() => this.view, "click"), this.arcgisViewDoubleClick = e(() => this.view, "double-click"), this.arcgisViewDrag = e(() => this.view, "drag"), this.arcgisViewHold = e(() => this.view, "hold"), this.arcgisViewImmediateClick = e(() => this.view, "immediate-click"), this.arcgisViewImmediateDoubleClick = e(() => this.view, "immediate-double-click"), this.arcgisViewKeyDown = e(() => this.view, "key-down"), this.arcgisViewKeyUp = e(() => this.view, "key-up"), this.arcgisViewLayerviewCreate = e(() => this.view, "layer-view-create"), this.arcgisViewLayerviewCreateError = e(() => this.view, "layer-view-create-error"), this.arcgisViewLayerviewDestroy = e(() => this.view, "layer-view-destroy"), this.arcgisViewMouseWheel = e(() => this.view, "mouse-wheel"), this.arcgisViewPointerDown = e(() => this.view, "pointer-down"), this.arcgisViewPointerEnter = e(() => this.view, "pointer-enter"), this.arcgisViewPointerLeave = e(() => this.view, "pointer-leave"), this.arcgisViewPointerMove = e(() => this.view, "pointer-move"), this.arcgisViewPointerUp = e(() => this.view, "pointer-up"), this.arcgisViewReadyChange = a();
|
28
28
|
}
|
29
29
|
static {
|
30
30
|
this.properties = { view: 32, allLayerViews: 0, autoDestroyDisabled: 5, background: 0, basemap: 1, basemapView: 0, center: 1, constraints: 0, extent: 0, fatalError: 0, floors: 0, gamepad: 32, graphics: 0, ground: 1, highlightOptions: 0, interacting: 32, ipsInfo: 0, itemId: 3, layerViews: 0, magnifier: 0, map: 0, navigating: 32, navigation: 0, padding: 0, popup: 0, popupDisabled: 5, ready: 0, resizeAlign: 1, resolution: 8, rotation: 9, scale: 9, spatialReference: 0, stationary: 32, suspended: 7, theme: 0, timeExtent: 0, timeZone: 1, updating: 7, viewpoint: 0, zoom: 9 };
|
31
31
|
}
|
32
32
|
static {
|
33
|
-
this.shadowRootOptions =
|
33
|
+
this.shadowRootOptions = u;
|
34
34
|
}
|
35
35
|
static {
|
36
36
|
this.styles = f;
|
@@ -46,8 +46,8 @@ class _ extends l {
|
|
46
46
|
return this.view.center ?? this._center;
|
47
47
|
}
|
48
48
|
set center(i) {
|
49
|
-
const
|
50
|
-
|
49
|
+
const t = s(i, this.ready ? this.view : void 0);
|
50
|
+
t && (this.ready && (this.view.center = t), this._center = t);
|
51
51
|
}
|
52
52
|
/**
|
53
53
|
* The extent represents the visible portion of a map within the view as an instance of esri/geometry/Extent.
|
@@ -74,7 +74,7 @@ class _ extends l {
|
|
74
74
|
return this._map.portalItem?.id ?? this._itemId;
|
75
75
|
}
|
76
76
|
set itemId(i) {
|
77
|
-
this._itemId = i, this.ready &&
|
77
|
+
this._itemId = i, this.ready && p.reCreate(this._map, this).then(() => {
|
78
78
|
this.view.map = this._map;
|
79
79
|
}).catch(console.error);
|
80
80
|
}
|
@@ -105,7 +105,7 @@ class _ extends l {
|
|
105
105
|
return this.view.viewpoint ?? this._viewpoint;
|
106
106
|
}
|
107
107
|
set viewpoint(i) {
|
108
|
-
|
108
|
+
l(this.viewpoint, i) && (this.ready && (this.view.viewpoint = i), this._viewpoint = i);
|
109
109
|
}
|
110
110
|
/**
|
111
111
|
* Represents the level of detail (LOD) at the center of the view.
|
@@ -127,12 +127,12 @@ class _ extends l {
|
|
127
127
|
// #endregion
|
128
128
|
// #region Public Methods
|
129
129
|
/** Adds a layer to the map layers collection. */
|
130
|
-
async addLayer(i,
|
131
|
-
this.map?.add(i,
|
130
|
+
async addLayer(i, t) {
|
131
|
+
this.map?.add(i, t);
|
132
132
|
}
|
133
133
|
/** Adds a layer or array of layers to the map layers collection. */
|
134
|
-
async addLayers(i,
|
135
|
-
this.map?.addMany(i,
|
134
|
+
async addLayers(i, t) {
|
135
|
+
this.map?.addMany(i, t);
|
136
136
|
}
|
137
137
|
/** Closes the popup. */
|
138
138
|
async closePopup() {
|
@@ -143,12 +143,12 @@ class _ extends l {
|
|
143
143
|
await this.manager.destroy();
|
144
144
|
}
|
145
145
|
/** Sets the view to a given target. */
|
146
|
-
async goTo(i,
|
147
|
-
return await this.view?.goTo(i,
|
146
|
+
async goTo(i, t) {
|
147
|
+
return await this.view?.goTo(i, t);
|
148
148
|
}
|
149
149
|
/** Returns hit test results from each layer that intersects the specified screen coordinates. */
|
150
|
-
async hitTest(i,
|
151
|
-
return await this.view?.hitTest(i,
|
150
|
+
async hitTest(i, t) {
|
151
|
+
return await this.view?.hitTest(i, t);
|
152
152
|
}
|
153
153
|
/**
|
154
154
|
* Opens the popup at the given location with content defined either explicitly with content or driven
|
@@ -164,8 +164,8 @@ class _ extends l {
|
|
164
164
|
toMap(i) {
|
165
165
|
return this.view.toMap(i);
|
166
166
|
}
|
167
|
-
toScreen(i,
|
168
|
-
return this.view.toScreen(i,
|
167
|
+
toScreen(i, t) {
|
168
|
+
return this.view.toScreen(i, t);
|
169
169
|
}
|
170
170
|
/** Call this method to clear any fatal errors resulting from a lost WebGL context. */
|
171
171
|
async tryFatalErrorRecovery() {
|
@@ -192,9 +192,9 @@ class _ extends l {
|
|
192
192
|
// #endregion
|
193
193
|
// #region Private Methods
|
194
194
|
_editMapProperties(i) {
|
195
|
-
this.map && (this._map = this.map), this.itemId ? i.portalItem = { id: this.itemId } : this.basemap ? this.basemap === "none" && (i.basemap = void 0) : i.basemap = "topo-vector";
|
196
|
-
const { basemap:
|
197
|
-
|
195
|
+
this.map && (this._map = this.map), this.itemId ? i.portalItem = { id: this.itemId } : this.basemap ? this.basemap === "none" && (i.basemap = void 0, this.basemap = null) : i.basemap = "topo-vector";
|
196
|
+
const { basemap: t, ...h } = i;
|
197
|
+
t || (i = h);
|
198
198
|
const { ground: o, ...n } = i;
|
199
199
|
return o || (i = n), i;
|
200
200
|
}
|
@@ -202,8 +202,8 @@ class _ extends l {
|
|
202
202
|
await this.manager.use(this._map), this.view.ui || (i.ui = {
|
203
203
|
components: ["attribution"]
|
204
204
|
}), i.map ??= this._map;
|
205
|
-
const
|
206
|
-
return
|
205
|
+
const t = s(this.center, void 0);
|
206
|
+
return t && (i.center = t), this.viewpoint && (i.viewpoint = this.viewpoint), this.scale !== void 0 && (i.scale = this.scale), this.extent && (i.extent = this.extent), this.zoom !== void 0 && (i.zoom = this.zoom), i;
|
207
207
|
}
|
208
208
|
}
|
209
209
|
w("arcgis-map", _);
|
@@ -3,15 +3,16 @@ import { newWidgetsMeasurement as e } from "@arcgis/core-adapter";
|
|
3
3
|
import { usePropertyChange as i } from "@arcgis/components-controllers";
|
4
4
|
import { m as s } from "../../chunks/useWidget.js";
|
5
5
|
import { LitElement as a, createEvent as o, noShadowRoot as r } from "@arcgis/lumina";
|
6
|
+
import { css as n } from "@lit/reactive-element/css-tag.js";
|
6
7
|
/*!
|
7
8
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
8
9
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
9
|
-
* v4.32.0-next.
|
10
|
+
* v4.32.0-next.9
|
10
11
|
*/
|
11
|
-
const n = s(e);
|
12
|
-
class
|
12
|
+
const c = n`arcgis-measurement{display:flex}`, h = s(e);
|
13
|
+
class l extends a {
|
13
14
|
constructor() {
|
14
|
-
super(...arguments), this.widget =
|
15
|
+
super(...arguments), this.widget = h(this), this.viewModel = this.widget.viewModel, this.activeTool = this.widget.activeTool, this.activeWidget = this.widget.activeWidget, this.areaUnit = this.widget.areaUnit, this.autoDestroyDisabled = !1, this.icon = this.widget.icon, this.label = this.widget.label, this.linearUnit = this.widget.linearUnit, this.position = "bottom-left", this.state = this.viewModel.state, this.arcgisPropertyChange = i()("activeTool", "state"), this.arcgisReady = o();
|
15
16
|
}
|
16
17
|
static {
|
17
18
|
this.properties = { activeTool: 1, activeWidget: 0, areaUnit: 1, autoDestroyDisabled: 5, icon: 1, label: 1, linearUnit: 1, position: 1, referenceElement: 1, state: 3 };
|
@@ -19,6 +20,9 @@ class h extends a {
|
|
19
20
|
static {
|
20
21
|
this.shadowRootOptions = r;
|
21
22
|
}
|
23
|
+
static {
|
24
|
+
this.styles = c;
|
25
|
+
}
|
22
26
|
// #endregion
|
23
27
|
// #region Public Methods
|
24
28
|
async clear() {
|
@@ -32,7 +36,7 @@ class h extends a {
|
|
32
36
|
this.widget?.startMeasurement();
|
33
37
|
}
|
34
38
|
}
|
35
|
-
t("arcgis-measurement",
|
39
|
+
t("arcgis-measurement", l);
|
36
40
|
export {
|
37
|
-
|
41
|
+
l as ArcgisMeasurement
|
38
42
|
};
|
@@ -1,17 +1,18 @@
|
|
1
1
|
import { c as t } from "../../chunks/runtime.js";
|
2
2
|
import { newWidgetsNavigationToggle as e } from "@arcgis/core-adapter";
|
3
3
|
import { usePropertyChange as i } from "@arcgis/components-controllers";
|
4
|
-
import { m as
|
5
|
-
import { LitElement as
|
4
|
+
import { m as s } from "../../chunks/useWidget.js";
|
5
|
+
import { LitElement as o, createEvent as a, noShadowRoot as r } from "@arcgis/lumina";
|
6
|
+
import { css as g } from "@lit/reactive-element/css-tag.js";
|
6
7
|
/*!
|
7
8
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
8
9
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
9
|
-
* v4.32.0-next.
|
10
|
+
* v4.32.0-next.9
|
10
11
|
*/
|
11
|
-
const g =
|
12
|
-
class
|
12
|
+
const l = g`arcgis-navigation-toggle{display:flex}`, n = s(e);
|
13
|
+
class h extends o {
|
13
14
|
constructor() {
|
14
|
-
super(...arguments), this.widget =
|
15
|
+
super(...arguments), this.widget = n(this), this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.icon = this.widget.icon, this.label = this.widget.label, this.layout = this.widget.layout, this.position = "bottom-left", this.state = this.viewModel.state, this.arcgisPropertyChange = i()("layout", "state"), this.arcgisReady = a();
|
15
16
|
}
|
16
17
|
static {
|
17
18
|
this.properties = { autoDestroyDisabled: 5, icon: 1, label: 1, layout: 3, position: 1, referenceElement: 1, state: 3 };
|
@@ -19,6 +20,9 @@ class l extends s {
|
|
19
20
|
static {
|
20
21
|
this.shadowRootOptions = r;
|
21
22
|
}
|
23
|
+
static {
|
24
|
+
this.styles = l;
|
25
|
+
}
|
22
26
|
// #endregion
|
23
27
|
// #region Public Methods
|
24
28
|
/** Permanently destroy the component */
|
@@ -29,7 +33,7 @@ class l extends s {
|
|
29
33
|
this.widget?.toggle();
|
30
34
|
}
|
31
35
|
}
|
32
|
-
t("arcgis-navigation-toggle",
|
36
|
+
t("arcgis-navigation-toggle", h);
|
33
37
|
export {
|
34
|
-
|
38
|
+
h as ArcgisNavigationToggle
|
35
39
|
};
|
@@ -2,22 +2,26 @@ import { c as a } from "../../chunks/runtime.js";
|
|
2
2
|
import { usePropertyChange as s } from "@arcgis/components-controllers";
|
3
3
|
import { newLayersOrientedImageryLayer as r, newWidgetsOrientedImageryViewer as o } from "@arcgis/core-adapter";
|
4
4
|
import { m as d } from "../../chunks/useWidget.js";
|
5
|
-
import { LitElement as n, createEvent as l, noShadowRoot as
|
5
|
+
import { LitElement as n, createEvent as l, noShadowRoot as g } from "@arcgis/lumina";
|
6
|
+
import { css as h } from "@lit/reactive-element/css-tag.js";
|
6
7
|
/*!
|
7
8
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
8
9
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
9
|
-
* v4.32.0-next.
|
10
|
+
* v4.32.0-next.9
|
10
11
|
*/
|
11
|
-
const
|
12
|
-
class
|
12
|
+
const m = h`arcgis-oriented-imagery-viewer{display:flex}`, y = d(o);
|
13
|
+
class c extends n {
|
13
14
|
constructor() {
|
14
|
-
super(...arguments), this.widget =
|
15
|
+
super(...arguments), this.widget = y(this), this._hasOrientedImageryLayerToAdd = !1, this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.currentCoverageVisible = this.widget.currentCoverageVisible, this.disabled = this.widget.disabled, this.galleryOpened = this.widget.galleryOpened, this.icon = this.widget.icon, this.imageEnhancementToolActive = this.widget.imageEnhancementToolActive, this.imageGalleryEnabled = this.widget.imageGalleryEnabled, this.isAdditionalCoverageVisible = this.widget.isAdditionalCoverageVisible, this.isAdditionalPointSourcesVisible = this.widget.isAdditionalPointSourcesVisible, this.label = this.widget.label, this.layer = this.widget.layer, this.mapImageConversionToolState = this.widget.mapImageConversionToolState, this.navigationToolActive = this.widget.navigationToolActive, this.position = "bottom-left", this.referencePoint = this.widget.referencePoint, this.arcgisPropertyChange = s()("imageGalleryEnabled", "layer"), this.arcgisReady = l();
|
15
16
|
}
|
16
17
|
static {
|
17
18
|
this.properties = { autoDestroyDisabled: 5, currentCoverageVisible: 5, disabled: 5, galleryOpened: 5, icon: 1, imageEnhancementToolActive: 5, imageGalleryEnabled: 4, isAdditionalCoverageVisible: 5, isAdditionalPointSourcesVisible: 5, label: 1, layer: 0, mapImageConversionToolState: 5, navigationToolActive: 5, orientedImageryLayerItemId: 1, position: 1, referenceElement: 1, referencePoint: 0 };
|
18
19
|
}
|
19
20
|
static {
|
20
|
-
this.shadowRootOptions =
|
21
|
+
this.shadowRootOptions = g;
|
22
|
+
}
|
23
|
+
static {
|
24
|
+
this.styles = m;
|
21
25
|
}
|
22
26
|
// #endregion
|
23
27
|
// #region Public Methods
|
@@ -45,7 +49,7 @@ class m extends n {
|
|
45
49
|
}, { once: !0 }));
|
46
50
|
}
|
47
51
|
}
|
48
|
-
a("arcgis-oriented-imagery-viewer",
|
52
|
+
a("arcgis-oriented-imagery-viewer", c);
|
49
53
|
export {
|
50
|
-
|
54
|
+
c as ArcgisOrientedImageryViewer
|
51
55
|
};
|
@@ -5,7 +5,7 @@ import { css as c } from "@lit/reactive-element/css-tag.js";
|
|
5
5
|
/*!
|
6
6
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
7
7
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
8
|
-
* v4.32.0-next.
|
8
|
+
* v4.32.0-next.9
|
9
9
|
*/
|
10
10
|
const h = c`arcgis-placement{display:flex;pointer-events:auto;box-shadow:none}.arcgis-placement__container{display:flex}`;
|
11
11
|
class a extends r {
|
@@ -4,15 +4,16 @@ import { usePropertyChange as r } from "@arcgis/components-controllers";
|
|
4
4
|
import { m as o } from "../../chunks/useWidget.js";
|
5
5
|
import { LitElement as a, createEvent as l, noShadowRoot as n } from "@arcgis/lumina";
|
6
6
|
import { reEmitEvent as e } from "@arcgis/components-controllers/accessor";
|
7
|
+
import { css as h } from "@lit/reactive-element/css-tag.js";
|
7
8
|
/*!
|
8
9
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
9
10
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
10
|
-
* v4.32.0-next.
|
11
|
+
* v4.32.0-next.9
|
11
12
|
*/
|
12
|
-
const h = o(s);
|
13
|
-
class
|
13
|
+
const d = h`arcgis-print{display:flex}`, m = o(s);
|
14
|
+
class p extends a {
|
14
15
|
constructor() {
|
15
|
-
super(...arguments), this.widget =
|
16
|
+
super(...arguments), this.widget = m(this), this.viewModel = this.widget.viewModel, this.allowedFormats = this.widget.allowedFormats, this.allowedLayouts = this.widget.allowedLayouts, this.autoDestroyDisabled = !1, this.exportedLinks = this.widget.exportedLinks, this.extraParameters = this.widget.extraParameters, this.headingLevel = this.widget.headingLevel, this.icon = this.widget.icon, this.includeDefaultTemplatesDisabled = this.widget.includeDefaultTemplates, this.label = this.widget.label, this.portal = this.widget.portal, this.position = "bottom-left", this.printServiceUrl = this.widget.printServiceUrl, this.showPrintAreaEnabled = this.widget.showPrintAreaEnabled, this.state = this.viewModel.state, this.templateCustomTextElements = this.widget.templateCustomTextElements, this.templateOptions = this.widget.templateOptions, this.arcgisComplete = e(() => this.widget, "complete"), this.arcgisPropertyChange = r()("state"), this.arcgisReady = l(), this.arcgisSubmit = e(() => this.widget, "submit");
|
16
17
|
}
|
17
18
|
static {
|
18
19
|
this.properties = { allowedFormats: [1, { converter: (t) => typeof t == "string" && t !== "all" ? t.split(",") : t }], allowedLayouts: [1, { converter: (t) => typeof t == "string" && t !== "all" ? t.split(",") : t }], autoDestroyDisabled: 5, exportedLinks: 0, extraParameters: 0, headingLevel: 9, icon: 1, includeDefaultTemplatesDisabled: 5, label: 1, portal: 0, position: 1, printServiceUrl: 1, referenceElement: 1, showPrintAreaEnabled: 7, state: 3, templateCustomTextElements: 0, templateOptions: 0 };
|
@@ -20,6 +21,9 @@ class d extends a {
|
|
20
21
|
static {
|
21
22
|
this.shadowRootOptions = n;
|
22
23
|
}
|
24
|
+
static {
|
25
|
+
this.styles = d;
|
26
|
+
}
|
23
27
|
// #endregion
|
24
28
|
// #region Public Methods
|
25
29
|
/** Permanently destroy the component */
|
@@ -27,7 +31,7 @@ class d extends a {
|
|
27
31
|
await this.manager.destroy();
|
28
32
|
}
|
29
33
|
}
|
30
|
-
i("arcgis-print",
|
34
|
+
i("arcgis-print", p);
|
31
35
|
export {
|
32
|
-
|
36
|
+
p as ArcgisPrint
|
33
37
|
};
|
@@ -10,7 +10,7 @@ import { LitElement as D, createEvent as R, noShadowRoot as x, safeClassMap as s
|
|
10
10
|
/*!
|
11
11
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
12
12
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
13
|
-
* v4.32.0-next.
|
13
|
+
* v4.32.0-next.9
|
14
14
|
*/
|
15
15
|
const r = "esri-scale-bar", t = {
|
16
16
|
base: r,
|
@@ -3,15 +3,16 @@ import { newWidgetsScaleRangeSlider as i } from "@arcgis/core-adapter";
|
|
3
3
|
import { usePropertyChange as t } from "@arcgis/components-controllers";
|
4
4
|
import { m as s } from "../../chunks/useWidget.js";
|
5
5
|
import { LitElement as a, createEvent as l, noShadowRoot as n } from "@arcgis/lumina";
|
6
|
+
import { css as o } from "@lit/reactive-element/css-tag.js";
|
6
7
|
/*!
|
7
8
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
8
9
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
9
|
-
* v4.32.0-next.
|
10
|
+
* v4.32.0-next.9
|
10
11
|
*/
|
11
|
-
const o = s(i);
|
12
|
-
class
|
12
|
+
const r = o`arcgis-scale-range-slider{display:flex}`, c = s(i);
|
13
|
+
class d extends a {
|
13
14
|
constructor() {
|
14
|
-
super(...arguments), this.widget =
|
15
|
+
super(...arguments), this.widget = c(this), this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.disabled = this.widget.disabled, this.hidePreview = this.widget.visibleElements.preview, this.hideScaleMenusMaxScaleMenu = this.widget.visibleElements.scaleMenus.maxScaleMenu, this.hideScaleMenusMinScaleMenu = this.widget.visibleElements.scaleMenus.minScaleMenu, this.icon = this.widget.icon, this.label = this.widget.label, this.layer = this.widget.layer, this.maxScale = this.widget.maxScale, this.maxScaleLimit = this.widget.maxScaleLimit, this.minScale = this.widget.minScale, this.minScaleLimit = this.widget.minScaleLimit, this.mode = this.widget.mode, this.position = "bottom-left", this.region = this.widget.region, this.state = this.viewModel.state, this.arcgisPropertyChange = t()("state"), this.arcgisReady = l();
|
15
16
|
}
|
16
17
|
static {
|
17
18
|
this.properties = { autoDestroyDisabled: 5, disabled: 7, hidePreview: 5, hideScaleMenusMaxScaleMenu: 5, hideScaleMenusMinScaleMenu: 5, icon: 1, label: 1, layer: 0, maxScale: 9, maxScaleLimit: 9, minScale: 9, minScaleLimit: 9, mode: 1, position: 1, referenceElement: 1, region: 1, state: 3 };
|
@@ -19,6 +20,9 @@ class h extends a {
|
|
19
20
|
static {
|
20
21
|
this.shadowRootOptions = n;
|
21
22
|
}
|
23
|
+
static {
|
24
|
+
this.styles = r;
|
25
|
+
}
|
22
26
|
// #endregion
|
23
27
|
// #region Public Methods
|
24
28
|
/** Permanently destroy the component */
|
@@ -26,7 +30,7 @@ class h extends a {
|
|
26
30
|
await this.manager.destroy();
|
27
31
|
}
|
28
32
|
}
|
29
|
-
e("arcgis-scale-range-slider",
|
33
|
+
e("arcgis-scale-range-slider", d);
|
30
34
|
export {
|
31
|
-
|
35
|
+
d as ArcgisScaleRangeSlider
|
32
36
|
};
|
@@ -56,23 +56,40 @@ export declare class ArcgisScene extends LitElement implements Use<typeof useWeb
|
|
56
56
|
get camera(): __esri.Camera;
|
57
57
|
set camera(newValue: __esri.Camera);
|
58
58
|
/**
|
59
|
-
* The diagonal field of view (fov) angle for the camera.
|
59
|
+
* The diagonal field of view (fov) angle for the camera. The range of angles must be between 1 and 170 degrees.
|
60
|
+
*
|
61
|
+
* Setting the camera fov immediately changes the current view. For animating the view, see this component's goTo() method.
|
62
|
+
*
|
63
|
+
* [Read more](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#fov)
|
60
64
|
*/
|
61
65
|
get cameraFov(): Nil | number;
|
62
66
|
set cameraFov(newValue: Nil | number);
|
63
67
|
/**
|
64
68
|
* The compass heading of the camera in degrees.
|
69
|
+
*
|
70
|
+
* Setting the camera heading immediately changes the current view. For animating the view, see this component's goTo() method.
|
71
|
+
*
|
72
|
+
* [Read more](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#heading)
|
65
73
|
*/
|
66
74
|
get cameraHeading(): Nil | number;
|
67
75
|
set cameraHeading(newValue: Nil | number);
|
68
76
|
/**
|
69
77
|
* The position of the camera defined by a map point. It can be an `esri/geometry/Point` instance or a string with the
|
70
78
|
* format `"<longitude>, <latitude>, <elevation>"`.
|
79
|
+
*
|
80
|
+
* Setting the camera position immediately changes the current view. For animating the view, see this component's goTo() method.
|
81
|
+
*
|
82
|
+
* [Read more](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#position)
|
83
|
+
*
|
71
84
|
*/
|
72
85
|
get cameraPosition(): __esri.Point | Nil | number[] | string;
|
73
86
|
set cameraPosition(newValue: __esri.Point | Nil | number[] | string);
|
74
87
|
/**
|
75
88
|
* The tilt of the camera in degrees with respect to the surface as projected down from the camera position.
|
89
|
+
*
|
90
|
+
* Setting the camera tilt immediately changes the current view. For animating the view, see this component's goTo() method.
|
91
|
+
*
|
92
|
+
* [Read more](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#tilt)
|
76
93
|
*/
|
77
94
|
get cameraTilt(): Nil | number;
|
78
95
|
set cameraTilt(newValue: Nil | number);
|
@@ -1,19 +1,19 @@
|
|
1
1
|
import { c } from "../../chunks/runtime.js";
|
2
|
-
import { load as
|
3
|
-
import { makeAccessorController as o, reEmitEvent as t, accessorSupport as
|
2
|
+
import { load as m } from "@arcgis/components-controllers";
|
3
|
+
import { makeAccessorController as o, reEmitEvent as t, accessorSupport as w } from "@arcgis/components-controllers/accessor";
|
4
4
|
import { newWebScene as v, newViewsSceneView as l, importCoreReactiveUtils as d } from "@arcgis/core-adapter";
|
5
|
-
import { c as a, p as r, e as h,
|
6
|
-
import { LitElement as
|
5
|
+
import { c as a, p as r, e as h, i as p } from "../../chunks/component-utils.js";
|
6
|
+
import { LitElement as g, createEvent as n, noShadowRoot as u } from "@arcgis/lumina";
|
7
7
|
import { css as y } from "@lit/reactive-element/css-tag.js";
|
8
8
|
/*!
|
9
9
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
10
10
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
11
|
-
* v4.32.0-next.
|
11
|
+
* v4.32.0-next.9
|
12
12
|
*/
|
13
|
-
const f = y`.arcgis-scene{padding:0;margin:0;height:100%;width:100%}`, _ = o(v, {}),
|
14
|
-
class
|
13
|
+
const f = y`.arcgis-scene{padding:0;margin:0;height:100%;width:100%}`, _ = o(v, {}), b = o(l, {});
|
14
|
+
class V extends g {
|
15
15
|
constructor() {
|
16
|
-
super(...arguments), this._map = _(this, { editConstructorProperties: this._editMapProperties }), this.reactiveUtils =
|
16
|
+
super(...arguments), this._map = _(this, { editConstructorProperties: this._editMapProperties }), this.reactiveUtils = m(d), this.view = b(this, { editConstructorProperties: this._editViewProperties }), this.allLayerViews = this.view.allLayerViews, this.alphaCompositingEnabled = this.view.alphaCompositingEnabled, this.analyses = this.view.analyses, this.autoDestroyDisabled = !1, this.basemap = this._map.basemap, this.basemapView = this.view.basemapView, this.clippingArea = this.view.clippingArea, this.constraints = this.view.constraints, this.environment = this.view.environment, this.fatalError = this.view.fatalError, this.floors = this.view.floors, this.graphics = this.view.graphics, this.ground = this._map.ground, this.groundView = this.view.groundView, this.highlightOptions = this.view.highlightOptions, this.layerViews = this.view.layerViews, this.magnifier = this.view.magnifier, this.map = this.view.map, this.navigation = this.view.navigation, this.padding = this.view.padding, this.popup = this.view.popup, this.popupDisabled = this.view.popupEnabled, this.qualityProfile = this.view.qualityProfile, this.ready = this.view.ready, this.spatialReference = this.view.spatialReference, this.suspended = this.view.suspended, this.theme = this.view.theme, this.timeExtent = this.view.timeExtent, this.updating = this.view.updating, this.viewingMode = this.view.viewingMode, this.arcgisViewChange = n(), this.arcgisViewClick = t(() => this.view, "click"), this.arcgisViewDoubleClick = t(() => this.view, "double-click"), this.arcgisViewDrag = t(() => this.view, "drag"), this.arcgisViewHold = t(() => this.view, "hold"), this.arcgisViewImmediateClick = t(() => this.view, "immediate-click"), this.arcgisViewImmediateDoubleClick = t(() => this.view, "immediate-double-click"), this.arcgisViewKeyDown = t(() => this.view, "key-down"), this.arcgisViewKeyUp = t(() => this.view, "key-up"), this.arcgisViewLayerviewCreate = t(() => this.view, "layer-view-create"), this.arcgisViewLayerviewCreateError = t(() => this.view, "layer-view-create-error"), this.arcgisViewLayerviewDestroy = t(() => this.view, "layer-view-destroy"), this.arcgisViewMouseWheel = t(() => this.view, "mouse-wheel"), this.arcgisViewPointerDown = t(() => this.view, "pointer-down"), this.arcgisViewPointerEnter = t(() => this.view, "pointer-enter"), this.arcgisViewPointerLeave = t(() => this.view, "pointer-leave"), this.arcgisViewPointerMove = t(() => this.view, "pointer-move"), this.arcgisViewPointerUp = t(() => this.view, "pointer-up"), this.arcgisViewReadyChange = n();
|
17
17
|
}
|
18
18
|
static {
|
19
19
|
this.properties = { view: 32, allLayerViews: 0, alphaCompositingEnabled: 5, analyses: 0, autoDestroyDisabled: 5, basemap: 1, basemapView: 0, camera: 0, cameraFov: 9, cameraHeading: 9, cameraPosition: 1, cameraTilt: 9, center: 1, clippingArea: 0, constraints: 0, environment: 0, extent: 0, fatalError: 0, floors: 0, gamepad: 32, graphics: 0, ground: 0, groundView: 0, highlightOptions: 0, interacting: 32, itemId: 3, layerViews: 0, magnifier: 0, map: 0, navigating: 32, navigation: 0, padding: 0, performanceInfo: 32, popup: 0, popupDisabled: 5, qualityProfile: 1, ready: 0, resolution: 32, scale: 9, spatialReference: 0, stationary: 32, suspended: 7, theme: 0, timeExtent: 0, updating: 7, viewingMode: 1, viewpoint: 0, zoom: 9 };
|
@@ -31,7 +31,11 @@ class b extends p {
|
|
31
31
|
this._camera = i, this.ready && !a(this.camera, i) && (this.view.camera = i);
|
32
32
|
}
|
33
33
|
/**
|
34
|
-
* The diagonal field of view (fov) angle for the camera.
|
34
|
+
* The diagonal field of view (fov) angle for the camera. The range of angles must be between 1 and 170 degrees.
|
35
|
+
*
|
36
|
+
* Setting the camera fov immediately changes the current view. For animating the view, see this component's goTo() method.
|
37
|
+
*
|
38
|
+
* [Read more](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#fov)
|
35
39
|
*/
|
36
40
|
get cameraFov() {
|
37
41
|
return this.view.camera?.fov ?? this._cameraFov;
|
@@ -43,6 +47,10 @@ class b extends p {
|
|
43
47
|
}
|
44
48
|
/**
|
45
49
|
* The compass heading of the camera in degrees.
|
50
|
+
*
|
51
|
+
* Setting the camera heading immediately changes the current view. For animating the view, see this component's goTo() method.
|
52
|
+
*
|
53
|
+
* [Read more](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#heading)
|
46
54
|
*/
|
47
55
|
get cameraHeading() {
|
48
56
|
return this.view.camera?.heading ?? this._cameraHeading;
|
@@ -55,6 +63,11 @@ class b extends p {
|
|
55
63
|
/**
|
56
64
|
* The position of the camera defined by a map point. It can be an `esri/geometry/Point` instance or a string with the
|
57
65
|
* format `"<longitude>, <latitude>, <elevation>"`.
|
66
|
+
*
|
67
|
+
* Setting the camera position immediately changes the current view. For animating the view, see this component's goTo() method.
|
68
|
+
*
|
69
|
+
* [Read more](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#position)
|
70
|
+
*
|
58
71
|
*/
|
59
72
|
get cameraPosition() {
|
60
73
|
return this.view.camera?.position ?? this._cameraPosition;
|
@@ -70,6 +83,10 @@ class b extends p {
|
|
70
83
|
}
|
71
84
|
/**
|
72
85
|
* The tilt of the camera in degrees with respect to the surface as projected down from the camera position.
|
86
|
+
*
|
87
|
+
* Setting the camera tilt immediately changes the current view. For animating the view, see this component's goTo() method.
|
88
|
+
*
|
89
|
+
* [Read more](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#tilt)
|
73
90
|
*/
|
74
91
|
get cameraTilt() {
|
75
92
|
return this.view.camera?.tilt ?? this._cameraTilt;
|
@@ -123,7 +140,7 @@ class b extends p {
|
|
123
140
|
return this._map.portalItem?.id ?? this._itemId;
|
124
141
|
}
|
125
142
|
set itemId(i) {
|
126
|
-
this._itemId = i, this.ready &&
|
143
|
+
this._itemId = i, this.ready && w.reCreate(this._map, this).then(() => {
|
127
144
|
this.view.map = this._map;
|
128
145
|
}).catch(console.error);
|
129
146
|
}
|
@@ -169,7 +186,7 @@ class b extends p {
|
|
169
186
|
return this.view.viewpoint ?? this._viewpoint;
|
170
187
|
}
|
171
188
|
set viewpoint(i) {
|
172
|
-
|
189
|
+
p(this.viewpoint, i) && (this.ready && (this.view.viewpoint = i), this._viewpoint = i);
|
173
190
|
}
|
174
191
|
/**
|
175
192
|
* Represents the level of detail (LOD) at the center of the view.
|
@@ -277,7 +294,7 @@ class b extends p {
|
|
277
294
|
i(e), a(this.view.camera, e) || (this.view.camera = e);
|
278
295
|
}
|
279
296
|
}
|
280
|
-
c("arcgis-scene",
|
297
|
+
c("arcgis-scene", V);
|
281
298
|
export {
|
282
|
-
|
299
|
+
V as ArcgisScene
|
283
300
|
};
|
@@ -27,7 +27,13 @@ declare const useSearchWidget: (component: import('@arcgis/components-controller
|
|
27
27
|
}) | undefined;
|
28
28
|
view?: __esri.MapView | Nil | __esri.SceneView;
|
29
29
|
};
|
30
|
-
autoDestroyDisabled: boolean;
|
30
|
+
autoDestroyDisabled: boolean; /**
|
31
|
+
* If true, the component will not be destroyed automatically when it is
|
32
|
+
* disconnected from the document. This is useful when you want to move the
|
33
|
+
* component to a different place on the page, or temporary hide it. If this
|
34
|
+
* is set, make sure to call the \`destroy\` method when you are done to prevent
|
35
|
+
* memory leaks.
|
36
|
+
*/
|
31
37
|
destroy: () => Promise<void>;
|
32
38
|
}, options?: {
|
33
39
|
editConstructorProperties(props: __esri.widgetsSearchProperties): __esri.widgetsSearchProperties | Promise<__esri.widgetsSearchProperties>;
|
@@ -4,15 +4,16 @@ import { newWidgetsSearch as a } from "@arcgis/core-adapter";
|
|
4
4
|
import { m as r } from "../../chunks/useWidget.js";
|
5
5
|
import { LitElement as h, createEvent as l, noShadowRoot as c } from "@arcgis/lumina";
|
6
6
|
import { reEmitEvent as t } from "@arcgis/components-controllers/accessor";
|
7
|
+
import { css as o } from "@lit/reactive-element/css-tag.js";
|
7
8
|
/*!
|
8
9
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
9
10
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
10
|
-
* v4.32.0-next.
|
11
|
+
* v4.32.0-next.9
|
11
12
|
*/
|
12
|
-
const o = r(a);
|
13
|
-
class
|
13
|
+
const g = o`arcgis-search{display:flex}`, d = r(a);
|
14
|
+
class u extends h {
|
14
15
|
constructor() {
|
15
|
-
super(...arguments), this.widget =
|
16
|
+
super(...arguments), this.widget = d(this), this.viewModel = this.widget.viewModel, this.activeMenu = this.widget.activeMenu, this.activeSource = this.widget.activeSource, this.activeSourceIndex = this.widget.activeSourceIndex, this.allPlaceholder = this.widget.allPlaceholder, this.allSources = this.widget.allSources, this.autoDestroyDisabled = !1, this.autoSelectDisabled = this.widget.autoSelect, this.defaultSources = this.widget.defaultSources, this.disabled = this.widget.disabled, this.icon = this.widget.icon, this.includeDefaultSourcesDisabled = this.widget.includeDefaultSources, this.label = this.widget.label, this.locationDisabled = this.widget.locationEnabled, this.maxResults = this.widget.maxResults, this.maxSuggestions = this.widget.maxSuggestions, this.minSuggestCharacters = this.widget.minSuggestCharacters, this.popupDisabled = this.widget.popupEnabled, this.popupTemplate = this.widget.popupTemplate, this.portal = this.widget.portal, this.position = "top-right", this.resultGraphic = this.widget.resultGraphic, this.resultGraphicDisabled = this.widget.resultGraphicEnabled, this.results = this.widget.results, this.searchAllDisabled = this.widget.searchAllEnabled, this.searchTerm = this.widget.searchTerm, this.selectedResult = this.widget.selectedResult, this.sources = this.widget.sources, this.state = this.viewModel.state, this.suggestions = this.widget.suggestions, this.suggestionsDisabled = this.widget.suggestionsEnabled, this.arcgisBlur = t(() => this.widget, "search-blur"), this.arcgisClear = t(() => this.widget, "search-clear"), this.arcgisComplete = t(() => this.widget, "search-complete"), this.arcgisFocus = t(() => this.widget, "search-focus"), this.arcgisPropertyChange = i()("state"), this.arcgisReady = l(), this.arcgisSelectResult = t(() => this.widget, "select-result"), this.arcgisStart = t(() => this.widget, "search-start"), this.arcgisSuggestComplete = t(() => this.widget, "suggest-complete"), this.arcgisSuggestStart = t(() => this.widget, "suggest-start");
|
16
17
|
}
|
17
18
|
static {
|
18
19
|
this.properties = { activeMenu: 1, activeSource: 0, activeSourceIndex: 9, allPlaceholder: 1, allSources: 0, autoDestroyDisabled: 5, autoSelectDisabled: 5, defaultSources: 0, disabled: 7, icon: 1, includeDefaultSourcesDisabled: 5, label: 1, locationDisabled: 5, maxResults: 9, maxSuggestions: 9, minSuggestCharacters: 9, popupDisabled: 5, popupTemplate: 0, portal: 0, position: 1, referenceElement: 1, resultGraphic: 0, resultGraphicDisabled: 5, results: 0, searchAllDisabled: 5, searchTerm: 1, selectedResult: 0, sources: 0, state: 3, suggestions: 0, suggestionsDisabled: 5 };
|
@@ -20,6 +21,9 @@ class g extends h {
|
|
20
21
|
static {
|
21
22
|
this.shadowRootOptions = c;
|
22
23
|
}
|
24
|
+
static {
|
25
|
+
this.styles = g;
|
26
|
+
}
|
23
27
|
// #endregion
|
24
28
|
// #region Public Methods
|
25
29
|
async blurSearch() {
|
@@ -42,7 +46,7 @@ class g extends h {
|
|
42
46
|
return await this.widget?.suggest(e);
|
43
47
|
}
|
44
48
|
}
|
45
|
-
s("arcgis-search",
|
49
|
+
s("arcgis-search", u);
|
46
50
|
export {
|
47
|
-
|
51
|
+
u as ArcgisSearch
|
48
52
|
};
|