import InitialViewProperties from "@arcgis/core/webmap/InitialViewProperties.js";const InitialViewProperties = await $arcgis.import("@arcgis/core/webmap/InitialViewProperties.js");- Inheritance:
- InitialViewProperties→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 4.0
Represents the initial viewing state of the WebMap when displayed in a MapView.
Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
| Property | Type | Class |
|---|---|---|
| | ||
declaredClass readonly inherited | ||
| | ||
TimeExtent | null | undefined | | |
| | ||
| |
background
- Type
- ColorBackground | null | undefined
The background color of the WebMap.
spatialReference
- Type
- SpatialReference | null | undefined
The spatial reference of the WebMap. This indicates the projected or geographic coordinate system used to locate geographic features in the map. For complete listings of supported coordinate systems, see Using spatial references.
timeExtent
- Type
- TimeExtent | null | undefined
- Since
- ArcGIS Maps SDK for JavaScript 4.31
The initial time extent of the WebMap.
timeZone
- Type
- TimeZone
- Since
- ArcGIS Maps SDK for JavaScript 4.28
The initial time zone of the WebMap.
Possible Values
| Value | Description |
|---|---|
| system | Dates and times are be displayed in the timezone of the device or browser. |
| unknown | Dates and times will be displayed based on the time zone that has been defined for the layer. No adjustments are made to the display of date info. Additionally, the TimeSlider is disabled. |
| Specified IANA timezone | Dates and times will be displayed in the specified IANA time zone. See wikipedia - List of tz database time zones. |
If the view’s MapView.timeZone is set to unknown and a layer’s date/time field includes time information, set the DateTimeFieldFormat.timeStyle property to either long or full on the corresponding date/time field.
- See also
Methods
| Method | Signature | Class |
|---|---|---|
clone inherited | clone(): this |
clone
- Signature
-
clone (): this
Creates a deep clone of this object. Any properties that store values by reference will be assigned copies of the referenced values on the cloned instance.
- Returns
- this
A deep clone of the class instance that invoked this method.