bcgov / smk-legacy-ui

Legacy Admin UI for the SMK has been de-supported. Please see the CLI under https://github.com/bcgov/smk for an alternative.
Apache License 2.0
8 stars 3 forks source link

Cluster and Heat maps from server side content - Challenge! #253

Open cpspicer opened 5 years ago

cpspicer commented 5 years ago

We have clustering working in SMK. In the Mash-up framework we could enable clustering for data coming from ESRI Rest based services. It was tricky to implement, as the application on launch had to cache the point data locally in the browser on star-up (to maintain freshness). It was 'author beware' depending on the size of the data - usually the attribute table size slowed things down.

Shall we take a crack at clustering and heat maps from a live source?

NicoledeGreef commented 4 years ago

see also https://github.com/bcgov/smk/issues/278

dhlevi commented 4 years ago

This is already doable in SMK today from any rest service that return json. From ticket 278: https://github.com/bcgov/smk/issues/278

However the caveat is that, as a vector layer, it will attempt to download everything all at once, which is not memory efficient or feasable for large datasets.

In the mapview repo (https://github.com/dhlevi/smk-bc-mapview8) we've implemented a change to enable querying the WFS layer on pan/zoom. It currently doesn't cache though, but it would be a feasible implementation.