Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
tommy20
Posts: 253
Registered: ‎05-18-2011
My Device: Curve 9300, BB10 Dev Alpha C, Z10

How to invoke the BlackBerry Map by a Label's active text containing an adrress

Hi guys,

 

With BlackBerry SDK 10.1, I can invoke the BlackBerry Phone App by a Label's active text containing a phone number:

 

Label {
    text: "<a href='tel:+61456789123'>+61456789123</a>"
    textFormat: TextFormat.Html
}

What is the similar way to invoke the BlackBerry Map given an address on a Label? What I am expecting is something like below but I don't know exactly what it has to be:

Label {
    text: "<a href='bbmap:20 Swanston St, Melbourne, VIC 3000, Australia'>20 Swanston St, Melbourne, VIC 3000, Australia</a>"
    textFormat: TextFormat.Html
}

Note that, I need it works with BlackBerry 10.1 which does not have TextFormat.Active.

 

Thanks,

 

--tom
Please use plain text.