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!
 
 

Reply via email to