google maps api v3 open infowindow

143 views
Skip to first unread message

tommaso

unread,
Apr 13, 2011, 9:43:02 AM4/13/11
to Google Maps JavaScript API v3
Hello,
i'm looking to resolve this issue:
i made this page http://www.unforgettablerome.it/prova5.html with 3
marker and infowindow.

i would like that when the page load come out one infowindow that is
allready in the code
var marker = createMarker(point,'<div style="width:
200px"><CENTER><font size="2" face="Georgia, Arial"><b><font
color="#ff0000">Unforgettable Rome B&B</b></font></font><br>via A.
Ferrara 12<br> 00165 Roma (ITALIA)</CENTER><\/div>')

i tried with another map http://www.unforgettablerome.it/prova3.html
and this is what i'm looking but if i close the infowindow i can't
reopen.

could you someone help to find the solution for both?

thank you

sb

unread,
Apr 13, 2011, 2:03:16 PM4/13/11
to Google Maps JavaScript API v3
Hi,

Looks to me like you haven't added a listener.

This is from the working page.
google.maps.event.addListener(marker, 'click', function() {
infowindow.setContent(contentString);
infowindow.open(map,marker);
});



On Apr 13, 9:43 am, tommaso <tcole...@gmail.com> wrote:
> Hello,
> i'm looking to resolve this issue:
> i made this pagehttp://www.unforgettablerome.it/prova5.htmlwith 3
> marker and infowindow.
>
> i would like that when the page load come out one infowindow that is
> allready in the code
> var marker = createMarker(point,'<div style="width:
> 200px"><CENTER><font size="2" face="Georgia, Arial"><b><font
> color="#ff0000">Unforgettable Rome B&B</b></font></font><br>via A.
> Ferrara 12<br> 00165 Roma (ITALIA)</CENTER><\/div>')
>
> i tried with another maphttp://www.unforgettablerome.it/prova3.html

tommaso

unread,
Apr 14, 2011, 8:10:07 AM4/14/11
to Google Maps JavaScript API v3
Thank you for your reply!
So what i have to do exactly for prova3 and prova5 page?

tommaso

unread,
Apr 19, 2011, 9:50:54 AM4/19/11
to Google Maps JavaScript API v3
news?

On 13 Apr, 20:03, sb <shaneb...@gmail.com> wrote:

tommaso

unread,
Apr 19, 2011, 10:32:35 AM4/19/11
to Google Maps JavaScript API v3
any news?

Chris Broadfoot

unread,
Apr 19, 2011, 11:32:13 AM4/19/11
to google-map...@googlegroups.com

tommaso

unread,
Apr 19, 2011, 12:12:42 PM4/19/11
to Google Maps JavaScript API v3
...i sow Chris but after i replied with another question, if you
didn't see

On 19 Apr, 17:32, Chris Broadfoot <c...@google.com> wrote:
> You got a reply 5 days ago.http://groups.google.com/group/google-maps-js-api-v3/msg/45bfb2178761...
>
> --http://twitter.com/broady
Reply all
Reply to author
Forward
0 new messages