Is it possible to create a single overlay that doesn't move with the map?

28 views
Skip to first unread message

Matt

unread,
Aug 13, 2011, 1:15:15 PM8/13/11
to google-map...@googlegroups.com
I'm trying to create an overlay that sits above the map tiles and below any markers and controls. It needs to be statically positioned - not pan with the map. 

I'm trying to create something akin to a loupe where most of the map is obscured by a darkened tint while a small portion isn't. I've looked into tile layers but I don't see a way to create one that doesn't pan. I've also looked at simply placing divs over the map but that obscures the markers and controls and makes them inaccessible.

What's the best approach to do this? Has anyone seen an example of a static overlay in the wild?

Kesuke

unread,
Aug 13, 2011, 7:42:38 PM8/13/11
to Google Maps JavaScript API v3
Does your map have a fixed width/height or is it fluid?

Matt

unread,
Aug 13, 2011, 9:02:18 PM8/13/11
to google-map...@googlegroups.com
It's fluid but I have observers on window resize to handle it's layout (particularly vertical) so any solution that works fixed/width should work fine fluid. Why do you ask?
Reply all
Reply to author
Forward
0 new messages