Skip to content

Instantly share code, notes, and snippets.

@misto misto/osm.java
Last active Nov 4, 2017

Embed
What would you like to do?
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Context ctx = getApplicationContext();
Configuration.getInstance().load(ctx, PreferenceManager.getDefaultSharedPreferences(ctx));
setContentView(R.layout.activity_main);
map = findViewById(R.id.map);
map.setTileSource(TileSourceFactory.MAPNIK);
map.setMaxZoomLevel(20);
map.setMultiTouchControls(true);
map.setBuiltInZoomControls(true);
controller = map.getController();
controller.setZoom(18);
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.