Thank you for your help Rene, but I'm currently using the v2 API, does
your solution work for v2 API?

- Rawan


On Nov 4, 11:26 am, Rene Florendo <[email protected]> wrote:
> one thing on pageload to render icons on maps automatically, please change
> the function() {
> infowindow.open(map, marker);
>
> }
>
> into
>
> function overlayIcons(mp,markr)
> {
> infowindow.open(mp, markr)}
>
> please take note that the two params should be issued a value.
> On Wed, Nov 4, 2009 at 4:18 PM, Rene Florendo <[email protected]>wrote:
>
>
>
> > Hi please try this one. just make sure you are using the v3 api.
>
> > function AddMarker(where, title, info, icon, width, height) {
>
> > var marker = new google.maps.Marker({
>
> > position: where,
>
> > map: map,
>
> > title: title,
>
> > icon: "http://somthing.com/"; + icon
>
> > });
>
> > //////////////////////////////
>
> > // infowindow=null;
>
> >  var infowindow = new google.maps.InfoWindow({
>
> > content:
> > '<iframe frameborder="0" src="' + info + '" class="'+getCSS(icon)+'"
> > scrollbar="no"></iframe>'
>
> > });
>
> > google.maps.event.addListener(marker,
> > 'click', function() {
>
> > infowindow.open(map, marker);
>
> > });
>
> >   }
>
> > On Wed, Nov 4, 2009 at 4:14 PM, Rawan <[email protected]> wrote:
>
> >> Hi every one,
> >> I would appreciate any kind help to solve this problem:
>
> >> I would like to show a group of markers on a map so that some of the
> >> markers infoWindows are shown by defualt once the map is loaded and
> >> other infoWindows are shown on click on the markers only. I want to
> >> display all the infowindows concurrently at the same time ,so that if
> >> any new infowindow is opened the previous ones will not be closed.
>
> >> I'm adding each marker as a separate layer using a for loop similar to
> >> this one:
>
> >> for (i=0;i<gmarkers.length;i++)
> >> {
> >> map.addOverlay(gmarkers[i]);
> >> }
>
> >> and I think that adding each icon as a separate layer is the reason
> >> for closing the previous infowindows once a new one is opened!
>
> >> Can you help me advising any modifications on the current way I'm
> >> doing this or any new method that I should use to add the markers and
> >> infowindows to the map please?
>
> >> Thanks,
> >> Rawan AlSaad
> >> Computer Engineer
> >> Doha, Qatar
>
> >> --
>
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Maps API" group.
> >> To post to this group, send email to [email protected].
> >> To unsubscribe from this group, send email to
> >> [email protected]<google-maps-api%2bunsubscr...@­googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-maps-api?hl=en.- Hide quoted text -
>
> - Show quoted text -

--

You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.


Reply via email to