Class StaticMapOptions
java.lang.Object
com.cercalia.sdk.model.staticmaps.StaticMapOptions
Options for generating a static map.
Example usage:
StaticMapOptions options = StaticMapOptions.builder()
.dimensions(800, 600)
.center(new Coordinate(2.1734, 41.3851))
.addMarker(StaticMapMarker.builder().coordinate(new Coordinate(2.1734, 41.3851)).build())
.returnImage(true)
.build();
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull StaticMapOptions.Builderbuilder()@Nullable Coordinate@Nullable String@Nullable String@Nullable String@Nullable StaticMapExtent@Nullable Integer@Nullable Integer@NotNull List<StaticMapMarker>intgetMode()@NotNull List<StaticMapShape>@Nullable IntegergetWidth()booleanboolean
-
Method Details
-
getWidth
- Returns:
- Width of the image.
-
getHeight
- Returns:
- Height of the image.
-
getCityName
- Returns:
- Locality (city) name to center the map on.
-
getCountryCode
- Returns:
- Country code.
-
getCoordinateSystem
- Returns:
- Coordinate system (SRS).
-
getExtent
- Returns:
- Map extent.
-
getCenter
- Returns:
- Center coordinate.
-
getLabelOp
- Returns:
- Label option.
-
getMarkers
- Returns:
- List of markers to show on the map.
-
getShapes
- Returns:
- List of shapes to show on the map.
-
isReturnImage
public boolean isReturnImage()- Returns:
- Whether to return the raw image data.
-
getMode
public int getMode()- Returns:
- Map mode (default is 1).
-
isPriorityfilter
public boolean isPriorityfilter()- Returns:
- Whether priority filter is enabled (default is true).
-
builder
- Returns:
- a new builder for
StaticMapOptions.
-