안드로이드 지도 2개이상 띄울려면 어떻게해야하나요…;;
한 화면에 바로 맵뷰를 같이 나타낼 순 없고 어뎁터를 사용하라는데
잘 모르겟네요 ㅠㅠ
Gridview나 listview를 사용해서 나타내고 싶은데
도와주세요 ㅠㅜ
///////////////////////////////
MapView mapView = new MapView(getContext());
ViewGroup mapViewContainer = (ViewGroup) view.findViewById(R.id.map_view);
mapViewContainer.addView(mapView);
mapView.setZoomLevel(3, true);
//mapView.setMapCenterPointAndZoomLevel(MapPoint.mapPointWithGeoCoord(35.542718, 129.329500), 13, true);
mapView.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
return true;
}
});
MapPoint MARKER_POINT = MapPoint.mapPointWithGeoCoord(35.542718, 129.329500);
mapView.setMapCenterPoint(MARKER_POINT, true);
MapPOIItem marker = new MapPOIItem();
marker.setItemName("Default Marker");
marker.setTag(0);
marker.setMapPoint(MARKER_POINT);
marker.setMarkerType(MapPOIItem.MarkerType.BluePin); // 기본으로 제공하는 BluePin 마커 모양.
marker.setSelectedMarkerType(MapPOIItem.MarkerType.RedPin); // 마커를 클릭했을때, 기본으로 제공하는 RedPin 마커 모양.
mapView.addPOIItem(marker);
////////////////////////////////////////////
여기서 어떻게 추가해야될지 막막해서…