Skip to content

Latest commit

 

History

History
466 lines (234 loc) · 8.79 KB

File metadata and controls

466 lines (234 loc) · 8.79 KB

See html formatted version

Marker class

google.maps.Marker class

This class extends MVCObject.

Constructor

undefined

Marker([opts])

Parameters: 

Creates a marker with the options specified. If a map is specified, the marker is added to the map upon construction. Note that the position must be set for the marker to display.

Methods

undefined

getAnimation()

Parameters:  None

Return Value:  Animation optional

undefined

getClickable()

Parameters:  None

Return Value:  boolean

undefined

getCursor()

Parameters:  None

Return Value:  string

undefined

getDraggable()

Parameters:  None

Return Value:  boolean

undefined

getIcon()

Parameters:  None

Return Value:  string|Icon|Symbol

undefined

getLabel()

Parameters:  None

Return Value:  MarkerLabel

undefined

getMap()

Parameters:  None

Return Value:  Map|StreetViewPanorama

undefined

getOpacity()

Parameters:  None

Return Value:  number

undefined

getPosition()

Parameters:  None

Return Value:  LatLng

undefined

getShape()

Parameters:  None

Return Value:  MarkerShape

undefined

getTitle()

Parameters:  None

Return Value:  string

undefined

getVisible()

Parameters:  None

Return Value:  boolean

undefined

getZIndex()

Parameters:  None

Return Value:  number

undefined

setAnimation(animation)

Parameters: 

Return Value:  None

Start an animation. Any ongoing animation will be cancelled. Currently supported animations are: BOUNCE, DROP. Passing in null will cause any animation to stop.

undefined

setClickable(flag)

Parameters: 

  • flag:  boolean

Return Value:  None

undefined

setCursor(cursor)

Parameters: 

  • cursor:  string

Return Value:  None

undefined

setDraggable(flag)

Parameters: 

  • flag:  boolean optional

Return Value:  None

undefined

setIcon(icon)

Parameters: 

Return Value:  None

undefined

setLabel(label)

Parameters: 

Return Value:  None

undefined

setMap(map)

Parameters: 

Return Value:  None

Renders the marker on the specified map or panorama. If map is set to null, the marker will be removed.

undefined

setOpacity(opacity)

Parameters: 

  • opacity:  number

Return Value:  None

undefined

setOptions(options)

Parameters: 

Return Value:  None

undefined

setPosition(latlng)

Parameters: 

Return Value:  None

undefined

setShape(shape)

Parameters: 

Return Value:  None

undefined

setTitle(title)

Parameters: 

  • title:  string

Return Value:  None

undefined

setVisible(visible)

Parameters: 

  • visible:  boolean

Return Value:  None

undefined

setZIndex(zIndex)

Parameters: 

  • zIndex:  number

Return Value:  None

Constants

undefined

The maximum default z-index that the API will assign to a marker. You may set a higher z-index to bring a marker to the front.

Events

undefined

function()

Arguments:  None

This event is fired when the marker's animation property changes.

undefined

function(event)

Arguments: 

This event is fired when the marker icon was clicked.

undefined

function()

Arguments:  None

This event is fired when the marker's clickable property changes.

undefined

function()

Arguments:  None

This event is fired when the marker's cursor property changes.

undefined

function(event)

Arguments: 

This event is fired when the marker icon was double clicked.

undefined

function(event)

Arguments: 

This event is repeatedly fired while the user drags the marker.

undefined

function(event)

Arguments: 

This event is fired when the user stops dragging the marker.

undefined

function()

Arguments:  None

This event is fired when the marker's draggable property changes.

undefined

function(event)

Arguments: 

This event is fired when the user starts dragging the marker.

undefined

function()

Arguments:  None

This event is fired when the marker's flat property changes.

undefined

function()

Arguments:  None

This event is fired when the marker icon property changes.

undefined

function(event)

Arguments: 

This event is fired for a mousedown on the marker.

undefined

function(event)

Arguments: 

This event is fired when the mouse leaves the area of the marker icon.

undefined

function(event)

Arguments: 

This event is fired when the mouse enters the area of the marker icon.

undefined

function(event)

Arguments: 

This event is fired for a mouseup on the marker.

undefined

function()

Arguments:  None

This event is fired when the marker position property changes.

undefined

function(event)

Arguments: 

This event is fired for a rightclick on the marker.

undefined

function()

Arguments:  None

This event is fired when the marker's shape property changes.

undefined

function()

Arguments:  None

This event is fired when the marker title property changes.

undefined

function()

Arguments:  None

This event is fired when the marker's visible property changes.

undefined

function()

Arguments:  None

This event is fired when the marker's zIndex property changes.