direction and walk

159 views
Skip to first unread message

federico ulfo

unread,
Aug 9, 2010, 4:12:46 PM8/9/10
to Google Maps JavaScript API v3
There's any way to make a marker walk on a direction route in smooth
way?

I made an application but the marker walk little weird:
http://www.federicoulfo.it/maps/walk%2045%20degree.html

geoco...@gmail.com

unread,
Aug 9, 2010, 4:35:51 PM8/9/10
to Google Maps JavaScript API v3
Doesn't work at all in IE(6)

-- Larry

geoco...@gmail.com

unread,
Aug 9, 2010, 5:15:49 PM8/9/10
to Google Maps JavaScript API v3
On Aug 9, 1:35 pm, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:
It won't work in any version of IE, you have a "hanging comma" (an
extraneous comma) at the end of the options argument for the Map
constructor. IE doesn't like that.

-- Larry

Nathan Raley

unread,
Aug 9, 2010, 5:29:49 PM8/9/10
to google-map...@googlegroups.com
Yea, and your walking isn't appearing to work correctly in Chrome either.  If you look your path cuts across at diagonals at certain points.


 -- Larry

--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.


Federico Ulfo

unread,
Aug 10, 2010, 3:41:54 AM8/10/10
to google-map...@googlegroups.com
Fixed the trailing comma, thanks, but the topic is the same:
"there's any way (may be a function) to make a marker walking on a direction route"?

2010/8/9 Nathan Raley <nlra...@gmail.com>

geoco...@gmail.com

unread,
Aug 10, 2010, 8:11:25 AM8/10/10
to Google Maps JavaScript API v3
On Aug 10, 12:41 am, Federico Ulfo <rainelemen...@gmail.com> wrote:
> Fixed the trailing comma, thanks, but the topic is the same:
> "there's any way (may be a function) to make a marker walking on a direction
> route"?

Nasty hack of Mike Williams' v2 car trip, and some of his v2 epoly
routines translated to v3:

http://www.geocodezip.com/v3_animate_marker_directions.html

I'm sure with some work it can be made prettier...

-- Larry


>
> 2010/8/9 Nathan Raley <nlrale...@gmail.com>
>
> > Yea, and your walking isn't appearing to work correctly in Chrome either.
> >  If you look your path cuts across at diagonals at certain points.
>
> > On Mon, Aug 9, 2010 at 4:15 PM, geocode...@gmail.com <geocode...@gmail.com
> > > wrote:
>
> >> On Aug 9, 1:35 pm, "geocode...@gmail.com" <geocode...@gmail.com>
> >> wrote:
> >> > On Aug 9, 1:12 pm, federico ulfo <rainelemen...@gmail.com> wrote:
>
> >> > > There's any way to make a marker walk on a direction route in smooth
> >> > > way?
>
> >> > > I made an application but the marker walk little weird:
>
> >> >http://www.federicoulfo.it/maps/walk%2045%20degree.html
>
> >> > Doesn't work at all in IE(6)
>
> >> It won't work in any version of IE, you have a "hanging comma" (an
> >> extraneous comma) at the end of the options argument for the Map
> >> constructor. IE doesn't like that.
>
> >>  -- Larry
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Maps JavaScript API v3" group.
> >> To post to this group, send email to
> >> google-map...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-maps-js-a...@googlegroups.com<google-maps-js-api-v3%2B unsub...@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Google Maps JavaScript API v3" group.
> > To post to this group, send email to
> > google-map...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-maps-js-a...@googlegroups.com<google-maps-js-api-v3%2B unsub...@googlegroups.com>
> > .

Federico Ulfo

unread,
Aug 10, 2010, 8:56:26 AM8/10/10
to google-map...@googlegroups.com
that is exactly what I was searching for! Thanks Larry!

Anyway, sounds strange to me that google maps api v3 doesn't have any function for walk the route, with time as parameter.
It could be usefull, or am I wrong?

Federico



To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.

geoco...@gmail.com

unread,
Aug 10, 2010, 9:23:45 AM8/10/10
to Google Maps JavaScript API v3
On Aug 10, 5:56 am, Federico Ulfo <rainelemen...@gmail.com> wrote:
> that is exactly what I was searching for! Thanks Larry!
>
> Anyway, sounds strange to me that google maps api v3 doesn't have any
> function for walk the route, with time as parameter.
> It could be usefull, or am I wrong?

Why? v2 never had that function. v3 is lighter than v2 and it is
certainly possible to implement it yourself. You can probably do it
more efficiently, elegantly and less convoluted than my demonstrator
with a little effort...

-- Larry

>
> Federico
>
> 2010/8/10 geocode...@gmail.com <geocode...@gmail.com>
> > > >> google-maps-js-a...@googlegroups.com<google-maps-js-api-v3%2B unsub...@googlegroups.com><google-maps-js-api-v3%2B
> > unsub...@googlegroups.com>
> > > >> .
> > > >> For more options, visit this group at
> > > >>http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
> > > >  --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Google Maps JavaScript API v3" group.
> > > > To post to this group, send email to
> > > > google-map...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-maps-js-a...@googlegroups.com<google-maps-js-api-v3%2B unsub...@googlegroups.com><google-maps-js-api-v3%2B

Federico Ulfo

unread,
Aug 10, 2010, 9:37:36 AM8/10/10
to google-map...@googlegroups.com
I see, so it doesn't exsists any repository for api maps class extensions and functions, could be an usefull open source project,
like jQuery UI for jQuery, don't you agree?
Federico


To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.

Rossko

unread,
Aug 10, 2010, 9:51:01 AM8/10/10
to Google Maps JavaScript API v3
> I see, so it doesn't exsists any repository for api maps class extensions
> and functions, could be an usefull open source project,

Something like this?
http://code.google.com/apis/maps/documentation/javascript/demogallery.html

Federico Ulfo

unread,
Aug 10, 2010, 9:56:07 AM8/10/10
to google-map...@googlegroups.com
here we go!
that's the repository I was speaking about!
Cool!

2010/8/10 Rossko <ros...@culzean.clara.co.uk>

--
Reply all
Reply to author
Forward
0 new messages