OpenLayers. Popup. Framed | |
Properties | |
isAlphaImage | {Boolean} The image has some alpha and thus needs to use the alpha image hack. |
fixedRelativePosition | {Boolean} We want the framed popup to work dynamically placed relative to its anchor but also in just one fixed position. |
Constructor | |
OpenLayers. Popup. Framed | |
Functions | |
destroy | |
setBackgroundColor | |
setBorder | |
setSize | Overridden here, because we need to update the blocks whenever the size of the popup has changed. |
{Boolean} We want the framed popup to work dynamically placed relative to its anchor but also in just one fixed position. A well designed framed popup will have the pixels and logic to display itself in any of the four relative positions, but (understandably), this will not be the case for all of them. By setting this property to ‘true’, framed popup will not recalculate for the best placement each time it’s open, but will always open the same way. Note that if this is set to true, it is generally advisable to also set the ‘panIntoView’ property to true so that the popup can be scrolled into view (since it will often be offscreen on open) Default is false.
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. |
setSize:function( contentSize )
Overridden here, because we need to update the blocks whenever the size of the popup has changed.
contentSize | {OpenLayers.Size} the new size for the popup’s contents div (in pixels). |
destroy: function()
setBackgroundColor:function( color )
setBorder:function()
Overridden here, because we need to update the blocks whenever the size of the popup has changed.
setSize:function( contentSize )