OpenLayers.Icon

The icon represents a graphical icon on the screen.  Typically used in conjunction with a OpenLayers.Marker to represent markers on a screen.

An icon has a url, size and position.  It also contains an offset which allows the center point to be represented correctly.  This can be provided either as a fixed offset or a function provided to calculate the desired offset.

Summary
OpenLayers.IconThe icon represents a graphical icon on the screen.
Constructor
OpenLayers.IconCreates an icon, which is an image tag in a div.
Functions
isDrawn{Boolean} Whether or not the icon is drawn.

Constructor

OpenLayers.Icon

Creates an icon, which is an image tag in a div.

url{String}
size{OpenLayers.Size}
offset{OpenLayers.Pixel}
calculateOffset{Function}

Functions

isDrawn

isDrawn: function()

Returns

{Boolean} Whether or not the icon is drawn.

isDrawn: function()
{Boolean} Whether or not the icon is drawn.
Instances of OpenLayers.Marker are a combination of a OpenLayers.LonLat and an OpenLayers.Icon.
Instances of this class represent a width/height pair
This class represents a screen coordinate, in x and y coordinates
Close