OpenSpace.Icon

A class to extend OpenLayers.Icon to hold extra information on the offset of the infoWindow.

Inherits

  • <OpenLayers.Icon>
Summary
OpenSpace.IconA 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.IconCreates an icon, which is an image tag in a div.
Functions
clone{OpenSpace.Icon} A fresh copy of the icon.

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.

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

Functions

clone

clone: function()

Returns

{OpenSpace.Icon} A fresh copy of the icon.

clone: function()
{OpenSpace.Icon} A fresh copy of the icon.
Creates an icon, which is an image tag in a div.
Close