皇上,还记得我吗?我就是1999年那个Linux伊甸园啊-----24小时滚动更新开源资讯,全年无休!

Mapbox GL JS 0.48.0 发布,特别处理 404 错误

Mapbox GL JS 0.48.0 发布了,Mapbox GL JS 是一个 JavaScript 库,使用 WebGL 渲染交互式矢量瓦片地图和栅格瓦片地图。WebGL 渲染意味着高性能,MapboxGL 能够渲染大量的地图要素,拥有流畅的交互以及动画效果、可以显示立体地图并且支持移动端,是一款十分优秀的 WEB GIS(地理信息系统) 开发框架。

此次更新最重大的变化是将状态为 404 的错误处理为空可渲染切片,以防止在某些稀疏切片集中呈现重复的特征,其它更新内容如下:

Bug fixes

  • Require feature.id when using Map#setFeatureState (#6974)
  • Fix issue with removing the GeolocateControl when user location is being used (#6977) (h/t sergei-zelinsky)
  • Fix memory leak caused by a failure to remove all controls added to the map (#7042)
  • Fix bug wherein Map#querySourceFeatures was returning bad results on zooms > maxZoom (#7061)
  • Relax typing for equality and order expressions (#6459, fixed by #6961)

Features and improvements

  • Performance Improvements:
  • Stop unnecessary serialization of symbol source features. (#7013)
  • Optimize calculation for getting visible tile coordinates (#6998)
  • Improve performance of creating {Glyph/Image}Atlases (#7091)
  • Optimize and simplify tile retention logic (#6995)
  • Add a user turnstile event for users accessing Mapbox APIs (#6980)
  • Add support for autogenerating feature ids for GeoJSON sources so they can be used more easily with the Map#setFeatureState API (#7043)) (#7091)
  • Add customAttribution option to AttributionControl (#7033) (h/t mklopets)
  • Publish Flow type definitions alongside compiled bundle (#7079)
  • Improvements in label collision detection (#6925))

详情见发布公告

下载地址:

转自 https://www.oschina.net/news/99070/mapbox-gl-js-0-48-0-released