changing status by php
G-Net Consulting
joelf at GNETCONSULTING.COM
Mon Sep 6 07:32:05 PDT 2004
Temiz:
Maybe this is what you're looking for?
// get the layer name
$layer = $map->getlayerbyname(your layer name here);
// turn the map on/off
$layer->set("status", 1); # on
$layer->set("status", 0); # off
Hope that helps.
Joel
----- Original Message -----
From: "temiz" <temiz at DEPREM.GOV.TR>
To: <MAPSERVER-USERS at LISTS.UMN.EDU>
Sent: Monday, September 06, 2004 7:46 AM
Subject: [UMN_MAPSERVER-USERS] changing status by php
> 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
>
>
> ______________________________________
> Inflex - installed on mailserver for domain @deprem.gov.tr
> Queries to: postmaster at deprem.gov.tr
>
> ______________________________________
> The views and opinions expressed in this e-mail message are the sender's
> own
> and do not necessarily represent the views and the opinions of Earthquake
> Research Dept.
> of General Directorate of Disaster Affairs.
>
> Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak
> T.C.
> B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte
> degildir.
>
More information about the MapServer-users
mailing list