2011-04-30 5 views
1

더 많은 위치를 표시하기 위해 this link을 사용했지만지도를 스크롤하면 마커가 스크롤되지 않습니다. 즉, 위치는 정적입니다. 도와주세요.Map in Blackberry

답변

0

사용이 :

map = new MapField(){ 
     public void paint(Graphics g){ 

      super.paint(g); 

      for(int i=0;i<=_longitude.size()-1;i++){ 

     Coordinates coords = getCoordinates(); 
     coords.setLatitude(Double.parseDouble((String) _latitude.elementsAt(i)); 
     coords.setLongitude(Double.parseDouble((String) _longitude.elementsAt(i)); 


     convertWorldToField(coords,_xypoint); 


     g.drawBitmap(_xypoint.x,_xypoint.y,_loc.getWidth(),_loc.getHeight(),_loc, 0, 0); 
     } 
} 

참고 : _latitude 및 각각의 값을 포함하는 벡터 _longitude 있습니다, 이것은 정적하지 않는 마커를 만들 것입니다.