GraphicFenceParameters

Geotrigger fence parameters data created from graphics. The graphics used to create a GraphicFenceParameters provide a set of geometries and attributes that define targets for a FenceGeotrigger condition. For example, if the condition is "notify me when my position comes within 50 meters of one of my target areas", the fence data is "my target areas".

A GraphicFenceParameters allows you to track a specific set of Graphic objects: these can be a selection of the graphics from a GraphicsOverlay or graphics that are not displayed on a GeoView. If you wish to track all of the graphics displayed in a GraphicsOverlay, use a GraphicsOverlayFenceParameters.

A GraphicFenceParameters is created using a list of Graphic objects. The graphics can have point, line, or polygon geometry. A FenceParameters.bufferDistance must be supplied for points or lines.

Since

200.1.0

Constructors

Link copied to clipboard
constructor(graphics: Iterable<Graphic> = mutableListOf(), bufferDistance: Double = 0.0)

Creates a GraphicFenceParameters that will apply a buffer distance to any graphics that are added to GraphicFenceParameters.graphics.

constructor(bufferDistance: Double)

Creates a GraphicFenceParameters that will apply a buffer distance to any graphics that are added to GraphicFenceParameters.graphics.

Properties

Link copied to clipboard

The graphics to use in the GraphicFenceParameters. This collection will be tracked when monitoring a Geotrigger such that any graphics that are added will be included and any that are removed will no longer be checked.

Inherited properties

Link copied to clipboard

A buffer distance in meters to apply when checking if a FenceGeotrigger condition is met. For example, if the rule is "enters within 50 meters" you use a FenceGeotrigger.ruleType of FenceRuleType.Enter and set this property to 50.