Skip to content

V0.31.6 Released

Choose a tag to compare

@fuzhenn fuzhenn released this 12 Jan 07:43
· 20 commits to master since this release

新功能

  • Geo3DTilesLayer增加了toJSON和fromJSON方法,用于图层序列化, maptalks/issues#579
  • VectorTileLayer.options和text/icon插件的sceneConfig中增加 collisionBufferSize 设置,用于增大或缩小碰撞检测盒, maptalks/issues#580

调整

  • Geo3DTilesLayer改为所有图层共享同一个全局LRUCache,避免图层数量过多时内存占用上升导致的崩溃,缓存大小仍由图层options中的maxGPUMemory来指定。
  • 得益于核心库rc.29中新增的worker idle消息机制,做了以下调整:
    • VectorTileLayer不再默认限制每帧的瓦片请求数
    • Geo3DTilesLayer不再默认限制每帧的瓦片请求数

Bug修改

  • 解决Geo3DTilesLayer对oriented bounding box类型瓦片是否在相机视野范围内的算法错误,解决obb类型3dtiles数据源会不停加载瓦片的问题, maptalks/issues#575
  • 解决VectorTileLayer上,text和icon插件如果开启collision,无法用highlight(visible:false)隐藏指定文字的问题, maptalks/issues#576

New features

  • Geo3DTilesLayer adds toJSON and fromJSON methods for layer serialization, maptalks/issues#579
  • VectorTileLayer.options and text/icon plugin's sceneConfig add collisionBufferSize setting for increasing or decreasing the collision detection box, maptalks/issues#580

Adjust

  • Geo3DTilesLayer is changed to share the same global LRUCache for all layers, to avoid the crash caused by the rising memory usage when the number of layers is too high, the cache size is still specified by maxGPUMemory in the layer options.
  • Thanks to the new worker idle message mechanism in core library rc.29, the following adjustments have been made:
    • VectorTileLayer no longer limits the number of tile requests per frame by default.
    • Geo3DTilesLayer no longer limits the number of tile requests per frame by default.

Bug fixes

  • Resolve Geo3DTilesLayer's algorithm error on whether oriented bounding box type tiles are within the camera's field of view, and resolve the issue that obb type 3dtiles datasource would keep loading tiles, maptalks/issues#575
  • Fix an issue where text and icon plugins on VectorTileLayer cannot hide the specified text with highlight (visible:false) if collision is turned on. maptalks/issues#576