[Chameleon] Change layer status
Alexys Herleym Rodriguez Avellaneda
alexys_6 at yahoo.es
Mon Feb 18 17:18:11 EST 2008
Hi Julien, thanks for yor help.
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.
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?
I need to refresh or do something persist, do you have more tips?
Thanks
Alexys H
----- Mensaje original ----
De: Julien-Samuel Lacroix <jlacroix at mapgears.com>
Para: Alexys Herleym Rodriguez Avellaneda <alexys_6 at yahoo.es>
CC: chameleon <chameleon at lists.maptools.org>
Enviado: viernes, 15 de febrero, 2008 9:53:21
Asunto: Re: [Chameleon] Change layer status
Hi,
In the session folder (\ms4w\tmp\sess_...) there should also be a bunch
of temporary mapfile. The files are called somoething like:
1203000252-7345.map
The biggest number is probably the more recent one. You can review this
file to see if your changes have been applied. I suggest you to go in
there and check the status of the Municipos layer.
Julien
Alexys Herleym Rodriguez Avellaneda wrote:
> 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?.
>
> I put that code inside one widget based on the widget QuickZoom.
>
> The application doesn't send errors. And the copies of the layers work
> and show fine.
>
> Could please give more tips, in that moment i need to leave classroom, i
> don´t have internet in my house.
>
> Thanks
>
> Alexys
>
>
>
>
> ----- Mensaje original ----
> De: Julien-Samuel Lacroix <jlacroix at mapgears.com>
> Para: Alexys Herleym Rodriguez Avellaneda <alexys_6 at yahoo.es>
> CC: chameleon <chameleon at lists.maptools.org>
> Enviado: jueves, 14 de febrero, 2008 16:21:45
> Asunto: Re: [Chameleon] Change layer status
>
> Hi,
>
> Where do you put that code?
>
> If you change a layer of the MapObject it should display correctly. Did
> you checked in your session mapfile?
>
> Julien
>
> Alexys Herleym Rodriguez Avellaneda wrote:
> > Hi Friends,
> >
> > I have the next case.
> >
> > I use this code for a current layer in the map:
> >
> > $oMap = $this->moMapObject->oMap;
> > $oLayer = $oMap->getLayerByName("Municipios");
> > if ($oLayer->status == MS_OFF || $oLayer->status == MS_DEFAULT)
> > {$oLayer->set("status", MS_ON);}
> >
> > But the layer Municipios still is off (th layer doen't show).
> >
> > By other side i do a copy of the layer Municipios y that work fine, i
> > mean the new layer apper and is on:
> >
> > $oHighlight = ms_newLayerObj($oMap, $oLayer);
> > $oHighlight->set("name", $oLayer->"Municipios_copy");
> > $oHighlight->set("status", MS_ON);
> >
> > I need to send another command to refresh in the case the layer already
> > exist?
> >
> >
> > Thanks
> >
> > Alexys H
> >
> >
> > ------------------------------------------------------------------------
> >
> > ¿Con Mascota por primera vez? - Sé un mejor Amigo
> > Entra en Yahoo! Respuestas
> >
> <http://es.rd.yahoo.com/evt:51361/*http://es.answers.yahoo.com/dir/index;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=over&sid=XXXXXXXX
> <http://es.rd.yahoo.com/evt:51361/*http://es.answers.yahoo.com/dir/index;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=over&sid=XXXXXXXX>>.
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Chameleon mailing list
> > Chameleon at lists.maptools.org <mailto:Chameleon at lists.maptools.org>
> > http://lists.maptools.org/mailman/listinfo/chameleon
>
> --
> Julien-Samuel Lacroix
> Mapgears
> http://www.mapgears.com/
>
>
> ------------------------------------------------------------------------
>
> ¿Con Mascota por primera vez? - Sé un mejor Amigo
> Entra en Yahoo! Respuestas
> <http://es.rd.yahoo.com/evt:51361/*http://es.answers.yahoo.com/dir/index;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=over&sid=XXXXXXXX>.
--
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/
______________________________________________
¿Con Mascota por primera vez? Sé un mejor Amigo. Entra en Yahoo! Respuestas http://es.answers.yahoo.com/info/welcome
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20080218/b7e1b5fc/attachment.html
More information about the Chameleon
mailing list