I'm using the Android Compatibility Package and I've tried to add the MapView in the Fragment's onCreateView. However the map doesn't zoom or show the right coordinates. It only shows the whole world map (lowest detail).
Here is the simple code that should normally work
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
MapView mapView = new MapView(getActivity(), 256);
mapView.getController().setZoom(14);
mapView.getController().setCenter(new GeoPoint(46814000,17977000));
return mapView;
}
Hope somebody knows how to solve this.
Thanks