OpenLayers. Popup

A popup is a small div that can opened and closed on the map.  Typically opened in response to clicking on a marker.  See OpenLayers.Marker.  Popup’s don’t require their own layer and are added the the map using the OpenLayers.Map.addPopup method.

Example

popup = new OpenLayers.Popup("chicken",
new OpenLayers.LonLat(5,40),
new OpenLayers.Size(200,200),
"example popup",
true);

map.addPopup(popup);
Summary
A popup is a small div that can opened and closed on the map.
Create a popup.

Constructor

OpenLayers. Popup

Create a popup.

Parameters

id{String} a unqiue identifier for this popup.  If null is passed an identifier will be automatically generated.
lonlat{OpenLayers.LonLat} The position on the map the popup will be shown.
size{OpenLayers.Size} The size of the popup.
contentHTML{String} The HTML content to display inside the popup.
closeBox{Boolean} Whether to display a close box inside the popup.
Instances of OpenLayers.Marker are a combination of a OpenLayers.LonLat and an OpenLayers.Icon.
addPopup: function(popup,
exclusive)
This class represents a longitude and latitude pair
Instances of this class represent a width/height pair