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

Franck Martin franck at sopac.org
Wed Jul 23 17:01:33 PDT 2003


--=-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 at 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 <<A HREF="mailto:franck at sopac.org">franck at sopac.org</A>><BR>
SOPAC
</TD>
</TR>
</TABLE>

</BODY>
</HTML>

--=-z0UMExuWuQ8gdbOvf+8K--



More information about the MapServer-users mailing list