Re: [Google Maps API v2] Using xml file and showing print out
On 3 April 2011 13:56, Skippy <tierkrankenakte@googlemail.com> wrote:
>
> i have managed to generate my first xml file with driving directions.
> http://maps.google.com/maps/api/directions/xml?origin=Bedburg-Hau&destination=Kleve&sensor=false
>
> Is there a simple way to show the driving route in text form on my
> site?
Yes. Don't generate XML. Use GDirections() within the API. If you
specify a <div> element for the text to go into then you don't need a
map.
That's exactly what the example page you quoted does. Change this
directions = new GDirections(map, directionsPanel);
into
directions = new GDirections(null, directionsPanel);
and you can remove the map div and the code which sets that up.
--
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