The question Self-hosting Mapbox vector tiles pointed to the ability to self-host MBTiles formatted tiles (an open specification, the MB is not related to Mapbox I don't think). The answers to the question however focus on using the Mapbox Studio to download the vector tiles.

I am wondering instead if there is a way to get all of the tiles you need without using Mapbox. I am not too familiar with how the data works and what sort of tiles you necessarily need, but I'm wondering how you get the MBTiles data or the vector tiles without using the Mapbox app. It seems once you have the MBTiles data you can use mapbox-gl-js and tilelive to render them on the web. The missing piece for me is where the initial data is (Mapbox lists their different kinds of tiles in How Mapbox data works, but I'm not sure if this is the primary source or there is an alternative).

The reason I'm asking is to find a way that is completely open source / royalty free. I'm not sure if the Mapbox data is royalty free or open or whatnot.

To generate your own vector tiles, you may have a look at:


  • Or GeoServer, MapServer, GDAL, or with SQL query directly from PostGIS. Two last ones do not help you with styles. – user30184 Aug 20 at 6:29
  • Use Tippecanoe or GDAL ogr2ogr make your mbtiles files or folder of PBF serve them up to your favorite mapping client via a vector tile server – GeospatialInformationTech Aug 27 at 4:07
  • Alternatively load data to POSTGIS create query to show MVT – GeospatialInformationTech Aug 27 at 4:08

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.