deprecate AnchoredBubble

This commit is contained in:
Éric Lemoine
2011-12-09 00:02:44 +01:00
parent 5fda8835da
commit 519335026f
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -162,8 +162,8 @@ OpenLayers.Popup.Anchored =
* *
* Note that in the classic Anchored popup, there is nothing to do * Note that in the classic Anchored popup, there is nothing to do
* here, since the popup looks exactly the same in all four positions. * here, since the popup looks exactly the same in all four positions.
* Subclasses such as the AnchoredBubble and Framed, however, will * Subclasses such as Framed, however, will want to do something
* want to do something special here. * special here.
*/ */
updateRelativePosition: function() { updateRelativePosition: function() {
//to be overridden by subclasses //to be overridden by subclasses
+5
View File
@@ -6,11 +6,14 @@
/** /**
* @requires OpenLayers/Popup/Anchored.js * @requires OpenLayers/Popup/Anchored.js
* @requires OpenLayers/Console.js
* @requires Rico/Corner.js * @requires Rico/Corner.js
*/ */
/** /**
* Class: OpenLayers.Popup.AnchoredBubble * Class: OpenLayers.Popup.AnchoredBubble
* This class is *deprecated*. Use {<OpenLayers.Popup.Anchored>} and
* round corners using CSS3's border-radius property.
* *
* Inherits from: * Inherits from:
* - <OpenLayers.Popup.Anchored> * - <OpenLayers.Popup.Anchored>
@@ -41,6 +44,8 @@ OpenLayers.Popup.AnchoredBubble =
initialize:function(id, lonlat, contentSize, contentHTML, anchor, closeBox, initialize:function(id, lonlat, contentSize, contentHTML, anchor, closeBox,
closeBoxCallback) { closeBoxCallback) {
OpenLayers.Console.warn('AnchoredBubble is deprecated');
this.padding = new OpenLayers.Bounds( this.padding = new OpenLayers.Bounds(
0, OpenLayers.Popup.AnchoredBubble.CORNER_SIZE, 0, OpenLayers.Popup.AnchoredBubble.CORNER_SIZE,
0, OpenLayers.Popup.AnchoredBubble.CORNER_SIZE 0, OpenLayers.Popup.AnchoredBubble.CORNER_SIZE