<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"><DIV></DIV>
<DIV>Hi Julien, thanks for yor help.</DIV>
<DIV> </DIV>
<DIV>I saw the last session mapfile, and layer Municipios is OFF, but i can see the copy Municipios_copy ON, and i create another layers based on Municipios and they show ok (on). I am writing that code inside paserulr() function of my own widget based on widget quickquery.</DIV>
<DIV> </DIV>
<DIV>I thing that the layer change status temporary, but finally (when all code inside the widget has been send) it detect the Muninicipio´s checbox unselected and doesn´t show it. I can be posible. There are some way to change the legend layer checbox from code inside a widget?</DIV>
<DIV> </DIV>
<DIV>I need to refresh or do something persist, do you have more tips?</DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV> </DIV>
<DIV>Alexys H<BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- 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: viernes, 15 de febrero, 2008 9:53:21<BR>Asunto: Re: [Chameleon] Change layer status<BR><BR>Hi,<BR><BR>In the session folder (\ms4w\tmp\sess_...) there should also be a bunch <BR>of temporary mapfile. The files are called somoething like: <BR>1203000252-7345.map<BR><BR>The biggest number is probably the more recent one. You can review this <BR>file to see if your changes have been applied. I suggest you to go in <BR>there and check the status of the Municipos layer.<BR><BR>Julien<BR><BR><BR>Alexys Herleym Rodriguez Avellaneda wrote:<BR>> Hi, i don't know about session mapfile, i am reading something. In the <BR>> folder \ms4w\tmp\sess_47b4dcb872717
i read this file: session_file, but <BR>> 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 <BR>> and show fine.<BR>> <BR>> Could please give more tips, in that moment i need to leave classroom, i <BR>> don´t have internet in my house.<BR>> <BR>> Thanks<BR>> <BR>> Alexys<BR>> <BR>> <BR>> <BR>> <BR>> ----- Mensaje original ----<BR>> De: Julien-Samuel Lacroix <<A href="mailto:jlacroix@mapgears.com" ymailto="mailto:jlacroix@mapgears.com">jlacroix@mapgears.com</A>><BR>> Para: Alexys Herleym Rodriguez Avellaneda <<A href="mailto:alexys_6@yahoo.es" ymailto="mailto:alexys_6@yahoo.es">alexys_6@yahoo.es</A>><BR>> CC: chameleon <<A href="mailto:chameleon@lists.maptools.org"
ymailto="mailto:chameleon@lists.maptools.org">chameleon@lists.maptools.org</A>><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>> > <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>> <<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 href="mailto:Chameleon@lists.maptools.org" ymailto="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A> <mailto:<A href="mailto:Chameleon@lists.maptools.org" ymailto="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>> <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>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>