This class sets up a popup info window containing user supplied HTML content. The info window is created with the default OpenSpace styling.
| OpenSpace. | This class sets up a popup info window containing user supplied HTML content. |
| Constructor | |
| OpenSpace. | Constructor for a new OpenSpace.InfoWindow instance. |
| Functions | |
| setSize | Sets the popup window’s size. |
| setPosition | Sets a new position for this popup. |
| setAnchor | Sets a new anchor position for this popup. |
| calculateNewPx |
Constructor for a new OpenSpace.InfoWindow instance.
| id | {String} Id of an element in your page that will contain the map. |
| lonlat | {Object} Optional object with properties to tag onto the map. |
| size | {<OpenLayers.Size>} Size of the window |
| contentHTML | {String} Content to draw in the window |
| anchor | {<OpenLayers.Pixel>} |
| closeBox | {Boolean} Whether to draw a close box |
setAnchor: function( anchor )
Sets a new anchor position for this popup.
| anchor | {OpenSpace.Icon} Takes a size, offset and infoWindowAnchor from a OpenSpace.Icon object. |
Sets the popup window’s size.
setSize: function( size )
Sets a new position for this popup.
setPosition: function( lonlat )
Sets a new anchor position for this popup.
setAnchor: function( anchor )
calculateNewPx: function( px )