Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Closed of InfoWindow upon clicking an icon
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
  6 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
 
Rene Florendo  
View profile  
 More options Nov 4, 4:43 pm
From: Rene Florendo <reneflore...@gmail.com>
Date: Wed, 4 Nov 2009 13:43:41 +0800
Local: Wed, Nov 4 2009 4:43 pm
Subject: Closed of InfoWindow upon clicking an icon

Hi ,
Good day! I have a problem regarding the closing of InfoWindow upon clicking
an icon.Please see the link here :http://appsource.biz/maps/map.htm For
example, If I click the icon1 the infowindow will pop-up, but When I click
the icon2 the Icon1 Infowindow should be closed and the icon2 infoWindow
should pop-up or vice versa. Please note that I used the api from the link
below
http://maps.google.com/maps/api/js?sensor=false

and not this one http://maps.google.com/maps?file=api&v=2&key={0}, Ididn't
used this because it requires a key and this will not work when I deployed
on the client's web server

Thank you very much for your help, It was highly appreaciated.

Regards,

Rene Florendo


    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.
geocodezip@gmail.com  
View profile  
 More options Nov 4, 5:04 pm
From: "geocode...@gmail.com" <geocode...@gmail.com>
Date: Tue, 3 Nov 2009 22:04:43 -0800 (PST)
Local: Wed, Nov 4 2009 5:04 pm
Subject: Re: Closed of InfoWindow upon clicking an icon
On Nov 3, 9:43 pm, Rene Florendo <reneflore...@gmail.com> wrote:

> Hi ,
> Good day! I have a problem regarding the closing of InfoWindow upon clicking
> an icon.Please see the link here :http://appsource.biz/maps/map.htmFor
> example, If I click the icon1 the infowindow will pop-up, but When I click
> the icon2 the Icon1 Infowindow should be closed and the icon2 infoWindow
> should pop-up or vice versa. Please note that I used the api from the link
> belowhttp://maps.google.com/maps/api/js?sensor=false

> and not this onehttp://maps.google.com/maps?file=api&v=2&key={0}, Ididn't
> used this because it requires a key and this will not work when I deployed
> on the client's web server

> Thank you very much for your help, It was highly appreaciated.

You are using v3, the discussion group for that is:
http://groups.google.com/group/google-maps-js-api-v3/

  -- Larry


    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, 5:55 pm
From: Rene Florendo <reneflore...@gmail.com>
Date: Wed, 4 Nov 2009 14:55:21 +0800
Local: Wed, Nov 4 2009 5:55 pm
Subject: Re: Closed of InfoWindow upon clicking an icon

Hi,
Many thanks, the infowWindow works great! But I have another problem when I
used the below turnaround, my content in InfoWindow is dynamic, I used here
an Iframe and call the aspx page to display the content, so every time I
clicked an icon, the page loaded dynamically which depends the criteria
passed.The problem is, the page is not executed anymore when I tried to
click an icon,The outcome was, the content of an Infowindow was became
static, the page will not executed anymore.
Please help me please.
Here is the code I added:

google.maps.event.addListener(map, "click", function() {

if (infowindow) {

infowindow.close();

}
});

On Wed, Nov 4, 2009 at 2:04 PM, geocode...@gmail.com
<geocode...@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.
Discussion subject changed to "Fwd: Closed of InfoWindow upon clicking an icon" by Rene Florendo
Rene Florendo  
View profile  
 More options Nov 4, 7:06 pm
From: Rene Florendo <reneflore...@gmail.com>
Date: Wed, 4 Nov 2009 16:06:58 +0800
Local: Wed, Nov 4 2009 7:06 pm
Subject: Fwd: Closed of InfoWindow upon clicking an icon

Hi
Any news of the below problem?

Regards
Rene


    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:34 pm
From: Rossko <ros...@culzean.clara.co.uk>
Date: Wed, 4 Nov 2009 01:34:49 -0800 (PST)
Local: Wed, Nov 4 2009 8:34 pm
Subject: Re: Fwd: Closed of InfoWindow upon clicking an icon

> Any news of the below problem?

You're still using v3
http://groups.google.com/group/google-maps-js-api-v3/

    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:39 pm
From: Rene Florendo <reneflore...@gmail.com>
Date: Wed, 4 Nov 2009 17:39:22 +0800
Local: Wed, Nov 4 2009 8:39 pm
Subject: Re: Fwd: Closed of InfoWindow upon clicking an icon

Yah,
But  I resolved already my problem.
Here is the code for those who will be needing it.

var infowindow;

function AddMarker(where, title, info, icon, width, height) {

var marker = new google.maps.Marker({

position: where,

map: map,

title: title,

icon: "http://www.something/" + icon

});

marker.set('infowindow', new google.maps.InfoWindow({

content: '<iframe frameborder="0" src="' + info + '" class="'+getCSS(icon)+'"
scrollbar="no"></iframe>',

position: where

}));

 google.maps.event.addListener(marker, 'click', function() {

if (infowindow) {

infowindow.close();

}

infowindow = this.get('infowindow');

infowindow.open(map,this);

});

manager.add(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.
End of messages
« Back to Discussions « Newer topic     Older topic »

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