Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

Optional capabilities

capabilities: string

A comma-separated string listing which editing operations are allowed on an editable feature service. Available operations include: Create | Delete | Query | Update | Editing.

Optional copyright

copyright: string

Copyright information for this layer

featureCollection

featureCollection: FeatureCollection

Optional fullExtent

fullExtent: Extent

The full extent to use for this layer

Optional gcxMapServiceDefinition

gcxMapServiceDefinition: any

The geocortex map service definition as returned from essentials.MapService.toJson(). Used for user-added map services.

id

id: string

A unique identifying string for the layer.

Optional isUserCreated

isUserCreated: boolean

Whether or not the service was created by a user at runtime

Optional itemId

itemId: string

Optional string containing the item ID of the service if it is registered on ArcGIS Online or your organization's portal. The web map applies any styling and pop-up information contained in the saved item.

layerDefinition

layerDefinition: LayerDefinition

Optional layerType

layerType: string

Not in official spec, but present in some newer web maps.

layers

layers: Layer[]

Optional maxScale

maxScale: number

A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator; thus, a value of 2400 represents a scale of 1/2,400. A value of 0 indicates that the layer will be visible no matter how far you zoom in.

Optional minScale

minScale: number

A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator; thus, a value of 2400 represents a scale of 1/2,400.

Optional mode

mode: number

Used with ArcGIS feature services and individual layers in ArcGIS map services, this property determines how the features are retrieved from the server. This property is represented as 0, 1, or 2.

0—Snapshot mode. Immediately retrieves all features when the map is loaded. 1—On-demand mode. Features within the current view extent are retrieved as the user navigates the map. This is the default and the most common way to use feature services in web maps. 2—Selection-only mode. No features are initially retrieved. This mode is used when you have a map service and a feature service from the same parent URL that are working together in the same map, with the map service being used for display and the feature service used for editing.

Optional opacity

opacity: number

The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.

Optional popupInfo

popupInfo: PopupInfo

A PopupInfo object defining the content of pop-up windows when you click or query a feature.

Optional showLabels

showLabels: boolean

Labels will display if this property is set to true and the layer also has a labelingInfo property associated with it.

Optional styleUrl

styleUrl: string

Vector Tiled layers have a style url, not a url

Optional subDomains

subDomains: string[]

Web tiled layers can have a list of subdomains used to make requests

Optional title

title: string

A user-friendly title for the layer that can be used in a table of contents. If this is not included, then a title is derived from the service.

Optional type

type: string

If the layer is referenced through a URL, but is not an ArcGIS web service, then this parameter can be supplied to denote the layer type. One of the OperationalLayerType constants.

Optional url

url: string

The URL to the layer. For well-known basemap types such as Bing Aerial, the URL should be empty.

Optional userLayerType

userLayerType: string

The type of user created layer, if any. One of:

  • LayerAddition - the layer was added by browsing/searching for services and layers in a dialog
  • LayerCatalog - the layer was added from a catalog
  • Upload - the layer was added by uploading a file

Only applies to layers created at runtime.

Optional visibility

visibility: boolean

Determines whether the layer is initially visible in the web map.

Optional visibleLayers

visibleLayers: any[]

An array of layers that should appear visible. Used with ArcGIS map services that are not tiled and WMS layers. Will be an array of numbers for ArcGIS map services, and an array of strings for WMS.