Thursday, January 13, 2011

[Google Maps API v2] Re: Snap a polyline to a road with GoogleMaps

On Jan 13, 6:42 am, Khai Pham <khai.ph...@gmail.com> wrote:
> II want an user to draw a route with polylines on GoogleMaps. I've
> found a way to snap a polyline ( example in the link, code in below ).
> The code works with the directions service to draw a polyline on a
> road, the only problem is this only works with G_TRAVELMODE_DRIVING
> but I want to use G_TRAVELMODE_WALKING and when you use WALKING you
> have to supply the map and a div in the constructor of the directions
> object. When I do that it automatically removes the last line and only
> displays the current line. I've tried several things like supplying
> the map as null, or leaving out the map in the constructor.. I've also
> tried to give a second map in the constructor, get the polylines from
> the directions service and display them on the right map. But nothing
> works! I'd appreciate it if someone could help me!
>
> http://econym.org.uk/gmap/example_snappath.htm
>

where is your map that demonstrates the problem?
http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines
http://groups.google.com/group/google-maps-api/web/why-including-a-link-is-critical

Although it sounds like you are trying very hard to break the terms of
use (which require that you display the warning text in a div with the
route if you request walking directions).

-- Larry

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate