okay , here is how I got it working
Added multiple overlay images and set the opacity of all the images to 0 except 1 in a loop with timer. It works fine. You must put this code in a function and call it using setTimeOut()
. If anybody is interested , i will post the complete working code.
Here is a code snippet
for (k = 0; k < overlays.length; k++) {
if (k == current_k) {
overlays[k].setOpacity(1);
} else
overlays[k].setOpacity(0);
}
map.doubleClickZoom.disable();
map.once('click', function(e) {
//map.doubleClickZoom.enable()
})