fix: grid heatmap remove size attribute

This commit is contained in:
thinkinggis 2020-01-07 15:13:24 +08:00
parent eb0dac4991
commit f5a22b208b
2 changed files with 0 additions and 52 deletions

View File

@ -42,32 +42,6 @@ export default class GridModel extends BaseModel {
];
}
protected registerBuiltinAttributes() {
// point layer size;
this.styleAttributeService.registerStyleAttribute({
name: 'size',
type: AttributeType.Attribute,
descriptor: {
name: 'a_Size',
buffer: {
// give the WebGL driver a hint that this buffer may change
usage: gl.DYNAMIC_DRAW,
data: [],
type: gl.FLOAT,
},
size: 1,
update: (
feature: IEncodeFeature,
featureIdx: number,
vertex: number[],
attributeIdx: number,
) => {
const { size } = feature;
return Array.isArray(size) ? [size[0]] : [size as number];
},
},
});
// point layer size;
this.styleAttributeService.registerStyleAttribute({
name: 'pos', // 顶点经纬度位置
type: AttributeType.Attribute,

View File

@ -44,32 +44,6 @@ export default class HexagonModel extends BaseModel {
];
}
protected registerBuiltinAttributes() {
// point layer size;
// this.styleAttributeService.registerStyleAttribute({
// name: 'size',
// type: AttributeType.Attribute,
// descriptor: {
// name: 'a_Size',
// buffer: {
// // give the WebGL driver a hint that this buffer may change
// usage: gl.DYNAMIC_DRAW,
// data: [],
// type: gl.FLOAT,
// },
// size: 1,
// update: (
// feature: IEncodeFeature,
// featureIdx: number,
// vertex: number[],
// attributeIdx: number,
// ) => {
// const { size } = feature;
// return Array.isArray(size) ? [size[0]] : [size as number];
// },
// },
// });
// point layer size;
this.styleAttributeService.registerStyleAttribute({
name: 'pos', // 顶点经纬度位置
type: AttributeType.Attribute,