Drawing line along roads

837 views
Skip to first unread message

f.tumminello

unread,
May 11, 2009, 4:53:57 PM5/11/09
to KML Developer Support - Getting Started with KML
Hi everyone,
I have made my first personal map, using GoogleMaps, and I need to
draw lines along roads. Everything seems to be fine, but as soon as I
click on "View on Google Earth" and download the file and open it on
Google Earth, lines along roads disappear and I have straight lines.
I've checked the KML code and there isn't <LineString>, that I think
it's supposed to specify lines,
Do you have any ideas???
Thank you,
Francesco

Zark

unread,
May 15, 2009, 11:52:32 AM5/15/09
to KML Developer Support - Getting Started with KML
I would also like help with this. I use GoogleMaps "Draw a line along
a road feature" then open in GoogleEarth as KML. After editing and
vetting in GoogleEarth I convert the KML to a GPX to a USR and then
upload to my Lowrance GPS for backcountry fun. I have found that in
GoogleMaps you can add waypoints/nodes to your "line drawn along a
road." These points will export in the KML file exported to
GoogleEarth, but there are only as many nodes as you create in
GoogleMaps. It really defeats the power of the snap to road drawing
feature. Is there a plugin or something else that can auto-generate
all the nodes/waypoints for you?

Another note is that the save functionality in GoogleMaps doesn't
often work. If I navigate away from GoogleMaps after saving or quit my
browser, my "save" data is often not there when I return to
GoogleMaps. I have resorted to making sure that I save in GoogleMaps
and then view in GoogleEarth (as exported KML) before leaving the
GoogleMaps page because the save functionality in GoogleEarth is so
much more robust. Hope this helps a little Francesco.

Please help us. Thanks
-Zark

Roman N

unread,
May 22, 2009, 1:12:34 PM5/22/09
to KML Developer Support - Getting Started with KML
Hi all,

There's no current way to 'flatten' snapped-to-roads lines (i.e. to
create all the intermediate points along the road); My Maps simply
adds this ExtendedData item to each line that is snapped-to-roads:

<Data name="_SnapToRoads">
<value>true</value>
</Data>

Can either of you file a feature request for this at:

http://code.google.com/p/kml-samples/issues/list

The feature would probably call for My Maps to flatten snapped-to-
roads lines upon hitting 'View in Google Earth'.

Thanks,
Roman
Reply all
Reply to author
Forward
0 new messages