地図に地図マーカーを追加しようとしています
My code is as below
FrgBufLocation.java
public class FrgBufLocation extends Fragment{
double dummyLatitude=12.931841;
double dummyLongitude=77.622236;
//Constructor declaration on type newInstance
public static FrgBufLocation newInstance(String _buf_off_id) {
FrgBufLocation fragment = new FrgBufLocation();
buf_off_id=_buf_off_id;
return fragment;
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.frg_buf_location, container,false);
setHasOptionsMenu(true);///For using actionbar menu from fragment
MapView map = (MapView) rootView.findViewById(R.id.map);
map.getController().setZoom(9);
map.getController().setCenter(new GeoPoint(dummyLatitude,dummyLongitude));
map.setBuiltInZoomControls(true);
return rootView;
}
}
私は出力を取得しています::
このような出力を取得する方法::( We can notice the below image has pinpoint pointed
)