Skip to content
import InitialViewProperties from "@arcgis/core/webmap/InitialViewProperties.js";
Inheritance:
InitialViewPropertiesAccessor
Since
ArcGIS Maps SDK for JavaScript 4.0

Represents the initial viewing state of the WebMap when displayed in a MapView.

Constructors

Constructor

Constructor
Parameters
ParameterTypeDescriptionRequired
properties
See the properties table for a list of all the properties that may be passed into the constructor.

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.

background

autocast Property
Type
ColorBackground | null | undefined

The background color of the WebMap.

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor
Since
ArcGIS Maps SDK for JavaScript 4.7

The name of the class. The declared class name is formatted as esri.folder.className.

spatialReference

autocast Property
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

autocast Property
Type
TimeExtent | null | undefined
Since
ArcGIS Maps SDK for JavaScript 4.31

The initial time extent of the WebMap.

timeZone

Property
Type
TimeZone
Since
ArcGIS Maps SDK for JavaScript 4.28

The initial time zone of the WebMap.

Possible Values

ValueDescription
systemDates and times are be displayed in the timezone of the device or browser.
unknownDates 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 timezoneDates 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

viewpoint

autocast Property
Type
Viewpoint | null | undefined

The initial viewpoint of the WebMap.

Methods

MethodSignatureClass
clone
inherited
clone(): this

clone

inherited Method
Signature
clone (): this
Inherited from: ClonableMixin

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.