Package com.yandex.mapkit

Class GeoObjectCollection

java.lang.Object
    ↳ com.yandex.mapkit.GeoObjectCollection

class GeoObjectCollection implements Serializable

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 Class Summary

Modifier and Type

Interface

Description

static

Item

The geo objects in the collection.

Summary

Constructors

Signature and Description

GeoObjectCollection()
Use constructor with parameters in your code.

GeoObjectCollection(@Nullable BoundingBox boundingBox,
                    @NonNull TypeDictionary<BaseMetadata> metadataContainer,
                    @NonNull java.util.List<Item> children)

Methods

Type and modifiers

Method and Description

synchronized BoundingBox

getBoundingBox()
The bounds around the collection of objects.

synchronized TypeDictionary<BaseMetadata>

getMetadataContainer()
The metadata for the objects.

synchronized java.util.List<Item>

getChildren()

void

serialize(com.yandex.runtime.bindings.Archive archive)

static java.lang.String

getNativeName()

Constuctors

GeoObjectCollection

GeoObjectCollection()

Use constructor with parameters in your code.

This one is for serialization only!


GeoObjectCollection

GeoObjectCollection(@Nullable BoundingBox boundingBox,
                    @NonNull TypeDictionary<BaseMetadata> metadataContainer,
                    @NonNull java.util.List<Item> children)


Methods

getBoundingBox

@Nullable
BoundingBox getBoundingBox()

The bounds around the collection of objects.

Optional field, can be null.


getMetadataContainer

@NonNull
TypeDictionary<BaseMetadata> getMetadataContainer()

The metadata for the objects.


getChildren

@NonNull
java.util.List<Item> getChildren()


serialize

@Override
void serialize(com.yandex.runtime.bindings.Archive archive)


getNativeName

java.lang.String getNativeName()


Предыдущая
Следующая