Skip to content

Releases: maptalks/maptalks-gl-layers

V0.34.1 Released

14 Mar 08:42
Compare
Choose a tag to compare

Bug修改

  • 解决 i3dm 数据因为采用enuToFixedFrame方式,精度不足造成的数据偏移 maptalks/issues#628
  • 解决因为压缩顶点数据,造成渲染日本政府发布的城市模型会爆内存的问题,取消顶点压缩后解决
  • 打开ground的cull face,让镜头在地下时地面消失
  • 解决GLTFMarker打开bloom后,无法关闭的问题 maptalks/issues#630

Bug fixes

  • Solved the problem that i3dm data was shifted due to the lack of precision in the enuToFixedFrame method. maptalks/issues#628
  • Solved the problem that rendering city models released by the Japanese government would burst memory due to compression of vertex data, solved by removing vertex compression.
  • Open the cull face of ground, so that the ground disappears when the camera is underground.
  • Solve the problem that GLTFMarker can't be closed when bloom is opened. maptalks/issues#630

V0.34.0 Released

07 Mar 09:52
Compare
Choose a tag to compare

新功能

  • VectorTileLayer和ExtrudePolygonLayer中,材质恢复了对uvRotation的支持,即纹理的旋转角度,单位为度,旋转方向为逆时针
  • Geo3DTilesLayer service中增加 debugNodes 选项,用于配置用于调试的瓦片编号
  • Geo3DTilesLayer service上把debug设为true时,会绘制瓦片的包围盒

Bug修改

  • 修正了因为精度问题,级别很大时,polygon pattern的纹理扭曲问题 maptalks/issues#609
  • 解决GeoJSONVectorTileLayer在map设为4490投影下无法正常绘制的问题
  • 解决VectorTileLayer不支持四字节中文绘制的问题, maptalks/issues#621
  • 解决缩放地图时,沿线文字没有正常更新碰撞包围盒的问题, maptalks/issues#624
  • 解决PointLayer,碰撞优先级与绘制优先级相反的问题, maptalks/issues#626
  • 解决没有设置terrain时,调用queryTerrain报错的问题, maptalks/issues#606
  • GLTFLoader中限制了同时请求纹理的数量,避免请求纹理数量很大时造成的请求失败
  • 解决4326投影下,3dtiles瓦片 normal 计算错误导致的绘制异常, maptalks/issues#607
  • 解决三维测量的若干bug, maptalks/issues#605
  • 解决GLTFMarker outline会错位,以及identify的nodeIndex不准确的问题, maptalks/issues#619

New features

  • In VectorTileLayer and ExtrudePolygonLayer, the material restores support for uvRotation, which is the rotation angle of the texture in degrees, and the direction of rotation is counterclockwise.
  • Add debugNodes option in Geo3DTilesLayer service to configure tile numbers for debugging.
  • When debug is set to true on Geo3DTilesLayer service, the enclosing box of tiles will be drawn.

Bug fixes

  • Fixed the texture distortion problem of polygon pattern when the level is very large due to precision problem maptalks/issues#609
  • Fixed a bug that GeoJSONVectorTileLayer cannot be drawn properly when map is set to 4490 projection.
  • Solve the problem that VectorTileLayer does not support four-byte Chinese drawing. maptalks/issues#621
  • Solve the problem that when zooming the map, the text along the line does not update the collision box properly, maptalks/issues#624
  • Solve the problem that collision priority is opposite to drawing priority in PointLayer, maptalks/issues#626
  • Fix a bug in GLTFLoader where queryTerrain is called with an error when no terrain is set. maptalks/issues#606
  • Limit the number of textures requested at the same time in GLTFLoader, to avoid request failures when requesting a large number of textures.
  • Fix a drawing exception in 4326 projection when 3dtiles tile normal is miscalculated, maptalks/issues#607
  • Work around some bugs in 3D measurements, maptalks/issues#605
  • Solve the problem that GLTFMarker outline will be misaligned and identify's nodeIndex is not accurate, maptalks/issues#619

V0.33.0 Released

17 Feb 11:10
Compare
Choose a tag to compare

不兼容修改

  • Geo3DTilesLayer中service的scale的支持由数组改为了数字,即只支持整体的缩放,而不再支持分别缩放xyz三个轴上的大小
  • Geo3DTilesLayer中service中移除 maxExtent 的支持

新功能

  • GLTFLayer 增加 setURLModifier/getURLModifier 方法,用于修改资源请求的url
  • VectorTilelayer 增加 setURLModifier/getURLModifier 方法,用于修改资源请求的url

Bug修改

V0.32.0 Released

04 Feb 09:49
Compare
Choose a tag to compare

新功能

  • 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

V0.31.9 Released

19 Jan 04:00
Compare
Choose a tag to compare

Bug修改

  • 解决MultiGLTFMarker相关的bug

Bug fixes

  • Resolving MultiGLTFMarker-related bugs

V0.31.8 Released

18 Jan 08:39
Compare
Choose a tag to compare

Bug修改

  • Geo3DTilesLayer.options.loadingLimit 设为10,解决并发请求过多时,fetch请求偶尔会失败的问题

Bug fixes

  • Geo3DTilesLayer.options.loadingLimit is set to 10 to solve the problem that fetch requests occasionally fail when there are too many concurrent requests.

V0.31.7 Released

18 Jan 07:51
Compare
Choose a tag to compare

Bug修改

  • 解决fusion.gl对WebGL 1的一个不兼容bug
  • 通过减少不必要的Object.defineProperty提升uniform取值性能
  • 通过减少uniformMatrix4fv,提升uniform更新性能
  • 解决更新mask defines可能的null pointer异常

Bug fixes

  • Fix an incompatibility bug in fusion.gl with WebGL 1.
  • Improve uniform fetching performance by reducing unnecessary Object.defineProperty.
  • Improve uniform update performance by reducing uniformMatrix4fv.
  • Resolve a possible null pointer exception for updating mask defines.

V0.31.6 Released

12 Jan 07:43
Compare
Choose a tag to compare

新功能

  • 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

V0.31.5 Released

04 Jan 08:54
Compare
Choose a tag to compare

Bug修改

  • 解决隐藏的marker造成PointLayer碰撞检测卡顿的bug, maptalks/issues#572
  • GeoJSONVectorTileLayer默认关闭tile stencil,解决该图层上先画的polygon会阻止后面polygon绘制的问题, maptalks/issues#566

Bug Fixes

  • Solve the bug that the hidden marker causes the collision detection of PointLayer to be stuck, maptalks/issues#572
  • GeoJSONVectorTileLayer turn off tile stencil by default, to solve the problem that the polygon drawn first on this layer will block the drawing of the polygon after it, maptalks/issues#566

V0.31.4 Released

03 Jan 09:08
Compare
Choose a tag to compare

Bug修改

  • 解决vt图层,text插件无法正常cancelHighlight的问题, maptalks/issues#562
  • 解决VectorPack中,elements类型错误指定为Float32Array造成的数据量超过65536后,报错的问题,maptalks/issues#573

Bug Fixes

  • Solve the problem that vt layer, text plugin can't cancel Highlight properly, maptalks/issues#562
  • Solve the problem of VectorPack, the elements type is wrongly specified as Float32Array, the data amount exceeds 65536, maptalks/issues#573