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 =
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:
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