settext php

Artur Skalski artur.skalski at ACXIOM.COM
Mon Aug 1 03:16:12 EDT 2005


Hi all

I'm using mapserver 4.4 and php mapscript 4.4
I've got a problem with setting text to the anotanion layer
the Layer looks like this:

LAYER
  NAME themetitle
  STATUS OFF
  TRANSFORM FALSE
  TYPE ANNOTATION
  FEATURE
   POINTS
    250 30
   END
  END
  CLASS
   LABEL
    TYPE TRUETYPE
    FONT ARIAL
    SIZE 10
    ANTIALIAS TRUE
    COLOR 0 100 0
   END
   #TEXT 'Tytul mapy tematycznej'
  END
END

and the php code that is to change or add TEXT to the Layer looks like

$zlayer = $gpoMap->getLayerByName(themetitle);
$cl = $zlayer->getClass(0);
$cl->settext("some text");

Unfortunately it doesn't work :(

Do you have any ide why?

Thanks for any tip!

Artur



More information about the mapserver-users mailing list