A simple north arrow from an image. This can be used stand alone or used within another control.
var arrow = new EMS.Control.NorthArrow();
// Set a custom image, size and ALT text
var arrow = new EMS.Control.NorthArrow({
image: "north.png",
size: new OpenLayers.Size(26, 26),
alt: "This be north, this way, follow me, I know where I am going"
})| EMS. | A simple north arrow from an image. |
| Properties | |
| size | {OpenLayers.Size} size in pixels, of the control itself. |
| position | {Mixed} is either OpenLayers.Pixel or a EMS.Position. |
| image | {String} is the image path. |
| alt | {String} The alternative text used for the image. |
| Constructor | |
| EMS. | |
| Functions | |
| draw |
{OpenLayers.Size} size in pixels, of the control itself.
{Mixed} is either OpenLayers.Pixel or a EMS.Position. Defaults to top left.
| options | {Object} are the options to control. Apart from the OpenLayers.Control options, this controls adds: size, image and alt. |
draw: function( px )
| px | {OpenLayers.Pixel} is the optional top left corner to start drawing from. Can be null. |
{DOMElement} the overall wrapping div, ready to be inserted.
draw: function( px )