Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Tabbed infoWindow
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
  13 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
 
Kapil  
View profile  
 More options Oct 5 2005, 6:35 pm
From: "Kapil" <kapil.khanna.perso...@gmail.com>
Date: Wed, 05 Oct 2005 22:35:07 -0000
Local: Wed, Oct 5 2005 6:35 pm
Subject: Tabbed infoWindow
Ok guys,
The tabbed infoWindow that google just released for their maps is cool.
Is it officially supported in the API yet?
Thanks,
--Kapil

 
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.
schnuerle  
View profile  
 More options Oct 6 2005, 8:08 am
From: "schnuerle" <schnue...@gmail.com>
Date: Thu, 06 Oct 2005 05:08:16 -0700
Local: Thurs, Oct 6 2005 8:08 am
Subject: Re: Tabbed infoWindow
It is really cool.  I wonder it supports more than 2 tabs, and if you
can change the font styles for the tab, or replace it with an image.

 
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.
Andrew  
View profile  
 More options Oct 6 2005, 7:28 pm
From: "Andrew" <compoo...@gmail.com>
Date: Thu, 06 Oct 2005 16:28:02 -0700
Local: Thurs, Oct 6 2005 7:28 pm
Subject: Re: Tabbed infoWindow
Are there any examples that you know of to preview this feature?

 
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.
schnuerle  
View profile  
 More options Oct 8 2005, 10:49 am
From: "schnuerle" <schnue...@gmail.com>
Date: Sat, 08 Oct 2005 07:49:24 -0700
Local: Sat, Oct 8 2005 10:49 am
Subject: Re: Tabbed infoWindow
 
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.
schnuerle  
View profile  
 More options Oct 11 2005, 2:53 pm
From: "schnuerle" <schnue...@gmail.com>
Date: Tue, 11 Oct 2005 11:53:48 -0700
Local: Tues, Oct 11 2005 2:53 pm
Subject: Re: Tabbed infoWindow
Anyone figured out how to harness the power of the tabs yet?

 
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.
Maxwolf  
View profile  
 More options Oct 11 2005, 3:14 pm
From: "Maxwolf" <Ron.McDow...@gmail.com>
Date: Tue, 11 Oct 2005 12:14:03 -0700
Local: Tues, Oct 11 2005 3:14 pm
Subject: Re: Tabbed infoWindow
The API we mess with and the API they mess with are two difftrent
things.

 
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.
Michael Stearne  
View profile  
 More options Oct 11 2005, 3:50 pm
From: Michael Stearne <mstea...@gmail.com>
Date: Tue, 11 Oct 2005 15:50:26 -0400
Local: Tues, Oct 11 2005 3:50 pm
Subject: Re: Tabbed infoWindow
I guess most people are waiting for Google to release it.  Although it
would be good if Google could let us know when they plan on releasing
it because we could reverse engineer it if it's a long way off.

Michael

On 10/11/05, Maxwolf <Ron.McDow...@gmail.com> wrote:


 
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.
Mike Williams  
View profile  
 More options Oct 12 2005, 1:36 am
From: Mike Williams <nos...@econym.demon.co.uk>
Date: Wed, 12 Oct 2005 06:36:32 +0100
Local: Wed, Oct 12 2005 1:36 am
Subject: Re: Tabbed infoWindow
Wasn't it Maxwolf who wrote:

>The API we mess with and the API they mess with are two difftrent
>things.

The Javascript used by Google Local is identical to that used by the
API. The only difference is that we access the functions by calling them
from our code, and Google Local throws an XML file at loadXML().

There are bits of code inside loadXML() that don't have exact
equivalents in the callable functions.

In the case of tabbed windows. The code seems to be all there. It looks
like "all" you have to do is to use .openInfoWindow() with a correctly
structured HTML DOM element. (.openInfoWindowHtml() isn't going to work
because the DOM element it constructs to pass to .openInfoWindow() isn't
structured for tabs).

My current thoughts are that infoWindow.collectTabElements() is probably
the key. It's responsible for examining the infowindow DOM and
determining how many tabs the infowindow should have.

Under normal circumstances, collectTabElements() makes b.length = 1,
then the following code happens, and we end up with hidden tabs.

  x.collectTabElements(this.offscreenArea,b);
  if(b.length<2){ this.hideTabs() }
  else{ this.showTabs(b) }

I don't know how to look at the HTML DOM elements passed from the Google
Local XML into loadXML() so observe their structure, and I've not yet
managed to reverse engineer collectTabElements() to see what it wants.
I'm still working on it.

Does anyone else have any further insights?


 
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.
Will  
View profile  
 More options Oct 12 2005, 1:55 am
From: Will <wjam...@nyc.rr.com>
Date: Wed, 12 Oct 2005 01:55:05 -0400
Local: Wed, Oct 12 2005 1:55 am
Subject: Re: Tabbed infoWindow
You're tried to look at the results from the loadXML using some of the
tools around the web for looking at DOM trees on a page?


 
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.
Mike Williams  
View profile  
 More options Oct 12 2005, 3:10 am
From: Mike Williams <nos...@econym.demon.co.uk>
Date: Wed, 12 Oct 2005 08:10:28 +0100
Local: Wed, Oct 12 2005 3:10 am
Subject: Re: Tabbed infoWindow
I've now got a little bit further. It turns out that it is possible to
make collectTabElements() return a value greater than 1 by having more
than one top-level elements in the html string which all contain a
"page" attribute.

marker.openInfoWindow('<div page="this">Contents of first  page</div>
                       <div page="that">Contents of second page</div>');

Which gets me as far as the infowindow.showTabs() function.

The next problem is that showTabs() needs more information about the
info window, mainly for the setting up of the GEvent.callback function
that's going to handle what happens when the user clicks on one of the
tabs.

It performs this check:

  var b=this.infoWindowContract;
  if(!b.hasContext("iwnavigate")||!b.hasContext("iwstate")){
   return
  }

Under normal circumstances the infoWindowContract doesn't have either of
those contexts, so the tabs don't get shown.

In the Google Local environment, the "iwstate" context is set up as:
  a.addContext("iwstate",j.callback(this,this.iwState));

("j" is the obfuscated name of GEvent)

Does anyone understand GEvent.callback()?


 
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.
william@perlcoders.com  
View profile  
 More options Oct 12 2005, 3:24 am
From: "will...@perlcoders.com" <will...@perlcoders.com>
Date: Wed, 12 Oct 2005 00:24:34 -0700
Local: Wed, Oct 12 2005 3:24 am
Subject: Re: Tabbed infoWindow
Mike, drop me an email when you get a few minutes to spare if you dont
mind.
I have some ideas I would like to run by you.

 
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.
J. Shirley  
View profile  
 More options Oct 12 2005, 8:14 am
From: "J. Shirley" <jshir...@gmail.com>
Date: Wed, 12 Oct 2005 12:14:44 -0000
Local: Wed, Oct 12 2005 8:14 am
Subject: Re: Tabbed infoWindow
The callback is just a method that acts as a sort of dumb
"GEvent.bind":
GEvent.callback=function(caller,object) {
     var callbackFunction = function() { return
object.apply(caller,arguments)

}

So, any object that you pass to GEvent.callback must have an apply
method:
$.prototype.apply=function(a){a.style.position="absolute";a.style[this.getW idthMeasure()]=l(this.offsetWidth);a.style[this.getHeightMeasure()]=l(this. offsetHeight)}

$ looks to be the generalized styling class, and not much more.

When you create a context, you have to pass in a function that gets
called on each context (from _traverse) each time something changes.
My guess is that they do this to make sure the sizing and positioning
is guaranteed to be correct.

Quick analysis, I'm sure I'm wrong on a few points but I hope this
helps you guys.

-J

--
http://www.toeat.com
toEat.com: Where do you want to eat?


 
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.
Maxwolf  
View profile  
 More options Oct 12 2005, 9:47 am
From: "Maxwolf" <Ron.McDow...@gmail.com>
Date: Wed, 12 Oct 2005 06:47:40 -0700
Local: Wed, Oct 12 2005 9:47 am
Subject: Re: Tabbed infoWindow
I could be wrong, I still believe all the pieces you need will not be
there but you guys seem to be in the middle making it happen right now.
Personally I would think they (Google) would tell us about this and
document it with the rest of the API.

 
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 »