ALKMaps.Popup.AnchoredBubble

This class is deprecated.  Use {ALKMaps.Popup.Anchored} and round corners using CSS3’s border-radius property.

Inherits from

Summary
ALKMaps.Popup.AnchoredBubbleThis class is deprecated.
Properties
rounded{Boolean} Has the popup been rounded yet?
Constructor
ALKMaps.Popup.AnchoredBubble
Functions
draw
updateRelativePositionThe popup has been moved to a new relative location, in which case we will want to re-do the rico corners.
setSize
setBackgroundColor
setOpacity
setBorderAlways sets border to 0.
Constants
CORNER_SIZE{Integer} 5.

Properties

rounded

{Boolean} Has the popup been rounded yet?

Constructor

ALKMaps.Popup.AnchoredBubble

Parameters

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.

Functions

draw

draw: function(px)

Parameters

px{ALKMaps.Pixel}

Returns

{DOMElement} Reference to a div that contains the drawn popup.

updateRelativePosition

updateRelativePosition: function()

The popup has been moved to a new relative location, in which case we will want to re-do the rico corners.

setSize

setSize:function(contentSize)

Parameters

contentSize{ALKMaps.Size} the new size for the popup’s contents div (in pixels).

setBackgroundColor

setBackgroundColor:function(color)

Parameters

color{String}

setOpacity

setOpacity:function(opacity)

Parameters

opacity{float}

setBorder

setBorder:function(border)

Always sets border to 0.  Bubble Popups can not have a border.

Parameters

border{Integer}

Constants

CORNER_SIZE

{Integer} 5.  Border space for the RICO corners.

draw: function(px)
updateRelativePosition: function()
The popup has been moved to a new relative location, in which case we will want to re-do the rico corners.
setSize:function(contentSize)
setBackgroundColor:function(color)
setOpacity:function(opacity)
setBorder:function(border)
Always sets border to 0.
This class represents a longitude and latitude pair
Instances of this class represent a width/height pair
This class represents a screen coordinate, in x and y coordinates
The icon represents a graphical icon on the screen.
Close