- _onLayerChange: function(evt, data) {
- var layer;
- //since we don't know which layer we get we've to loop through
- //the openlayers.layer.ids to find the correct one
- $.each(evt.data.map.layers(), function(){
- if(this.olLayer.id == data.layer.id) {layer=this;}
- });
- //(name, order, opacity, params, visibility or attribution)
- switch(data.property) {