From d7b1483089ac0a43b690d477d9d062dcbc0b698d Mon Sep 17 00:00:00 2001 From: crschmidt Date: Wed, 16 Aug 2006 18:44:28 +0000 Subject: [PATCH] Document OpenLayers.Icon. git-svn-id: http://svn.openlayers.org/trunk/openlayers@1252 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- doc/Icon.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 doc/Icon.txt diff --git a/doc/Icon.txt b/doc/Icon.txt new file mode 100644 index 0000000000..66b54ae8bb --- /dev/null +++ b/doc/Icon.txt @@ -0,0 +1,9 @@ +OpenLayers.Icon + +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. + +* Constructor + OpenLayers.Icon({String|url}, {OpenLayers.Size|size}, {OpenLayers.Pixel|offset}) -- creates a new icon. + +* Methods + clone() -- {OpenLayers.Icon} -- Create an exact copy of the icon.