Titanium Community Questions & Answer Archive

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

Line Breaks in map annotation

I hope this is a stupid question…

But I can't seem to add line breaks to my map annotation.
I'd like the subtitle to be something like this:

Address line1
City, State, Zip

versus what I am getting now…

Address line1 City, State, Zip

I've tried \n and HTML br tags… no luck.

— asked April 20th 2010 by Doug Meade
  • annotation
  • break
  • line
  • map
0 Comments

7 Answers

  • Looks like this issue still exists, it works fine in Android using \n but not in IPhone. Are there any plans to fix this? It's a big issue that you can't have multiple lines in a map tooltip…

    — answered December 2nd 2010 by Justin Toth
    permalink
    4 Comments
    • Yes, I just ran into this with my latest app as well. Too bad. But I can at least verify that there is no way that I've tried that works.

      Here is the ticket that I think is relevant, a few months old now: ticket 664

      — commented December 3rd 2010 by Todd Trann
    • It's disappointing that this didn't make it into the 1.5.0 release, guess we'll be waiting a while longer…

      — commented December 9th 2010 by Justin Toth
    • SDK 1.6.0RC1 bug still present

      — commented February 20th 2011 by gondo gondo
    • SDK 1.8.0.1 no changes…

      — commented February 3rd 2012 by Paul Annekov
  • yeah tried that.
    No luck.

    — answered April 20th 2010 by Doug Meade
    permalink
    0 Comments
  • My understanding is that multiple lines in an annotation is not possible. Saw somewhere that Appcelerator would have to expose a custom annotation view in order for that to be supported and right now they do not.

    — answered April 20th 2010 by Dan Giulvezan
    permalink
    0 Comments
  • Hmmm. interesting. Sorry about that.. I thought that might work :)

    — answered April 20th 2010 by Kosso
    permalink
    0 Comments
  • may not be exactly what you were hoping for, but you can use title and subtitle for this. put address 1 in title and the rest in subtitle

    — answered April 20th 2010 by Clint Tredway
    permalink
    0 Comments
  • Yeah - unfortunetly I'm already using the title for the location name

    — answered April 20th 2010 by Doug Meade
    permalink
    0 Comments
  • Use 'backslash n'

    \n

    — answered April 20th 2010 by Kosso
    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.