2012-10-10 26 views
0

我通過將真實座標呼叫黑莓地圖,你可以看到地圖沒有顯示在我的黑莓應用正確的位置

public static void showMap(String latitude,String longatude){ 
    try { 
     int specailLatitude = (int)(Double.parseDouble(latitude))*100000; 
     int specailLongatude = (int)(Double.parseDouble(longatude))*100000; 
     MapView mapView=new MapView(); 
     mapView.setLatitude(specailLatitude); 
     mapView.setLongitude(specailLongatude); 
     mapView.setZoom(07); 
     MapsArguments arg=new MapsArguments(mapView); 
     Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, arg); 
    } catch(Exception e) { 
     CustomUtility.showToast("Map is not available "+e.getMessage()); 
    } 
}// end of the showMap 

,但問題是這樣的,現在顯示正確的位置,它總是顯示相同在阿聯酋的位置,請幫助我轉換正確?

+0

例如,你傳遞了「緯度」和「longatude」的字符串值? – Nate

回答

0

你目前的位置在阿聯酋? OS 7地圖中存在一個錯誤,它會將您帶到當前位置,而不是請求的緯度/經度。不幸的是,我沒有意識到任何解決方法。