Click or drag to resize

Telogis.GeoBase.MapLayers.GeoFence

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release

MapLayers.GeoFence inherits from MapLayers.CanvasLayer.

A class used for displaying a customizable (not necessarily rectangular, as is the restriction of a MapLayers.RegionShadeLayer) region on a map, so as to indicate an area not accessible for routing or one that has some other significance.

Constructor
NameDescription
MapLayers.GeoFence(config)

Arguments

  • config (Object) - Configuration options for the MapLayers.GeoFence layer.

    Properties
    NameTypeDescription
    fillColorString

    Also accepted as fillColour. The RGBA description of the color with which to fill the fence. Defaults to black with an alpha of 0.2.

    lineColorString

    Also accepted as lineColour. The RGBA description of the color with which to draw the fence. Defaults to black with an alpha of 0.8.

    lineWidthNumber

    The pixel width of the GeoFence lines. Defaults to 1.

Functions
NameDescription
contains (LatLon loc)

Determines whether a given point lies within the fence boundaries.

Arguments
  • loc (LatLon) - The latitude-longitude coordinates of the point to test for.

Returns

Boolean - True if MapLayers.GeoFence.contains.loc lies within the fence; false otherwise.