How can add direction in v3.

25 views
Skip to first unread message

Amitj

unread,
Oct 26, 2009, 7:32:50 AM10/26/09
to Google Maps JavaScript API v3
Is new GDirections(map, document.getElementById("directions"));
working in v3

mattia berlusconi

unread,
Oct 26, 2009, 10:38:45 AM10/26/09
to google-map...@googlegroups.com
Directions in v3 isn't implented yet

Saxan Sartar

unread,
Oct 26, 2009, 12:29:38 PM10/26/09
to google-map...@googlegroups.com
i am wondering how new functionality like this will be implemented. If the goal of v3 is to keep things lite and fast for mobile devices, it would seem adding more and more v2 features could undermine that goal.

My question to google would be, are you considering using an extensibility model or instead updating core components, for these types of features?

-tim

Ben Appleton

unread,
Oct 26, 2009, 5:35:30 PM10/26/09
to google-map...@googlegroups.com

Hi Tim,

V3 is modular.  We provide a few public classes (Map, Marker, etc) in the first JS download, but download the rest of the classes only as they are used.  So v3 can scale to many features with little bloat for sites that don't use these features.

That said, there will be features from v2 which make sense as additional libraries for v3.  These might include GLog (largely replaced by JS debuggers such as FireBug), GDownloadUrl and other functions provided by general JS libraries.

- Ben

On Oct 27, 2009 3:30 AM, "Saxan Sartar" <saxan....@gmail.com> wrote:

i am wondering how new functionality like this will be implemented. If the goal of v3 is to keep things lite and fast for mobile devices, it would seem adding more and more v2 features could undermine that goal.

My question to google would be, are you considering using an extensibility model or instead updating core components, for these types of features?

-tim

On Mon, Oct 26, 2009 at 9:38 AM, mattia berlusconi <ber...@gmail.com> wrote: > > Directions in v3...

Message has been deleted

bratliff

unread,
Oct 27, 2009, 1:44:54 PM10/27/09
to Google Maps JavaScript API v3
On Oct 26, 9:35 pm, Ben Appleton <apple...@google.com> wrote:
> V3 is modular. We provide a few public classes (Map, Marker, etc) in the
> first JS download, but download the rest of the classes only as they are
> used. So v3 can scale to many features with little bloat for sites that
> don't use these features.
>
> That said, there will be features from v2 which make sense as additional
> libraries for v3. These might include GLog (largely replaced by JS
> debuggers such as FireBug), GDownloadUrl and other functions provided by
> general JS libraries.

Sorry for duplicate post. Just correcting a double negative typo to
avoid looking like an idiot.

A trivial map loads eight modules:

common.js
control.js
image.js
main.js
mapview.js
overlay.js
stats.js
util.js

for a total of over 100KB.

V3 was supposed to appease our request for direct access to the tiles
without the V2 extras.

Amitj

unread,
Oct 28, 2009, 7:56:48 AM10/28/09
to Google Maps JavaScript API v3
when this functionality implemented in v3 ??

Esa

unread,
Oct 28, 2009, 11:03:02 AM10/28/09
to Google Maps JavaScript API v3


On Oct 28, 1:56 pm, Amitj <itim...@gmail.com> wrote:
> when this functionality implemented in v3 ??

I think it was implemented just now.

There are new classes in api v3.20

DirectionsRenderer()
DirectionsService()
DirectionsStatus
DirectionsTravelMode
DirectionsUnitSystem

They are not documented yet.

mapperzUK

unread,
Oct 29, 2009, 5:14:25 AM10/29/09
to Google Maps JavaScript API v3
confirming with Esa

Directions module for v3 has bee added.
(undocumented)
http://maps.gstatic.com/intl/en_gb/mapfiles/api-3/20/directions.js

Mapperz
http://mapperz.blogspot.com/

mapperzUK

unread,
Oct 30, 2009, 12:42:46 PM10/30/09
to Google Maps JavaScript API v3
just to close the thread

It's Released

http://mapperz.blogspot.com/2009/10/google-maps-javascript-api-v3-now-with.html

has all the official example links and documentation links

very useful - good move Google.

@mapperz
http://mapperz.blogspot.com/

On Oct 29, 9:14 am, mapperzUK <mapp...@googlemail.com> wrote:
> confirming with Esa
>
> Directions module for v3 has bee added.
> (undocumented)http://maps.gstatic.com/intl/en_gb/mapfiles/api-3/20/directions.js
>
> Mapperzhttp://mapperz.blogspot.com/
Reply all
Reply to author
Forward
0 new messages