Web Feature Service Layer (WFS)

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

Referenced by: operationalLayers

Properties

Property Details
disablePopup Indicates whether to allow a client to ignore popups defined by the service item.
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 An object that defines the attribute schema and drawing information for a layer drawn using client-side graphics.
See layerDefinition properties table.
layerType String indicating the layer type.
Valid value of this property WFS
listMode To show or hide layers in the layer list
Valid values:
  • hide
  • 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 Labels 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.
showLegend Indicates whether to allow map authors the ability to control what layers should be shown in a client's legend.
title A user-friendly string title for the layer that can be used in a table of contents.
url The URL to the layer. If the layer is not from a web service but rather a feature collection, than the url property is omitted.
visibility Boolean property determining whether the layer is initially visible in the web map.
wfsInfo Object that defines and provides information about layers in a WFS service.

layerDefinition properties

Property Details
definitionExpression SQL-based definition expression string that narrows the data to be displayed in the layer.
drawingInfo.labelingInfo An array of labelingInfo objects.
drawingInfo.renderer The renderer object contains the drawing information for the operationalLayer.
drawingInfo.transparency Number value ranging between 0 (no transparency) to 100 (completely transparent).
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. If unset, every feature is rendered individually.
fields An array of field objects containing information about the attribute fields for the feature collection or layer.
geometryType A string defining the type of geometry. Possible geometry types are: esriGeometryPoint, esriGeometryMultipoint, esriGeometryPolyline, esriGeometryPolygon, and esriGeometryEnvelope.
spatialReference An 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"
}

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