EMS.Control.Copyright

Copyright indicator control.  Unless explicitly set through the fullsize option, this control will automatically change size depending on the size of the map.  If the map shrinks to a threshold point, the copyright will be displayed as small.  Likewise if the map grows beyond a particular threshold width, the copyright will be shown in the fullsize form.

Default example

var copyright = new EMS.Control.Copyright();

Fullsize only example

// Create a copyright control that will always be fullsized
var copyright = new EMS.Control.Copyright({fullsize: true});

Miniature only example

// Create a copyright control that will always be mini
var copyright = new EMS.Control.Copyright({fullsize: false});

Inherits from

Summary
EMS.Control.CopyrightCopyright indicator control.
Constants
FULLSIZE_THRESHOLD{Integer} the width in pixels that is used to decide, when in dynamic mode, whether or not to render the fullsize or miniature sized copyright control.
Properties
fullsize{Boolean} flag indicating whether to use a fullsized form of the copyright or not.
offset{OpenLayers.Pixel} is the default offset from the edge of the map.
position{Mixed} is either OpenLayers.Pixel or a EMS.Position .
Constructor
EMS.Control.CopyrightReturns a new copyright control.
Functions
destroyCleanly delete the resources used by this control.
destroy
draw.

Constants

FULLSIZE_THRESHOLD

{Integer} the width in pixels that is used to decide, when in dynamic mode, whether or not to render the fullsize or miniature sized copyright control.

Properties

fullsize

{Boolean} flag indicating whether to use a fullsized form of the copyright or not.  This will default to null, implying not set.  If this is the case, it will be dynamic in size.

offset

{OpenLayers.Pixel} is the default offset from the edge of the map.

position

{Mixed} is either OpenLayers.Pixel or a EMS.Position . By default this is set to be the bottom left.

Constructor

EMS.Control.Copyright

Returns a new copyright control.

Parameters

options: {Object} Options for control.

Functions

destroy

destroy: function()

Cleanly delete the resources used by this control.

destroy

destroy: function()

draw.

Parameters

px{Mixed} is either OpenLayers.Pixel or a EMS.Position

Returns

{DOMElement} div containing control.

This class represents a screen coordinate, in x and y coordinates
Enumeration of possible positions relative to the map.
destroy: function()
Cleanly delete the resources used by this control.
Extention to the OpenLayers.Control that translates relative positions from EMS.Position.
Close