CLASS_NAME: "OpenLayers.Layer.OSM.Maplint"
});
+
+OpenLayers.Layer.Data = OpenLayers.Class(OpenLayers.Layer, {
+ setVisibility: function(vis) {
+ var oldvis = this.visibility;
+ OpenLayers.Layer.prototype.setVisibility.apply(this, arguments);
+ if (!this.map) { return; }
+ if (vis && !oldvis) {
+ new Ajax.Request('/browse/start', {asynchronous:true, evalScripts:true});
+ } else {
+ if (this.stopBrowse) {
+ this.stopBrowse();
+ closeSidebar();
+ }
+ }
+ }
+});