Skip to content

Releases: maptalks/maptalks-gl-layers

V0.18.5

20 Mar 06:39
Compare
Choose a tag to compare

@maptalks/gl

  • 解决一个设备的worker不支持OffscreenCanvas时的兼容性问题

V0.18.4 Released

20 Mar 04:41
Compare
Choose a tag to compare

@maptalks/gl

  • 解决了三维分析中的一些bug

@maptalks/gltf-layer

  • 解决若干bug
  • 增加MultiGLTFMarker对InfoWindow的支持,相关API如下
// index是要打开InfoWindow的Marker在MultiGLTFMarker中的序号
multiMarkers.openInfoWindow(index);

V0.18.2

13 Mar 10:07
Compare
Choose a tag to compare

@maptalks/3dtiles

  • Geo3DTilesLayer上增加了showOnly和cancelShowOnly方法,用于只显示指定batchID的模型(并隐藏其他),示例代码:
layer.showOnly([
  {
     id: 0
  }
]);

// 取消showOnly
layer.cancelShowOnly();

1

  • 解决map设置了hdr环境光时,渲染3dtiles报错的bug

@maptalks/vt

@maptalks/video

  • 整理测试用例并解决若干bug

V0.18.1 Released

10 Mar 09:08
Compare
Choose a tag to compare

@maptalks/gltf-layer

  • Fixed a bug caused error in worker message

V0.18.0 Released

10 Mar 08:32
Compare
Choose a tag to compare

Breaking Changes:

  • 取消了GLTFMarker的symbol中translation,rotation,scale属性,改为translationX,translationY,translationZ,scaleX,scaleY,scaleZ,rotationX,rotationY,rotationZ属性,方便(未来)增加function-type的支持
  • VectorTileLayer的gltf-lit插件同样把symbol中的translation,rotation和scale改为了translationX,translationY,translationZ,scaleX,scaleY,scaleZ,rotationX,rotationY,rotationZ属性,并增加了对这些属性function-type的支持

@maptalks/gl


  • identify结果中增加layer属性,maptalks/issues#197
  • 解决地形海拔查询结果不准确
  • 只在需要时生成GroundPainter的dfgLUT
  • 地形增加fbo类型的skin支持
  • 往GroupGLLayer添加canvas类型的layer时会报错, maptalks/issues#239
  • 增加6张图片方式的天空盒
    const lights = {
      ambient: {
        resource: {
          url: {
            front: "/path/to/skybox/front.jpg",
            back: "/path/to/skybox/back.jpg",
            right: "/path/to/skybox/right.jpg",
            left: "/path/to/skybox/left.jpg",
            top: "/path/to/skybox/top.jpg",
            bottom: "/path/to/skybox/bottom.jpg"
          },
          prefilterCubeSize: 1024,
        },

        exposure: 1.0,
        orientation: 0
      },
      directional: {
        color : [0.1, 0.1, 0.1],
        direction : [1, 0, -1]
      }
    };
   map.setLights(lights);
  • 降低resize的调用频率, maptalks/issues#242
  • 修复模型动画相关的bug
  • 增加S3M模型所需的对TextureCoordMatrix的支持
  • 更新fusion.gl版本到 v0.5.2

@maptalks/3dtiles


  • 增加对S3M 3.0数据格式的支持
  • 解决I3S格式模型解析时的一个空指针异常
  • 只有当节点是叶子节点且error超过max error时才隐藏

@maptalks/vt


  • gltf-lit插件增加对translation,rotation,scale的function-type支持
  • 矢量瓦片支持成为地形的skin
  • 解决style为远程文件时,updateSymbol报错的问题
  • 解决PolygonLayer中polygonFill不支持rgba颜色值的问题, maptalks/issues#233
  • 解决line-gradient插件无法从customProperties读取属性的bug, maptalks/issues#231
  • 解决stencil导致的同时绘制二维多边形和白模时,二维多边形消失的问题, maptalks/issues#227
  • symbol的visible增加对复杂function-type的支持
  • 解决3d-extrusion插件中,top设置为true后,polygonOpacity不生效的问题, maptalks/issues#222
  • GeoJSONVectorTileLayer增加对EPSG:4326投影的支持
  • 解决图层有多个water渲染插件,绘制出错的bug
  • 解决PointLayer更新markerOpacity时报错的bug
  • 解决lit插件中symbol.material normalTexture更新时没有生效的bug

@maptalks/gltf-layer


  • 进行了整体代码重构,将marker mesh相关逻辑和生命周期维护转移到了GLTFMarker中
  • symbol.translation 的单位改为米
  • 解决MultiGLTFMarker中方法不存在的bug
  • 解决setAnimationLoop没有正常开启模型动画循环的bug
  • 模型改为以自身原点为轴心旋转,而不是anchorZ设置后的原点

Breaking Changes

  • Removed the translation, rotation, and scale attributes from GLTFMarker's symbol and replaced them with translationX, translationY, translationZ, scaleX, scaleY, scaleZ, rotationX, and rotationY, rotationZ properties to facilitate (in the future) the addition of function-type support
  • The gltf-lit plugin for VectorTileLayer also changes translation, rotation and scale in symbol to translationX, translationY, translationZ, scaleX, scaleY, scaleZ, rotationX, rotationZ, rotationY, rotationZ. rotationY, rotationZ attributes, and added support for function-type

@maptalks/gl


  • Add layer attribute to identify results, maptalks/issues ##197
  • Resolve inaccurate terrain elevation query results
  • Generate GroundPainter's dfgLUT only when needed
  • Add fbo type skin support for terrain
  • Adding canvas type layer to GroupGLLayer will report an error, maptalks/issues#239
  • Add a sky box with 6 images.
  • Reduce the frequency of resize calls, maptalks/issues#242
  • Fix the bugs related to model animation.
  • Add support for TextureCoordMatrix required for S3M models
  • Update fusion.gl version to v0.5.2

@maptalks/3dtiles


  • Add support for S3M 3.0 data format
  • Resolve a null pointer exception when parsing I3S format models
  • Hide only when node is a leaf node and error exceeds max error

@maptalks/vt


  • gltf-lit plugin add function-type support for translation, rotation, scale
  • Vector tile support becomes terrain skin
  • Solve the updateSymbol error when style is a remote file
  • Solve the problem that polygonFill in PolygonLayer does not support rgba color values, maptalks/issues#233
  • Solve the bug that the line-gradient plugin can't read properties from customProperties, maptalks/issues#231
  • Solve the problem that 2D polygons disappear when drawing both 2D polygons and white models due to stencil, maptalks/issues#227
  • Add support for complex function-type to symbol's visible
  • Solve the problem that polygonOpacity does not work after setting top to true in 3d-extrusion plugin, maptalks/issues#222
  • GeoJSONVectorTileLayer add support for EPSG:4326 projection
  • Solve the bug that the layer has more than one water rendering plug-in and draws wrongly.
  • Solve the bug that PointLayer update markerOpacity time error.
  • Solve the bug that symbol.material normalTexture update in lit plugin did not take effect

@maptalks/gltf-layer


  • The whole code was refactored to transfer the logic and lifecycle maintenance of marker mesh to GLTFMarker.
  • Changed the unit of symbol.translation to meter
  • Solve the bug that the method in MultiGLTFMarker does not exist.
  • Solve the bug that setAnimationLoop does not open the model animation loop normally
  • The model is rotated at its own origin instead of the origin after anchorZ is set

V0.17.0 Released

21 Dec 07:18
Compare
Choose a tag to compare

@maptalks/gl


  • 优化可视域分析的精度
  • 采用log depth改善深度检测的精度
  • 三维分析增加对透明度的支持, maptalks/issues#136
  • 避免重复调用transcoder插件造成的内存问题,maptalks/issues#170
  • 解决phong光照模型中的透明度
  • phong光照中ambientStrength改为environmentExposure
  • GroupGLLayer中只有定义了geometryEvents的图层才参与事件循环,maptalks/issues#203
  • 默认关闭taa抗锯齿
  • 升级fusion.gl和gltf-loader

@maptalks/3dtiles


  • 解决i3dm中node.translation/scale/rotation的读取,maptalks/issues#168
  • b3dm模型增加透明度的支持,在service中用opacity(0-1)来控制
  • 解决node的matrices stack顺序,解决b3dm模型中有多children时的散架问题 maptalks/issues#164
  • 从service中移除了ambientLight参数,增加了environmentExposure来调节模型亮度
  • 增加对KHR_materials_unlit的支持
  • 默认的shader改为pbr

@maptalks/vt


  • sceneConfig中增加minZoom和maxZoom支持, maptalks/issues#190
  • GLTF插件中增加Y轴到Z轴的转换,maptalks/issues#187
  • GLTF和native-point插件增加vertex placement的支持
  • icon插件dataConfig增加altitudeProperty支持
  • 所有插件dataConfig增加altitudeOffset支持
  • 解决icon透明度与其他图层不符的的问题,maptalks/issues#185
  • icon的最大尺寸改为2048,解决一些图标变形失真的问题,maptalks/issues#184
  • 解决线高亮的bug,maptalks/issues#183
  • PointLayer中尊重sceneConfig的默认值,maptalks/issues#182
  • VectorTileLayer.highlight方法增加对filter的支持,maptalks/issues#181
  • 关闭英特尔显卡文字渲染的workaround,maptalks/issues#175
  • 解决PointLayer上图层操作的若干bug,maptalks/issues#180, maptalks/issues#178
  • gltf插件改为存储相对instance center的相对坐标,解决某些情况下精度不够导致的模型变形的问题
  • 升级feature-filter到1.3.0版

V0.16.0 Released

02 Nov 10:56
Compare
Choose a tag to compare

@maptalks/gl

  • 增加对GLTF的khr_texture_transform扩展的支持
  • 解决雾,雨,雪的显示bug
  • 增加了 MaskLayerMixin,方便在其他图层中实现三维setMask功能
  • 解决highlight中设置visible后,无法恢复的bug
  • TerrainLayer中增加queryTerrain和queryTerrainByProjCoord方法,以及自动更新map中心点海拔的逻辑

@maptalks/3dtiles

  • 解决b3dm中包含khr_texture_transform时的纹理绘制bug

@maptalks/gl

  • Add support for GLTF's khr_texture_transform extension
  • Solve the display bug of fog, rain and snow.
  • Add MaskLayerMixin to facilitate the 3D setMask function in other layers.
  • Solve the bug that cannot be restored after setting visible in highlight.
  • Add queryTerrain and queryTerrainByProjCoord methods in TerrainLayer, and the logic of automatically updating map centroid elevation.

@maptalks/3dtiles

  • Fix the texture drawing bug when b3dm contains khr_texture_transform

V0.15.2 Released

27 Oct 09:10
Compare
Choose a tag to compare

@maptalks/gl

  • 解决点图形高亮混色bug

@maptalks/gl

  • Fix a bug of marker's blending when highlighting.

V0.15.1

25 Oct 02:59
Compare
Choose a tag to compare

@maptalks/gl

  • 解决一个打包问题

@maptalks/gl

  • Fix a bundle bug

V0.15.0 Released

25 Oct 02:23
Compare
Choose a tag to compare

@maptalks/gl

  • GroupGLLayer限制为默认全局只能添加一个(否则需要设置options.single=false)
  • 解决TerrainLayer options包含函数时报错的bug
  • highlight功能增加显示或隐藏mesh的功能

@maptalks/3dtiles

  • 增加 Geo3DTilesLayer.highlight 功能,当模型支持batchTable时,能高亮,开启泛光或显示隐藏对应batchId的构件
    map.on('click', e => {
        const hits = layer.identify(e.coordinate);
        if (hits.length) {
            layer.highlight({
                id: hits[0].data.batchId,
                color: '#f00',
                opacity: 0.7,
                // visible: false
                // bloom: 1
            });    
        }
        
        console.log(hits);
    });

@maptalks/vt

  • vt增加三维空间分析的支持
  • 解决用expression表达式定义placement时,碰撞检测未正常开启的bug
  • 解决markerRotation和textRotation的错误方向,maptalks/issues#151
  • 解决VectorTileLayer.options.fetchOptions的支持,maptalks/issues#157
  • line的blend src默认改为one,解决地图与容器的混色问题

@maptalks/gl

  • GroupGLLayer is restricted to add only one globally by default (otherwise you need to set options.single=false)
  • Solve the bug when TerrainLayer options contains function parameter.
  • highlight function adds the ability to show or hide the mesh

@maptalks/3dtiles

  • Add Geo3DTilesLayer.highlight function, when the model supports batchTable, it can highlight, turn on bloom or show/hide parts with given batchId
    map.on('click', e => {
        const hits = layer.identify(e.coordinate);
        if (hits.length) {
            layer.highlight({
                id: hits[0].data.batchId,
                color: '#f00',
                // visible: false
                // bloom: 1
            });    
        }
        
        console.log(hits);
    });

@maptalks/vt

  • vt add support for 3d spatial analysis
  • Solve the bug that collision detection is not enabled properly when defining placement with expression
  • Resolve wrong orientation of markerRotation and textRotation, maptalks/issues#151
  • Resolve VectorTileLayer.options.fetchOptions support, maptalks/issues#157
  • line's blend src default changed to one, resolve map and container blending issue