Draw point in PHP Mapscript
Robert Albrecht
robert.albrecht at TKK.FI
Mon Mar 20 06:25:28 PST 2006
Apeksha Bhambhani wrote:
> HI ,
>
> Can somebody help us with the following doubt :
> We are trying to plot a point using the Mapscipt API with the help of
> the draw function of the Point Object. Though , it does plot the point
> successfully , it does not annotate it with the text that we pass.
> $j=$poi[$i]->draw($map, $layer, $image,0,$name);
> $poi[$i] is a point object .
> What could be the error?
>
Don't know if you do, but you have to draw the label cache, after you've
drawn the map itself:
$image = $mapObj->draw();
$mapObj->drawLabelCache($image);
Does this help?
Robert
More information about the MapServer-users
mailing list