汇哥全球后援会
学而不思则罔,思而不学则殆。

乱记 2021-11-19 mapbox(一)

发布于November 19, 2021

历史

MapBox.js在2013年发布1.0版本并且成为leaflet的插件,提供了很方便调用mapbox底图的方法。点击查看

MapBox.js is now a Leaflet plugin, which means that our hosted library includes a fresh version of Leaflet as well as code that make it easy to integrate with MapBox tiles and services. The plugin provides a smart map object, L.mapbox.map, that extends L.Map, as well as types for MapBox layers, controls, and utilities. As a Leaflet plugin, MapBox.js can integrate with any other Leaflet code - plugins, default layers, and more.

在和leaflet的交流过程中,Leaflet的开发者在2013年加入了MapBox团队,并且继续维护Leaflet。在2014年2月10号,MapBox推出了MapBox GL JS,并且MapBox团队的工作重心也从MapBox.js逐渐往MapBox GL JS所便宜。MapBox GL JS支持2维和3维地图的开发,并且使用BSD-3-Clause协议开源。在2020年MapBox GL JS 2.x版本发布之后,MapBox宣布2.x往后的版本不再使用BSD-3-Clause协议。

Mapbox gl-js version 2.0 or higher (“Mapbox Web SDK”) must be used according to the Mapbox Terms of Service. This license allows developers with a current active Mapbox account to use and modify the Mapbox Web SDK. Developers may modify the Mapbox Web SDK code so long as the modifications do not change or interfere with marked portions of the code related to billing, accounting, and anonymized data collection. The Mapbox Web SDK only sends anonymized usage data, which Mapbox uses for fixing bugs and errors, accounting, and generating aggregated anonymized statistics. This license terminates automatically if a user no longer has an active Mapbox account.