[問題] android MapLocation裡面的變數
我看見一個範例是
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