我使用以下代码在当前位置显示标记...但是当我更改设备标记的方向时消失..?
List<Overlay> mapOverlays = mapView.getOverlays();
Drawable drawable = Activity.this.getResources().getDrawable(R.drawable.icon);
MyItemizedOverlay itemizedOverlay = new MyItemizedOverlay(drawable ,Activity.this);
GeoPoint point = new GeoPoint( (int)(location.getLatitude()*1000000),
(int)(location.getLongitude()*1000000));
OverlayItem overlayitem = new OverlayItem(point, "Current Location :","+acTextView.getText());
itemizedOverlay.addOverlay(overlayitem);
mapOverlays.add(itemizedOverlay);
MapController mapController = mapView.getController();
mapController.animateTo(point);
mapController.setZoom(14);
如何处理mapview中的方向..?
答案 0 :(得分:0)
实际上,当设备的方向改变了Activity的重启时..我在manifest.xml中放了以下属性,我的问题现在解决了:
android:configChanges="orientation"