Interface PlacemarkMapObject
Package world.mappable.mapkit.map
All Superinterfaces:
interface PlacemarkMapObject extends MapObject
Represents a geo-positioned object on the map.
Summary
Methods
Type and modifiers |
Method and Description |
void |
setGeometry(@NonNull Point geometry) |
float |
getDirection() |
void |
setDirection(float direction) |
float |
getOpacity() |
void |
setOpacity(float opacity) |
void |
setIcon(@NonNull ImageProvider image) |
void |
setIcon(@NonNull ImageProvider image, |
void |
setIcon(@NonNull ImageProvider image, |
void |
setIcon(@NonNull ImageProvider image, |
void |
setIconStyle(@NonNull IconStyle style) |
useCompositeIcon() |
|
useModel() |
|
useAnimation() |
|
void |
setView(@NonNull ViewProvider view) |
void |
setView(@NonNull ViewProvider view, |
void |
setView(@NonNull ViewProvider view, |
void |
setView(@NonNull ViewProvider view, |
void |
setScaleFunction(@NonNull java.util.List<android.graphics.PointF> points) |
void |
setText(@NonNull java.lang.String text) |
void |
setText(@NonNull java.lang.String text, |
void |
setTextStyle(@NonNull TextStyle style) |
Methods
getGeometry
@NonNull |
setGeometry
void setGeometry(@NonNull Point geometry) |
getDirection
float getDirection() |
Angle between the direction of an object and the direction to north.
Measured in degrees. Default: 0.f.
setDirection
void setDirection(float direction) |
getOpacity
float getOpacity() |
Opacity multiplicator for the placemark content.
Values below 0 will be set to 0. Default: 1.
setOpacity
void setOpacity(float opacity) |
setIcon
void setIcon(@NonNull ImageProvider image) |
Sets an icon with the default style for the placemark.
Switches off and resets model/composite icon/animation/view.
setIcon
void setIcon(@NonNull ImageProvider image, |
Sets an icon with the given style for the placemark.
Switches off and resets model/composite icon/animation/view.
setIcon
void setIcon(@NonNull ImageProvider image, |
Sets an icon with the default style for the placemark.
Switches off and resets model/composite icon/animation/view. 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 |
|
|
Called when the icon is loaded. |
setIcon
void setIcon(@NonNull ImageProvider image, |
Sets an icon with the given style for the placemark.
Switches off and resets model/composite icon/animation/view. 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 |
|
|
Called when the icon is loaded. |
setIconStyle
void setIconStyle(@NonNull IconStyle style) |
Changes the icon style.
Valid only for the single icon, the view and the animated icon.
useCompositeIcon
@NonNull |
Returns CompositeIcon object that can be used to set icons and their styles for the placemark.
Switches off and resets icon/model/animation/view.
useModel
@NonNull |
Returns Model object that can be used to set model and its style for the placemark.
Switches off and resets icon/composite icon/animation/view.
useAnimation
@NonNull |
Returns PlacemarkAnimation object that can be used to control animation of the placemark.
Switches off and resets icon/composite icon/model/view.
setView
void setView(@NonNull ViewProvider view) |
Sets the view with the default style for the placemark.
Switches off and resets icon/composite icon/animation/model.
setView
void setView(@NonNull ViewProvider view, |
Sets the view with the given style for the placemark.
Switches off and resets icon/composite icon/animation/view.
setView
void setView(@NonNull ViewProvider view, |
Sets the view with the default style for the placemark.
Switches off and resets icon/composite icon/animation/view. The callback will be called immediately after the view finished loading.
Parameters |
|
|
Called when the icon is loaded. |
setView
void setView(@NonNull ViewProvider view, |
Sets the view with the given style for the placemark.
Switches off and resets icon/composite icon/animation/view. The callback will be called immediately after the view finished loading.
Parameters |
|
|
Called when the icon is loaded. |
setScaleFunction
void setScaleFunction(@NonNull java.util.List<android.graphics.PointF> points) |
Sets piecewise linear scale, depending on the zoom.
The 'points' must be sorted by x; x coordinates must be unique. If zoom minZoom(points) or zoom maxZoom(points), it is set within the defined bounds before applying the function. By default, the scale function is defined by a single point (1, 1). If points is null or points.empty(), it resets the function to the default. If points.size() == 1, the scale is constant and equals point.y.
setText
void setText(@NonNull java.lang.String text) |
Sets the text for the placemark, current text style is used
Parameters |
|
|
is a string in UTF-8 encoding |
setText
void setText(@NonNull java.lang.String text, |
Sets the text with the given style for the placemark
Parameters |
|
|
is a string in UTF-8 encoding |
setTextStyle
void setTextStyle(@NonNull TextStyle style) |
Changes the text style.