How To Overlay Multiple Images Onto Google Maps
I'm looking for an elegant way to overlay multiple images onto my google maps, there must be a simple way to do this without writing pages of code, but google doesn't seem to provi
Solution 1:
Your problem is not "Is there a way to create multiple overlay variables" , your problem is that you create the overlay-variable. (the next overlay-variable will overwrite the current)
Simply create the objects without giving it a name(you don't use the name somewhere else inside your script, so you don't need it at all):
new portlandOverlay(bounds, srcImage, map);
new portlandOverlay(bounds2, srcImage2, map);
new portlandOverlay(bounds3, srcImage3, map);
//....and so on
Post a Comment for "How To Overlay Multiple Images Onto Google Maps"