|
Re: Custom action on activating/deactivating layers [message #1723761 is a reply to message #1723634] |
Wed, 17 February 2016 17:02 |
|
Hello Nikolay,
I think you should be able to achieve this by adding a
ModelChangeTrigger (added to the session event broker), reacting only on
notification about layer activation. In this ModelChangeTrigger you
should then check if the activated layer is one of these "conflicting"
layer and in this case deactivate the other layer.
Regards,
Steve
Le 16/02/2016 23:09, Nikolay Manolov a écrit :
> I have layers that should not be used together, meaning the displayed
> information would be confusing. The intended use is to have either one
> or the other. By default this would require that the user navigates the
> layer drop-down menu twice; once to enable one and again to disable the
> other layer. Is it possible to execute some code when a layer is
> activated (namely, to deactivate the other layer) so the user only need
> to click once ? Perhaps some kind of listener?
>
> Regards,
> Nik
--
Steve Monnier - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.03069 seconds