Label layer...

Rob P. rob at DATAFLOWDESIGN.COM
Wed Apr 6 09:26:38 EDT 2005


>>>>> "Paul" == Paul james <pauljame at GMAIL.COM> writes:

    Paul> Hi, I have a point layer with a label... I´d like to know
    Paul> how can I turn on/turn off only the label ... May I do other
    Paul> layer ? Sample??  I´m using php/mapscript

I do it like this:

$layerObj->set("labelminscale", 0);
$layerObj->set("labelmaxscale", 0);

Regards,
Rob




    Paul> Thank you

    Paul> LAYER NAME state TYPE POINT STATUS ON CONNECTIONTYPE POSTGIS
    Paul> CONNECTION "user=x password=x dbname=x host= x" DATA
    Paul> "the_geom from states" LABELITEM "name" LABELCACHE ON
	
    Paul> 	CLASS NAME "state_" OUTLINECOLOR 255 0 0 COLOR 10 90
    Paul> 10 SYMBOL 'circle' SIZE 5 LABEL FONT fritqat SIZE 6 TYPE
    Paul> TRUETYPE COLOR 255 0 0 FORCE TRUE OUTLINECOLOR 255 200 200
    Paul> PARTIALS TRUE POSITION AUTO END END



More information about the mapserver-users mailing list