Hi, Unfortunately, I don't think this is currently possible, based on a previous reply from Steve Lime [1]:
> I don't believe you can muck with the SVG color since SVG can carry multiple > elements and colors. That complexity doesn't map very well to a single color > value in a styleObj. It's probably best to consider SVG as immutable, same as > an image symbol. You can use truetype fonts (or vector symbols) if you want > something scaleable where you can alter color. I guess if it works in QGIS then it should be possible to implement this in the MapServer codebase too. Seth [1] https://lists.osgeo.org/pipermail/mapserver-users/2019-June/081218.html -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Wed, Mar 27, 2024, at 10:45 PM, karsten via MapServer-users wrote: > Hi All, > > for the first time trying to use svg symbols for a layer. The svgs I am using > can be styled in QGIS (have edited to allow). > What is the status in MapServer should setting the color via a style work ? > > I had no luck setting the COLOR on the symbol so far > > Here is my style > > STYLE > SYMBOL "electric_point" > SIZE 20 > COLOR 255 0 0 > END # STYLE > > symbol > > SYMBOL > NAME 'electric_point' > TYPE svg > image 'symbols/annotation/electric.svg' > END > > So far this renders black symbols , any ideas how to fix this ? > > Cheers > Karsten > > Karsten Vennemann > www.terragis.net > > _______________________________________________ > MapServer-users mailing list > MapServer-users@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users >
_______________________________________________ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users