Click or drag to resize

Telogis.GeoBase.MapLayers.RegionShadeLayer

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

MapLayers.RegionShadeLayer inherits from MapLayers.AbstractLayer.

A class for displaying a shaded rectangular region on a map.

Constructor
NameDescription
MapLayers.RegionShadeLayer(config)

Arguments

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

    Properties
    NameTypeDescription
    borderTypeString

    The CSS property describing the style to draw the region border with.

    Defaults to 'solid'.
    borderWidthNumber

    The border width for the region, in pixels.

    Defaults to 1.
    colorColor

    The RGBA color (and opacity) with which to shade the region. The same color will be used for the border (if enabled), except that it will be fully opaque.

    This property may also be referenced by the name: colour.
    nwLatLon

    The latitude-longitude coordinates of the north-west (upper-left) corner of the shaded region.

    Defaults to new LatLon().
    seLatLon

    The latitude-longitude coordinates of the south-east (lower-right) corner of the shaded region.

    Defaults to new LatLon().
    viewportWidgets.Map

    The viewport to create a region from.

    Defaults to null.
Functions
NameDescription
destroy ()

Deallocates resources used by the MapLayers.RegionShadeLayer and frees the associated memory to avoid leaks.

setCorners (LatLon nw, LatLon se)

Sets the north-west and south-east corners of the MapLayers.RegionShadeLayer.

Arguments
setMap (Widgets.Map map)

The same as for MapLayers.AbstractLayer.setMap, except that once the MapLayers.RegionShadeLayer's map is adjusted, the bounds of its region are updated.

Arguments
  • map (Widgets.Map or String) - The map to attach the layer to.