Daniel,

I have prepared another set of scripts and input data (attached)

And it seems to me, that it works in this basic environment.

I'll do another check, to find out, why it does not work in the more complex script.

Thanks Daniel for your time

Jachym

On 1.10.2011 16:45, Daniel Morissette wrote:
On 11-09-30 07:12 AM, Jachym Cepicky wrote:
Hi,

I try to set transparent color to REFERENCE map, so that the box is
outlined-only.

According to documentation, i use -1 for indication, that the color
should be transparent

color = mapscript.colorObj(-1,-1,-1)


How do you set/assign the color value to the reference map object? What
if you set another color than -1,-1,-1, does it get through?

The following works fine for me in PHP MapScript. Perhaps make a similar
test with the version of MapScript you are using (Python?), and then
look at the output of /tmp/test.map to comfirm that the color is set as
expected.

<?php
$map = ms_newMapObj("/path/to/my.map");
$map->reference->color->setRGB(-1,-1,-1);
$map->save("/tmp/test.map");
?>

Attachment: reference.tgz
Description: application/compressed-tar

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

Reply via email to