Overlays are images that are displayed on top of the original Google map. There are two types of overlays:
Let's discuss both of these in detail.
Ground overlays are attached to latitude and longitude coordinates. They move when we drag or zoom a map. Ground overlays are really helpful when we wish to display a single image over the surface of the map. The following image is an example of a ground overlay, where the Android logo is displayed over the map:
A ground overlay can be added using a
GroundOverlayOptions object. By calling the
image() method, you can set an image ...