OGC Feature Layer

OGC Feature Layer is a dynamic feature service that follows the specifications of OGC API - Features.

Referenced by: operationalLayers

Properties

Property Details
collectionId A unique identifying string for a feature collection.
customParameters A sequence of parameters used to append custom or vendor specific parameters to all OGC API - Features requests.
disablePopup Indicates whether popup is enabled or not.
id A unique identifying string for the layer.
itemId Unique string value indicating an item registered in ArcGIS Online or your organization's portal.
layerDefinition Additional properties that define drawing information and other configurations for the layer.
See layerDefinition properties table.
layerType String indicating the layer type.
Valid value of this property OGCFeatureLayer
listMode To show or hide layers in the layer list
Valid values:
  • hide
  • hide-children
  • show
maxScale Represents the maximum scale (most zoomed in) at which the layer is visible in the view. If the web scene is zoomed in beyond this scale, the layer will not be visible. A value of 0 means the layer does not have a maximum scale. If set, the maxScale value should always be smaller than the minScale value, and greater than or equal to the service specification.
minScale Represents the minimum scale (most zoomed out) at which the layer is visible in the view. If the web scene is zoomed out beyond this scale, the layer will not be visible. A value of 0 means the layer does not have a minimum scale. If set, the minScale value should always be larger than the maxScale value, and lesser than or equal to the service specification.
opacity The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.
popupInfo A popupInfo object defining the content of popup windows when you click or query a feature.
refreshInterval Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled.
screenSizePerspective Apply perspective scaling to screen-size symbols.
showLabels Boolean value indicating whether to display labels for this layer.
showLegend Boolean value indicating whether to display legend for this layer.
timeAnimation Indicates whether to enable time animation if the layer supports it.
title A user-friendly string title for the layer that can be used in a table of contents.
url The URL of the OGC API Features service landing page.
visibility Boolean property determining whether the layer is initially visible in the web map.
visibilityTimeExtent Represents time extent that will control when a layer should be visible based on webscene's current time. Visibility time extent only affects the layer visibility and will not filter the data.

layerDefinition properties

Property Details
drawingInfo.labelingInfo[] An array of labelingInfo objects.
drawingInfo.renderer The renderer object contains the drawing information for the operationalLayer.
elevationInfo Elevation info defines how features are aligned to ground or other layers.
featureReduction An object that specifies how features are reduced or aggregated, with the goal of decluttering the view or presenting the user with an aggregate visualization.

Example

{
  "collectionId": "MajorRoads",
  "customParameters": {
    "accessKey": "6443fd686b6d4664840ec8c9e5c12a07"
  },
  "id": "ogc_f_12",
  "url": "https://myservices.arcgis.com/87fb59a2b0b24422b15f9aa459a46160/arcgis/rest/services/California_1/OGCFeatureServer",
  "visibility": true,
  "opacity": 1,
  "itemId": "bd89d3c0dfd84ef8b15505b1c127da80",
  "popupInfo": {},
  "showLegend": false,
  "layerType": "OGCFeatureLayer",
  "title": "Major Roads in California"
}

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