TerriaJS / terriajs

A library for building rich, web-based geospatial data platforms.
https://terria.io
Apache License 2.0
1.19k stars 364 forks source link

Add GeoJson clustering #7208

Open glughi opened 5 months ago

glughi commented 5 months ago

What this PR does

This PR adds the trait ClusteringTraits to GeoJsonTraits. In this way, it becomes possible to enable the clustering of entities made available by Cesium. Clusterized entities are represented as billboards generated by the fromText function of PinBuilder and report the number of grouped entities. As a result, clustering only works by using Cesium as a viewer, but there are no drawbacks to switching from Cesium to Leaflet at runtime.

Test me

Add a GeoJson or WFS layer of points to the catalog and use new parameters In example:

"clustering": {
  "enabled": true
},

Checklist