Shorter name for the option to create a custom cluster

This commit is contained in:
Tim Schaub
2021-07-15 21:35:59 -06:00
parent a617ef3caf
commit 1b9329ea91
2 changed files with 6 additions and 6 deletions

View File

@@ -84,7 +84,7 @@ describe('ol.source.Cluster', function () {
source: new VectorSource({
features: [feature1, feature2],
}),
createClusterFeature: function (clusterPoint, features) {
createCluster: function (clusterPoint, features) {
let sum = 0;
for (const ft of features) {
sum += ft.get('value');