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

Referenced by: operationalLayers

Properties

PropertyDetails
collectionIdA unique identifying string for a feature collection.
customParametersA sequence of parameters used to append custom or vendor specific parameters to all OGC API - Features requests.
disablePopupIndicates whether popup is enabled or not.
idA unique identifying string for the layer.
itemIdUnique string value indicating an item registered in ArcGIS Online or your organization’s portal.
layerDefinitionAdditional properties that define drawing information and other configurations for the layer.
See layerDefinition properties table.
layerTypeString indicating the layer type.
Valid value of this property OGCFeatureLayer
listModeTo show or hide layers in the layer list
Valid values:
  • hide
  • hide-children
  • show
maxScaleRepresents 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.
minScaleRepresents 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.
opacityThe degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.
popupInfoA popupInfo object defining the content of popup windows when you click or query a feature.
refreshIntervalRefresh 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.
screenSizePerspectiveApply perspective scaling to screen-size symbols.
showLabelsBoolean value indicating whether to display labels for this layer.
showLegendBoolean value indicating whether to display legend for this layer.
timeAnimationIndicates whether to enable time animation if the layer supports it. Default value is true.
titleA user-friendly string title for the layer that can be used in a table of contents.
urlThe URL of the OGC API Features service landing page.
visibilityBoolean property determining whether the layer is initially visible in the web map.
visibilityTimeExtentRepresents 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

PropertyDetails
drawingInfo.labelingInfo[]An array of labelingInfo objects.
drawingInfo.rendererThe renderer object contains the drawing information for the operationalLayer.
elevationInfoElevation info defines how features and other scene elements are aligned to ground or other layers.
featureReductionAn object that specifies how features are reduced or aggregated, with the goal of decluttering the view or presenting the user with an aggregate visualization.
timeInfoAn object that defines properties to enable time on a layer or table.

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"
}