Hi

I guess there are several ways to do this.What comes to my mind is to specify all background colors with an alpha component.

So, if create a new style based on bing for instance with 50 % transparency on all background polygon colors.   Add 'land_clr': '"#E8E6E180"' instead of 'land_clr': '"#E8E6E1"' where the “80” is 50 % transparency in hex.  Then that color should be part of your new style.

Then you must have an OUTPUTFORMAT that is rendering with alpha transparency (RGBA)

I haven’t tried this, but it should work.

Have fun / Lars Schylberg

Den 2019-12-13 kl. 13:46, skrev Johannes Paul:
Hello,
Playing with the basemaps project along with osm database, I was wondering how the generate_style.py file shall be modify in order to get a mapfile producing osm based raster with a transparent background ?
Thanks for tour help.
Jo

_______________________________________________
mapserver-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to