Google Maps API V3 infoWindow - All infoWindows displaying same content

前端 未结 2 514
滥情空心
滥情空心 2020-12-04 03:25

In my page, latitude, longitude and info window content are present in an array of objects named obj.

So if I need the latitude of property of the 1st object, I can

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-04 04:02

    BGerrissen's comment above helped a lot.

    I managed to achieve function closure on the info variable.

    The following Google Groups post explains how to.

    https://groups.google.com/group/google-maps-api-for-flash/browse_thread/thread/befeb9bf2d1ebcc9

    Thanks everyone :)

提交回复
热议问题