Titanium Community Questions & Answer Archive

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

Multiple routes

I have an iPhone(maybe Android in the future) app I'm developing that provides trail information. I have been able to display various annotations for a single trail on a map, but when I go to draw multiple lines(which a trail might have many connecting trails or offshoots), it appears as that only one route is drawn. I've looked over the map docs and there appears to be only a addRoute, whereas there is an addAnnotations:
http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Map.MapView.addRoute-method.html
Has anyone been able to get multiple lines added or is this not possible with Titanium 1.4? I would prefer to display this natively, but I might end up just display a webview with a Google Maps v.3 view.

— asked September 28th 2010 by Troy Taylor
  • 1.4
  • mapview
  • route
0 Comments

3 Answers

  • These trails could also be tracks or polylines. Anyone been able to draw or add those?

    — answered September 28th 2010 by Troy Taylor
    permalink
    0 Comments
  • Bump! Having this same Issue… only one route wants to be drawn :/

    — answered February 20th 2011 by Scott Millar
    permalink
    0 Comments
  • You have to set the "name". Every route has to get its own name!

    — answered March 19th 2011 by Felix Krause
    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.