This class is deprecated. Use {OpenLayers.Popup.Anchored} and round corners using CSS3’s border-radius property.
OpenLayers. | This class is deprecated. |
Properties | |
rounded | {Boolean} Has the popup been rounded yet? |
Constructor | |
OpenLayers. | |
Functions | |
draw | |
updateRelativePosition | The popup has been moved to a new relative location, in which case we will want to re-do the rico corners. |
setSize | |
setBackgroundColor | |
setOpacity | |
setBorder | Always sets border to 0. |
setRicoCorners | Update RICO corners according to the popup’s current relative postion. |
getCornersToRound | {String} The proper corners string (“tr tl bl br”) for rico to round. |
Constants | |
CORNER_SIZE | {Integer} 5. |
id | {String} |
lonlat | {OpenLayers.LonLat} |
contentSize | {OpenLayers.Size} |
contentHTML | {String} |
anchor | {Object} Object to which we’ll anchor the popup. Must expose a ‘size’ (OpenLayers.Size) and ‘offset’ (OpenLayers.Pixel) (Note that this is generally an OpenLayers.Icon). |
closeBox | {Boolean} |
closeBoxCallback | {Function} Function to be called on closeBox click. |
draw: function( px )
px | {OpenLayers.Pixel} |
{DOMElement} Reference to a div that contains the drawn popup.
setSize:function( contentSize )
contentSize | {OpenLayers.Size} the new size for the popup’s contents div (in pixels). |
draw: function( px )
The popup has been moved to a new relative location, in which case we will want to re-do the rico corners.
updateRelativePosition: function()
setSize:function( contentSize )
setBackgroundColor:function( color )
setOpacity:function( opacity )
Always sets border to 0.
setBorder:function( border )
Update RICO corners according to the popup’s current relative postion.
setRicoCorners:function()
{String} The proper corners string (“tr tl bl br”) for rico to round.
getCornersToRound:function()