ALKMaps.Control.MousePosition

The MousePosition control displays geographic coordinates of the mouse pointer, as it is moved about the map.

Inherits from

Summary
ALKMaps.Control.MousePositionThe MousePosition control displays geographic coordinates of the mouse pointer, as it is moved about the map.
Properties
autoActivate{Boolean} Activate the control when it is added to a map.
element{DOMElement}
prefix{String}
separator{String}
suffix{String}
numDigits{Integer}
granularity{Integer}
emptyString{String} Set this to some value to set when the mouse is outside the map.
lastXy{ALKMaps.Pixel}
displayProjection{ALKMaps.Projection} The projection in which the mouse position is displayed
Constructor
ALKMaps.Control.MousePosition
Functions
destroy
activate
deactivate
draw{DOMElement}
redraw
reset
formatOutputOverride to provide custom display output

Properties

autoActivate

{Boolean} Activate the control when it is added to a map.  Default is true.

element

{DOMElement}

prefix

{String}

separator

{String}

suffix

{String}

numDigits

{Integer}

granularity

{Integer}

emptyString

{String} Set this to some value to set when the mouse is outside the map.

displayProjection

{ALKMaps.Projection} The projection in which the mouse position is displayed

Constructor

ALKMaps.Control.MousePosition

Parameters

options{Object} Options for control.

Functions

destroy

destroy: function()

activate

activate: function()

deactivate

deactivate: function()

draw

draw: function()

{DOMElement}

redraw

redraw: function(evt)

reset

reset: function(evt)

formatOutput

formatOutput: function(lonLat)

Override to provide custom display output

Parameters

lonLat{ALKMaps.LonLat} Location to display
This class represents a screen coordinate, in x and y coordinates
Methods for coordinate transforms between coordinate systems.
destroy: function()
activate: function()
deactivate: function()
draw: function()
{DOMElement}
redraw: function(evt)
reset: function(evt)
formatOutput: function(lonLat)
Override to provide custom display output
Controls affect the display or behavior of the map.
This class represents a longitude and latitude pair
Close