Need Urgent Help on adding Labels to the dynamic points created with ms_newPointObj()

Eric Bridger eric at GOMOOS.ORG
Mon Aug 9 10:38:44 PDT 2004


On Sun, 2004-08-08 at 09:37, Ishrar Hussain wrote:
> I need to dynamically add labels to the points, which
> I
> plotted with ms_newPointObj() following the code by
> Merlos (available at
> http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptAddPoint).
>
> The annotation string, which I put in the draw()
> function of PointObj, does not appear as Label of the
> point.
>
> Please, also let me know, if I have to add anything to
> my Map file for this, and if so, then how.
>

You will need to add a LABEL section to your CLASS.
E.g.
  LABEL
    COLOR 255 0 0
    SIZE TINY
  END



More information about the MapServer-users mailing list