new Popup(id, lonlat, contentSize, contentHTML, anchor, closeBox, closeBoxCallback)
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:
- BKGWebMap/Popup.js, line 5
Members
-
<static> displayClass :string
-
Die CSS Klasse für das Popup
- Source:
- BKGWebMap/Popup.js, line 34
-
<static> margin :int
-
Abstand zum Marker-Icon
- Source:
- BKGWebMap/Popup.js, line 47
-
<static> panMapIfOutOfView :boolean
-
- Source:
- BKGWebMap/Popup.js, line 40
Methods
-
<static> calculateNewPx(px) → {OpenLayers.Pixel}
-
Parameters:
Name Type Description px
OpenLayers.Pixel - Source:
- BKGWebMap/Popup.js, line 78
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:
- BKGWebMap/Popup.js, line 103