GraphicLayers

A collection of graphic layers.

Methods

GraphicLayeranyItem ()
Returns any GraphicLayer in the collection.

number count ()
Displays the number of elements in the GraphicLayer.

Array of GraphicLayereveryItem ()
Returns every GraphicLayer in the collection.

GraphicLayerfirstItem ()
Returns the first GraphicLayer in the collection.

GraphicLayeritem (index:
any)
Returns the GraphicLayer with the specified index or name.

Parameter Type Description
index Long Integer
String
The index or name. Can accept: Long Integer or String.

GraphicLayeritemByID (id:
number)
Returns the GraphicLayer with the specified ID.

Parameter Type Description
id number The ID.

GraphicLayeritemByName (name:
string)
Returns the GraphicLayer with the specified name.

Parameter Type Description
name string The name.

Array of GraphicLayeritemByRange (from:
any, to:
any)
Returns the GraphicLayers within the specified range.

Parameter Type Description
from GraphicLayer
Long Integer
String
The GraphicLayer, index, or name at the beginning of the range. Can accept: GraphicLayer, Long Integer or String.
to GraphicLayer
Long Integer
String
The GraphicLayer, index, or name at the end of the range. Can accept: GraphicLayer, Long Integer or String.

GraphicLayerlastItem ()
Returns the last GraphicLayer in the collection.

GraphicLayermiddleItem ()
Returns the middle GraphicLayer in the collection.

GraphicLayernextItem (obj:
GraphicLayer)
Returns the GraphicLayer whose index follows the specified GraphicLayer in the collection.

Parameter Type Description
obj GraphicLayer The GraphicLayer whose index comes before the desired GraphicLayer.

GraphicLayerpreviousItem (obj:
GraphicLayer)
Returns the GraphicLayer with the index previous to the specified index.

Parameter Type Description
obj GraphicLayer The index of the GraphicLayer that follows the desired GraphicLayer.

string toSource ()
Generates a string which, if executed, will return the GraphicLayer.

Element of:

GraphicLayer.graphicLayers
GraphicLayerOption.graphicLayers

Leave a Comment

Previous post:

Next post: