Telogis.GeoBase.MapLayers.PolygonFence |
MapLayers.PolygonFence inherits from MapLayers.GeoFence.
A variant of MapLayers.GeoFence that represents a region defined by the closure of an arbitrary polyline.
Name | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
MapLayers.PolygonFence(config) | Arguments
|
Name | Description |
---|---|
appendPoint (LatLon loc) | Appends a point to the polyline defining the fence and updates its bounding box accordingly. Arguments
|
contains (LatLon loc) | Determines whether a given point lies within the fence boundaries. Arguments
Boolean - True if MapLayers.PolygonFence.contains.loc lies within the fence; false otherwise. |
getPoints () | Finds the array of points defining the fence's bounding polyline. ReturnsArray - A copy of the fence's vertex array, as LatLons. |
snapToStreets (Function callback, Function errorCallback, Object server) | Generates a collection of geofences that represent this MapLayers.PolygonFence when its outer edges have been snapped to the street-links it contains. Arguments
|