Options
All
  • Public
  • Public/Protected
  • All
Menu

MarkerOptions object used to define the properties that can be set on a Marker.

see

Maps JavaScript API

Hierarchy

  • MarkerOptions

Index

Properties

Optional anchorPoint

anchorPoint: undefined | Point

The offset from the marker's position to the tip of an InfoWindow that has been opened with the marker as anchor.

see

Maps JavaScript API

Optional animation

animation: undefined | BOUNCE | DROP

Which animation to play when marker is added to a map.

see

Maps JavaScript API

Optional clickable

clickable: undefined | boolean

If true, the marker receives mouse and touch events.

default

true

see

Maps JavaScript API

Optional crossOnDrag

crossOnDrag: undefined | boolean

If false, disables cross that appears beneath the marker when dragging.

default

true

see

Maps JavaScript API

Optional cursor

cursor: undefined | string

Mouse cursor to show on hover.

default

'pointer'

see

Maps JavaScript API

see

{@link CSSStyleDeclaration#cursor}

Optional draggable

draggable: undefined | boolean

If true, the marker can be dragged.

default

false

see

Maps JavaScript API

Optional icon

icon: undefined | string | Icon | Symbol

Icon for the foreground. If a string is provided, it is treated as though it were an Icon with the string as {@link Icon#url url}.

see

Maps JavaScript API

Optional label

label: undefined | string | MarkerLabel

Adds a label to the marker. The label can either be a string, or a MarkerLabel object.

see

Maps JavaScript API

Optional map

map: undefined | Map<Element> | StreetViewPanorama

Map on which to display Marker.

see

Maps JavaScript API

Optional opacity

opacity: undefined | number

The marker's opacity between 0.0 and 1.0.

see

Maps JavaScript API

default

1.0

Optional optimized

optimized: undefined | boolean

Optimization renders many markers as a single static element. Optimized rendering is enabled by default. Disable optimized rendering for animated GIFs or PNGs, or when each marker must be rendered as a separate DOM element (advanced usage only).

see

Maps JavaScript API

Optional position

position: undefined | LatLng | LatLngLiteral

Marker position. Note that the position must be set for the marker to display.

see

Maps JavaScript API

Optional shape

Image map region definition used for drag/click.

see

Maps JavaScript API

Optional title

title: undefined | string

Rollover text.

see

Maps JavaScript API

see

{@link HTMLElement#title}

Optional visible

visible: undefined | boolean

If true, the marker is visible.

default

true

see

Maps JavaScript API

Optional zIndex

zIndex: undefined | number

All markers are displayed on the map in order of their zIndex, with higher values displaying in front of markers with lower values. By default, markers are displayed according to their vertical position on screen, with lower markers appearing in front of markers further up the screen.

see

Maps JavaScript API

Generated using TypeDoc