diff --git a/lib/OpenLayers/Control/LayerSwitcher.js b/lib/OpenLayers/Control/LayerSwitcher.js index de17c88a10..668f5c349b 100644 --- a/lib/OpenLayers/Control/LayerSwitcher.js +++ b/lib/OpenLayers/Control/LayerSwitcher.js @@ -6,7 +6,6 @@ /** * @requires OpenLayers/Control.js * @requires OpenLayers/Lang.js - * @requires OpenLayers/Console.js * @requires OpenLayers/Util.js * @requires OpenLayers/Events/buttonclick.js */ @@ -24,30 +23,11 @@ * Inherits from: * - */ -OpenLayers.Control.LayerSwitcher = - OpenLayers.Class(OpenLayers.Control, { +OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, { - /** - * APIProperty: roundedCorner - * {Boolean} If true the Rico library is used for rounding the corners - * of the layer switcher div, defaults to false. *Deprecated*. Use - * CSS3's border-radius instead. If this option is set to true the - * Rico/Corner.js script must be loaded in the page, and therefore - * listed in the build profile. - * - */ - roundedCorner: false, - - /** - * APIProperty: roundedCornerColor - * {String} The color of the rounded corners, only applies if roundedCorner - * is true, defaults to "darkblue". - */ - roundedCornerColor: "darkblue", - - /** - * Property: layerStates - * {Array(Object)} Basically a copy of the "state" of the map's layers + /** + * Property: layerStates + * {Array(Object)} Basically a copy of the "state" of the map's layers * the last time the control was drawn. We have this in order to avoid * unnecessarily redrawing the control. */ @@ -120,10 +100,6 @@ OpenLayers.Control.LayerSwitcher = initialize: function(options) { OpenLayers.Control.prototype.initialize.apply(this, arguments); this.layerStates = []; - - if(this.roundedCorner) { - OpenLayers.Console.warn('roundedCorner option is deprecated'); - } }, /** @@ -514,16 +490,6 @@ OpenLayers.Control.LayerSwitcher = this.div.appendChild(this.layersDiv); - if(this.roundedCorner) { - OpenLayers.Rico.Corner.round(this.div, { - corners: "tl bl", - bgColor: "transparent", - color: this.roundedCornerColor, - blend: false - }); - OpenLayers.Rico.Corner.changeOpacity(this.layersDiv, 0.75); - } - // maximize button div var img = OpenLayers.Util.getImageLocation('layer-switcher-maximize.png'); this.maximizeDiv = OpenLayers.Util.createAlphaImageDiv( diff --git a/notes/2.13.md b/notes/2.13.md index 6f5ee7ac86..0ee661a642 100644 --- a/notes/2.13.md +++ b/notes/2.13.md @@ -144,3 +144,9 @@ file in your build (or add it in a separate `