OpenSpace.Icon

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

Inherits

Summary
A class to extend OpenLayers.Icon to hold extra information on the offset of the infoWindow.
{OpenLayers.Pixel} The offset from the top left of the icon that the anchor of the info window appears from.
Creates an icon, which is an image tag in a div.
{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.

This class represents a screen coordinate, in x and y coordinates
clone: function()
{OpenSpace.Icon} A fresh copy of the icon.
Creates an icon, which is an image tag in a div.
The icon represents a graphical icon on the screen.
Instances of this class represent a width/height pair