[mapserver-users] How to create a chart layer from a php function

Daniel Morissette dmorissette at mapgears.com
Wed Oct 8 16:55:11 EDT 2008


Sandra Liliana Moreno wrote:
> Hi!!!!
> 
> I want to create a chart layer from a PHP function, but in the style
> of the class of the layer,
> a parameter called "SIZE" in the mapfile, I do not know how to set in
> the object styleObj.
> Does anyone know how to do this?
> 	

[...]

> 	$style->set("size","[rio]");

Try this:

   $style->setBinding(MS_STYLE_BINDING_SIZE, "rio");

For the record, the relevant docs are:
http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/styleobj
and
http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/class-constants

Daniel
-- 
Daniel Morissette
http://www.mapgears.com/


More information about the mapserver-users mailing list