Instance Properties
| Name | Description | Access |
|---|---|---|
| length | number The number of objects in the collection. | read-only |
Methods
| anyItem( | ) |
→ GraphicLayer |
| count( | ) |
→ number |
| everyItem( | ) |
→ GraphicLayer |
| firstItem( | ) |
→ GraphicLayer |
| item( | index) |
→ GraphicLayer |
| itemByID( | id) |
→ GraphicLayer |
| itemByName( | name) |
→ GraphicLayer |
| itemByRange( | from, to) |
→ GraphicLayer |
| lastItem( | ) |
→ GraphicLayer |
| middleItem( | ) |
→ GraphicLayer |
| nextItem( | obj) |
→ GraphicLayer |
| previousItem( | obj) |
→ GraphicLayer |
| toSource( | ) |
→ string |
-
anyItem( )→ GraphicLayer -
Returns any GraphicLayer in the collection.
-
count( )→ number -
Displays the number of elements in the GraphicLayer.
-
everyItem( )→ GraphicLayer -
Returns every GraphicLayer in the collection.
-
firstItem( )→ GraphicLayer -
Returns the first GraphicLayer in the collection.
-
item( index)→ GraphicLayer -
Returns the GraphicLayer with the specified index or name.
indexThe index or name. Can accept: Long Integer or String. -
itemByID( id)→ GraphicLayer -
Returns the GraphicLayer with the specified ID.
idnumber The ID. -
itemByName( name)→ GraphicLayer -
Returns the GraphicLayer with the specified name.
namestring The name. -
itemByRange( from, to)→ GraphicLayer -
Returns the GraphicLayers within the specified range.
fromThe GraphicLayer, index, or name at the beginning of the range. Can accept: GraphicLayer, Long Integer or String. toThe GraphicLayer, index, or name at the end of the range. Can accept: GraphicLayer, Long Integer or String. -
lastItem( )→ GraphicLayer -
Returns the last GraphicLayer in the collection.
-
middleItem( )→ GraphicLayer -
Returns the middle GraphicLayer in the collection.
-
nextItem( obj)→ GraphicLayer -
Returns the GraphicLayer whose index follows the specified GraphicLayer in the collection.
objGraphicLayer The GraphicLayer whose index comes before the desired GraphicLayer. -
previousItem( obj)→ GraphicLayer -
Returns the GraphicLayer with the index previous to the specified index.
objGraphicLayer The index of the GraphicLayer that follows the desired GraphicLayer. -
toSource( )→ string -
Generates a string which, if executed, will return the GraphicLayer.