Skip to content

Instantly share code, notes, and snippets.

@misto
Last active November 4, 2017 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save misto/7114790 to your computer and use it in GitHub Desktop.
Save misto/7114790 to your computer and use it in GitHub Desktop.
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