This class is deprecated. Use {ALKMaps.Popup.Anchored} and round corners using CSS3’s border-radius property.
| ALKMaps. | This class is deprecated. |
| Properties | |
| rounded | {Boolean} Has the popup been rounded yet? |
| Constructor | |
| ALKMaps. | |
| 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. |
| Constants | |
| CORNER_SIZE | {Integer} 5. |
| id | {String} |
| lonlat | {ALKMaps.LonLat} |
| contentSize | {ALKMaps.Size} |
| contentHTML | {String} |
| anchor | {Object} Object to which we’ll anchor the popup. Must expose a ‘size’ (ALKMaps.Size) and ‘offset’ (ALKMaps.Pixel) (Note that this is generally an ALKMaps.Icon). |
| closeBox | {Boolean} |
| closeBoxCallback | {Function} Function to be called on closeBox click. |
draw: function( px )
| px | {ALKMaps.Pixel} |
{DOMElement} Reference to a div that contains the drawn popup.
setSize:function( contentSize )
| contentSize | {ALKMaps.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 )