开发者

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

开发者 https://www.devze.com 2023-03-07 08:06 出处:网络
In one of my project I am appending a div in google map\'s (version 2) G_MAP_FLOAT_SHADOW_PANE using jquery.

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

精彩评论

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