Groups
Groups
Sign in
Groups
Groups
谷歌地图 API 论坛
Conversations
About
Send feedback
Help
通过GMarket弹出的信息窗口位置不对
12 views
Skip to first unread message
Robby
unread,
Aug 12, 2009, 10:17:44 PM
8/12/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 谷歌地图 API 论坛
我在地图上标注了多个GMarket,当我点击其中一个Marker得时候会弹出一个InfoWindow窗口,但窗口的位置却不和所点击的
Marker相吻合 ,而且点击不同的Marker弹出的窗口都在同一个位置,为什么会这样?
Message has been deleted
xiaoxiwu
unread,
Aug 17, 2009, 5:34:23 AM
8/17/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 谷歌地图 API 论坛
你的js代码有问题,可能是closure的问题。
cancer kid
unread,
Aug 23, 2009, 10:03:12 PM
8/23/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-map...@googlegroups.com
我也遇到这个情况,后来修改 DOCTYPE 发现问题解决。。 不知道其中的联系。。。
2009/8/17 xiaoxiwu
<
frank...@gmail.com
>
nikkofu
unread,
Aug 23, 2009, 11:38:56 PM
8/23/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-map...@googlegroups.com
请仔细参考GOOGLE MAP API中的案例
创建MARKER的时候,最好在循环里中用一个方法 createMarker来做操作,在那返回marker对象
你的问题是由于变量引用导致的,所有的MARKER都引用到了最初/最后的那个点位上
2009/8/24 cancer kid
<
jay...@gmail.com
>
junjiang.liu
unread,
Aug 24, 2009, 10:47:34 AM
8/24/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-map...@googlegroups.com
我也遇到类似的问题,解决的方法是通过新写的了一个函数,把生成的marker传给这个函数,在这个函数里new infoWindow建立之间的联系就不会有问题了,具体原因没找到
2009/8/24 nikkofu
<
nik...@gmail.com
>
Reply all
Reply to author
Forward
0 new messages