A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/android/reference/com/google/android/gms/maps/model/MarkerOptions below:

MarkerOptions | Google Play services

Defines MarkerOptions for a marker.

Developer Guide

For more information, read the Markers developer guide.

Inherited Constant Summary From interface android.os.Parcelable int CONTENTS_FILE_DESCRIPTOR int PARCELABLE_WRITE_RETURN_VALUE Public Constructor Summary Public Method Summary MarkerOptions alpha

(float alpha)

Sets the alpha (opacity) of the marker.

MarkerOptions anchor

(float u, float v)

Specifies the anchor to be at a particular point in the marker image.

MarkerOptions MarkerOptions draggable

(boolean draggable)

Sets the draggability for the marker.

MarkerOptions flat

(boolean flat)

Sets whether this marker should be flat against the map true or a billboard facing the camera false.

float float getAnchorU

()

Horizontal distance, normalized to [0, 1], of the anchor from the left edge.

float getAnchorV

()

Vertical distance, normalized to [0, 1], of the anchor from the top edge.

BitmapDescriptor float getInfoWindowAnchorU

()

Horizontal distance, normalized to [0, 1], of the info window anchor from the left edge.

float getInfoWindowAnchorV

()

Vertical distance, normalized to [0, 1], of the info window anchor from the top edge.

LatLng float String String float MarkerOptions MarkerOptions infoWindowAnchor

(float u, float v)

Specifies the anchor point of the info window on the marker image.

boolean boolean boolean MarkerOptions MarkerOptions rotation

(float rotation)

Sets the rotation of the marker in degrees clockwise about the marker's anchor point.

MarkerOptions MarkerOptions MarkerOptions visible

(boolean visible)

Sets the visibility for the marker.

void MarkerOptions zIndex

(float zIndex)

Sets the zIndex for the marker.

Inherited Method Summary From class java.lang.Object Object

clone()

boolean void

finalize()

final Class<?>

getClass()

int

hashCode()

final void

notify()

final void

notifyAll()

String

toString()

final void

wait(long arg0, int arg1)

final void

wait(long arg0)

final void

wait()

From interface android.os.Parcelable abstract int

describeContents()

abstract void writeToParcel

(

Parcel

arg0, int arg1)

Public Constructors public MarkerOptions ()

Creates a new set of marker options.

Public Methods public MarkerOptions alpha (float alpha)

Sets the alpha (opacity) of the marker. This is a value from 0 to 1, where 0 means the marker is completely transparent and 1 means the marker is completely opaque.

Returns public MarkerOptions anchor (float u, float v)

Specifies the anchor to be at a particular point in the marker image.

The anchor specifies the point in the icon image that is anchored to the marker's position on the Earth's surface.

The anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0], where (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner. The anchoring point in a W x H image is the nearest discrete grid point in a (W + 1) x (H + 1) grid, obtained by scaling the then rounding. For example, in a 4 x 2 image, the anchor point (0.7, 0.6) resolves to the grid point at (3, 1).

 *-----+-----+-----+-----*
 |     |     |     |     |
 |     |     |     |     |
 +-----+-----+-----+-----+
 |     |     |   X |     |   (U, V) = (0.7, 0.6)
 |     |     |     |     |
 *-----+-----+-----+-----*

 *-----+-----+-----+-----*
 |     |     |     |     |
 |     |     |     |     |
 +-----+-----+-----X-----+   (X, Y) = (3, 1)
 |     |     |     |     |
 |     |     |     |     |
 *-----+-----+-----+-----*
 
Parameters u u-coordinate of the anchor, as a ratio of the image width (in the range [0, 1]) v v-coordinate of the anchor, as a ratio of the image height (in the range [0, 1]) Returns public MarkerOptions contentDescription (String contentDescription)

Sets the content description on the marker.

Returns public MarkerOptions draggable (boolean draggable)

Sets the draggability for the marker.

Returns public MarkerOptions flat (boolean flat)

Sets whether this marker should be flat against the map true or a billboard facing the camera false. If the marker is flat against the map, it will always be drawn facing the camera and will rotate and tilt with the camera, unlike a GroundOverlay. If the marker is a billboard, it will remain stuck to the map as the camera rotates and tilts. Both flat and billboard markers remain the same size as the camera zooms. The default value is false.

Returns public float getAlpha ()

Gets the alpha set for this MarkerOptions object.

Returns public float getAnchorU ()

Horizontal distance, normalized to [0, 1], of the anchor from the left edge.

Returns public float getAnchorV ()

Vertical distance, normalized to [0, 1], of the anchor from the top edge.

Returns public float getInfoWindowAnchorU ()

Horizontal distance, normalized to [0, 1], of the info window anchor from the left edge.

Returns public float getInfoWindowAnchorV ()

Vertical distance, normalized to [0, 1], of the info window anchor from the top edge.

Returns public LatLng getPosition ()

Returns the position set for this MarkerOptions object.

Returns public float getRotation ()

Gets the rotation set for this MarkerOptions object.

Returns public String getSnippet ()

Gets the snippet, text displayed below the marker's title, for this MarkerOptions object.

Returns public String getTitle ()

Gets the title set for this MarkerOptions object.

Returns public float getZIndex ()

Gets the zIndex set for this MarkerOptions object.

Returns public MarkerOptions icon (BitmapDescriptor iconDescriptor)

Sets the icon for the marker.

Parameters iconDescriptor if null, the default marker is used. Returns public MarkerOptions infoWindowAnchor (float u, float v)

Specifies the anchor point of the info window on the marker image. This is specified in the same coordinate system as the anchor. See anchor(float, float) for more details. The default is the top middle of the image.

Parameters u u-coordinate of the info window anchor, as a ratio of the image width (in the range [0, 1]) v v-coordinate of the info window anchor, as a ratio of the image height (in the range [0, 1]) Returns public boolean isDraggable ()

Gets the draggability setting for this MarkerOptions object.

Returns public boolean isFlat ()

Gets the flat setting for this MarkerOptions object.

Returns public boolean isVisible ()

Gets the visibility setting for this MarkerOptions object.

Returns public MarkerOptions position (LatLng latlng)

Sets the location for the marker.

Returns public MarkerOptions rotation (float rotation)

Sets the rotation of the marker in degrees clockwise about the marker's anchor point. The axis of rotation is perpendicular to the marker. A rotation of 0 corresponds to the default position of the marker. When the marker is flat on the map, the default position is North aligned and the rotation is such that the marker always remains flat on the map. When the marker is a billboard, the default position is pointing up and the rotation is such that the marker is always facing the camera. The default value is 0.

Returns public MarkerOptions snippet (String snippet)

Sets the snippet for the marker.

Returns public MarkerOptions title (String title)

Sets the title for the marker.

Returns public MarkerOptions visible (boolean visible)

Sets the visibility for the marker.

Returns public void writeToParcel (Parcel out, int flags) public MarkerOptions zIndex (float zIndex)

Sets the zIndex for the marker.

Returns

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4