google-maps-documentation

GroundOverlay class

google.maps.GroundOverlay class

A rectangular image overlay on the map.

This class extends MVCObject.

Constructor
GroundOverlay
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
getBounds
getBounds()
Parameters:  None
Return Value:  LatLngBounds
Gets the LatLngBounds of this overlay.
getMap
getMap()
Parameters:  None
Return Value:  Map
Returns the map on which this ground overlay is displayed.
getOpacity
getOpacity()
Parameters:  None
Return Value:  number
Returns the opacity of this ground overlay.
getUrl
getUrl()
Parameters:  None
Return Value:  string
Gets the url of the projected image.
setMap
setMap(map)
Parameters: 
Return Value:  None
Renders the ground overlay on the specified map. If map is set to null, the overlay is removed.
setOpacity
setOpacity(opacity)
Parameters: 
  • opacitynumber
Return Value:  None
Sets the opacity of this ground overlay.
Events
click
function(event)
Arguments: 
This event is fired when the DOM click event is fired on the GroundOverlay.
dblclick
function(event)
Arguments: 
This event is fired when the DOM dblclick event is fired on the GroundOverlay.