Click or drag to resize

Telogis.GeoBase.MapLayers.IndexedImageObject

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

MapLayers.IndexedImageObject inherits from MapLayers.ImageObject.

Functionally the same as an MapLayers.ImageObject, except that it displays a small index associated with the object over the image.

Constructor
NameDescription
MapLayers.IndexedImageObject(config)

Arguments

  • config (Object) - Configuration options for the indexed image object.

    Properties
    NameTypeDescription
    indexNumber

    The numeric index to associate with and display on the image object.

    Defaults to 0.
    indexOffsetPoint

    The pixel offsets in the x- and y- directions to adjust the position of the index label by. By default, it is aligned flush bottom-right with the marker image.

    Defaults to new Point (0, 0).
    indexStyleObject

    A hash of custom JavaScript/CSS styles to apply to the div containing the object's index, which is positioned relative to the base object element.

    Defaults to {}. Properties
    NameTypeDescription
    backgroundColorString

    The background color of the balloon skin, for example "#ffffff"

    borderString

    The width and color of the balloon skin border, for example "2px solid red"

    colorString

    The color of the balloon skin, for example "#000000"

    fontFamilyString

    The font family used by the balloon skin, for example "sans-serif"

    fontSizeString

    The font size used by the balloon skin, for example "8px"

    fontWeightString

    The font weight used by the balloon skin, for example "bold"

    paddingString

    The size of the padding around the balloon skin, for example "10px"

    textAlignString

    The balloon skin's horizontal text alignment, for example "center"

    verticalAlignString

    The balloon skin's vertical text alignment, for example "middle"

    widthString

    The balloon skin's width, for example "200px"

Functions
NameDescription
destroy ()

Frees resources used by the MapLayers.IndexedImageObject.

getIndex ()

Finds the index associated with and displayed on the map object.

Returns

Number - The index of the MapLayers.IndexedImageObject.

setIndex (Number index)

Changes or sets the index associated with and displayed on the map object.

Arguments
  • index (Number) - The new index to associate with the object.