mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
fixed adaptive zoom
This commit is contained in:
parent
a1c55befa2
commit
3ca211b9bb
2 changed files with 2 additions and 2 deletions
|
@ -14,5 +14,5 @@ export const getRandomColor = () => {
|
|||
}
|
||||
|
||||
export const getAdaptiveScale = (zoom: number): number => (
|
||||
Math.min(1, Math.max(0.4, 1 / (2 ** (13 - zoom))))
|
||||
Math.min(1, Math.max(0.4, 1.5 / (2 ** (13 - zoom))))
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue