Skip to content

Releases: maptalks/maptalks-gl-layers

V0.13.0 Released

02 Oct 13:01
Compare
Choose a tag to compare

本版本只支持maptalks核心库 1.0.0-rc.12 及以上版本

@maptalks/gl

  • GroupGLLayer增加地形支持,目前只支持mapbox地形(terrain格式与天地图格式在下个版本中添加),设置地形方法如下:
     const skinLayers = [
            new maptalks.TileLayer('base', {
                maxAvailableZoom : 20,
                spatialReference: {
                  projection: 'EPSG:3857'
                },
                urlTemplate: 'https://khms{s}.googleapis.com/kh?v=923&hl=en&x={x}&y={y}&z={z}',
                subdomains: ['1','2','3']
              })
        ];
     const terrain = {
           type: 'mapbox',
            tileSize: 512,
            spatialReference: 'preset-vt-3857',
            requireSkuToken: true, //可选的,是否生成sku token,会自动在url参数后增加一个sku参数,访问mapbox官方数据源时必须提供
            urlTemplate: 'https://{s}.tiles.mapbox.com/v4/mapbox.terrain-rgb/{z}/{x}/{y}.pngraw?access_token=[your token]',
            subdomains:['a', 'b', 'c', 'd']
        };
       const group = new maptalks.GroupGLLayer('group', skinLayers, {
            terrain
        });
  • 解决 text 和 icon 的highlight绘制问题
  • FBORayPicking中返回坐标与海拔高度
  • 解决一个blitFBO的resize bug
  • 增加terrain相关的单元测试

@maptalks/vt

  • 解决worker缓存导致的异常内存占用
  • VectorTileLayer.options.features 默认设为false,该设置只影响identify是否能返回feature数据
  • 提升关闭features时,大数据量瓦片的传输性能与内存效率
  • 解决隐藏的图层仍然可以identify的bug, maptalks/issues#129
  • identify返回的feature统一为GeoJSON规范对象,maptalks/issues#101
  • 解决PointLayer的marker大小无法超过255的问题,maptalks/issues#95
  • markerPlacement和textPlacement增加vertex-first和vertex-last的支持,maptalks/issues#107
  • 在identify结果的coordinate属性中返回经纬度与海拔高度,maptalks/issues#105
  • VectorTileLayer上增加options.debugTileData设置,方便调试瓦片数据,maptalks/issues#121
  • 解决大量marker绘制时边缘的漏光现象
  • icon的blendSrc改为默认为1
  • 默认关闭icon和text的碰撞检测
  • feature-filter升级,function-type中增加 contains 函数的支持,maptalks/issues#111
  • tube插件的样式中增加emissiveFactor属性

@maptalks/3dtiles

  • Geo3DTilesLayer增加 showService 与 hideService方法,用于显示与隐藏指定的3dtiles tileset
  • identify方法返回坐标与海拔高度

@maptalks/gltf

  • 解决MultiGLTFMarker的抖动问题, maptalks/issues#24
  • GLTF模型增加以米为内部坐标系单位的支持

V0.12.4 Released

15 Aug 09:27
Compare
Choose a tag to compare

@maptalks/gl

Fixes

  • 因为shader缓存会导致依赖上下文的regl动态值出错,删去Shader缓存
  • Because shader cache will lead to wrong value in regl's dynamic variable, remove shader cache

@maptalks/vt

Fixes

  • 开启tile stencil时,将绘制过的stencil值设为0,解决数据重叠时的z-fighting
  • When enabling tile stencil, set fragment's stencil to 0 to solve overlapping feature's z-fighting

V0.12.3 Released

15 Aug 02:29
Compare
Choose a tag to compare

@maptalks/analysis

  • 解决CutAnalysis中的一个bug
  • Fix a bug in CutAnalysis
  • 解决存在多个Analysis,disable其中一个时的报错
  • Fix error when disabling a analysis when there are two or more analysises

V0.12.2 Released

15 Aug 02:26
Compare
Choose a tag to compare

@maptalks/vt

Fixes

  • 解决从PointLayer删除Marker时的一个空指针异常,maptalks/issues#113
  • Fix a null pointer when removing a marker from PointLayer, maptalks/issues#113
  • customProperties在同一个Feature上被定义多次时,复制该Feature
  • clone Features when customProperties is set to one feature for multiple times
  • 生成icon纹理时,尊重icon图片本身的宽度和高度,maptalks/issues#106
  • respect icon image's own width and height when generating icon textures, maptalks/issues#106

V0.12.1 Released

15 Aug 02:23
Compare
Choose a tag to compare

@maptalks/vt

Fixes

  • 解决VectorTileLayer的lit插件对dataConfig.defaultHeight的解析
  • Fix VectorTileLayer's lit render plugin's parsing of dataConfig.defaultHeight
  • 解决geojson数据坐标不合法时,LineStringLayer无法绘制的问题
  • Throw error when geojson's coordinates is not valid

V0.12.0 Released

09 Aug 11:17
Compare
Choose a tag to compare

@maptalks/vt

Features

  • VectorTileLayer增加了Feature高亮功能,例子程序:
  • add feature highlighting to VectorTileLayer, example:
// id is Feature.id
layer.highlight([{ id: 0, color: '#f00', opacity: 0.7, bloom: 1, visible: true}]);
// cancel Feature's highlight
layer.cancelHighlight([0]);
// cancel all highlights
layer.cancelAllHighlight();

Fixes

  • 解决VectorTileLayer上icon图片模糊的问题

  • Fix blurry icon image on VectorTIleLayer

  • 解决缩放时,文字会突然出现挤作一团的问题

  • Fix crowed texts when zooming

@maptalks/gl

Features

  • 增加了限高分析
  • Add height limit analysis

Fixes

  • 解决页面存在不同map时,shader缓存的报错
  • Fix shader cache's bug when there are multiple map instances on page

V0.11.1 Released

03 Aug 04:41
Compare
Choose a tag to compare

@maptalks/gl

Features

  • 增加Shader缓存,提升矢量瓦片等频繁创建shader的图层性能
  • Add shader cache, improve performance of layers that creates shaders frequently, e.g. VectorTileLayer

V0.11.0 Released

03 Aug 04:32
Compare
Choose a tag to compare

@maptalks/vt

Features

  • 简化了style和symbol的更新方法,去掉了updateSymbolByName, updateRenderStyleByName等
  • Simpler layer style update methods, remove updateSymbolByName, updateRenderStyleByName methods
  • 实现调用VectorTileLayer setStyle方法后,地图无刷新应用新样式
  • Implement seamless style updating when calling VectorTileLayer.seStyle

FIxes

  • 解决mergeOnProperty值为expression的bug
  • Fix expression value on symbol.mergeOnProperty

V0.10.7 Released

01 Aug 08:10
Compare
Choose a tag to compare

Features

  • add mapbox expression support for markerPlacement

V0.10.6 Released

01 Aug 08:11
Compare
Choose a tag to compare

Fixes

  • Silence textName expression's evaluation error