Class StaticMapOptions.Builder
java.lang.Object
com.cercalia.sdk.model.staticmaps.StaticMapOptions.Builder
- Enclosing class:
- StaticMapOptions
Builder for
StaticMapOptions.-
Method Summary
Modifier and TypeMethodDescriptionaddMarker(@NotNull StaticMapMarker marker) addShape(@NotNull StaticMapShape shape) @NotNull StaticMapOptionsbuild()center(@Nullable Coordinate center) coordinateSystem(@Nullable String coordinateSystem) countryCode(@Nullable String countryCode) dimensions(int width, int height) extent(@Nullable StaticMapExtent extent) markers(@NotNull StaticMapMarker... markers) markers(@NotNull List<StaticMapMarker> markers) mode(int mode) priorityfilter(boolean priorityfilter) returnImage(boolean returnImage) shapes(@NotNull StaticMapShape... shapes) shapes(@NotNull List<StaticMapShape> shapes)
-
Method Details
-
width
- Parameters:
width- Image width.- Returns:
- current builder
-
height
- Parameters:
height- Image height.- Returns:
- current builder
-
dimensions
- Parameters:
width- Image width.height- Image height.- Returns:
- current builder
-
cityName
- Parameters:
cityName- Locality (city) name.- Returns:
- current builder
-
countryCode
- Parameters:
countryCode- Country code.- Returns:
- current builder
-
coordinateSystem
- Parameters:
coordinateSystem- SRS.- Returns:
- current builder
-
extent
- Parameters:
extent- Map extent.- Returns:
- current builder
-
center
- Parameters:
center- Center coordinate.- Returns:
- current builder
-
labelOp
- Parameters:
labelOp- Label option.- Returns:
- current builder
-
markers
- Parameters:
markers- List of markers.- Returns:
- current builder
-
markers
- Parameters:
markers- Array of markers.- Returns:
- current builder
-
addMarker
- Parameters:
marker- Marker to add.- Returns:
- current builder
-
shapes
- Parameters:
shapes- List of shapes.- Returns:
- current builder
-
shapes
- Parameters:
shapes- Array of shapes.- Returns:
- current builder
-
addShape
- Parameters:
shape- Shape to add.- Returns:
- current builder
-
returnImage
- Parameters:
returnImage- Return image.- Returns:
- current builder
-
mode
- Parameters:
mode- Map mode (default is 1).- Returns:
- current builder
-
priorityfilter
- Parameters:
priorityfilter- Enable priority filter (default is true).- Returns:
- current builder
-
build
- Returns:
- A new instance of
StaticMapOptions.
-