mapbox-gl-draw

Mapbox cluster's data-driven styling

巧了我就是萌 提交于 2019-12-25 03:14:34
问题 When visualizing clusters with Mapbox's GL JS, how can I show clusters as circles which size/colours are proportional to the average of clustered points' property 'Rev', instead of proportional to the point-count property, as my code is doing it now. Is there any way to do this simply, or should I look into other methods? Here's my GeoJson file, followed by the HTML/JS code: { "type": "FeatureCollection", "features": [{ "type": "Feature", "geometry": { "type": "Point", "coordinates": [-53