MarkerController
Controls Marker-specific features on the map. Allows Marker management and user interactions with the Marker.
Important: This is a Public Preview API. It may be changed or removed at any time.
Functions
Adds a new Marker based on the given MarkerOptions.
Registers OnMarkerClickListener that will be notified about any Marker being clicked. The clicked Marker becomes a parameter of the OnMarkerClickListener.onMarkerClicked callback.
Registers OnMarkerLongClickListener that will be notified about the long press gesture recognized on the Marker. The clicked Marker becomes a parameter of the OnMarkerLongClickListener.onMarkerLongClicked callback.
Registers OnMarkerLongClickListener that will be notified when marker is selected or deselected. The selected Marker becomes a parameter of the OnMarkerSelectedListener.onMarkerSelectedStateChanged callback.
Removes all Marker elements from the map.
Removes the OnMarkerClickListener.
Removes the OnMarkerLongClickListener.
Removes the OnMarkerSelectedListener.
Zooms the map to display all markers added to the map.
Zooms the map do display markers from the given list.