English 中文(简体)
在谷歌地图V3 地点,不点击、上载或开标,打开一个专门的InfoWindow
原标题:Open a specific InfoWindow without click nor in upload or initialization in Google Maps V3 Places

我愿向20位来自谷歌地方的人开放一个具体的<代码>InfoWindow。

首先,我需要确定哪一个开放。 因此,一旦我知道要开放的话,我就希望通过谷歌舞厅——>开放。

So, far I ve tested it by marker order ( i ) like this:

openInfoWindowBy(i){
    infowindow.open(map,i);
}

我刚才称: openInfoWindowBy(1);InfoWindow 1, 。 点击活动罚款:

google.maps.event.addListener(markers[i],  click , getDetails(placesArr[i], i));
markers[i].setMap(map);
addplace(placesArr[i], i);

我做了什么错误? 能否通过<条码>开放<>。

问题回答

查阅谷歌地图developer s Guide。 页: 1 id/添加/保持标识。

尽管如此,您现有的<代码>开放式InfoWindowBy参考了该指数,而不是在<代码>标记/代码>阵列内的索引。 看来应该这样做:

openInfoWindowBy(i){
   infowindow.open(map,markers[i]);
}

您需要提出第二个论点:<代码>符号>.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签