Replies: 2 comments 3 replies
|
There is nothing that is build in, but if you use global state you can add it to your style to make it more customised this way as a setting. Do note that global state is sort of a moving target, so if you find an area that is not quite as polished I encorage you to jump into the code and submit a PR. CC @mizmay if there is an option/feature that we am misssing. |
|
I have implemented this, for labels. As Frank says, it is not built-in, you'll have to manage it dynamically in code. Also it is quite tricky to write label styles that work at variable sizes, and you wouldn't want it for other map features. If you need it for accessibility requirements, this is how you would do it. A good practice that helps informally is to scale your labels effectively with zoom, so they are legible when the user zooms in. But of course this doesn't work if you have a client that needs a map they can manually scale. |

Uh oh!
There was an error while loading. Please reload this page.
Hello,
Is there a way to scale vector map features? Something like simlulating browser's zoom. After the scaling, the map bounds and zoom level would stay the same, just font sizes, icon sizes, line thickness, patterns, etc. would increase. I need it for acessibility.
All reactions