OGC Web Feature Service (WFS) is a dynamic feature service that follows the specifications of OGC.

Referenced by: operationalLayers

Properties

PropertyDetails
disablePopupIndicates whether to allow a client to ignore popups defined by the service item.
idA unique identifying string for the layer.
itemIdUnique string value indicating an item registered in ArcGIS Online or your organization’s portal.
layerDefinitionAn object that defines the attribute schema and drawing information for a layer drawn using client-side graphics.
See layerDefinition properties table.
layerTypeString indicating the layer type.
Valid value of this property WFS
listModeTo show or hide layers in the layer list
Valid values:
  • hide
  • 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.
showLabelsLabels will display if this property is set to true and the layer also has a labelingInfo property associated with it. This property can get stored in the web map config and in the item/data.
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 to the layer. If the layer is not from a web service but rather a feature collection, than the url property is omitted.
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.
wfsInfoObject that defines and provides information about layers in a WFS service.

layerDefinition properties

PropertyDetails
definitionExpressionSQL-based definition expression string that narrows the data to be displayed in the layer.
drawingInfo.labelingInfo[]An array of labelingInfo objects.
drawingInfo.rendererThe renderer object contains the drawing information for the operationalLayer.
drawingInfo.transparencyNumber value ranging between 0 (no transparency) to 100 (completely transparent).
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.
fields[]An array of field objects containing information about the attribute fields for the feature collection or layer.
geometryTypeA string defining the type of geometry. Possible geometry types are: esriGeometryPoint, esriGeometryMultipoint, esriGeometryPolyline, esriGeometryPolygon, and esriGeometryEnvelope.
spatialReferenceAn object containing the WKID or WKT identifying the spatial reference of the layer’s geometry.

Example

{
"id": "wfs_19",
"url": "http://suite.opengeo.org/geoserver/wfs",
"visibility": true,
"opacity": 1,
"title": "Countries of the World",
"itemId": "0217f8067457410a998fc9293563ba94",
"wfsInfo": {
"version": "2.0.0",
"name": "countries",
"wfsNamespace": "http://opengeo.org",
"featureUrl": "http://suite.opengeo.org/geoserver/wfs",
"maxFeatures": 3000,
"swapXY": false,
"supportedSpatialReferences": [
4326,
26986
]
},
"layerDefinition": {
"geometryType": "esriGeometryPoint",
"spatialReference": {
"wkid": 4326
},
"fields": [
{
"name": "geom",
"type": "esriFieldTypeGeometry"
},
{
"name": "LAT",
"type": "esriFieldTypeDouble"
},
{
"name": "STAGE",
"type": "esriFieldTypeString"
}
]
},
"minScale": 0,
"maxScale": 113594,
"popupInfo": {},
"showLegend": false,
"layerType": "WFS"
}