OGC Web Feature Service (WFS) is a dynamic feature service that follows the specifications of OGC.
Referenced by: operationalLayers
Properties
Property | Details |
---|---|
blendMode | Blend modes are used to create various effects by blending colors of top and background layers. normal blend mode is the default.Valid values: average , color , color-burn , color-dodge , darken , destination-atop , destination-in , destination-out , destination-over , difference , exclusion , hard-light , hue , invert , lighten , lighter , luminosity , minus , multiply , normal , overlay , plus , reflect , saturation , screen , soft-light , source-atop , source-in , source-out , vivid-light , xor |
disablePopup | Indicates whether to allow a client to ignore popups defined by the service item. |
effect | Effect provides various filter functions to achieve different visual effects similar to how image filters (photo apps) work. |
featureEffect | Feature Effect emphasizes or deemphasizes features that satisfy a filter using graphical effects |
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 |
maxScale | A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator. |
minScale | A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator. |
mode | Number where 0 means 'snapshot' and 1 means 'ondemand'. |
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. |
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 | Boolean value indicating whether to display the layer in the legend. Default value is true . |
timeAnimation | Indicates whether to disable 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 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. |
visibilityTimeExtent | Represents time extent that will control when a layer should be visible based on webmap's current time. Visibility time extent only affects the layer visibility and will not filter the data. |
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 | Contains the drawing and labeling information. |
featureReduction | An object defining how to aggregate dense data to clusters or bins. This is a visualization-only feature intended solely for reducing the visual complexity of many overlapping features to a few aggregate features that communicate patterns of density. This is not intended to be used for analytical purposes. |
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 . |
orderBy[] | An array of orderByField objects specifying the feature display order. Features can be sorted in ascending or descending order of a numeric or date field only. If ascending , features with smaller values will be drawn on top of features with larger values. For date values, ascending order means features with older dates will be drawn on top of features with recent dates. If descending , the sort behavior is reversed. When this property is not defined, features are displayed in the order in which they are received by the client. |
spatialReference | An object containing the WKID or WKT identifying the spatial reference of the layer's geometry. |
Web Feature Service Layer (WFS) Example
{
"id": "wfs_19",
"url": "http://suite.opengeo.org/geoserver/wfs",
"visibility": true,
"opacity": 1,
"title": "Countries of the World",
"itemId": "0217f8067457410a998fc9293563ba94",
"mode": 0,
"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"
}