google.maps.GroundOverlay class
A rectangular image overlay on the map.
This class extends MVCObject.
Constructor
GroundOverlay(url, bounds[, opts])
Parameters:
- url: string
- bounds: LatLngBounds|LatLngBoundsLiteral
- opts: GroundOverlayOptions optional
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()
Parameters: None
Return Value: LatLngBounds
Gets the LatLngBounds of this overlay.
getMap()
Parameters: None
Return Value: Map
Returns the map on which this ground overlay is displayed.
getOpacity()
Parameters: None
Return Value: number
Returns the opacity of this ground overlay.
getUrl()
Parameters: None
Return Value: string
Gets the url of the projected image.
setMap(map)
Parameters:
- map: Map
Return Value: None
Renders the ground overlay on the specified map. If map is set to null, the overlay is removed.
setOpacity(opacity)
Parameters:
- opacity: number
Return Value: None
Sets the opacity of this ground overlay.
Events
function(event)
Arguments:
- event: MouseEvent
This event is fired when the DOM click event is fired on the GroundOverlay.
function(event)
Arguments:
- event: MouseEvent
This event is fired when the DOM dblclick event is fired on the GroundOverlay.