Class: Popup

BKGWebMap. Popup

Klasse für Popups, die auf einer Karte angezeigt werden können.
Parameters:
Name Type Description
id string
lonlat OpenLayers.LonLat
contentSize OpenLayers.Size
contentHTML string
anchor Object Objekt mit Eigenschaften 'size' (OpenLayers.Size) und 'offset' (OpenLayers.Pixel) (z.B. OpenLayers.Icon).
closeBox boolean
closeBoxCallback Function Function to be called on closeBox click.
Source:

Members

<static> displayClass :string

Die CSS Klasse für das Popup
Source:

<static> margin :int

Abstand zum Marker-Icon
Source:

<static> panMapIfOutOfView :boolean

Source:

Methods

<static> calculateNewPx(px) → {OpenLayers.Pixel}

Parameters:
Name Type Description
px OpenLayers.Pixel
Source:
Returns:
The the new px position of the popup on the screen relative to the passed-in px.
Type
OpenLayers.Pixel

<static> updateRelativePosition()

Method: updateRelativePosition The popup has been moved to a new relative location, so we may want to make some cosmetic adjustments to it. Note that in the classic Anchored popup, there is nothing to do here, since the popup looks exactly the same in all four positions. Subclasses such as Framed, however, will want to do something special here.
Source: