Skip to content

V0.27.0 Released

Compare
Choose a tag to compare
@fuzhenn fuzhenn released this 14 Oct 07:09
· 53 commits to master since this release

新特性

  • VectorTileLayer的native-point插件,symbol.markerFill增加了function-type支持 maptalks/issues#466
  • 地图没有缩放时不重绘矢量瓦片,显著提升地形上VectorTileLayer在移动和旋转地图时的绘制性能
  • Geo3DTilesLayer给service上添加新的配置项unlit,设为true时则忽略光照,直接绘制本身纹理
  • Geo3DTilesLayer给service上添加新的配置项polygonFill,用于设置模型颜色,可以为css颜色或四位归一化数组
  • Geo3DTilesLayer给service上添加新的配置项hsv,三位归一化数组,用于为模型调色,设置模型颜色的色相,饱和度和明度
  • 材质没有unlit扩展时,Geo3DTilesLayer会在worker中为瓦片模型自动计算法线值
  • MultiGLTFMarker增加了针对单个模型设置bloom的功能,将数据的bloom属性设置为true即可, maptalks/issues#451

Bug修改

  • vt图层解决textName为空格时的报错和绘制问题, maptalks/issues#462
  • 解决terrain在4326投影下,影像瓦片错位的问题, maptalks/issues#468
  • 解决用GroupGLLayer.addLayer添加瓦片图层时,地形影像的绘制问题, maptalks/issues#469
  • 确保地形剪切的数据边长为 2^n + 1,解决某些情况下的报错, maptalks/issues#472
  • 解决地形中纹理坐标的计算错误,解决地形绘制时纹理错误造成的缝隙
  • 解决Geo3DTilesLayer没有回收缓存的GLTF模型造成的内存泄漏
  • 解决GLTFMarker会响应UIComponent上点击事件的问题, maptalks/issues#471
  • 解决MultiGLTFMarker偶发性没有正确的触发事件的问题, maptalks/issues#461

New features

  • Native-point plugin for VectorTileLayer, symbol.markerFill adds function-type support maptalks/issues#466
  • Vector tiles are not redrawn when the map is not scaled, significantly improving the drawing performance of VectorTileLayer on terrain when moving and rotating the map
  • Geo3DTilesLayer add new config item unlit to service, when set to true, it ignores lighting and draws its own texture directly.
  • Geo3DTilesLayer add a new config item polygonFill to service, it can set the model color, it can be css color or 4-bit normalized array.
  • Geo3DTilesLayer adds a new config item hsv to the service, a three-bit normalized array, which can be used to tint the model and set the hue, saturation and lightness of the model color.
  • Geo3DTilesLayer will automatically calculate normals for tile models in the worker when the material does not have an unlit extension.
  • MultiGLTFMarker add the function to set bloom for individual model, set the bloom attribute of data to true, maptalks/issues#451

Bug fixes

  • vt layer to solve the error and drawing problem when textName is a space, maptalks/issues#462
  • Solve the problem of image tile misalignment when terrain is in 4326 projection. maptalks/issues#468
  • Fix a problem with terrain image drawing when adding a tile layer with GroupGLLayer.addLayer, maptalks/issues#469
  • Ensure that the data side of terrain clipping is 2^n + 1, to solve the error reported in some cases, maptalks/issues#472
  • Resolve miscalculation of texture coordinates in terrain, resolve gaps caused by texture errors when terrain is drawn
  • Solve memory leak caused by Geo3DTilesLayer not reclaiming cached GLTF models.
  • Solve the problem that GLTFMarker will respond to click events on UIComponent maptalks/issues#471
  • Fix an issue where MultiGLTFMarker occasionally does not trigger events correctly, maptalks/issues#461