mapbox 11/22/2019:

after several edits got mapbox routing to work from here:

https://docs.mapbox.com/help/tutorials/android-navigation-sdk/

colors

these colors:

    "colorPrimary"
    "colorPrimaryDark"
    "colorAccent"

are not explicity used, but are prob. in this theme:

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">

these colors:

    "mapboxWhite"
    "mapboxBlue"
    "mapboxPink"
    "mapboxYellow"

are used in:

<style name="NavigationMapRoute">

as:

<item name="routeColor">@color/mapboxBlue</item>
<item name="routeModerateCongestionColor">@color/mapboxYellow</item>
<item name="routeSevereCongestionColor">@color/mapboxPink</item>
<item name="routeShieldColor">@color/mapboxWhite</item>

these colors:

    "mapboxGrayLight"

is used in:

        android:background="@color/mapboxGrayLight"
./AngelaNav1/app/src/main/res/layout/activity_main.xml

seems to be color of Start Navigation button when disabled

these colors:

    "mapboxRed"

apparently unused; could have been used in SevereCongestionColor but replaced with Pink

TODO:

done (except for nav button):

colors.xml:
    <!-- carrot colors -->
    <color name="colorPrimary">#F90</color>
    <color name="colorPrimaryDark">#Fc6</color>
    <color name="colorAccent">#9f6</color>

    <color name="carrotOrange">#F90</color>
    <color name="carrotLightOrange">#Fc6</color>
    <color name="carrotDarkGreen">#690</color>
    <color name="carrotLightGreen">#9f6</color>

some notes on android app styles:

geojson in mapbox

https://docs.mapbox.com/android/maps/overview/data-driven-styling/

section Data-Driven Styling says:

mapboxMap.getStyle(new Style.OnStyleLoaded() {
    @Override
    public void onStyleLoaded(@NonNull Style style) {

        try {
            URI geoJsonUrl = new URI("https://url-to-geojson-file.geojson");
            GeoJsonSource geoJsonSource = new GeoJsonSource("geojson-source", geoJsonUrl);
            style.addSource(geoJsonSource);
        } catch (URISyntaxException exception) {
            Log.d(TAG, exception);
        }
    }
});

time lapse

https://docs.mapbox.com/android/maps/examples/add-an-image-source-with-time-lapse/

and in git:

https://github.com/mapbox/mapbox-android-demo/blob/master/MapboxAndroidDemo/src/main/java/com/mapbox/mapboxandroiddemo/examples/styles/ImageSourceTimeLapseActivity.java

https://github.com/mapbox/mapbox-android-demo/blob/master/MapboxAndroidDemo/src/main/res/values/colors.xml

async operations

geojson plugin: https://blog.mapbox.com/new-geojson-plugin-for-android-862124f9d24b

geojson docs: https://docs.mapbox.com/mapbox-gl-js/api/#geojsonsource

this one looks ok, but web (not android): "Add live realtime data": https://docs.mapbox.com/mapbox-gl-js/example/live-geojson/

direct fetch of JSON from MySQL: https://www.simplifiedcoding.net/json-parsing-in-android/

notes from mapbox doc pages

1) seems good place to start:

2) Tutorials: https://docs.mapbox.com/help/tutorials/

3) examples & blog

4) general android: