Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Showing more than one infoWindow at a time
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Rawan  
View profile  
 More options Nov 4, 7:14 pm
From: Rawan <rawan.als...@hotmail.com>
Date: Wed, 4 Nov 2009 00:14:19 -0800 (PST)
Local: Wed, Nov 4 2009 7:14 pm
Subject: Showing more than one infoWindow at a time
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


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rene Florendo  
View profile  
 More options Nov 4, 7:18 pm
From: Rene Florendo <reneflore...@gmail.com>
Date: Wed, 4 Nov 2009 16:18:31 +0800
Local: Wed, Nov 4 2009 7:18 pm
Subject: Re: Showing more than one infoWindow at a time

 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);

});

 }


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rene Florendo  
View profile  
 More options Nov 4, 7:26 pm
From: Rene Florendo <reneflore...@gmail.com>
Date: Wed, 4 Nov 2009 16:26:05 +0800
Local: Wed, Nov 4 2009 7:26 pm
Subject: Re: Showing more than one infoWindow at a time

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 <reneflore...@gmail.com>wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rawan  
View profile  
 More options Nov 4, 7:34 pm
From: Rawan <rawan.als...@hotmail.com>
Date: Wed, 4 Nov 2009 00:34:22 -0800 (PST)
Local: Wed, Nov 4 2009 7:34 pm
Subject: Re: Showing more than one infoWindow at a time
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:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rene Florendo  
View profile  
 More options Nov 4, 7:35 pm
From: Rene Florendo <reneflore...@gmail.com>
Date: Wed, 4 Nov 2009 16:35:59 +0800
Local: Wed, Nov 4 2009 7:35 pm
Subject: Re: Showing more than one infoWindow at a time

actually, I tried this one on v2 but no luck.This only works on v3 api


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rossko  
View profile  
 More options Nov 4, 8:31 pm
From: Rossko <ros...@culzean.clara.co.uk>
Date: Wed, 4 Nov 2009 01:31:46 -0800 (PST)
Local: Wed, Nov 4 2009 8:31 pm
Subject: Re: Showing more than one infoWindow at a time

> 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 could use an alternative display box, like this example -
http://econym.org.uk/gmap/ewindows.htm


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rene Florendo  
View profile  
 More options Nov 4, 8:35 pm
From: Rene Florendo <reneflore...@gmail.com>
Date: Wed, 4 Nov 2009 17:35:04 +0800
Local: Wed, Nov 4 2009 8:35 pm
Subject: Re: Showing more than one infoWindow at a time

Rossko is right,the sample given by Roosko would address your need.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google