tippecanoe icon indicating copy to clipboard operation
tippecanoe copied to clipboard

Add `point_count_abbreviated` property to clustered features

Open oreilles opened this issue 3 years ago • 2 comments
trafficstars

Add point_count_abbreviated property to clustered features to improve consistency with clusters generated by supercluster. The formula used is taken from supercluster/index.js#L377-L379:

    const abbrev =
        count >= 10000 ? `${Math.round(count / 1000)  }k` :
        count >= 1000 ? `${Math.round(count / 100) / 10  }k` : count;

oreilles avatar Nov 13 '22 23:11 oreilles

Could you please make this PR against https://github.com/felt/tippecanoe instead? The mapbox repo is essentially unmaintained now.

e-n-f avatar Nov 14 '22 00:11 e-n-f

Done 👍

oreilles avatar Nov 14 '22 01:11 oreilles