Class: Container

.xyz.maps.editor.features. Container

The interface for an array-like object to keep and operate several features at once.

Members Summary

length :number

The number of features in the container

type :string

The type of the container is 'CONTAINER'

Methods Summary

forEach(f, c)

Executes a provided function once per container feature

highlight()

Highlights all features in the container

pop() → {here.xyz.maps.editor.features.Feature}

Pops out the last object in the container

push(layer) → {number}

Add the given features to the container.

remove()

Removes all features in the container

toArray()

Converts to native Array

transform()

Transform features in container

unhighlight()

Unhighlights all features in the container

Members Details

length :number

The number of features in the container
Type:
number

type :string

The type of the container is 'CONTAINER'
Type:
string

Methods Details

forEach(f, c)

Executes a provided function once per container feature
Parameters:
Name Type Description
f function funtion to be called for the objects in container
c Object the context of the function

highlight()

Highlights all features in the container
Deprecated:
  • Yes

pop() → {here.xyz.maps.editor.features.Feature}

Pops out the last object in the container
Returns:
object the last object in the container
Type:
here.xyz.maps.editor.features.Feature

push(layer) → {number}

Add the given features to the container.
Parameters:
Name Type Argument Description
feature. here.xyz.maps.editor.features.Feature | Array.<here.xyz.maps.editor.features.Feature> The feature(s) to add to the end of the container.
layer here.xyz.maps.layers.TileLayer <optional>
layer the feature(s) should be added.
Returns:
length of the containing features
Type:
number

remove()

Removes all features in the container

toArray()

Converts to native Array

transform()

Transform features in container

unhighlight()

Unhighlights all features in the container