Skip to content

V0.32.0 Released

Choose a tag to compare

@fuzhenn fuzhenn released this 04 Feb 09:49
· 12 commits to master since this release

新功能

  • VectorTileLayer.options.features 支持设置为 transient,在tileload事件中获取到瓦片的features后,图层中的features会被删除以节省内存, maptalks/issues#559
  • GroupGLLayer 增加 queryTerrainAtPoint(containerPoint) 方法,用于以容器坐标查询地形上的坐标与高程
  • Geo3DTilesLayer.options 增加 alwaysShowTopTiles 设置(默认为true),保证永远显示最上层的瓦片, maptalks/issues#588
  • GeoJSONVectorTileLayer中数据量很大时,dataload事件中extent由前1000个数据改为间隔读取,保证extent更贴近实际情况
  • 地形增加对雨雪效果的支持, maptalks/issues#506
  • 三维测量增加对GLTFMarker的支持, maptalks/issues#591

性能提升

  • 通过改进ArrayPool,将VectorTileLayer在worker中的处理数据性能提升了约300%
  • 通过消除不必要的Object.defineProperty和uniform重复检查,明显提升webgl渲染的整体性能, maptalks/issues#352

Bug修改

  • 修正terrain的maxAvailableZoom不正确时,会无限请求地形瓦片的问题, maptalks/issues#584, maptalks/issues#593
  • 解决Geo3DTilesLayer中obb类型的瓦片与相机视锥的相交算法, maptalks/issues#594
  • 升级fusion.gl,解决webgl上下文状态切换错误造成的绘制问题, maptalks/issues#586
  • 解决GLTFLayer会在后处理时重复绘制造成性能急剧下降的问题
  • 解决MultiPolygon数据方向不合规时的绘制, maptalks/issues#600
  • 解决ColorMask没有正确响应鼠标事件的问题, maptalks/issues#597
  • 解决151版Three因为改变了webgl2上下文判断方法,造成无法在GroupGLLayer中正常工作的问题, maptalks/issues#601

New features

  • VectorTileLayer.options.features support set to transient, after getting the features of the tile in the tileload event, the features in the layer will be deleted to save memory, maptalks/issues#559
  • GroupGLLayer add identifyTerrainAtPoint(containerPoint) method to query the coordinates and elevation on the terrain in container coordinates
  • Geo3DTilesLayer.options add alwaysShowTopTiles setting (default is true) to ensure that the top tiles are always shown, maptalks/issues#588
  • When there is a large amount of data in GeoJSONVectorTileLayer, the extension in the dataload event is changed from the first 1000 data to be read at intervals, to make sure the extension is closer to the actual situation.
  • Add support for rain and snow effect in terrain, maptalks/issues#506.
  • Added support for GLTFMarker for 3D measurements, maptalks/issues#591.

Performance improvements

  • Improved VectorTileLayer's data processing performance in worker by about 300% by improving ArrayPool.
  • Significantly improved the overall performance of webgl rendering by eliminating unnecessary Object.defineProperty and uniform duplicate checks, maptalks/issues#352

Bug fixes

  • Fix an issue where terrain tiles would be requested indefinitely if the maxAvailableZoom of terrain was incorrect, maptalks/issues#584, maptalks/issues#593
  • Solve the intersection algorithm between obb type tiles and camera view cone in Geo3DTilesLayer, maptalks/issues#594
  • Upgrade fusion.gl to fix a drawing problem caused by incorrect webgl context state switching, maptalks/issues#586
  • Solve the problem that GLTFLayer will be drawn repeatedly during post-processing, causing a sharp performance degradation.
  • Fix a drawing problem when MultiPolygon data orientation is not correct, maptalks/issues#600
  • Solve the problem that ColorMask does not respond to mouse events correctly, maptalks/issues#597
  • Fix a bug in version 151 of Three that prevents it from working properly in GroupGLLayer due to a change in the webgl2 context determination method. maptalks/issues#601