Skip to content

Latest commit

 

History

History
112 lines (58 loc) · 2.54 KB

File metadata and controls

112 lines (58 loc) · 2.54 KB

See html formatted version

GroundOverlay class

google.maps.GroundOverlay class

A rectangular image overlay on the map.

This class extends MVCObject.

Constructor

undefined

GroundOverlay(url, bounds[, opts])

Parameters: 

Creates a ground overlay from the provided image URL and its LatLngBounds. The image is scaled to fit the current bounds, and projected using the current map projection.

Methods

undefined

getBounds()

Parameters:  None

Return Value:  LatLngBounds

Gets the LatLngBounds of this overlay.

undefined

getMap()

Parameters:  None

Return Value:  Map

Returns the map on which this ground overlay is displayed.

undefined

getOpacity()

Parameters:  None

Return Value:  number

Returns the opacity of this ground overlay.

undefined

getUrl()

Parameters:  None

Return Value:  string

Gets the url of the projected image.

undefined

setMap(map)

Parameters: 

Return Value:  None

Renders the ground overlay on the specified map. If map is set to null, the overlay is removed.

undefined

setOpacity(opacity)

Parameters: 

  • opacity:  number

Return Value:  None

Sets the opacity of this ground overlay.

Events

undefined

function(event)

Arguments: 

This event is fired when the DOM click event is fired on the GroundOverlay.

undefined

function(event)

Arguments: 

This event is fired when the DOM dblclick event is fired on the GroundOverlay.