Hi, I want to implement a glasspanel to capture some mouse events before the shapes and markers overlay. The way I had planned on doing it was to create an overlayview which consists in a div that I add to the mousetargetpanel. The problem I have is how to make sure that the overlayview takes up the whole map area. I used the draw method to update the div position and sizes each time there is a refresh of the map and added a drag_end event handler on the map to handle the case of pan. To calculate the div extent I use the map bounds and the projection. In fact I have it explained in this post, http://map-notes.blogspot.com/2012/01/ok-this-one-got-me-sweating-so-i.html. I simplified the code since then, but have a look at the draw method.
It was working fine until I decided to zoom back enough to have several instances of the earth in my map ;-) Then the problem I have is getting the "real", non wrapped, bounds of my current viewport. I have not been able to find any good method for doing so. If anybody knows how to get a full extent of the map bounds, eg south west corner of [-85, -320], I am very interested! On another note, I can't help but think that there ought to be an easier way of implementing a glass panel ;-) Thanks for any help, Thomas -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
