Package com.yandex.mapkit.map
Interface MapObjectCollection
All Superinterfaces:
BaseMapObjectCollection, MapObject
interface MapObjectCollection extends BaseMapObjectCollection
A collection of map objects that can hold any set of MapObject items, including nested collections.
Summary
Methods
Type and modifiers |
Method and Description |
addPlacemark() |
|
addPlacemark(@NonNull PlacemarkCreatedCallback placemarkCreatedCallback) |
|
addEmptyPlacemark(@NonNull Point point) |
|
addPlacemark(@NonNull Point point) |
|
addPlacemark(@NonNull Point point, |
|
addPlacemark(@NonNull Point point, |
|
addPlacemark(@NonNull Point point, |
|
addPlacemark(@NonNull Point point, |
|
addPlacemark(@NonNull Point point, |
|
java.util.List<PlacemarkMapObject> |
addPlacemarks(@NonNull java.util.List<Point> points, |
java.util.List<PlacemarkMapObject> |
addEmptyPlacemarks(@NonNull java.util.List<Point> points) |
addPolyline(@NonNull Polyline polyline) |
|
addPolyline() |
|
addPolygon(@NonNull Polygon polygon) |
|
addCircle(@NonNull Circle circle) |
|
addCollection() |
|
addClusterizedPlacemarkCollection(@NonNull ClusterListener clusterListener) |
|
placemarksStyler() |
Methods
addPlacemark
@NonNull |
Creates a new empty placemark and adds it to the current collection.
addPlacemark
@NonNull |
Creates a new empty placemark and adds it to the current collection.
Callback can be used to setup placemark style and position Callback will be called before MapObjectCollectionListener#onMapObjectAdded
addEmptyPlacemark
@Deprecated @NonNull |
Alert
Use addPlacemark() + setGeometry(point) Creates a new empty placemark and adds it to the current collection.
addPlacemark
@Deprecated @NonNull |
Alert
Use addPlacemark() + setGeometry(point) + setIcon(your_own_blue_dot_icon). Default icon (also known as blue dot) is no longer provided. Creates a new placemark with the default icon and style, and adds it to the current collection.
addPlacemark
@Deprecated @NonNull |
Alert
Use addPlacemark() + setGeometry(point) + setIcon(image, style) Creates a new placemark with the default style and adds it to the current collection.
addPlacemark
@Deprecated @NonNull |
Alert
Use addPlacemark() + setGeometry(point) + setIcon(image, style) Creates a new placemark and adds it to the current collection. Hint: to add a large amount of placemarks use addPlacemarks method.
addPlacemark
@Deprecated @NonNull |
Alert
Use addPlacemark() + setGeometry(point) + setView(view) Creates a new view placemark with default style and adds it to the current collection.
addPlacemark
@Deprecated @NonNull |
Alert
Use addPlacemark() + setGeometry(point) + setView(view, style) Creates a new view placemark and adds it to the current collection.
addPlacemark
@Deprecated @NonNull |
Alert
Use addPlacemark() + setGeometry(point) + useAnimation() + setIcon(animatedImage, style) Creates a new placemark with animated icon and adds it to the current collection.
addPlacemarks
@Deprecated @NonNull |
Alert
Use ClusterizedPlacemarkCollection Creates new placemarks and adds them to the current collection. Relevant for Android: this method provides better performance for adding a large number of placemarks than multiple calls of addPlacemark.
addEmptyPlacemarks
@Deprecated @NonNull |
Alert
Use ClusterizedPlacemarkCollection Creates new empty placemarks and adds them to the current collection.
Relevant for Android: this method provides better performance for adding a large number of empty placemarks than multiple calls of addEmptyPlacemark.
addPolyline
@NonNull |
Creates a new polyline and adds it to the current collection.
addPolyline
@NonNull |
Creates a new polyline with an empty geometry and adds it to the current collection.
addPolygon
@NonNull |
Creates a new polygon and adds it to the current collection.
addCircle
@NonNull |
Creates a new circle and adds it to the current collection.
addCollection
@NonNull |
Creates a new nested collection of map objects.
addClusterizedPlacemarkCollection
@NonNull |
Creates a new nested collection of clusterized placemarks.
The class does not retain the object in the 'clusterListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.
Parameters |
|
|
Listener that controls cluster appearance once they are added to the map. |
placemarksStyler
@NonNull |
A styler for all placemarks in this collection, including placemarks in child collections.