@arcgis/map-components 5.2.0-next.6 → 5.2.0-next.8
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/{32HC6PWY.js → 2EOQ5G2R.js} +1 -1
- package/dist/cdn/{Z5YGVWFI.js → 3AZCF2P5.js} +1 -1
- package/dist/cdn/{QEPCYJLX.js → 52XUYHPM.js} +1 -1
- package/dist/cdn/{WTL3FIGS.js → 55JA345T.js} +1 -1
- package/dist/cdn/5UUUR4LF.js +2 -0
- package/dist/cdn/{PNBNM2CX.js → BJF74GDX.js} +1 -1
- package/dist/cdn/{L4EHCDIJ.js → DITXUZMH.js} +1 -1
- package/dist/cdn/FGSOMLKL.js +2 -0
- package/dist/cdn/LM56QFP5.js +2 -0
- package/dist/cdn/{7DIC4O5E.js → NOHLNRB4.js} +1 -1
- package/dist/cdn/{MF5STJJO.js → RJM52R4G.js} +1 -1
- package/dist/cdn/W42XLSER.js +2 -0
- package/dist/cdn/WMH7TCIP.js +2 -0
- package/dist/cdn/{VNYFKVJ2.js → WQDUJLSY.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/time-utils.js +14 -14
- package/dist/components/arcgis-daylight/customElement.js +237 -205
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +14 -0
- package/dist/components/arcgis-elevation-profile/customElement.js +77 -75
- package/dist/components/arcgis-feature-table/customElement.d.ts +1 -0
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-features-next/customElement.d.ts +7 -1
- package/dist/components/arcgis-legend/customElement.js +6 -6
- package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-view/customElement.js +16 -16
- package/dist/components/arcgis-map/customElement.d.ts +68 -39
- package/dist/components/arcgis-popup/customElement.d.ts +7 -1
- package/dist/components/arcgis-slider-scale-range/customElement.d.ts +1 -1
- package/dist/components/arcgis-slider-scale-range/customElement.js +52 -18
- package/dist/components/arcgis-version-management/customElement.d.ts +9 -1
- package/dist/components/arcgis-weather/customElement.js +96 -94
- 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/loader.js +1 -1
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +6 -6
- package/dist/cdn/5DNVHLO6.js +0 -2
- package/dist/cdn/6OOQ7GIC.js +0 -2
- package/dist/cdn/JFVZHHIX.js +0 -2
- package/dist/cdn/MHRXFE7S.js +0 -2
- package/dist/cdn/RAQVHNVI.js +0 -2
|
@@ -211,11 +211,34 @@ export abstract class ArcgisMap extends LitElement {
|
|
|
211
211
|
* Specifies a basemap for the map. The basemap is a set of layers that give
|
|
212
212
|
* geographic context to the view and the other operational layers
|
|
213
213
|
* in the map.
|
|
214
|
-
* It can either be set using a basemap ID string ([see values](https://developers.arcgis.com/javascript/latest/references/core/Map/#basemap)),
|
|
215
|
-
* [Basemap](https://developers.arcgis.com/javascript/latest/references/core/Basemap/)
|
|
216
|
-
* or [BasemapStyle](https://developers.arcgis.com/javascript/latest/references/core/support/BasemapStyle/).
|
|
217
214
|
*
|
|
218
|
-
* [
|
|
215
|
+
* The basemap can be set from a basemap ID string from the [basemap styles service](https://developers.arcgis.com/javascript/latest/references/core/support/BasemapStyle/), such as `arcgis/navigation`, or from the [Basemap](https://developers.arcgis.com/javascript/latest/references/core/Basemap/) class.
|
|
216
|
+
*
|
|
217
|
+
* > [!NOTE]
|
|
218
|
+
* > Accessing the basemap styles service requires authentication, see [Authentication and access tokens](https://developers.arcgis.com/javascript/latest/authentication/access-tokens/) for more information.
|
|
219
|
+
*
|
|
220
|
+
* @example
|
|
221
|
+
* ```html
|
|
222
|
+
* <!-- Basemap set using a basemap ID string from the basemap styles service -->
|
|
223
|
+
* <arcgis-map basemap="arcgis/navigation" center="-98, 39" zoom="4"></arcgis-map>
|
|
224
|
+
* ```
|
|
225
|
+
* @example
|
|
226
|
+
* ```js
|
|
227
|
+
* // Basemap set using a Basemap instance
|
|
228
|
+
* const viewElement = document.querySelector("arcgis-map");
|
|
229
|
+
* viewElement.basemap = new Basemap({
|
|
230
|
+
* title: "Terrain",
|
|
231
|
+
* baseLayers: [
|
|
232
|
+
* new VectorTileLayer({
|
|
233
|
+
* url: "https://arcgis.com/sharing/rest/content/items/b5676525747f499687f12746441101ef/resources/styles/root.json",
|
|
234
|
+
* })
|
|
235
|
+
* ]
|
|
236
|
+
* });
|
|
237
|
+
* ```
|
|
238
|
+
* @see [Map.basemap](https://developers.arcgis.com/javascript/latest/references/core/Map/#basemap)
|
|
239
|
+
* @see [Basemap](https://developers.arcgis.com/javascript/latest/references/core/Basemap/)
|
|
240
|
+
* @see [BasemapStyle](https://developers.arcgis.com/javascript/latest/references/core/support/BasemapStyle/)
|
|
241
|
+
* @see [Authentication and access tokens](https://developers.arcgis.com/javascript/latest/authentication/access-tokens/)
|
|
219
242
|
*/
|
|
220
243
|
accessor basemap: Basemap | string | undefined;
|
|
221
244
|
/** Represents the view for a single basemap after it has been added to the map. */
|
|
@@ -883,6 +906,26 @@ export abstract class ArcgisMap extends LitElement {
|
|
|
883
906
|
* Represents the current view as a Viewpoint or point of observation on the view.
|
|
884
907
|
* Setting the viewpoint immediately changes the current view. For animating
|
|
885
908
|
* the view, see this component's [goTo()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#goTo) method.
|
|
909
|
+
*
|
|
910
|
+
* @example
|
|
911
|
+
* ```js
|
|
912
|
+
* // Set the viewpoint to the Empire State Building in New York City
|
|
913
|
+
* const viewElement = document.querySelector("arcgis-map");
|
|
914
|
+
* viewElement.viewpoint = new Viewpoint({
|
|
915
|
+
* targetGeometry: new Point({
|
|
916
|
+
* longitude: -73.9857,
|
|
917
|
+
* latitude: 40.7484
|
|
918
|
+
* }),
|
|
919
|
+
* scale: 5000
|
|
920
|
+
* });
|
|
921
|
+
* ```
|
|
922
|
+
* @example
|
|
923
|
+
* ```js
|
|
924
|
+
* // Get the initial viewpoint of the view once the view is ready
|
|
925
|
+
* const viewElement = document.querySelector("arcgis-map");
|
|
926
|
+
* await viewElement.viewOnReady();
|
|
927
|
+
* const initialViewpoint = viewElement.viewpoint.clone();
|
|
928
|
+
* ```
|
|
886
929
|
*/
|
|
887
930
|
accessor viewpoint: Viewpoint;
|
|
888
931
|
/**
|
|
@@ -951,42 +994,28 @@ export abstract class ArcgisMap extends LitElement {
|
|
|
951
994
|
*/
|
|
952
995
|
goTo(target: GoToTarget2D, options?: GoToOptions2D): Promise<unknown>;
|
|
953
996
|
/**
|
|
954
|
-
* Returns [hit test results](https://developers.arcgis.com/javascript/latest/references/core/views/
|
|
955
|
-
*
|
|
956
|
-
*
|
|
957
|
-
*
|
|
958
|
-
*
|
|
959
|
-
*
|
|
960
|
-
* [
|
|
961
|
-
* [
|
|
962
|
-
* [
|
|
963
|
-
* [
|
|
964
|
-
* [
|
|
965
|
-
* [
|
|
966
|
-
* [
|
|
967
|
-
*
|
|
968
|
-
* [
|
|
969
|
-
* [SubtypeSublayer](https://developers.arcgis.com/javascript/latest/references/core/layers/support/SubtypeSublayer/),
|
|
970
|
-
* [VectorTileLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/VectorTileLayer/), and
|
|
971
|
-
* [WFSLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/WFSLayer/).
|
|
972
|
-
*
|
|
973
|
-
* The [ParquetLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/ParquetLayer/) hit result returns only the topmost feature
|
|
974
|
-
* when the hit occurs on overlapping features in a ParquetLayer.
|
|
975
|
-
*
|
|
976
|
-
* The [VectorTileLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/VectorTileLayer/) hit test result contains an array of objects containing
|
|
977
|
-
* a [graphic](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#GraphicHit).
|
|
978
|
-
* The graphic returns attributes of a style layer. In addition, the graphic's [origin](https://developers.arcgis.com/javascript/latest/references/core/Graphic/#origin)
|
|
979
|
-
* contains the style layer's [id](https://maplibre.org/maplibre-style-spec/layers/#id) and layer index within the [vector tile style](https://doc.arcgis.com/en/arcgis-online/reference/tile-layers.htm#ESRI_SECTION1_8F68399EB47B48FF9EF46719FCC96978).
|
|
980
|
-
* Spatial information about the actual feature represented in the style layer is returned only if the style layer is a [symbol layer](https://maplibre.org/maplibre-style-spec/layers/#symbol).
|
|
981
|
-
* Otherwise, the graphic's geometry is `null`.
|
|
982
|
-
*
|
|
983
|
-
* The [MediaLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/MediaLayer/) hit test result contains all media elements if the hit is made on intersecting elements.
|
|
984
|
-
* The [RouteLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/RouteLayer/) hit test result contains all route elements if the hit is made on intersecting elements.
|
|
985
|
-
*
|
|
986
|
-
* If the [polygon](https://developers.arcgis.com/javascript/latest/references/core/geometry/Polygon/) feature's symbol
|
|
987
|
-
* [style](https://developers.arcgis.com/javascript/latest/references/core/symbols/SimpleFillSymbol/#style) is set to `none`, the hitTest method will not
|
|
997
|
+
* Returns [hit test results](https://developers.arcgis.com/javascript/latest/references/core/views/types/#ViewHitTestResult) from each layer that intersects the specified screen point or screen rectangle.
|
|
998
|
+
* The results are organized as an array of objects containing different [ViewHit](https://developers.arcgis.com/javascript/latest/references/core/views/types/#ViewHit) result types such as graphics, raster pixels, media elements, or routes.
|
|
999
|
+
*
|
|
1000
|
+
* **2D hitTest() behavior by layer type**
|
|
1001
|
+
* | Layer type | Hit test behavior |
|
|
1002
|
+
* | :--- | :--- |
|
|
1003
|
+
* | [FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer), [CatalogFootprintLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/catalog/CatalogFootprintLayer), [CSVLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer), [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer), [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/OGCFeatureLayer), [OrientedImageryLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/OrientedImageryLayer), [StreamLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/StreamLayer), [SubtypeGroupLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SubtypeGroupLayer), [WFSLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/WFSLayer) | Returns all intersecting [GraphicHit](https://developers.arcgis.com/javascript/latest/references/core/views/types/#GraphicHit) features at the hit location. |
|
|
1004
|
+
* | [ParquetLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/ParquetLayer) | Returns only the topmost [GraphicHit](https://developers.arcgis.com/javascript/latest/references/core/views/types/#GraphicHit) feature when the hit occurs on overlapping features. (as of version 4.34). |
|
|
1005
|
+
* | [GeoRSSLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoRSSLayer), [GraphicsLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GraphicsLayer), [KMLLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/KMLLayer), [MapNotesLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/MapNotesLayer) | Returns all intersecting [GraphicHit](https://developers.arcgis.com/javascript/latest/references/core/views/types/#GraphicHit) features at the hit location. |
|
|
1006
|
+
* | [ImageryLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/ImageryLayer), [ImageryTileLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/ImageryTileLayer)| Returns [RasterHit](https://developers.arcgis.com/javascript/latest/references/core/views/types/#RasterHit) result containing raster pixel value used in rendering and bandId info on intersecting pixels. The `screenRect` hitTarget is not supported for these layers. |
|
|
1007
|
+
* | [VectorTileLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/VectorTileLayer) | Returns a result for all intersecting [GraphicHit](https://developers.arcgis.com/javascript/latest/references/core/views/types/#GraphicHit) features containing attributes of style layers (as of version 4.29; in prior releases, only the topmost style layer result was returned). In addition, the graphic's [origin](https://developers.arcgis.com/javascript/latest/references/core/Graphic#origin) contains the style layer's [id](https://maplibre.org/maplibre-style-spec/layers/#id) and layer index within the [vector tile style](https://doc.arcgis.com/en/arcgis-online/reference/tile-layers.htm#ESRI_SECTION1_8F68399EB47B48FF9EF46719FCC96978). Spatial information about the actual feature represented in the style layer is returned only if the style layer is a [symbol layer](https://maplibre.org/maplibre-style-spec/layers/#symbol). Otherwise, the graphic's geometry is `null`. |
|
|
1008
|
+
* | [MediaLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/MediaLayer) | Returns [MediaHit](https://developers.arcgis.com/javascript/latest/references/core/views/types/#MediaHit) result containing all media elements if the hit is made on intersecting elements. |
|
|
1009
|
+
* | [RouteLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/RouteLayer) | Returns [RouteHit](https://developers.arcgis.com/javascript/latest/references/core/views/types/#RouteHit) result containing all intersecting route elements if the hit is made on intersecting elements. |
|
|
1010
|
+
*
|
|
1011
|
+
* **Note:** If the [Polygon](https://developers.arcgis.com/javascript/latest/references/core/geometry/Polygon) feature's symbol [SimpleFillSymbol.style](https://developers.arcgis.com/javascript/latest/references/core/symbols/SimpleFillSymbol#style) is set to "none", the hitTest method will not
|
|
988
1012
|
* return results when the fill is clicked. However, it will return results when the outline is clicked. To get results when clicking the fill, set the
|
|
989
|
-
* [color](https://developers.arcgis.com/javascript/latest/references/core/symbols/SimpleFillSymbol
|
|
1013
|
+
* [SimpleFillSymbol.color](https://developers.arcgis.com/javascript/latest/references/core/symbols/SimpleFillSymbol#color) to a transparent color instead.
|
|
1014
|
+
*
|
|
1015
|
+
* Release-specific changes:
|
|
1016
|
+
* * At version 5.1, the [ScreenRect](https://developers.arcgis.com/javascript/latest/references/core/core/types/#ScreenRect) option was added to perform hit tests on rectangular areas.
|
|
1017
|
+
* * At version 4.24, [ViewHitTestResult](https://developers.arcgis.com/javascript/latest/references/core/views/types/#ViewHitTestResult) returns an array of objects containing [GraphicHit](https://developers.arcgis.com/javascript/latest/references/core/views/types/#GraphicHit) graphic, [MediaHit](https://developers.arcgis.com/javascript/latest/references/core/views/types/#MediaHit) media element, and [RouteHit](https://developers.arcgis.com/javascript/latest/references/core/views/types/#RouteHit) route.
|
|
1018
|
+
* * At version 4.23, all hit test features from feature layers are returned in the result. In prior releases, only the top most feature was returned.
|
|
990
1019
|
*
|
|
991
1020
|
* @param hitTarget
|
|
992
1021
|
* @param options
|
|
@@ -304,7 +304,13 @@ export abstract class ArcgisPopup extends LitElement {
|
|
|
304
304
|
* ```
|
|
305
305
|
*/
|
|
306
306
|
accessor features: Array<Graphic>;
|
|
307
|
-
/**
|
|
307
|
+
/**
|
|
308
|
+
* When `true`, this prevents the popup from trapping focus when opened.
|
|
309
|
+
* Preventing focus trapping can be used in scenarios where interactions are expected within the user interface, such as when the popup resides in a panel.
|
|
310
|
+
*
|
|
311
|
+
* @default false
|
|
312
|
+
* @since 5.1
|
|
313
|
+
*/
|
|
308
314
|
accessor focusTrapDisabled: boolean;
|
|
309
315
|
/**
|
|
310
316
|
* This function provides the ability to override either the [arcgis-map.goTo()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#goTo) or [arcgis-scene.goTo()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#goTo) methods.
|
|
@@ -234,7 +234,7 @@ export abstract class ArcgisSliderScaleRange extends LitElement {
|
|
|
234
234
|
* Each region comes from the [ISO 3166-1 alpha-2 code](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes).
|
|
235
235
|
* See [SupportedRegion](https://developers.arcgis.com/javascript/latest/references/core/widgets/ScaleRangeSlider/types/#SupportedRegion) for the list of regions that are currently supported.
|
|
236
236
|
*/
|
|
237
|
-
accessor region: SupportedRegion |
|
|
237
|
+
accessor region: SupportedRegion | undefined;
|
|
238
238
|
/**
|
|
239
239
|
* Indicates whether the world scale value is shown in the scale menu.
|
|
240
240
|
*
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { g as x, c as p } from "../../chunks/runtime.js";
|
|
3
|
-
import { keyed as
|
|
4
|
-
import { LitElement as
|
|
3
|
+
import { keyed as g } from "lit/directives/keyed.js";
|
|
4
|
+
import { LitElement as _, createEvent as d, safeStyleMap as u, nothing as v } from "@arcgis/lumina";
|
|
5
5
|
import { watch as f } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
|
-
import { u as
|
|
6
|
+
import { u as M } from "../../chunks/useView.js";
|
|
7
7
|
import { u as y } from "../../chunks/useT9n.js";
|
|
8
8
|
import { css as L, html as r } from "lit";
|
|
9
|
-
import { usePropertyChange as
|
|
10
|
-
import { createRef as
|
|
9
|
+
import { usePropertyChange as b } from "@arcgis/lumina/controllers";
|
|
10
|
+
import { createRef as $, ref as w } from "lit/directives/ref.js";
|
|
11
11
|
import T from "@arcgis/core/portal/Portal.js";
|
|
12
12
|
const h = /* @__PURE__ */ new Set([
|
|
13
13
|
"ar-iq",
|
|
@@ -84,7 +84,35 @@ const h = /* @__PURE__ */ new Set([
|
|
|
84
84
|
"th-th",
|
|
85
85
|
"zh-cn",
|
|
86
86
|
"zh-tw"
|
|
87
|
-
]),
|
|
87
|
+
]), R = {
|
|
88
|
+
ar: "iq",
|
|
89
|
+
bg: "bg",
|
|
90
|
+
cs: "cz",
|
|
91
|
+
da: "dk",
|
|
92
|
+
de: "de",
|
|
93
|
+
el: "gr",
|
|
94
|
+
en: "us",
|
|
95
|
+
es: "es",
|
|
96
|
+
et: "ee",
|
|
97
|
+
fi: "fi",
|
|
98
|
+
fr: "fr",
|
|
99
|
+
is: "is",
|
|
100
|
+
it: "it",
|
|
101
|
+
ja: "jp",
|
|
102
|
+
ko: "kr",
|
|
103
|
+
lt: "lt",
|
|
104
|
+
lv: "lv",
|
|
105
|
+
nl: "nl",
|
|
106
|
+
nn: "no",
|
|
107
|
+
pl: "pl",
|
|
108
|
+
pt: "br",
|
|
109
|
+
ro: "ro",
|
|
110
|
+
ru: "ru",
|
|
111
|
+
sk: "sk",
|
|
112
|
+
sv: "se",
|
|
113
|
+
th: "th",
|
|
114
|
+
zh: "cn"
|
|
115
|
+
}, P = L`:host{display:block;width:310px;max-width:100%}.slider{height:50px}.scale-indicator-container{position:relative;width:100%;margin-top:2px}.scale-indicator-icon{transform:scale(.8,1.7);margin-left:-6px;width:1px;--calcite-icon-color: var(--calcite-color-text-3)}.scale-menu-list{max-height:220px;overflow-y:auto}.scale-menu-input{max-width:120px}.scale-menu-button-container{display:flex;direction:ltr;justify-content:space-between}.scale-menu-button{min-width:0}:dir(rtl) .scale-menu-button-container>*{direction:rtl}.preview-container{padding:6px;background-color:var(--calcite-color-foreground-1);box-shadow:0 1px 2px #0000004d}`, l = [
|
|
88
116
|
{ id: "world", scale: 147914382, minScale: 147914382, maxScale: 1e8 },
|
|
89
117
|
{ id: "continent", scale: 5e7, minScale: 99999999, maxScale: 35e6 },
|
|
90
118
|
{ id: "countriesBig", scale: 25e6, minScale: 34999999, maxScale: 15e6 },
|
|
@@ -106,9 +134,9 @@ const h = /* @__PURE__ */ new Set([
|
|
|
106
134
|
{ id: "rooms", scale: 400, minScale: 400, maxScale: 101 },
|
|
107
135
|
{ id: "room", scale: 100, minScale: 100, maxScale: 0 }
|
|
108
136
|
];
|
|
109
|
-
class
|
|
137
|
+
class I extends _ {
|
|
110
138
|
constructor() {
|
|
111
|
-
super(...arguments), this.messages = y(), this._sliderRef =
|
|
139
|
+
super(...arguments), this.messages = y(), this._sliderRef = $(), this._activeMenu = null, this._customScaleSelected = null, this._portalRegion = null, this._layerMaxScaleLimit = l[l.length - 1].maxScale, this._layerMinScaleLimit = l[0].minScale, this.autoDestroyDisabled = !1, this.disabled = !1, this.hidePreview = !1, this.hideMaxScaleMenu = !1, this.hideMinScaleMenu = !1, this.icon = "actual-size", this.maxScale = 0, this.maxScaleLimit = l[l.length - 1].maxScale, this.minScale = 0, this.minScaleLimit = l[0].minScale, this.mode = "range", this.showWorldValue = !1, this.view = M(this), this.arcgisChange = d(), this.arcgisInput = d(), this.arcgisPropertyChange = b()("state", "minScale", "maxScale"), this.arcgisReady = d();
|
|
112
140
|
}
|
|
113
141
|
static {
|
|
114
142
|
this.properties = { _activeMenu: 16, _customScaleSelected: 16, _portalRegion: 16, _layerMaxScaleLimit: 16, _layerMinScaleLimit: 16, autoDestroyDisabled: 5, disabled: 7, hidePreview: 5, hideMaxScaleMenu: 5, hideMinScaleMenu: 5, icon: 1, label: 1, layer: 0, maxScale: 9, maxScaleLimit: 9, minScale: 9, minScaleLimit: 9, mode: 1, referenceElement: 1, region: 1, showWorldValue: 5, state: 32, view: 0 };
|
|
@@ -183,18 +211,24 @@ class R extends g {
|
|
|
183
211
|
if (h.has(e))
|
|
184
212
|
return e;
|
|
185
213
|
if (this.region) {
|
|
186
|
-
const a = `${this.messages._t9nLocale}-${
|
|
187
|
-
if (h.has(
|
|
188
|
-
return
|
|
214
|
+
const a = this.region.toLowerCase(), t = `${this.messages._t9nLocale}-${a}`;
|
|
215
|
+
if (h.has(t))
|
|
216
|
+
return t;
|
|
217
|
+
for (const s of h)
|
|
218
|
+
if (s.endsWith(`-${a}`))
|
|
219
|
+
return s;
|
|
189
220
|
}
|
|
190
221
|
if (this._portalRegion) {
|
|
191
222
|
const a = `${this.messages._t9nLocale}-${this._portalRegion}`;
|
|
192
223
|
if (h.has(a))
|
|
193
224
|
return a;
|
|
194
225
|
}
|
|
195
|
-
const i =
|
|
196
|
-
if (
|
|
197
|
-
|
|
226
|
+
const i = R[this.messages._t9nLocale];
|
|
227
|
+
if (i) {
|
|
228
|
+
const a = `${this.messages._t9nLocale}-${i}`;
|
|
229
|
+
if (h.has(a))
|
|
230
|
+
return a;
|
|
231
|
+
}
|
|
198
232
|
for (const a of h)
|
|
199
233
|
if (a.startsWith(`${this.messages._t9nLocale}-`))
|
|
200
234
|
return a;
|
|
@@ -243,7 +277,7 @@ class R extends g {
|
|
|
243
277
|
}
|
|
244
278
|
_renderCurrentScaleIndicator(e) {
|
|
245
279
|
const i = this._sliderRef.value, a = i?.fullRangeMax ?? this._mapScaleToSlider(l[l.length - 1].maxScale), t = i?.fullRangeMin ?? this._mapScaleToSlider(l[0].minScale), s = a - t, c = Math.min(100, Math.max(0, (this._mapScaleToSlider(e) - t) / s * 100));
|
|
246
|
-
return
|
|
280
|
+
return g("scale-indicator", r`<div class="scale-indicator-container" slot=content-end><div class="scale-indicator-icon" style=${u({
|
|
247
281
|
position: "absolute",
|
|
248
282
|
left: `${c}%`
|
|
249
283
|
})} .title=${`${this.messages.currentScale} 1:${Math.round(e).toLocaleString(this.messages._t9nLocale)}`}><calcite-icon icon=caret-up scale=s></calcite-icon></div></div>`);
|
|
@@ -295,7 +329,7 @@ class R extends g {
|
|
|
295
329
|
if (typeof e != "number")
|
|
296
330
|
return null;
|
|
297
331
|
const i = Math.min(l.length - 1, Math.max(0, Math.floor(e))), a = 5, t = 128, s = t * (i % a), c = t * Math.floor(i / a), m = `-${s}px -${c}px`, n = this._getSpriteSheetFile();
|
|
298
|
-
return r`<div class="preview-container"><img src=${x(`./assets/slider-scale-range/images/${n}.avif`) ??
|
|
332
|
+
return r`<div class="preview-container"><img src=${x(`./assets/slider-scale-range/images/${n}.avif`) ?? v} style=${u({
|
|
299
333
|
display: "block",
|
|
300
334
|
height: `${t}px`,
|
|
301
335
|
width: `${t}px`,
|
|
@@ -304,7 +338,7 @@ class R extends g {
|
|
|
304
338
|
})}></div>`;
|
|
305
339
|
}
|
|
306
340
|
}
|
|
307
|
-
p("arcgis-slider-scale-range",
|
|
341
|
+
p("arcgis-slider-scale-range", I);
|
|
308
342
|
export {
|
|
309
|
-
|
|
343
|
+
I as ArcgisSliderScaleRange
|
|
310
344
|
};
|
|
@@ -204,7 +204,15 @@ export abstract class ArcgisVersionManagement extends LitElement {
|
|
|
204
204
|
*/
|
|
205
205
|
accessor referenceElement: ArcgisReferenceElement | string | undefined;
|
|
206
206
|
/**
|
|
207
|
-
* The current state
|
|
207
|
+
* The current component state.
|
|
208
|
+
*
|
|
209
|
+
* * `disabled` - an error occured during initialization
|
|
210
|
+
* * `executing` - an operation is being performed
|
|
211
|
+
* * `failed` - an error occurred during execution
|
|
212
|
+
* * `loading` - the object is loading
|
|
213
|
+
* * `ready` - object loaded successfully or operation completed successfully
|
|
214
|
+
*
|
|
215
|
+
* When the component is ready, all items in [versioningStates](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-version-management/#versioningStates) are loaded.
|
|
208
216
|
*
|
|
209
217
|
* @since 5.0
|
|
210
218
|
*/
|