[OpenLayers-Trac] [OpenLayers] #3641: Register events on layerswitcher

OpenLayers trac-20090302 at openlayers.org
Wed Apr 4 05:27:06 EDT 2012


#3641: Register events on layerswitcher
--------------------------+-------------------------------------------------
 Reporter:  joeysantiago  |       Owner:     
     Type:  feature       |      Status:  new
 Priority:  minor         |   Milestone:     
Component:  general       |     Version:  2.9
 Keywords:                |       State:     
--------------------------+-------------------------------------------------
 Hello,

 i'd like to style my layerswitcher (positioned outside of the map) so that
 the unchecked layers and overlays are displayed in 50% opacity. Since by
 default the openlayers js doesn't provide any class switching or so, i
 would have used jquery to register a listener on $(".dataLayersDiv
 input").change(), but i found no way to do this, since $(document).ready()
 is too soon to do this.

 so... how can i register an event such this?

 thanks

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3641>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list