MarkerOptions

Deprecated

As of 7.0.0, use MapLibre Annotation Plugin instead

Builder for composing Marker objects. See Marker for additional information.

Example

mapView.addMarker(new MarkerOptions()
  .title("Intersection")
  .snippet("H St NW with 15th St NW")
  .position(new LatLng(38.9002073, -77.03364419)));

Constructors

Link copied to clipboard
constructor()
Defines options for a Marker.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun describeContents(): Int
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Link copied to clipboard
open fun equals(@Nullable o: Any): Boolean
Compares this MarkerOptions object with another MarkerOptions and determines if their properties match.
Link copied to clipboard
open fun getIcon(): Icon
Gets the custom icon set for this MarkerOptions object.
Link copied to clipboard
open fun getMarker(): Marker
Do not use this method.
Link copied to clipboard
open fun getPosition(): LatLng
Returns the position set for this MarkerOptions object.
Link copied to clipboard
open fun getSnippet(): String
Gets the snippet set for this MarkerOptions object.
Link copied to clipboard
Get the instance of the object for which this method was called.
Link copied to clipboard
open fun getTitle(): String
Gets the title set for this MarkerOptions object.
Link copied to clipboard
open fun hashCode(): Int
Gives an integer which can be used as the bucket number for storing elements of the set/map.
Link copied to clipboard
open fun icon(icon: Icon): T
Set the icon of the Marker.
Link copied to clipboard
open fun position(position: LatLng): T
Set the geographical location of the Marker.
Link copied to clipboard
open fun setIcon(icon: Icon): T
Set the icon of the Marker.
Link copied to clipboard
open fun setPosition(position: LatLng): T
Set the geographical location of the Marker.
Link copied to clipboard
open fun setSnippet(snippet: String): T
Set the snippet of the Marker.
Link copied to clipboard
open fun setTitle(title: String): T
Set the title of the Marker.
Link copied to clipboard
open fun snippet(snippet: String): T
Set the snippet of the Marker.
Link copied to clipboard
open fun title(title: String): T
Set the title of the Marker.
Link copied to clipboard
open fun writeToParcel(out: Parcel, flags: Int)
Flatten this object in to a Parcel.