Class StaticMapMarker

java.lang.Object
com.cercalia.sdk.model.staticmaps.StaticMapMarker

public final class StaticMapMarker extends Object
Represents a marker to be rendered on a static map.
  • Method Details

    • getCoord

      @NotNull public @NotNull Coordinate getCoord()
      Returns:
      Coordinate of the marker.
    • getIcon

      @Nullable public @Nullable Integer getIcon()
      Returns:
      Icon ID.
    • at

      @NotNull public static @NotNull StaticMapMarker at(@NotNull @NotNull Coordinate coord)
      Creates a marker at the specified coordinate.
      Parameters:
      coord - Marker location.
      Returns:
      A new marker.
    • at

      @NotNull public static @NotNull StaticMapMarker at(@NotNull @NotNull Coordinate coord, int icon)
      Creates a marker at the specified coordinate with an icon.
      Parameters:
      coord - Marker location.
      icon - Icon ID.
      Returns:
      A new marker.
    • format

      @NotNull public @NotNull String format()
      Formats the marker for the Cercalia API molist parameter.
      Returns:
      Formatted string.