Geographic Information Systems Asked on December 29, 2021
I’m using CSS and wanted to know how to set the min and max scale for a given layer. I see many solutions referencing SLD, but want to do this in CSS. I really need help with the syntax.
When in doubt check the CSS Styling Cookbook - simply you use the "magic" scale denominator variable (@sd
) in a filter.
* { mark: symbol(circle); } :mark { fill: #CC3300; } [@sd < 16M] { mark-size: 12; } [@sd > 16M] [@sd < 32M] { mark-size: 8; } [@sd > 32M] { mark-size: 4; }
Answered by Ian Turton on December 29, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP