Only pass the feature to the attribute getter

This commit is contained in:
Tim Schaub
2022-07-21 13:43:53 -07:00
parent bd9e73a534
commit 7e424be66b
8 changed files with 13 additions and 41 deletions

View File

@@ -86,10 +86,7 @@ class PointBatchRenderer extends AbstractBatchRenderer {
// pushing custom attributes
for (let j = 0, jj = this.customAttributes.length; j < jj; j++) {
value = this.customAttributes[j].callback(
batchEntry.feature,
batchEntry.properties
);
value = this.customAttributes[j].callback(batchEntry.feature);
batch.renderInstructions[renderIndex++] = value;
}
}