OpenLayers.Control.Permalink

The Permalink control is hyperlink that will return the user to the current map view.  By default it is drawn in the lower right corner of the map.  The href is updated as the map is zoomed, panned and whilst layers are switched.  ` Inherits from:

Summary
OpenLayers.Control.PermalinkThe Permalink control is hyperlink that will return the user to the current map view.
Properties
argParserClass{Class} The ArgParser control class (not instance) to use with this control.
base{String}
displayProjection{OpenLayers.Projection} Requires proj4js support.
Constructor
OpenLayers.Control.Permalink
Functions
destroy
createParamsCreates the parameters that need to be encoded into the permalink url.

Properties

argParserClass

{Class} The ArgParser control class (not instance) to use with this control.

base

{String}

displayProjection

{OpenLayers.Projection} Requires proj4js support.  Projection used when creating the coordinates in the link.  This will reproject the map coordinates into display coordinates.  If you are using this functionality, the permalink which is last added to the map will determine the coordinate type which is read from the URL, which means you should not add permalinks with different displayProjections to the same map.

Constructor

OpenLayers.Control.Permalink

Parameters

element{DOMElement}
base{String}
options{Object} options to the control.

Functions

destroy

destroy: function()

createParams

createParams: function(center,
zoom,
layers)

Creates the parameters that need to be encoded into the permalink url.

Parameters

center{OpenLayers.LonLat} center to encode in the permalink.  Defaults to the current map center.
zoom{Integer} zoom level to encode in the permalink.  Defaults to the current map zoom level.
layers{Array(OpenLayers.Layer)} layers to encode in the permalink.  Defaults to the current map layers.

Returns

{Object} Hash of parameters that will be url-encoded into the permalink.

Class for coordinate transforms between coordinate systems.
destroy: function()
createParams: function(center,
zoom,
layers)
Creates the parameters that need to be encoded into the permalink url.
Controls affect the display or behavior of the map.
This class represents a longitude and latitude pair
Close