views:

623

answers:

2

The Google Map doesn't render in the BlackBerry Simulator.
My application has a "View Map" button which on click calls a Google Map web URL. The error is "ThrownValue in ExecuteScript ReferenceError:GMap2 is not defined in BlackBerry"

I did enable the JavaScript support in the Browser configuration

Device Target:Up to Bold Blackberry JDE 4.5

Any solution ideas will be of great help. Thanks in advance.

+1  A: 

You should install Google Map Mobile on Blackberry, then use it.
Read
How to use Google Map in Blackberry application?
BlackBerry and map based apps like Yelp and Google Map
UPDATE
I don't believe google maps can be opened with browser or browserField on blackberry.
I've stated my position in links that we have to use GMaps app or Static with server implementation.
But if there is other possibility, I really would be appreciate to know it.

Max Gontar
Thank you Sir,I have read these posts earlier too.Please read my reply and help me figure out a solution
Scarlette_June
A: 

Thank you Sir,I have read these posts earlier too.

When ever a URL associated to Gmap gets called...internally device tries to invoke the Gmap application.

  1. Call a URL
  2. Black berry searches for shared applications which are compatible to that URL call.

In my application, a call to the Web URL http:// XXXX.xxxxx.com/xxx.php?company_id=companyid displays the Map with company id added to it.Earlier my test results on the Simulator did show the Map.(Not Static), but now it doesn't render at all.

I have checked and rechecked the Browser configuration as well for JS support. Please help me figure out a solution.

Thanks in advance.

Scarlette_June
Have you tried to enter url into browser manually?
Max Gontar
Sir, I have downloaded Google Maps on my Curve 8320.The Map does not render at all.Also, the map URL is getting displayed in the browser correctly, then it should also work in the application?(for I am just invoking the browser application with the URL). Apologies if I have repeated myself again.Please help!
Scarlette_June
Now,when I try and open a specific Map URL in the Internet Browser as well as in my application, I get the message "The page you requested couldnot be loaded.It is too large for the device"In the application I am just invoking the browser with the url.How do I resolve this? Thanks in advance.P.S: I have downloaded Google Maps in my Curve.The Map in my application calls a WEB URL whose page weight is 444 kAlso, I did go through this onehttp://forums.crackberry.com/f52/page-you-requested-could-not-loaded-too-large-device-65577/
Scarlette_June