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

Color replacing for SVG-based Symbolizers #659

Closed
artemp opened this issue Oct 11, 2011 · 2 comments
Closed

Color replacing for SVG-based Symbolizers #659

artemp opened this issue Oct 11, 2011 · 2 comments
Labels
Milestone

Comments

@artemp
Copy link
Member

artemp commented Oct 11, 2011

I would like to be able to specify a color replacement table for the new SVG-based symbolizers.

E.g. there is all those nice icons like http://www.sjjb.co.uk/mapicons/svg/accommodation_alpinehut.svg that Brian converts to (mono-)colored PNGs with a script, like http://www.sjjb.co.uk/mapicons/png/accommodation_alpinehut.p.32.png and http://www.sjjb.co.uk/mapicons/png/accommodation_alpinehut.n.32.png and even http://www.sjjb.co.uk/mapicons/png/accommodation_alpinehut.glow.32.png

What the conversion script does is basically just a sed on a certain color in the SVG file.

While I don't expect this halo effect just yet, it would be nice to be able to do that from within Mapnik.

I could also use a feature like this for hiking symbols, which (in the east of Germany and in Czech) are often the same simple shapes like a dot, bar, slash etc., but come in different colors.

@springmeyer
Copy link
Member

/cc @cmarqu - I think he was the original ticket filer back in the trac days

@springmeyer
Copy link
Member

This is working and in place now in master: see #1410. Things like alpha are now supported as of cd66495. This will only work with simple shapes or single paths - or at least cases where it is okay for all paths to accept the same colors.

Closing.

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

No branches or pull requests

2 participants