PHP/MapScript: How to change the color of a point?
Alexandre Abramides
alexandre at ACQUASOFTWARE.COM.BR
Thu Jul 20 13:16:09 PDT 2006
This is what I do to draw a point:
$point = ms_newPointObj();
$point->setXY($x,$y);
$line = ms_newLineObj();
$line->add($point);
$feature = ms_newShapeObj(0);
$feature->set("text"," ");
$feature->add($line);
$layer = $map->getLayerByName($layer_name);
$layer->addFeature($feature);
What I need is to change the color of the point (RGB) according to some
condition, can anyone help me?
Alexandre.
More information about the MapServer-users
mailing list