[GIS] Mapbox SDK: Is it free if you host your own vector tiles

mapboxmapbox-glvector-tiles

I wish to use Mapbox SDK for iOS and Android apps (mapbox-gl) for rendering of maps that I host myself (that conform to https://github.com/mapbox/vector-tile-spec). I went through their pricing and it didn't mention anything about hosting your own maps.

In this scenario – do you still need to comply to their pricing and you are restricted to 50000 mobile users/month if you don't pay?

Best Answer

UPDATE(after Dec 8 2020): No longer free with Mapbox-GL JS 2.0+.

2.0 release of mapbox-gl-js is now billing us for the tile request for our tile sources as a result of TOS and license change. The alternative is either to stick to v1.13.1 or switch to a maplibre-gl-js (maintained-community-fork-of-v1.13.0).

OLD ANSWER (2016):

Describe

I could successfully feed Mapbox SDK with non-mapbox (wikimedia) datasource without API key, which likely means there is no restriction for it. Also in code comments (logoView on iOS) they mention that you only need to display the Mapbox watermark if you use mapbox-hosted maps, you can safely hide it otherwise.

Attaching the Mapbox GL style json file for reference. (you need to feed the URL to this file, as styleURL when initialising the mapBox's mapView)

{
  "version": 8,
  "name": "Raster Tiles",
  "sources": {
    "yourTileLayer": {
      "type": "raster",
      "tiles": [
        "https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png"
      ],
      "tileSize": 256
    }
  },
  "layers": [{
    "id": "yourTileLayer",
    "type": "raster",
    "source": "yourTileLayer",
    "paint": {
      "raster-fade-duration": 100
    }
  }]
}
Related Question