Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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

— asked April 1st 2010 by Bruno Mandolesi
  • gps
  • map
  • path
  • track
0 Comments

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);
    
    — answered April 1st 2010 by Glenn Tillemans
    permalink
    0 Comments
  • 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.

    — answered April 1st 2010 by Glenn Tillemans
    permalink
    0 Comments
  • no, i dont want to add point on streets, but outside, like on a hiking trail.

    — answered April 1st 2010 by Bruno Mandolesi
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.