Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use CSS defaults for symbolizers #28

Open
aaime opened this issue Jul 22, 2013 · 2 comments
Open

Use CSS defaults for symbolizers #28

aaime opened this issue Jul 22, 2013 · 2 comments

Comments

@aaime
Copy link
Contributor

aaime commented Jul 22, 2013

Right now colors and sizes default to null, however SLD provides reasonable defaults, e.g., when setting a stroke width to 2 it would make sense to see a black line, not an empty map because the color has not been assigned.

Each symbolizer has basic, meaningful defaults in SLD, CSS should use those.

@dwins
Copy link
Owner

dwins commented Jul 22, 2013

Right now the idea of a 'key' property is baked into the CSS compiler - every type of symbolizer has a single property that triggers it - if there's no 'stroke' property then there are no line symbolizers, etc. This ties in pretty tightly with how multi-pass effects are encoded. Are you proposing that I change the key property for line symbolizers, or that we change the system for encoding multiple symbolizers? If the latter, I'd like to hear a little more about the scheme you think should be used.

@aaime
Copy link
Contributor Author

aaime commented Jul 22, 2013

Isn't it possible to have it trigger when any of the properties in the symbolizer are used?
I mean, if I'm saying I want a dash array for a line, probably I want it drawn no? :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants