Package com.yandex.mapkit.map
Class IconStyle
java.lang.Object
↳ com.yandex.mapkit.map.IconStyle
final class IconStyle implements Serializable
The style of created icons.
Summary
Constructors
Signature and Description |
IconStyle(@Nullable android.graphics.PointF anchor, |
IconStyle() |
Methods
Type and modifiers |
Method and Description |
android.graphics.PointF |
getAnchor() |
setAnchor(@Nullable android.graphics.PointF anchor) |
|
getRotationType() |
|
setRotationType(@Nullable RotationType rotationType) |
|
java.lang.Float |
getZIndex() |
setZIndex(@Nullable java.lang.Float zIndex) |
|
java.lang.Boolean |
getFlat() |
setFlat(@Nullable java.lang.Boolean flat) |
|
java.lang.Boolean |
getVisible() |
setVisible(@Nullable java.lang.Boolean visible) |
|
java.lang.Float |
getScale() |
setScale(@Nullable java.lang.Float scale) |
|
getTappableArea() |
|
setTappableArea(@Nullable Rect tappableArea) |
|
void |
serialize(com.yandex.runtime.bindings.Archive archive) |
Constuctors
IconStyle
IconStyle(@Nullable android.graphics.PointF anchor, |
IconStyle
IconStyle() |
Use constructor with parameters in your code.
This one is for bindings only!
Methods
getAnchor
@Nullable |
An anchor is used to alter image placement.
Normalized: (0.0f, 0.0f) denotes the top left image corner; (1.0f, 1.0f) denotes bottom right. Default is (0.5f, 0.5f).
Optional field, can be null.
setAnchor
IconStyle setAnchor(@Nullable android.graphics.PointF anchor) |
See #getAnchor().
getRotationType
@Nullable |
Icon rotation type.
Default: NoRotation.
Optional field, can be null.
setRotationType
IconStyle setRotationType(@Nullable RotationType rotationType) |
See #getRotationType().
getZIndex
@Nullable |
Z-index of the icon, relative to the placemark's z-index.
Optional field, can be null.
setZIndex
IconStyle setZIndex(@Nullable java.lang.Float zIndex) |
See #getZIndex().
getFlat
@Nullable |
If true, the icon is displayed on the map surface.
If false, the icon is displayed on the screen surface. Default: false.
Optional field, can be null.
setFlat
IconStyle setFlat(@Nullable java.lang.Boolean flat) |
See #getFlat().
getVisible
@Nullable |
Sets icon visibility.
Default: true.
Optional field, can be null.
setVisible
IconStyle setVisible(@Nullable java.lang.Boolean visible) |
See #getVisible().
getScale
@Nullable |
Scale of the icon.
Default: 1.0f.
Optional field, can be null.
setScale
IconStyle setScale(@Nullable java.lang.Float scale) |
See #getScale().
getTappableArea
@Nullable |
Tappable area on the icon.
Coordinates are measured the same way as anchor coordinates. If rect is empty or invalid, the icon will not process taps. By default, icons process all taps.
Optional field, can be null.
setTappableArea
See #getTappableArea().
serialize
@Override |