From c04dfc80e2b837f3bfe1dc1ba2fbb557b2e5f454 Mon Sep 17 00:00:00 2001 From: Leith Bade Date: Tue, 25 Nov 2014 22:20:04 +1100 Subject: [PATCH] Exception does not compile --- README.md | 2 ++ .../app/src/main/java/com/mapbox/mapboxgl/app/MapFragment.java | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c93ce2071..819f1fcb1 100644 --- a/README.md +++ b/README.md @@ -176,6 +176,8 @@ For iOS and OS X use of the demo apps in Xcode, setup the access token by editin For Linux, set the environment variable `MAPBOX_ACCESS_TOKEN` to your token. +For Android, open the class MapFragment and look for the line with `mMap.setAccessToken("access key goes here");`. Also delete the throw statement on the previous line. + # Style Some styles in JSON format are included at `./styles`. See the [style spec](https://github.com/mapbox/mapbox-gl-style-spec) for more details. diff --git a/android/java/app/src/main/java/com/mapbox/mapboxgl/app/MapFragment.java b/android/java/app/src/main/java/com/mapbox/mapboxgl/app/MapFragment.java index 49c873581..ac8895265 100644 --- a/android/java/app/src/main/java/com/mapbox/mapboxgl/app/MapFragment.java +++ b/android/java/app/src/main/java/com/mapbox/mapboxgl/app/MapFragment.java @@ -39,7 +39,6 @@ public class MapFragment extends Fragment { mMap = (MapView) inflater.inflate(R.layout.fragment_main, container, true); // Load the API key - throw new RuntimeException("You must insert a valid Mapbox API key and then delete this throw."); mMap.setAccessToken("access key goes here"); // Need to pass on any saved state to the map