<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt">Hi, i don't know about session mapfile, i am reading something. In the folder \ms4w\tmp\sess_47b4dcb872717 i read this file: session_file, but i don´t see nothing about Municipios, what i can see or search?. <br><br>I put that code inside one widget based on the widget QuickZoom.<br><br>The application doesn't send errors. And the copies of the layers work and show fine.<br><br>Could please give more tips, in that moment i need to leave classroom, i don´t have internet in my house.<br><br>Thanks <br><br>Alexys<br><div><p><br></p></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Mensaje original ----<br>De: Julien-Samuel Lacroix
<jlacroix@mapgears.com><br>Para: Alexys Herleym Rodriguez Avellaneda <alexys_6@yahoo.es><br>CC: chameleon <chameleon@lists.maptools.org><br>Enviado: jueves, 14 de febrero, 2008 16:21:45<br>Asunto: Re: [Chameleon] Change layer status<br><br>Hi,<br><br>Where
do
you
put
that
code?<br><br>If
you
change
a
layer
of
the
MapObject
it
should
display
correctly.
Did <br>you
checked
in
your
session
mapfile?<br><br>Julien<br><br>Alexys
Herleym
Rodriguez
Avellaneda
wrote:<br>>
Hi
Friends,<br>> <br>>
I
have
the
next
case.<br>> <br>>
I
use
this
code
for
a
current
layer
in
the
map:<br>> <br>>
$oMap
=
$this->moMapObject->oMap;<br>>
$oLayer
=
$oMap->getLayerByName("Municipios");<br>>
if
($oLayer->status
==
MS_OFF
||
$oLayer->status
==
MS_DEFAULT)<br>>
{$oLayer->set("status",
MS_ON);}<br>> <br>>
But
the
layer
Municipios
still
is
off
(th
layer
doen't
show).<br>> <br>>
By
other
side
i
do
a
copy
of
the
layer
Municipios
y
that
work
fine,
i <br>>
mean
the
new
layer
apper
and
is
on:<br>> <br>>
$oHighlight
=
ms_newLayerObj($oMap,
$oLayer);<br>>
$oHighlight->set("name",
$oLayer->"Municipios_copy");<br>>
$oHighlight->set("status",
MS_ON);<br>> <br>>
I
need
to
send
another
command
to
refresh
in
the
case
the
layer
already <br>>
exist?<br>> <br>> <br>>
Thanks<br>> <br>>
Alexys
H<br>> <br>> <br>>
------------------------------------------------------------------------<br>> <br>>
¿Con
Mascota
por
primera
vez?
-
Sé
un
mejor
Amigo<br>>
Entra
en
Yahoo!
Respuestas <br>>
<<a href="http://es.rd.yahoo.com/evt:51361/*http://es.answers.yahoo.com/dir/index;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=over&sid=XXXXXXXX" target="_blank">http://es.rd.yahoo.com/evt:51361/*http://es.answers.yahoo.com/dir/index;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=over&sid=XXXXXXXX</a>>.<br>> <br>> <br>>
------------------------------------------------------------------------<br>> <br>>
_______________________________________________<br>>
Chameleon
mailing
list<br>>
<a ymailto="mailto:Chameleon@lists.maptools.org" href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</a><br>>
<a href="http://lists.maptools.org/mailman/listinfo/chameleon" target="_blank">http://lists.maptools.org/mailman/listinfo/chameleon</a><br><br>-- <br>Julien-Samuel
Lacroix<br>Mapgears<br><a href="http://www.mapgears.com/" target="_blank">http://www.mapgears.com/</a><br></div><br></div></div><br>
<hr size=1><br><font face="Verdana" size="-2">¿Con Mascota por primera vez? - Sé un mejor Amigo<br><a href="http://es.rd.yahoo.com/evt:51361/*http://es.answers.yahoo.com/dir/index;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=over&sid=XXXXXXXX">Entra en Yahoo! Respuestas</a>.<br></font> </body></html>