changing status by php
Dylan Keon
keon at NACSE.ORG
Mon Sep 6 07:31:43 PDT 2004
Ahmet,
I think this is what you want:
$layer = $map->getLayerByName('roads');
if (something) {
$layer->set('status', 0); //turns layer off
} else {
$layer->set('status', 1); //turns layer on
}
temiz wrote:
> hello
>
> Is it possible to change maps' status dynamically by php_mapscript.
> What I want to do change from default (or on) status value of a map to
> off and
> off status value another layer to default.
>
> Is this the proper way to show and hide maps ?
>
> how can I use the map object and php code ?
> regards
>
> Ahmet Temiz
More information about the MapServer-users
mailing list