Automatically cluster maps with more then 250 elements

This commit is contained in:
Pieter Vander Vennet 2021-01-05 00:21:00 +01:00
parent 46b05d7410
commit 4dacfd157a
5 changed files with 19 additions and 13 deletions

View file

@ -128,9 +128,15 @@ export interface LayoutConfigJson {
*/
clustering?: {
/**
* All zoom levels above 'maxzoom' are not clustered anymore
* All zoom levels above 'maxzoom' are not clustered anymore.
* Defaults to 18
*/
maxZoom?: number
maxZoom?: number,
/**
* The number of elements that should be showed (in total) before clustering starts to happen.
* If clustering is defined, defaults to 0
*/
minNeededElements?: number
},
/**