Interface PlacemarkMapObject

com.yandex.mapkit.map

public interface PlacemarkMapObject extends MapObject

All Superinterfaces:
MapObject

Represents a geo-positioned object on the map.

Methods

float getDirection()

Angle between the direction of an object and the direction to north.

Point getGeometry()

Position of the object.

float getOpacity()

Opacity multiplicator for the placemark content.

void setDirection(float direction)
void setGeometry( Point geometry)
void setIcon(ImageProvider image)

Sets an icon with the default style for the placemark.

void setIcon(ImageProvider image, IconStyle style)

Sets an icon with the given style for the placemark.

void setIcon(ImageProvider image, Callback onFinished)

Sets an icon with the default style for the placemark.

void setIcon(ImageProvider image, IconStyle style, Callback onFinished)

Sets an icon with the given style for the placemark.

void setIconStyle( IconStyle style)

Changes the icon style.

void setModel(String obj, ImageProvider textureProvider, ModelStyle style)

Sets the model.

void setModel(String obj, ImageProvider textureProvider, ModelStyle style, Callback onFinished)

Sets the model.

void setModelStyle( ModelStyle modelStyle)

Changes the model style.

void setOpacity(float opacity)
AnimatedIcon useAnimatedIcon()

Sets and returns the animated icon.

CompositeIcon useCompositeIcon()

Sets and returns the composite icon.

float getDirection()

Angle between the direction of an object and the direction to north.

Point getGeometry()

Position of the object.

float getOpacity()

Opacity multiplicator for the placemark content.

void setDirection(float direction)
void setGeometry( Point geometry)
void setIcon(ImageProvider image)

Sets an icon with the default style for the placemark.

void setIcon(ImageProvider image, IconStyle style)

Sets an icon with the given style for the placemark.

void setIcon(ImageProvider image, Callback onFinished)

Sets an icon with the default style for the placemark.

void setIcon(ImageProvider image, IconStyle style, Callback onFinished)

Sets an icon with the given style for the placemark.

void setIconStyle( IconStyle style)

Changes the icon style.

void setModel(String obj, ImageProvider textureProvider, ModelStyle style)

Sets the model.

void setModel(String obj, ImageProvider textureProvider, ModelStyle style, Callback onFinished)

Sets the model.

void setModelStyle( ModelStyle modelStyle)

Changes the model style.

void setOpacity(float opacity)
AnimatedIcon useAnimatedIcon()

Sets and returns the animated icon.

CompositeIcon useCompositeIcon()

Sets and returns the composite icon.

Method Detail

getDirection

public float getDirection ()

Angle between the direction of an object and the direction to north.

Measured in degrees. Default: 0.f.

getGeometry

public Point getGeometry ()

Position of the object.

getOpacity

public float getOpacity ()

Opacity multiplicator for the placemark content.

Values below 0 will be set to 0. Default: 1.

setDirection

public void setDirection (float direction)

setGeometry

public void setGeometry (Point geometry)

setIcon

public void setIcon (ImageProvider image)

Sets an icon with the default style for the placemark.

Resets the animated icon, the composite icon and the model.

setIcon

public void setIcon (ImageProvider image, IconStyle style)

Sets an icon with the given style for the placemark.

Resets the animated icon, the composite icon and the model.

setIcon

public void setIcon (ImageProvider image, Callback onFinished)

Sets an icon with the default style for the placemark.

Resets the animated icon, the composite icon and the model. The callback is called immediately after the image finished loading. This means you can, for example, change the placemark visibility with a new icon.
Parameters:
onFinished

Called when the icon is loaded.

onFinished

Called when the icon is loaded.

setIcon

public void setIcon (ImageProvider image, IconStyle style, Callback onFinished)

Sets an icon with the given style for the placemark.

Resets the animated icon, the composite icon and the model. The callback is called immediately after the image finished loading. This means you can, for example, change the placemark visibility with a new icon.
Parameters:
onFinished

Called when the icon is loaded.

onFinished

Called when the icon is loaded.

setIconStyle

public void setIconStyle (IconStyle style)

Changes the icon style.

Valid only for the single icon and the animated icon.

setModel

public void setModel (String obj, ImageProvider textureProvider, ModelStyle style)

Sets the model.

Resets icons.

setModel

public void setModel (String obj, ImageProvider textureProvider, ModelStyle style, Callback onFinished)

Sets the model.

Resets icons. The callback will be called immediately after model loading finishes.

setModelStyle

public void setModelStyle (ModelStyle modelStyle)

Changes the model style.

setOpacity

public void setOpacity (float opacity)

useAnimatedIcon

public AnimatedIcon useAnimatedIcon ()

Sets and returns the animated icon.

Resets thesingle icon, the composite icon and the model.

useCompositeIcon

public CompositeIcon useCompositeIcon ()

Sets and returns the composite icon.

Resets the single icon, the animated icon and the model.