[Users] Active layer on top
Alexandre Dubé
adube at mapgears.com
Tue Aug 7 14:16:02 CEST 2012
Hi Jacinto,
The following example shows how to listen to the event triggered when
a layer is selected using the radio button. You can start from there.
http://api.geoext.org/1.1/examples/tree.html
HTH,
Alexandre
On 12-08-07 02:31 AM, Jacinto Estima wrote:
>
> Just to complement my previous email.
>
> My idea is to build a function that reorder the layers and for that I
> already have something in mind. My problem is how to call that
> function every time the users sets the active layer through the radio
> button.
>
> Thanks again
>
> *From:*Jacinto Estima [mailto:jacinto.estima at gmail.com]
> *Sent:* Tuesday, August 07, 2012 10:28 AM
> *To:* 'Alexandre Dubé'; 'users at geoext.org'
> *Subject:* RE: [Users] Active layer on top
>
> Thanks Alexandre. I think this is what I was looking for.
>
> I have now to figure out how to put this working. I have several
> raster layers and a lot of users are expected to access them so I
> cannot go with the "highest layer number + 1" . I have to find a way
> to reorganize the order every time the user sets the active layer
> through the radio button (I have radio buttons in the tree nodes to
> set the active layer). Do you have any suggestion?
>
> Regards,
>
> Jacinto
>
> *From:*users-bounces at geoext.org <mailto:users-bounces at geoext.org>
> [mailto:users-bounces at geoext.org]
> <mailto:[mailto:users-bounces at geoext.org]> *On Behalf Of *Alexandre Dubé
> *Sent:* Monday, August 06, 2012 4:33 PM
> *To:* users at geoext.org <mailto:users at geoext.org>
> *Subject:* Re: [Users] Active layer on top
>
> Hi Jacinto,
>
> The OpenLayers.Map.setLayerIndex may be what you're looking for :
> http://dev.openlayers.org/releases/OpenLayers-2.12/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.setLayerIndex
>
> HTH,
>
> Alexandre
>
>
> On 12-08-06 07:41 AM, Jacinto Estima wrote:
>
> Hi all,
>
> I have an Issue to solve as follows: I have several layers on my
> application. These layers are organized in subfolders with async
> tree nodes. I need to find a way to put the active layer on top of
> all of the other layers without moving it.
>
> I was wondering if someone already did that or have the same issue
> to solve.
>
> Thanks for your help.
>
> Regards,
>
> Jacinto
>
>
>
> _______________________________________________
>
> Users mailing list
>
> Users at geoext.org <mailto:Users at geoext.org>
>
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
>
>
> --
> Alexandre Dubé
> Mapgears
> www.mapgears.com <http://www.mapgears.com>
--
Alexandre Dubé
Mapgears
www.mapgears.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20120807/7438d810/attachment.htm
More information about the Users
mailing list