mapboxgl.js versus leaflet.js

喜欢而已 提交于 2019-12-06 14:28:37

A few words to clarify the difference:

  • mapboxgl uses browsers' WebGL technology, therefore it requires a modern enough browser, and uses more client computing power. The advantage is that it can natively handle vector tiles and render them any way you like (rotation, tilt, perspective like for a GPS navigation device, custom style, etc.)
  • Leaflet uses plain DOM manipulation, and is designed to (theoretically) support old browsers like IE8. It is very efficient for such old browsers, and also mobile-friendly due to this lightweight computing footprint. The advantage is that it enables you including a basic map without too much overhead. Most basic usages can be covered with Leaflet, possibly with some plugins. The drawback is that it mainly supports raster tiles, so they must be rendered server-side (mapbox provides such service).
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!