Created
October 23, 2013 01:03
-
-
Save fdansv/7110812 to your computer and use it in GitHub Desktop.
MapBox Android simplest app
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
import com.mapbox.MapBoxView | |
public class SimpleMapBoxExample extends ApplicationContext { | |
MapBoxView map; | |
protected void onCreate(Bundle savedInstanceState){ | |
super.onCreate(savedInstanceState); | |
// We can initialize the map with the MapBox name, coordinates and zoom level | |
map = new MapBoxView("examples.map-9ijuk24y", 42.65742, 2.347682, 12); | |
// We now set the map as the View for our Activity | |
this.setContentView(map); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment