In one of my project I am appending a div in google map's (version 2) G_MAP_FLOAT_SHADOW_PANE
using jquery.
Here is the code:
// map is a GMap2 object
$("#MyCustomDiv").appendTo(map.getPane(G_MAP_FLOAT_SHADOW_PANE));
How can I achieve a similar functionality in google map versi开发者_运维技巧on 3?
You're probably looking for the 'floatShadow' pane.
You will need to use a custom overlay. For information on adding overlays to specific panes see here: http://code.google.com/apis/maps/documentation/javascript/overlays.html#Initializing
精彩评论