Last active
November 4, 2017 11:17
-
-
Save misto/7114790 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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