Options
All
  • Public
  • Public/Protected
  • All
Menu

Types contain information about the combinations of attributes allowed for features in the dataset. Each feature in the dataset can have a type, indicated in its typeIdField, which is used in LayerDefinition.

Part of the Esri web map specification. See http://resources.arcgis.com/en/help/arcgis-web-map-json/.

Hierarchy

  • Type

Index

Properties

Properties

domains

domains: object

A set of domain objects for each domain in the type.

Type declaration

id

id: number

A unique numerical ID for the type.

name

name: string

A string containing a user-friendly name for the type. This might be shown on a menu of feature types that editors can create in the collection.

templates

templates: Template[]

An array of template objects describing features that can be created in this layer. Templates are used with map notes, other feature collections, and editable web-based CSV layers. They are not used with ArcGIS feature services, which already have feature templates defined in the service.

Templates are defined as a property of the layer definition when there are no types defined; otherwise, templates are defined as properties of the types.

You might have more than one template per type if the attributes of available features vary slightly. For example, you might have a type named Copper pipe containing two templates: one whose DIAMETER property is 12 and another whose DIAMETER property is 10.