Interface CompositeIcon

Package world.mappable.mapkit.map

All Superinterfaces:

PlacemarkPresentation

interface CompositeIcon extends PlacemarkPresentation

Combines multiple icons into one.

Summary

Methods

Type and modifiers

Method and Description

void

setIcon(@NonNull java.lang.String name,
        @NonNull ImageProvider image,
        @NonNull IconStyle style)

Creates or resets a named layer with an icon and its style.

void

setIcon(@NonNull java.lang.String name,
        @NonNull ImageProvider image,
        @NonNull IconStyle style,
        @NonNull Callback onFinished)

Creates or resets a named layer that contains an icon and its style.

void

setIconStyle(@NonNull java.lang.String name,
             @NonNull IconStyle style)

Changes the icon style for a specific layer.

Icon

icon(@NonNull java.lang.String name)
Returns named Icon object that can be used to set icon and its style.

void

removeIcon(@NonNull java.lang.String name)
Removes the named layer.

void

removeAll()
Removes all layers.

Methods

setIcon

void setIcon(@NonNull java.lang.String name,
             @NonNull ImageProvider image,
             @NonNull IconStyle style)

Creates or resets a named layer with an icon and its style.


setIcon

void setIcon(@NonNull java.lang.String name,
             @NonNull ImageProvider image,
             @NonNull IconStyle style,
             @NonNull Callback onFinished)

Creates or resets a named layer that contains an icon and its style.

Parameters

onFinished

Called when an icon is loaded.


setIconStyle

void setIconStyle(@NonNull java.lang.String name,
                  @NonNull IconStyle style)

Changes the icon style for a specific layer.


icon

@NonNull
Icon icon(@NonNull java.lang.String name)

Returns named Icon object that can be used to set icon and its style.

Creates an empty Icon if it didn't exist.


removeIcon

void removeIcon(@NonNull java.lang.String name)

Removes the named layer.


removeAll

void removeAll()

Removes all layers.