[mapserver-users] How setting the legend color from mapscript
Andrea Peri
aperi2007 at gmail.com
Fri Nov 27 23:37:00 PST 2015
Hi,
thx for reply.
I mean the separate one legend image as callable using a
GetLegendGraphics request.
My python code is this:
msMap.legend.keysizex=15
msMap.legend.keysizey=20
msMap.legend.keyspacingx=3
msMap.legend.keyspacingy=3
legendColor = mapscript.colorObj(255,255,255,0)
msMap.legend.imagecolor=legendColor
msMap.legend.status = mapscript.MS_OFF
msMap.legend.postlabelcache = mapscript.MS_TRUE
labelLegend = mapscript.labelObj()
labelLegend.type = mapscript.MS_TRUETYPE
labelLegend.size = 7
msMap.legend.label = labelLegend
A.
2015-11-28 5:17 GMT+01:00 CzendaZdenda <tramtara at seznam.cz>:
> Hi,
>
> do you mean legend at a map? Or the separate one legend image
> (msMap.drawLegend())? If the problem is just in the map legend, then do you
> use something like this?:
>
> msMap.outputformat.transparent = 1 # or mapscript.MS_ON
>
> If yes, try to comment it.
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/How-setting-the-legend-color-from-mapscript-tp5233737p5238920.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
More information about the MapServer-users
mailing list