X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e6de9accd215774a104497a7390943c9fa890a8b..75f160aeb4983e679656d323c27766495953ba1f:/public/openlayers/OpenStreetMap.js diff --git a/public/openlayers/OpenStreetMap.js b/public/openlayers/OpenStreetMap.js index 244930866..d6bc397d1 100644 --- a/public/openlayers/OpenStreetMap.js +++ b/public/openlayers/OpenStreetMap.js @@ -182,18 +182,3 @@ OpenLayers.Layer.OSM.Maplint = OpenLayers.Class(OpenLayers.Layer.OSM, { CLASS_NAME: "OpenLayers.Layer.OSM.Maplint" }); - -OpenLayers.Layer.Data = OpenLayers.Class(OpenLayers.Layer, { - setVisibility: function(vis) { - OpenLayers.Layer.prototype.setVisibility.apply(this, arguments); - if (!this.map) { return; } - if (vis) { - new Ajax.Request('/browse/start', {asynchronous:true, evalScripts:true}); - } else { - if (this.stopBrowse) { - this.stopBrowse(); - closeSidebar(); - } - } - } -});