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:
LatLngBoundsGets the LatLngBounds of this overlay. |
getMap |
getMap()Parameters: None
Return Value:
MapReturns the map on which this ground overlay is displayed. |
getOpacity |
getOpacity()Parameters: None
Return Value:
numberReturns the opacity of this ground overlay. |
getUrl |
getUrl()Parameters: None
Return Value:
stringGets 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:
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. |