Posts

Simple web map using Mapbox-GL-JS

Image
  How to use Mapbox mapping API without a Mapbox key. Edit to this post — As of Mapbox-GL-JS V2.0.0 Mapbox has changed their licensing structure, it will no longer be possible to use Mapbox mapping API without a token. See  Mapbox 2.0  for details on this change. This post is designed to be a first start with using Mapbox-GL-JS web mapping library. In particular how to use Mapbox open software without needing a Mapbox token or using their tiles. Mapbox-GL-JS is an open JavaScript library, see more information. The library is under the 3-Cluause BSD Licence. I was investigating different map technologies that   I could use for both my own projects and for work. After googling, “can I use Mapbox-gl-js without having a Mapbox account or paying for tiles” it wasn’t apparent at first. There are a few posts and questions online, one question on Stack overflow and an issue on Mapbox GitHub page. However, I was stru