[mapserver-users] labelObj question - PHP

Dylan Keon keon at nacse.org
Mon Nov 4 20:21:47 EST 2002


I'd like to change label text size and symbol size for a couple of 
layers as part of a conditional statement in PHP MapScript.  I'm able to 
change the symbol size just fine:

	$layer = $map->getLayerByName('sites');
	$layerClass = $layer->getClass(0);
	$layerClass->set('size', 16);

However, I can't figure out how to change the label text size.  I see 
there is a labelObj member to classObj, but can't seem to figure out the 
correct syntax to access it.  Can someone give me a hint?

Thanks. :-)




More information about the mapserver-users mailing list