Fence parameters for a Geotrigger that uses feature data from an online feature service, offline geodatabase table, or layer within a feature collection.
Referenced by: Fence Geotrigger
Properties
Property | Details |
---|---|
bufferDistance | An optional buffer distance to apply to fence features in meters. |
fenceSource | An object defining the source for a feature layer to be used as fences. Must be one of the following values: |
filter | An optional filter to reduce the features used for the parameters. See filter properties table. |
type | String indicating the fence parameters type. Valid value of this property features |
filter properties
Property | Details |
---|---|
geometry | A geometry used to filter the features from a feature table. Any features that intersect the area of interest will be used. It can be any of the supported geometry types. |
where | A SQL-based where clause that narrows the data to be used. Any features that satisfy the query will be used. |
Fence Geotrigger Example
{ "type": "features", "bufferDistance": 50, "fenceSource": { "layerUrl": "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Recreation/MapServer/0", "type": "featureLayer" }, "filter": { "where": "facility = 6", "geometry": { "x": 13871520.850500003, "y": 3910293.086000003, "spatialReference": { "wkid": 102100, "latestWkid": 3857 } } } }