Class GeoObjectCollection

com.yandex.mapkit

java.lang.Object ⇽ GeoObjectCollection

public class GeoObjectCollection

A collection of geo objects.

Allows you to group geo objects for adding them to the map, setting options, etc. Collections are geo objects too.

Nested Classes

Constructors

GeoObjectCollection()

Use constructor with parameters in your code.

GeoObjectCollection(BoundingBox boundingBox, Collection metadataContainer, List< Item > children)
GeoObjectCollection()

Use constructor with parameters in your code.

GeoObjectCollection(BoundingBox boundingBox, Collection metadataContainer, List< Item > children)

Methods

synchronized BoundingBox getBoundingBox()

The bounds around the collection of objects.

synchronized List< Item > getChildren()
synchronized Collection getMetadataContainer()

The metadata for the objects.

String getNativeName()
void serialize(Archive archive)
synchronized BoundingBox getBoundingBox()

The bounds around the collection of objects.

synchronized List< Item > getChildren()
synchronized Collection getMetadataContainer()

The metadata for the objects.

String getNativeName()
void serialize(Archive archive)

Constructor Detail

GeoObjectCollection

public GeoObjectCollection ()

Use constructor with parameters in your code.

This one is for serialization only!

GeoObjectCollection

public GeoObjectCollection (BoundingBox boundingBox, Collection metadataContainer, List< Item > children)

Method Detail

getBoundingBox

public synchronized BoundingBox getBoundingBox ()

The bounds around the collection of objects.

Optional field, can be null.

getChildren

public synchronized List< Item > getChildren ()

getMetadataContainer

public synchronized Collection getMetadataContainer ()

The metadata for the objects.

getNativeName

public static String getNativeName ()

serialize

public void serialize (Archive archive)