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?
On Wed, Nov 4, 2009 at 4:14 PM, Rawan <rawan.als...@hotmail.com> 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?
> You received this message because you are subscribed to the Google Groups
> "Google Maps API" group.
> To post to this group, send email to google-maps-api@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-api+unsubscribe@googlegroups.com<google-maps-api%2Bunsubscribe@ googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-api?hl=en.
> On Wed, Nov 4, 2009 at 4:14 PM, Rawan <rawan.als...@hotmail.com> 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?
>> You received this message because you are subscribed to the Google Groups
>> "Google Maps API" group.
>> To post to this group, send email to google-maps-api@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-maps-api+unsubscribe@googlegroups.com<google-maps-api%2Bunsubscribe@ googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-maps-api?hl=en.
> > On Wed, Nov 4, 2009 at 4:14 PM, Rawan <rawan.als...@hotmail.com> 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:
> >> 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?
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Maps API" group.
> >> To post to this group, send email to google-maps-api@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-maps-api+unsubscribe@googlegroups.com<google-maps-api%2Bunsubscribe@ googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-maps-api?hl=en.- Hide quoted text -
On Wed, Nov 4, 2009 at 4:34 PM, Rawan <rawan.als...@hotmail.com> wrote:
> 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 <reneflore...@gmail.com> wrote:
> > one thing on pageload to render icons on maps automatically, please
> change
> > the function() {
> > infowindow.open(map, marker);
> > > On Wed, Nov 4, 2009 at 4:14 PM, Rawan <rawan.als...@hotmail.com>
> 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:
> > >> 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?
> > >> You received this message because you are subscribed to the Google
> Groups
> > >> "Google Maps API" group.
> > >> To post to this group, send email to google-maps-api@googlegroups.com
> .
> > >> To unsubscribe from this group, send email to
> > >> google-maps-api+unsubscribe@googlegroups.com<google-maps-api%2Bunsubscribe@ googlegroups.com>
> <google-maps-api%2Bunsubscribe@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 google-maps-api@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-api+unsubscribe@googlegroups.com<google-maps-api%2Bunsubscribe@ googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-api?hl=en.
> 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.
You can't do that using the API. There is ony one GInfoWindow which
is moved around as needed.
On Wed, Nov 4, 2009 at 5:31 PM, Rossko <ros...@culzean.clara.co.uk> wrote:
> > 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.
> You can't do that using the API. There is ony one GInfoWindow which
> is moved around as needed.
> You received this message because you are subscribed to the Google Groups
> "Google Maps API" group.
> To post to this group, send email to google-maps-api@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-api+unsubscribe@googlegroups.com<google-maps-api%2Bunsubscribe@ googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-api?hl=en.