initialState

Defines the initial state for web map.

Referenced by: Webmap

Properties

Property Details
timeExtent Represents the time extent for the data displayed on the map.
viewpoint Represents the location displayed on the map.

Example

Show Central Park in Manhattan at Town scale and rotated 45 degrees

{
  "viewpoint": {
    "rotation": 45,
    "scale": 36111,
    "targetGeometry": {
      "spatialReference": {
        "latestWkid": 3857,
        "wkid": 102100
      },
      "xmin": -8237304.65218491,
      "ymin": 4977090.890664136,
      "xmax": -8230616.412209966,
      "ymax": 4983588.038068367
    }
  }
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.