作者kid0368 (塞拎娘老叭噗)
看板java
标题[问题] android MapLocation里面的变数
时间Thu Aug 19 19:01:14 2010
我看见一个范例是
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