# Interface SpatialReferenceJson

The spatialReference object is located at the top level of the web map JSON hierarchy. In addition to this, it is also available within the operationalLayer and basemap objects.

Many predefined spatial references have already been defined and are available for use. A spatial reference can be defined using a well-known ID (WKID) or well-known text (WKT). The default tolerance and resolution values for the associated coordinate system are used.

All operational layers in the map are drawn or requested in the spatial reference of the basemap layers.

The basemap defines the map spatial reference and tiling scheme.

Each basemapLayer must be in the same spatial reference and tiling scheme.

For additional information on working with spatial references, and their associated WKIDs, please refer to the ArcGIS REST API documentation which discusses this.

See https://developers.arcgis.com/web-map-specification/objects/spatialReference/ https://developers.arcgis.com/web-scene-specification/objects/spatialReference/.

interface SpatialReferenceJson {
latestVcsWkid?: number;
latestWkid?: number;
vcsWkid?: number;
wkid?: number;
wkt?: string;
}

#####
Index

### Properties

latestVcsWkid?
latestWkid?
vcsWkid?
wkid?
wkt?

##
Properties

### `Optional` latestVcsWkid

latestVcsWkid?: number

(Optional) The current wkid value of the vertical coordinate system.

### `Optional` latestWkid

latestWkid?: number

Identifies the current wkid value associated with the same spatial reference. For example a WKID of '102100' (Web Mercator) has a latestWKid of '3857'.

### `Optional` vcsWkid

vcsWkid?: number

(Optional) The wkid value of the vertical coordinate system.

### `Optional` wkid

wkid?: number

The well-known ID (WKID) of the coordinate system. Specify either WKID or the well-known text (WKT) of the coordinate system.

### `Optional` wkt

wkt?: string

The well-known text (WKT) of the coordinate system. Specify either WKT or WKID of the coordinate system.