[mapserver-users] Re: How to set Labels dynamically

2009-12-04 Thread Ludwig Kniprath
Hi Helen, this sample-script should work: ---schnipp-- ?php //1. Map-Object and Image $blank_map_object = ms_newMapObj('your path to the sample mapfile below'); $blank_map_object-preparequery(); $blank_map_image = $blank_map_object-prepareImage(); //2. LAYER $draw_layer =

[mapserver-users] RE: How to set Labels dynamically

2009-12-03 Thread Ludwig Kniprath
Hi, I think there's only one line missing after $daLayer-draw($image): $daLayer-drawLabelCache($image); Regards Ludwig Message: 6 Date: Thu, 3 Dec 2009 11:13:10 -0500 From: Helen Eskina hesk...@ubitech.com Subject: [mapserver-users] How to set Labels dynamically? To:

[mapserver-users] Re: How to set Labels dynamically

2009-12-03 Thread Ludwig Kniprath
Oops, you're right, drawLabelCache is a method of the map-object, but all the same it works for me! Perhaps a missing LABEL-Section in the mapfile-definition of your $daLayer? Regards Ludwig Helen Eskina schrieb: Hi Ludwig, Layer object doesn't have DrawLabelCache method. I've tried this line