Sort labels by zoom
This commit is contained in:
parent
162e4f7aaa
commit
67784097ae
1 changed files with 2 additions and 1 deletions
|
@ -68,7 +68,8 @@ let pointRules = [
|
|||
return `400 ${size}px sans-serif`;
|
||||
},
|
||||
}),
|
||||
filter: (z,f) => { return f.props.zoom < z }
|
||||
filter: (z,f) => { return f.props.zoom < z },
|
||||
sort: (a,b) => { return a.zoom - b.zoom }
|
||||
}
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue