This project contains example code for integrating the BETA 'v2 SkyWise Tiles API' with the Mapbox Native SDK for Android. The project will get a list of the latest contoured radar mosaic frames and animate them in the Mapbox widget.
A Mapbox API Key and WDT SkyWise Tiles credentials are required.
The API used in this demo is in BETA and may change in the future. Response times and processing may not be fully optimized. Additionally, the format of the tile data may change.
- WDT SkyWise Tiles Credentials
- Mapbox API Key
- Android Studio or other IDE
- Android Device with 'Ice Cream Sandwich' (API 15+)
-
Open the file: MainActivity.java
-
Modify the constants to include your API keys:
private static final String MAPBOX_API_KEY = "";
private static final String SKYWISE_TILES_HOST = "skywise-tiles.api.wdtinc.com";
private static final String SKYWISE_TILES_PORT = "80";
private static final String SKYWISE_TILES_USERNAME = "";
private static final String SKYWISE_TILES_PW = "";
- Use Android Studio to launch the application on your Android Device.
NOTE 1: See the Mapbox Android SDK Github for details on emulator support. Often works best on physical devices.
NOTE 2: This example code uses a beta snapshot of the Mapbox Android SDK for latest fixes and the dynamic styling API.