[Mapserver-users] simple php/mapscript questions
Eric Bridger
eric at gomoos.org
Fri Dec 12 02:43:54 PST 2003
On Fri, 2003-12-12 at 15:21, Murat Isik wrote:
> in my php I am trying to have lines like these:
>
> if(whatever_one)
> {
> $layer = $map->getLayerByName(lastpoint);
> $layer->set("status", MS_ON);
> GET DATA FROM THIS LAYER FROM lastpoint (just like "DATA lastpoint" in the map file)
> }elseif(whatever_two)
> {
> $layer = $map->getLayerByName(lastpoint);
> $layer->set("status", MS_ON);
> GET DATA FROM THIS LAYER FROM firstpoint (just like "DATA firstpoint" in the map file)
> }
So the PHP version would be:
$layer->set("data", "/path/to/shapefile/firstpoint");
More information about the MapServer-users
mailing list