import InitialViewProperties from "@arcgis/core/webscene/InitialViewProperties.js";const InitialViewProperties = await $arcgis.import("@arcgis/core/webscene/InitialViewProperties.js");- Inheritance:
- InitialViewProperties→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 4.0
Represents the initial viewing state of the WebScene when displayed in a SceneView. It contains the initial viewpoint as well as the initial environment settings.
Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
| Property | Type | Class |
|---|---|---|
Collection<WebSceneSliceAnalysis> | | |
declaredClass readonly inherited | ||
| | ||
| | ||
TimeExtent | null | undefined | | |
"local" | "global" | | |
| |
analyses
- Type
- Collection<WebSceneSliceAnalysis>
- Since
- ArcGIS Maps SDK for JavaScript 4.33
List of initial analyses. Only SliceAnalysis are currently supported in the initial view properties.
environment
- Type
- WebSceneEnvironment
The initial environment settings of the WebScene.
spatialReference
- Type
- SpatialReference | null | undefined
The spatial reference of the WebScene. This indicates the projected or geographic coordinate system used to locate geographic features in the map. In a SceneView the following supported coordinate systems are available.
timeExtent
- Type
- TimeExtent | null | undefined
- Since
- ArcGIS Maps SDK for JavaScript 4.30
The initial time extent of the WebScene.
viewingMode
- Type
- "local" | "global"
The viewing mode of the scene. Global scenes allow the user to navigate the globe. Local scenes allow for navigation and feature display in a particular "localized" area. Users may also navigate the view's camera below the surface of a basemap in local scenes.
- See also
- Default value
- "global"
Methods
fromJSON
- Signature
-
fromJSON (json: any): any
Creates a new instance of this class and initializes it with values from a JSON object
generated from an ArcGIS product. The object passed into the input json
parameter often comes from a response to a query operation in the REST API or a
toJSON()
method from another ArcGIS product. See the Using fromJSON()
topic in the Guide for details and examples of when and how to use this function.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| json | A JSON representation of the instance in the ArcGIS format. See the ArcGIS REST API documentation for examples of the structure of various input JSON objects. | |
- Returns
- any
Returns a new instance of this class.
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.
toJSON
- Signature
-
toJSON (): any
Converts an instance of this class to its ArcGIS portal JSON representation. See the Using fromJSON() guide topic for more information.
- Returns
- any
The ArcGIS portal JSON representation of an instance of this class.