Warning

This feature is available in the Full MapKit SDK version

Package world.mappable.mapkit.road_events_layer

Interface RoadEventStyle

interface RoadEventStyle

Summary

Methods

Type and modifiers

Method and Description

int

getZoomMin()
Road event is visible only if current camera zoom is greater or equal than this value.

void

setZoomMin(int zoomMin)

void

setIconImage(@NonNull ImageProvider image)
Road event icon image.

android.graphics.PointF

getIconAnchor()
Icon anchor, (0, 0) is top left and (1.0, 1.0) is bottom right.

void

setIconAnchor(@NonNull android.graphics.PointF iconAnchor)

java.util.List<android.graphics.PointF>

getZoomScaleFunction()
Piecewise linear scale function.

void

setZoomScaleFunction(@NonNull java.util.List<android.graphics.PointF> zoomScaleFunction)

TextStyle

getCaptionStyle()
Style of caption displayed under the road event icon.

void

setCaptionStyle(@Nullable TextStyle captionStyle)

android.graphics.PointF

getPulsationCenter()
Pulsation center on road event pin image (see HighlightMode).

void

setPulsationCenter(@NonNull android.graphics.PointF pulsationCenter)

boolean

isValid()
Tells if this RoadEventStyle is valid or not.

Methods

getZoomMin

int getZoomMin()

Road event is visible only if current camera zoom is greater or equal than this value.


setZoomMin

void setZoomMin(int zoomMin)


setIconImage

void setIconImage(@NonNull ImageProvider image)

Road event icon image.


getIconAnchor

@NonNull
android.graphics.PointF getIconAnchor()

Icon anchor, (0, 0) is top left and (1.0, 1.0) is bottom right.


setIconAnchor

void setIconAnchor(@NonNull android.graphics.PointF iconAnchor)


getZoomScaleFunction

@NonNull
java.util.List<android.graphics.PointF> getZoomScaleFunction()

Piecewise linear scale function.

See Placemark's scale function.


setZoomScaleFunction

void setZoomScaleFunction(@NonNull java.util.List<android.graphics.PointF> zoomScaleFunction)


getCaptionStyle

@Nullable
TextStyle getCaptionStyle()

Style of caption displayed under the road event icon.

Optional property, can be null.


setCaptionStyle

void setCaptionStyle(@Nullable TextStyle captionStyle)


getPulsationCenter

@NonNull
android.graphics.PointF getPulsationCenter()

Pulsation center on road event pin image (see HighlightMode).

(0, 0) is top left and (1.0, 1.0) is bottom right.


setPulsationCenter

void setPulsationCenter(@NonNull android.graphics.PointF pulsationCenter)


isValid

boolean isValid()

Tells if this RoadEventStyle is valid or not.

Any other method (except for this one) called on an invalid RoadEventStyle will throw java.lang.RuntimeException. An instance becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.