AdvancedMarker

  • AdvancedMarker extends the Marker class and provides premium features for map markers.

  • It allows setting a custom View as the marker icon using setIconView().

  • If a custom View is set, the BitmapDescriptor set via setIcon() will be ignored.

  • You can retrieve the custom View used for the marker icon using getIconView().

  • AdvancedMarker inherits all functionalities from the standard Marker class, including setting position, title, snippet, and other properties.

Extends Marker, and provides additional premium features.

Public Method Summary

View
getIconView()
Gets the view being used for the marker if the marker has any.
void
setIconView(View view)
Sets the view to be used for the marker.

Inherited Method Summary

Public Methods

public View getIconView ()

Gets the view being used for the marker if the marker has any.

Returns
  • view being used as a Marker icon or null

public void setIconView (View view)

Sets the view to be used for the marker.

If iconView is set, the BitmapDescriptor set via Marker.setIcon(BitmapDescriptor) will be ignored.

Parameters
view the view instance to be used as a marker on the map.