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.
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…
-
yeah tried that.
No luck. -
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.
-
Hmmm. interesting. Sorry about that.. I thought that might work :)
-
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
-
Yeah - unfortunetly I'm already using the title for the location name
-
Use 'backslash n'
\n