[問題] android MapLocation裡面的變數

看板java作者 (塞拎娘老叭噗)時間15年前 (2010/08/19 19:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
我看見一個範例是 public MapLocation(String name, double longitude , double latitude) 然後他在程式內 mapLocations.add(new MapLocation(description, longitud, latitud)); 因為他本原本的範例是GPS 會取到 經緯度 如果今天我是相反想例用地址反查後的經緯度 這程式要怎麼修改阿呢...? 因為我想透過讓我點擊下去 原本SQL儲存的資料 才會顯示 public MapOverlay(List<MapLocation> mapLocations) { listMapLocations = mapLocations; private MapLocation getHitMapLocation(MapView mapView, GeoPoint tapPoint) { MapLocation hitMapLocation = null; RectF hitTestRect = new RectF(); Point screenCoords = new Point(); Iterator<MapLocation> iterator = listMapLocations.iterator(); Iterator 這段就是點擊後會選取mapLoctions給的資訊是嗎?? 如果我SQL裡的資訊有3筆 是不是要先將這3筆包裝起來 才有辦法 傳呢...?? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.124.131.28
文章代碼(AID): #1CRGxzXz (java)