Are there any examples of a google map that has one big canvas as an overlayview. I'm having a hard time positioning the canvas whenever the map zoom or pans.
Check out the CanvasLayer library which basically takes all of this into account for you as a reference implementation.
Try the map bounds method, get the northeast and southwest view of current viewable map and use a js function to modify the overlay on each zoom to change the position dynamically.
mapBound = map.getBounds();
northEndOfMap =mapBound.getNorthEast();
and to get map zoom
map.getZoom();
Refer: http://code.google.com/apis/maps/documentation/javascript/reference.html#Map
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With