EMS.Control.OverviewMap

Displays a small overview map showing a zoomed out view of the current main map.  This is always displayed in the lower right hand corner regardless of positioning requests.

Inherits from

Summary
EMS.Control.OverviewMapDisplays a small overview map showing a zoomed out view of the current main map.
Constants
EVENT_TYPES{Array} of event types handled by the overview map.
Properties
closeable{Boolean} flag indicating that the control can be opened and closed.
position{EMS.Position} is the relative position that the control will render.
handleOpacity{Float} is the amount of opacity given to the handle viewport.
ratio{Integer} The ratio of size of the overview map compared with to the original map.
Constructor
EMS.Control.OverviewMap
Functions
destroyDestroys the control.
drawConstructs contents of the control.
showShows the overview map, expanding it out.
hideHides the overview map, making it contract to the edge of the map.
toggleEither show or hide the overview map depending on it’s current state.

Constants

EVENT_TYPES

{Array} of event types handled by the overview map.

Properties

closeable

{Boolean} flag indicating that the control can be opened and closed.  If true, the control will have a small open and close tab.

position

{EMS.Position} is the relative position that the control will render.  While this is exposed, currently this will only ever handle bottom right.

handleOpacity

{Float} is the amount of opacity given to the handle viewport.

ratio

{Integer} The ratio of size of the overview map compared with to the original map.  The higher the value, the more zoomed out the overview map will be relative to the map.

Constructor

EMS.Control.OverviewMap

Parameters

options{Object} options to set on the overview map.  These are an extension of EMS.Map options.

Functions

destroy

destroy: function()

Destroys the control.

draw

draw: function(px)

Constructs contents of the control.

Returns

{DOMElement} A reference to a div that represents this control.

show

show: function()

Shows the overview map, expanding it out.

hide

hide: function()

Hides the overview map, making it contract to the edge of the map.

toggle

toggle: function()

Either show or hide the overview map depending on it’s current state.  It will hide it if already shown or show it if hidden.

destroy: function()
Destroys the control.
draw: function(px)
Constructs contents of the control.
show: function()
Shows the overview map, expanding it out.
hide: function()
Hides the overview map, making it contract to the edge of the map.
toggle: function()
Either show or hide the overview map depending on it’s current state.
Extention to the OpenLayers.Control that translates relative positions from EMS.Position.
This defines the standard WhereIs map.
Close