Package com.arubanetworks.meridian.maps
Class PlacemarkMarker.Builder
java.lang.Object
com.arubanetworks.meridian.maps.PlacemarkMarker.Builder
- Enclosing class:
- PlacemarkMarker
A factory class for creating placemark markers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the markersetIcon
(int iconResId) Sets a custom icon for this marker.setIconColor
(int iconColor) Sets icon background color of this placemark markersetIconPadding
(int padding) Sets the padding for the iconsetPlacemarkMarkerOptions
(PlacemarkMarkerOptions placemarkMarkerOptions) Sets Placemark marker options for this markersetShowsTextOnMap
(boolean showsTextOnMap) Sets if this placemark will show its name on the map or notsetTextColor
(int textColor) Sets text color of this placemark markersetTextSize
(float textSize) Sets text size (pixels) of this placemark markersetTextSizeInDP
(float textSize) Sets text size (DP) of this placemark marker
-
Constructor Details
-
Builder
A PlacemarkMarker Builder needs at least context and placemark objects- Parameters:
placemark
- we need to set the placemark this marker is being built for
-
-
Method Details
-
setTextSize
Sets text size (pixels) of this placemark marker -
setTextSizeInDP
Sets text size (DP) of this placemark marker -
setTextColor
Sets text color of this placemark marker -
setShowsTextOnMap
Sets if this placemark will show its name on the map or not -
setPlacemarkMarkerOptions
public PlacemarkMarker.Builder setPlacemarkMarkerOptions(PlacemarkMarkerOptions placemarkMarkerOptions) Sets Placemark marker options for this marker -
setIcon
Sets a custom icon for this marker.The background will expand to accommodate the icon. Please notice that the icon will be white-tinted
- Parameters:
iconResId
- icon resource id
-
setIconColor
Sets icon background color of this placemark marker -
setIconPadding
Sets the padding for the icon- Parameters:
padding
- padding in DIP
-
build
Builds the marker
-