Class StaticMapMarker
java.lang.Object
com.cercalia.sdk.model.staticmaps.StaticMapMarker
Represents a marker to be rendered on a static map.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull StaticMapMarkerat(@NotNull Coordinate coord) Creates a marker at the specified coordinate.static @NotNull StaticMapMarkerat(@NotNull Coordinate coord, int icon) Creates a marker at the specified coordinate with an icon.@NotNull Stringformat()Formats the marker for the Cercalia APImolistparameter.@NotNull CoordinategetCoord()@Nullable IntegergetIcon()
-
Method Details
-
getCoord
- Returns:
- Coordinate of the marker.
-
getIcon
- Returns:
- Icon ID.
-
at
Creates a marker at the specified coordinate.- Parameters:
coord- Marker location.- Returns:
- A new marker.
-
at
Creates a marker at the specified coordinate with an icon.- Parameters:
coord- Marker location.icon- Icon ID.- Returns:
- A new marker.
-
format
Formats the marker for the Cercalia APImolistparameter.- Returns:
- Formatted string.
-