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
Highlighted
New Developer
Posts: 2
Registered: ‎09-15-2009
My Device: Not Specified

load KML fail in BB Browser

Hi,

  I am developing a website which user is able to view Google map(Google Map API v2) and data which is represented by KML in BB Browser.

  With desktop browser (IE 8, Google Chrome), the Google map and KML can be loaded successfully.

  However, by using BB Browser, only Google map can be loaded. The KML data doesnt overlay on the map.

  Do anyone face the same problem or solve it before? or i miss out something?

  

  I am using BB Storm simulator 4.7.0.76 and BB MDS service simulator 4.1.4.

  Thanks.

 

Guru I
Posts: 19,012
Registered: ‎07-29-2008
My Device: Passport, Playbook, 9320BES
My Carrier: Bouygues _ SFR

Re: load KML fail in BB Browser

as far as I know, reading KML files require the GoogleMap API that is not available on BlackBerry browsers because it requires AJAX features not available yet.



The search box on top-right of this page is your true friend, and the public Knowledge Base too:
Developer
Posts: 117
Registered: ‎07-16-2008
My Device: Not Specified

Re: load KML fail in BB Browser

I've been trying to do the same thing (makes Google Maps API v2/v3 works on my Storm 9530 with the Blackberry Browser) without any success.  Nothing is displayed when I access the Google Maps API from the Blackberry browser.

Are you saying you are able to see the maps on the Blackberry browser when using the Google Maps API?

 
The official response from the Google Support was to use the Google Maps Static API v2 instead, found here:
http://code.google.com/apis/maps/documentation/staticmaps/

Not great... but at least a static map can be displayed.

 

As for KML files, I've been able to make them works by calling a URL to my KML file hosted on a web server from my Blackberry browser.  With my Storm 9530, it displays the KML file using Blackberry Maps... with my Curve 8330, I receive an error ("The item you selected cannot be displayed. Do you wish to save the item?").

 

I also found this trick from the Google web site:

http://code.google.com/apis/kml/documentation/whatiskml.html

 

It doesn't seem to work though when I use something like "http://maps.google.com/?q=[URL TO KML FILE]".

It does work on my deskop and my iPhone though.

 

Still trying to find a solution to this as well...