Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
FYI: Passing API classes in google.maps namespace with normal loader
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
  12 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
 
pamela (Google Employee)  
View profile  
 More options Oct 23 2008, 3:01 am
From: "pamela (Google Employee)" <pamela....@gmail.com>
Date: Thu, 23 Oct 2008 00:01:28 -0700 (PDT)
Local: Thurs, Oct 23 2008 3:01 am
Subject: FYI: Passing API classes in google.maps namespace with normal loader
Hi developers-

Currently, there are a few ways to load in the Maps API:

1) Use maps.google.com/maps?file=api: This puts global classes in your
page like GMarker, GMap, etc.

2) Use maps.google.com/maps?file=googleapi or use the AJAX common
loader: This puts both the global classes in your page as well as
namespaced classes like google.maps.Marker, google.maps.Map, etc.

3) Use maps.google.com/maps?file=googleapionly: This puts just the
namespaced classes in your page.

We introduced namespaces along with the common loader to encourage a
more unified way of coding against Google AJAX APIs, but we kept the
prefixed "G" classes to not confused the current developers. However,
currently it's difficult to write extensions (like the LocalSearch
Control) for developers, as one has to search the DOM for both a
prefixed class or  a namespaced class, and then use the appropriate
class. To make it easier for developers to create extensions that work
independent of loading technique and to encourage more developers to
use the common AJAX namespace, we will soon introduce a change that
will also pass down the namespaced class with technique #1.

Let me know if you have any concerns or questions.

- pamela


    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.
igloo  
View profile  
 More options Oct 23 2008, 4:20 am
From: igloo <iglo...@gmail.com>
Date: Thu, 23 Oct 2008 01:20:34 -0700 (PDT)
Local: Thurs, Oct 23 2008 4:20 am
Subject: Re: FYI: Passing API classes in google.maps namespace with normal loader
One is very tempted to say "If it ain't broke don't fix it!". However
I can see the logic and it means I can get my feet wet by using either
classing for a while without changing the script invocation.

As soon as the AJAX common loader came out I told myself I should
change my code, but inertia can be a very strong force! (and the "If
it ain't broke don't fix it!" philosophy!)

Thanks

igloo

(You should come up to Tamborine Mountain while you are in Australia -
http://www.lanerealty.com.au/TamborineMt.html )


    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.
Lance Dyas  
View profile  
 More options Oct 23 2008, 9:36 am
From: Lance Dyas <lance...@inetnebr.com>
Date: Thu, 23 Oct 2008 08:36:27 -0500
Local: Thurs, Oct 23 2008 9:36 am
Subject: Re: FYI: Passing API classes in google.maps namespace with normal loader

This feels like a coincidence of timing...
 I was just thinking I might want a GClientLocation or would that be
GLoader.clientLocation
or something of that sort.

    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.
pamela (Google Employee)  
View profile  
 More options Oct 27 2008, 2:24 am
From: "pamela (Google Employee)" <pamela...@gmail.com>
Date: Mon, 27 Oct 2008 14:24:56 +0800
Local: Mon, Oct 27 2008 2:24 am
Subject: Re: FYI: Passing API classes in google.maps namespace with normal loader

Igloo-

Ok, maybe I'll check out that mountain. I'm sure I'll need to come to
Brisbane sometime anyway. :)

Lance-
ClientLocation will still only be available to those using the actual AJAX
Common Loader (www.google.com/jsapi), as that uses a particular mechanism on
their script-serving server that we won't be enabling on ours anytime soon.

- pamela


    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.
Björn Brala  
View profile  
 More options Oct 27 2008, 4:32 am
From: "Björn Brala" <bbr...@gmail.com>
Date: Mon, 27 Oct 2008 09:32:59 +0100
Local: Mon, Oct 27 2008 4:32 am
Subject: Re: FYI: Passing API classes in google.maps namespace with normal loader

Im so happy to read this, finally a proper namespace for the google maps
stuff :P

I've missed that for ages. This will mean there will be no google maps stuff
in the global namespace?

2008/10/27 pamela (Google Employee) <pamela...@gmail.com>

--
Bjorn Brala
----------------
GeoStart.nl- Google maps - Swis Webdesign

    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.
pamela (Google Employee)  
View profile  
 More options Oct 28 2008, 8:46 pm
From: "pamela (Google Employee)" <pamela....@gmail.com>
Date: Tue, 28 Oct 2008 17:46:58 -0700 (PDT)
Local: Tues, Oct 28 2008 8:46 pm
Subject: Re: FYI: Passing API classes in google.maps namespace with normal loader
Hi Bjorn-

This doesn't actually mean there will be no more maps stuff in the
global namespace. If we did that for the normal loader, then
everyone's code would stop working. :/
If you actually want only namespaced classes, then you can request
&file=googleapionly. That's not documented anywhere, however.

- pamela

On Oct 27, 4:32 pm, "Björn Brala" <bbr...@gmail.com> wrote:


    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.
pamela (Google Employee)  
View profile  
 More options Oct 28 2008, 8:55 pm
From: "pamela (Google Employee)" <pamela....@gmail.com>
Date: Tue, 28 Oct 2008 17:55:26 -0700 (PDT)
Local: Tues, Oct 28 2008 8:55 pm
Subject: Re: FYI: Passing API classes in google.maps namespace with normal loader
Update: This change is now live.

You can start using namespaced classes in your mashups and extensions.
It should be live for all versions of the API starting from 2.86:
http://gmaps-samples.googlecode.com/svn/trunk/versionchecker.html?v=2.86

Please let us know if you run into issues related with the change.

- pamela

On Oct 27, 4:32 pm, "Björn Brala" <bbr...@gmail.com> wrote:


    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.
Björn Brala  
View profile  
 More options Oct 29 2008, 5:02 am
From: "Björn Brala" <bbr...@gmail.com>
Date: Wed, 29 Oct 2008 10:02:01 +0100
Local: Wed, Oct 29 2008 5:02 am
Subject: Re: FYI: Passing API classes in google.maps namespace with normal loader

It would make developing google maps a lot easier if there was no junk in
the global namespace :) I understand that it would break most maps if it
would be default, but a documented flag would be a very very welcome
addidtion, perhaps i should file a feature request.

Im kinda scared to change my whole system on the fact that the
"googleapionly" flag will perhaps not even stay availabkle :)

2008/10/29 pamela (Google Employee) <pamela....@gmail.com>

--
Bjorn Brala
----------------
GeoStart.nl- Google maps - Swis Webdesign

    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.
pamela (Google Employee)  
View profile  
 More options Oct 29 2008, 5:07 am
From: "pamela (Google Employee)" <pamela...@gmail.com>
Date: Wed, 29 Oct 2008 17:07:20 +0800
Local: Wed, Oct 29 2008 5:07 am
Subject: Re: FYI: Passing API classes in google.maps namespace with normal loader

Hi Bjorn-
I'll check with the team and see our feelings on documenting support for
googleapionly.

- pamela


    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.
Björn Brala  
View profile  
 More options Oct 29 2008, 5:05 am
From: "Björn Brala" <bbr...@gmail.com>
Date: Wed, 29 Oct 2008 10:05:39 +0100
Local: Wed, Oct 29 2008 5:05 am
Subject: Re: FYI: Passing API classes in google.maps namespace with normal loader

There we go...

http://code.google.com/p/gmaps-api-issues/issues/detail?id=820

2008/10/29 Björn Brala <bbr...@gmail.com>

--
Bjorn Brala
----------------
GeoStart.nl- Google maps - Swis Webdesign

    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.
Björn Brala  
View profile  
 More options Oct 29 2008, 5:26 am
From: "Björn Brala" <bbr...@gmail.com>
Date: Wed, 29 Oct 2008 10:26:07 +0100
Local: Wed, Oct 29 2008 5:26 am
Subject: Re: FYI: Passing API classes in google.maps namespace with normal loader

Thanks, ill cross my fingers ;)

2008/10/29 pamela (Google Employee) <pamela...@gmail.com>

--
Bjorn Brala
----------------
GeoStart.nl- Google maps - Swis Webdesign

    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.
Anthony  
View profile  
(1 user)  More options Nov 10 2008, 3:12 pm
From: Anthony <gts.onta...@gmail.com>
Date: Mon, 10 Nov 2008 12:12:03 -0800 (PST)
Local: Mon, Nov 10 2008 3:12 pm
Subject: Re: FYI: Passing API classes in google.maps namespace with normal loader
Is there an AJAX loader equivalent to the file=googleapionly argument?

I like this option -- it'll make DOM exploration much cleaner in
Firebug.


    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