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
New Contributor
Posts: 8
Registered: ‎06-15-2011
My Device: 9800
My Carrier: Vodafone

BB Maps in Simulator are not showing maps for India

Hello ,

 

I am developing a simple application which will display map for the given latitude and longitude. But it display the correct map for default values whereas when i changed the latitude and longitude for any state say Haryana it does not show any Map for them.

It just display No data No data on blackberry simulator,.

 

 

If any one of you have a solution for my problem please share it with me....

Thanks in advance.

 

Following is the code.

************************************************************************


   function getMapInfo(){
       try{
       lat=prompt("Enter Latitude:","");
       lon=prompt("Enter Longitude:","");

       if(lat=="" || lat==0 || lat==null){
            lat=43.46310;
            alert("This will display map with default latitude value");
           }
       else{
        lat=parseFloat(lat);
           }
       if(lon=="" || lon==0 ||lon==null ){
            lon=-80.52070;
            alert("This will display map with default longitude value");
           }
       else{
            lon=parseFloat(lon);
           }
     
        var args = new blackberry.invoke.MapsArguments(lat, lon);
       blackberry.invoke.invoke(blackberry.invoke.APP_MAPS, args);
       }
       catch(e)
       {
        alert("Error in creating map"+e);
           }
       }
   *******************************************************************************