0
新しいAndroid版のマップビューで作業しています。場所を取得するには、場所をタップしてマップから地図を取得してください。 ** protected boolean onTapp GeoPointのP、のMapViewマップ){マップビューのontapp()メソッド
if(Map == null) {
Map = map;
}
Geocoder coder = new Geocoder(this.mContext,Locale.getDefault());
try {
List<Address> aList = coder.getFromLocation(p.getLatitudeE6()/1e6, p.getLongitudeE6()/1e6, 5);
if(aList.size() > 0) {
int i = 0;
String address = "";
while(aList.get(0).getAddressLine(i) != null) {
address+=aList.get(0).getAddressLine(i) + " ";
i++;
}
}
}
catch (IOException e) {
e.printStackTrace();
}
return true;**
いずれかが私を助けるか、それのいくつかの実施例を共有してくださいますすることができ、私はほとんど変化してItemizedOverlayにこれを追加しているが、そのは動作していません。