I am using Google Maps for a weather information display web.
I want to show the cloud condition for past seven days.
I am using overlays to display clouds on my web.
Now my question is can we change image of google.maps.GroundOverlay using javascript?
I believe it is not possible to change the image of a GroundOverlay. The image is set in the constructor and there is currently no setter documented to change it.
What you could try is to create two GroundOverlays with the same coordinates but pass the constructor
map:nullon one of them so it doesn’t show on your map. Then, when you want to replace the image, callsetMap(null)on the overlay that is showing–that will hide it–and then callsetMap(map)(assuming you set your map to a variable namedmap) on the overlay that you want to show.