开发者

Equivalent of getPane method of a GMap2 object in Google map api version 3

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜