[Mapserver-users] turn labels on and off in PHPMapScript

Franck Martin franck@sopac.org
24 Jul 2003 12:01:33 +1200


--=-z0UMExuWuQ8gdbOvf+8K
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

I'm trying to figure out how to dynamically turn labels on/off

I have a mapfile set with one layer having the labels on. It works fine
through PHPMapScript

I thought about dynamically setting in the layer the labelitem property
to the empty string, because it works in the mapfile when you remove
labelitem only. But the draw function generates an error...

please advise...
-- 
Franck Martin <franck@sopac.org>
SOPAC

--=-z0UMExuWuQ8gdbOvf+8K
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/1.1.8">
</HEAD>
<BODY>
I'm trying to figure out how to dynamically turn labels on/off<BR>
<BR>
I have a mapfile set with one layer having the labels on. It works fine through PHPMapScript<BR>
<BR>
I thought about dynamically setting in the layer the labelitem property to the empty string, because it works in the mapfile when you remove labelitem only. But the draw function generates an error...<BR>
<BR>
please advise...<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
Franck Martin &lt;<A HREF="mailto:franck@sopac.org">franck@sopac.org</A>&gt;<BR>
SOPAC
</TD>
</TR>
</TABLE>

</BODY>
</HTML>

--=-z0UMExuWuQ8gdbOvf+8K--
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users