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() |
void |
setZoomMin(int zoomMin) |
void |
setIconImage(@NonNull ImageProvider image) |
android.graphics.PointF |
getIconAnchor() |
void |
setIconAnchor(@NonNull android.graphics.PointF iconAnchor) |
java.util.List<android.graphics.PointF> |
getZoomScaleFunction() |
void |
setZoomScaleFunction(@NonNull java.util.List<android.graphics.PointF> zoomScaleFunction) |
getCaptionStyle() |
|
void |
setCaptionStyle(@Nullable TextStyle captionStyle) |
android.graphics.PointF |
getPulsationCenter() |
void |
setPulsationCenter(@NonNull android.graphics.PointF pulsationCenter) |
boolean |
isValid() |
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 |
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 |
Piecewise linear scale function.
See Placemark's scale function.
setZoomScaleFunction
void setZoomScaleFunction(@NonNull java.util.List<android.graphics.PointF> zoomScaleFunction) |
getCaptionStyle
@Nullable |
Style of caption displayed under the road event icon.
Optional property, can be null.
setCaptionStyle
void setCaptionStyle(@Nullable TextStyle captionStyle) |
getPulsationCenter
@NonNull |
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.