visualize a path in google map
Hi there,
is it possible to visualize a path in google-map.
Like importing it from a GPS data file or setting some points to be connected with a path?
cheers
3 Answers
-
Accepted Answer
OK just a line from point A to point B then.
This is (not yet) possible with the builed in maps application. What you can do is create a webview, make a page with the google maps api, and do your location handeling in that. The code for drawing lines in the google maps API is this:
var polyline = new GPolyline([ new GLatLng(37.4419, -122.1419), //lat/lon point1 new GLatLng(37.4519, -122.1519) // lat/lon point 2 ], "#ff0000", 10); // line color, line width map.addOverlay(polyline);
-
If you mean like drawing a line from point a to b through the streets on a map, that is only possible in the official maps app.
-
no, i dont want to add point on streets, but outside, like on a hiking trail.