public static class PlacemarkMarker.Builder
extends java.lang.Object
A factory class for creating placemark markers
Constructor and Description |
---|
Builder(android.content.Context context,
Placemark placemark)
A PlacemarkMarker Builder needs at least context and placemark objects
|
Modifier and Type | Method and Description |
---|---|
PlacemarkMarker |
build()
Builds the marker
|
PlacemarkMarker.Builder |
setIcon(int iconResId)
Sets a custom icon for this marker.
|
PlacemarkMarker.Builder |
setIconColor(int iconColor)
Sets icon background color of this placemark marker
|
PlacemarkMarker.Builder |
setIconPadding(int padding)
Sets the padding for the icon
|
PlacemarkMarker.Builder |
setPlacemarkMarkerOptions(PlacemarkMarkerOptions placemarkMarkerOptions)
Sets Placemark marker options for this marker
|
PlacemarkMarker.Builder |
setShowsTextOnMap(boolean showsTextOnMap)
Sets if this placemark will show its name on the map or not
|
PlacemarkMarker.Builder |
setTextColor(int textColor)
Sets text color of this placemark marker
|
PlacemarkMarker.Builder |
setTextSize(float textSize)
Sets text size (pixels) of this placemark marker
|
PlacemarkMarker.Builder |
setTextSizeInDP(float textSize)
Sets text size (DP) of this placemark marker
|
public Builder(android.content.Context context, Placemark placemark)
A PlacemarkMarker Builder needs at least context and placemark objects
placemark
- we need to set the placemark this marker is being built forpublic PlacemarkMarker.Builder setTextSize(float textSize)
Sets text size (pixels) of this placemark marker
public PlacemarkMarker.Builder setTextSizeInDP(float textSize)
Sets text size (DP) of this placemark marker
public PlacemarkMarker.Builder setTextColor(int textColor)
Sets text color of this placemark marker
public PlacemarkMarker.Builder setShowsTextOnMap(boolean showsTextOnMap)
Sets if this placemark will show its name on the map or not
public PlacemarkMarker.Builder setPlacemarkMarkerOptions(PlacemarkMarkerOptions placemarkMarkerOptions)
Sets Placemark marker options for this marker
public PlacemarkMarker.Builder setIcon(int iconResId)
Sets a custom icon for this marker. The background will expand to accommodate the icon. Please notice that the icon will be white-tinted
iconResId
- icon resource idpublic PlacemarkMarker.Builder setIconColor(int iconColor)
Sets icon background color of this placemark marker
public PlacemarkMarker.Builder setIconPadding(int padding)
Sets the padding for the icon
padding
- padding in DIPpublic PlacemarkMarker build()
Builds the marker