Skip to content

Instantly share code, notes, and snippets.

@jatorre
Created June 13, 2013 13:51
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 jatorre/5773824 to your computer and use it in GitHub Desktop.
Save jatorre/5773824 to your computer and use it in GitHub Desktop.
// 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