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

Web and WebWorks Development

Reply
Developer
Posts: 107
Registered: ‎05-26-2011
My Device: Torch
My Carrier: Mobilink

Open google maps using kml file in blackberry browser

Hi,

 

I want to open google maps in BB browser from my app

i am using this url in BB browser

http://maps.google.com/?q=https://developers.google.com/kml/documentation/kmlfiles/altitudemode_refe...

 

but the link seems to b working fione on firefox or chrome but it is broken on BB browser.

 

I really need to resolve it as soon as possible,

I have also tried to open bb maps with kml using below code

 

 

   var args = new blackberry.invoke.MapsArguments(
        "https://developers.google.com/kml/documentation/kmlfiles/altitudemode_reference.kml");
         blackberry.invoke.invoke(blackberry.invoke.APP_MAPS, args);

 but it doesnot map kml on map ..

any help will be appreicited...

thnks

Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Open google maps using kml file in blackberry browser

This problem has already been answered:

 

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Starting-Blackberry-Maps-using-a...

 

Looks like you need to first retrieve the KML document (can be done in WebWorks using XmlHttpRequest) and pass the contents of it into the MapsArgument function.

 

Give that try and let us know if it works)

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.