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) {
+ if (vis && !oldvis) {
new Ajax.Request('/browse/start', {asynchronous:true, evalScripts:true});
} else {
if (this.stopBrowse) {