I have an init() function which creates an image overlay for a map when the html body is loaded. within the function a mapOverlay variable is created. It\'s basically the functi
You need to declare the variable outside of the scope of your function to be able to use it in other functions.
So: