android - osmdroid - mapview in fragment -


I am using and I tried to add MapView to Piece 's onCreateView . However the map does not show the correct coordinates zoom or show. It only shows the map of the whole world (lowest description).

Here the normal code should work, which should work normally

  @Override public view perquiry (layoutInflator Inflator, View Group container, bundle savedinstenstate) {map View map view = new map view (get (), 256); MapView.getController () setZoom (14). MapView.getController () SetCenter (New GeoPoint (46814000,17977000)); See the return map;   

"text" for Tony>

It has already been detected from this but the Mapfragment is present only in the compatibility package. This time, use mascotation as a general solution activity and adding fragments there or using compatibility packages and adding a piece through tabhost and local activity manager http://stackoverflow.com/questions/5109336/mapview- One-piece honeycomb

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -