Created
June 13, 2013 13:51
-
-
Save jatorre/5773824 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
// define new configuration holder object | |
mapView.setComponents(new Components()); | |
// Define base layer. Here we use MapQuest open tiles which are free to use | |
// Note that almost all online maps use EPSG3857 projection, but Nutiteq SDK supports also other projections if needed | |
TMSMapLayer mapLayer = new TMSMapLayer(new EPSG3857(), 0, 18, 0, | |
"http://otile1.mqcdn.com/tiles/1.0.0/osm/", "/", ".png"); | |
mapView.getLayers().setBaseLayer(mapLayer); | |
// start mapping | |
mapView.startMapping(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment