I can't figure out how to get the overlay layer from Google Maps to adjust itself when the map is scrolled.
I'm doing something like
div = document.createElement('div')
div.style.position = 'absolute';
div.borderColor = "red";
this.getPanes().overlayLayer.appendChild(div)
And when I scroll the map around I see the red box of my div in the overlay where the original border of the map was. Everything inside there is fine, but what if there is new content outside that overlay layer once I scroll? It would be nice if I could get the overlay layer to adjust itself every time the bounds, zoom etc. Changed but I can't see how.