Class Index | File Index

Classes


Class khtml.maplib.overlay.MarkerImage


Defined in: Marker.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
khtml.maplib.overlay.MarkerImage(url, size, origin, anchor, scaledSize)
generates a MarkerImage-object
used for custom-markers ans shadow
Class Detail
khtml.maplib.overlay.MarkerImage(url, size, origin, anchor, scaledSize)
generates a MarkerImage-object
used for custom-markers ans shadow
 

 var image = new khtml.maplib.overlay.MarkerImage(
	  'img/image.png',		// url
	  {width: 20, height: 20},	// size
	  {x: 0, y: 0},			// origin
	  {x: 10, y: 20}		// anchorPoint
 );
 
Parameters:
{string or Object} url
url to an image or DOM-object
{Object} size
size of the marker, contains two numbers: width and height in pixels
{Object} origin
origin in an ImageSprite, contains two numbers: x and y in pixels
{Object} anchor
anchorPoint of the marker, contains two numbers: x and y in pixels
{Object} scaledSize
not used yet, only for compatibility to Google Markers

Documentation generated by JsDoc Toolkit 2.4.0 on Sun Oct 09 2011 20:46:56 GMT+0200 (MESZ)