PHP Mapscript Color Issue
Matthew Swort
mswort at GMAIL.COM
Mon Oct 23 07:04:07 PDT 2006
Mapserver Users,
I am working with PHP Mapscript and am having issues with my points and
circles showing up correctly. Take the following section from my mapfile:
LAYER
NAME mypoints
TYPE POINT
STATUS DEFAULT
LABELCACHE ON
LABELMAXSCALE 100000
CLASS
COLOR 0 255 0
NAME "mypoints"
SYMBOL "circle"
SIZE 3
LABEL
COLOR 180 60 60
TYPE BITMAP
SIZE tiny
POSITION UR
OFFSET 2 -2
ANTIALIAS true
PARTIALS true
BUFFER 0
END
END
END
Now, in PHP I do the following:
$layer = $map->getLayerByName('mypoints');
$point_label = "This is a Label";
$pointObj = ms_newPointObj();
$pointObj->setXY($y, $x);
$pointObj->draw($map, $layer, $image, 0, $point_label);
-----------------------------
The issue is that when the points show up on the map they are *not* the
correct color. However, they are showing up in the legend as the bright
green they should be.
When plotted on the map they are a dull green or even gray.
Has anyone ever seen this issue before?
Please help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20061023/6857f1c6/attachment.htm>
More information about the MapServer-users
mailing list