如何使用Nutiteq包从给定的坐标向BasicComponentMap添加标记。如果使用当前用户位置,添加标记非常容易,但我想从经度和纬度在给定位置设置标记。
谢谢。
发布于 2011-08-27 03:01:13
我找到了一种方法:
try {
Image poiImage = Image.createImage("/res/drawable/gps_marker.png");
PlaceLabel poiLabel =new PlaceLabel("location");
Place p = new Place(1, poiLabel, poiImage, lon, lat);
mapComponent.addPlace(p);
} catch (IOException e) {
Log.d("MAPA", "Couldn't location marker image.");
}其中mapComponent是BasicMapComponent。
https://stackoverflow.com/questions/7203050
复制相似问题