Breaking Changes
- lit material中取消了对uvRotation的支持
- 地面填充图片设置取消了对uvRotation的支持
新功能
- 增加了GroupGLLayer,地面填充图片的位置与大小设置功能:
- fill渲染插件的symbol增加了polygonPatternFileWidth和polygonPatternFileHeight,单位为米,用于设置填充图片的高和宽
- fill渲染插件的symbol增加了polygonPatternFileOrigin,填充图片原点的坐标,示例:
ground: {
enable: true,
renderPlugin: {
type: "fill"
},
symbol: {
polygonOpacity: 1,
polygonPatternFile: './peppers.png',
polygonPatternFileOrigin: map.getCenter().toArray(), //原点经纬度
polygonPatternFileWidth: 100,
polygonPatternFileHeight: 100
}
}
- lit渲染插件的symbol.material增加了textureWidth,单位为米,用于设置填充图片的宽度
- lit渲染插件的symbol.material增加了textureOrigin,填充图片原点的坐标,示例:
ground: {
enable: true,
renderPlugin: {
type: "lit"
},
symbol: {
polygonOpacity: 1,
material: {
baseColorTexture: './peppers.png',
uvOffsetAnim: [10, 20],
noiseTexture: './noise.png',
uvScale: [2, 2],
uvOffset: [50, 0],
uvOffsetInMeter: true,
textureOrigin: map.getCenter().toArray(), //原点经纬度
textureWidth: 100, // meter
}
}
}
- fill的symbol和lit的symbol.material中增加了uvOffsetInMeter设置,如果设置为true,则uvOffset和uvAnimOffset中值的单位变为米
Bug修改
- 解决GLTFLineString在identity投影下的若干bug
Breaking Changes
- uvRotation support has been removed from lit material.
- uvRotation support has been removed from ground pattern image settings.
New features
- Added GroupGLLayer, position and size settings for ground pattern images:
- add polygonPatternFileWidth and polygonPatternFileHeight in meters to the symbol of the fill rendering plugin, used to set the height and width of the pattern image
- The symbol of the fill render plugin adds polygonPatternFileOrigin, the coordinates of the origin of the pattern image, example:
ground: {
enable: true,
renderPlugin: {
type: "fill"
},
symbol: {
polygonOpacity: 1,
polygonPatternFile: '. /peppers.png',
polygonPatternFileOrigin: map.getCenter().toArray(), // origin latitude and longitude
polygonPatternFileWidth: 100, //Pattern File width in meter
polygonPatternFileHeight: 100
}
}
- lit render plugin's symbol.material adds textureWidth in meters to set the width of the filled image
- The symbol.material of the lit render plugin adds textureOrigin, the coordinates of the origin of the fill image, example:
ground: {
enable: true,
renderPlugin: {
type: "lit"
},
symbol: {
polygonOpacity: 1,
material: {
baseColorTexture: './peppers.png',
uvOffsetAnim: [10, 20],
noiseTexture: './noise.png',
uvScale: [2, 2],
uvOffset: [50, 0],
uvOffsetInMeter: true,
textureOrigin: map.getCenter().toArray(),
textureWidth: 100, // meter
}
}
}
- Added uvOffsetInMeter setting to symbol.material of fill and symbol.material of lit, if set to true, the unit of the value in uvOffset and uvAnimOffset will be changed to meter.
Bug fixes
- Resolve several bugs in GLTFLineString under identity projection.