Class PlacemarkMarker.Builder

java.lang.Object
com.arubanetworks.meridian.maps.PlacemarkMarker.Builder
Enclosing class:
PlacemarkMarker

public static class PlacemarkMarker.Builder extends Object
A factory class for creating placemark markers
  • Constructor Details

    • Builder

      public Builder(Context context, Placemark placemark)
      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

      public PlacemarkMarker.Builder setTextSize(float textSize)
      Sets text size (pixels) of this placemark marker
    • setTextSizeInDP

      public PlacemarkMarker.Builder setTextSizeInDP(float textSize)
      Sets text size (DP) of this placemark marker
    • setTextColor

      public PlacemarkMarker.Builder setTextColor(int textColor)
      Sets text color of this placemark marker
    • setShowsTextOnMap

      public PlacemarkMarker.Builder setShowsTextOnMap(boolean showsTextOnMap)
      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

      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

      Parameters:
      iconResId - icon resource id
    • setIconColor

      public PlacemarkMarker.Builder setIconColor(int iconColor)
      Sets icon background color of this placemark marker
    • setIconPadding

      public PlacemarkMarker.Builder setIconPadding(int padding)
      Sets the padding for the icon
      Parameters:
      padding - padding in DIP
    • build

      public PlacemarkMarker build()
      Builds the marker