forked from MapComplete/MapComplete
Make clustering less aggressive
This commit is contained in:
parent
83eb030c5c
commit
dd81ed8987
2 changed files with 3 additions and 3 deletions
|
@ -120,7 +120,7 @@ export default class LayoutConfig {
|
|||
|
||||
this.clustering = {
|
||||
maxZoom: 16,
|
||||
minNeededElements: 25,
|
||||
minNeededElements: 250,
|
||||
};
|
||||
if (json.clustering === false) {
|
||||
this.clustering = {
|
||||
|
@ -130,7 +130,7 @@ export default class LayoutConfig {
|
|||
} else if (json.clustering) {
|
||||
this.clustering = {
|
||||
maxZoom: json.clustering.maxZoom ?? 18,
|
||||
minNeededElements: json.clustering.minNeededElements ?? 25,
|
||||
minNeededElements: json.clustering.minNeededElements ?? 250,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue