GroundOverlay component displays an image overlay on the map, anchored to specific geographic bounds.
Import
Usage
Props
The URL of the image to display as the overlay.
The bounds within which to display the image. Must include
north, south, east, and west properties.The opacity of the overlay, expressed as a number between 0 and 1. Default is 1.
Whether the overlay is visible. When set to
false, the overlay is hidden by setting opacity to 0.Additional options for configuring the ground overlay.
Callback fired when the overlay is clicked.Parameters:
e: The mouse event containing information about the click
Callback fired when the overlay is double-clicked.Parameters:
e: The mouse event containing information about the double-click
Callback invoked when the ground overlay instance has loaded.Parameters:
groundOverlay: The ground overlay instance
Callback invoked when the component unmounts.Parameters:
groundOverlay: The ground overlay instance