阅读背景:

使用谷歌使用唯一infowindows的多个标记映射javascript api v3

来源:互联网 

I know this question is posted all over stack overflow. But I've been working at it for days, and none of the solutions have worked. I'll post everything I'm doing and maybe someone will see my mistake. I'd much rather leave comments on the other existing questions but there is a requirement of 50 rep... I hope there are enough comments to help you read the code but let me summarize. I have the initialize function for the map. Since my maps is about directions there is a calcRoute() function. This function gets a route from google, and puts in on the map. I also place some markers along the route, that's the parksToPlaceArray. so if the ajax returns successfully I parse through the data and add the markers. and just below creating the marker I have attempted to add an event listener for the infowindow, but it does not work. I'd like to get a concept going because I would like to have a title, small description, maybe a thumbnail, and have the title link to the details page. I know this question is posted all over stack o




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: