metacat/lib/spatial/openlayers/doc/Icon.txt @ 5037
1 |
OpenLayers.Icon |
---|---|
2 |
|
3 |
Icon is used as the visual representation of a Marker. Creating such a representation requres up to three parts: An Icon URL, a size, and an offset. The icon URL is a pointer to an image to use as an icon. The size is the size of the image, as an {OpenLayers.Size} object, and the offset is the position of the top left corner of the image in pixels, relative to the latitude and longitude of the Marker. |
4 |
|
5 |
* Constructor |
6 |
OpenLayers.Icon({String|url}, {OpenLayers.Size|size}, {OpenLayers.Pixel|offset}) -- creates a new icon. |
7 |
|
8 |
* Methods |
9 |
clone() -- {OpenLayers.Icon} -- Create an exact copy of the icon. |