A class to extend OpenLayers.Icon to hold extra information on the offset of the infoWindow.
| OpenSpace.Icon | A class to extend OpenLayers.Icon to hold extra information on the offset of the infoWindow. |
| Properties | |
| infoWindowAnchor | {<OpenLayers.Pixel>} The offset from the top left of the icon that the anchor of the info window appears from. |
| Constructor | |
| OpenSpace.Icon | Creates an icon, which is an image tag in a div. |
| Functions | |
| clone | {OpenSpace.Icon} A fresh copy of the icon. |
Creates an icon, which is an image tag in a div.
| url | {String} URL of the icon’s image |
| size | {<OpenLayers.Size>} Size to display the image |
| offset | {<OpenLayers.Pixel>} distance in pixels to offset the image when being rendered |
| calculateOffset | {Function} Function to calculate the offset (based on the size) |
| infoWindowAnchor | {<OpenLayers.Pixel>} The offset from the top left of the icon that the anchor |
{OpenSpace.Icon} A fresh copy of the icon.
clone: function()