Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对标记 Google Maps v3 有疑问。仅适用于 IE7 和 IE8。首先加载网页,默认标记出现在地图上。如果我放大地图,它可以正常工作。
在这里,您有一个示例图像。红色、粉色和紫色标记是我的。
http://i.imgur.com/fxGht.jpg
重复标记在那里是因为你的 final {}in variable markers。删除它并在最后一个条目的末尾取出尾随的逗号。
{}
markers