Permalink.js

Summary
Permalink.js
Properties
id‘mapfish.api.permalink’
coordsParamslon and lat coordinate of map center
api{MapFish.API} instance
argParserClass{MapFish.API.ArgParser}
Functions
MapFish.API.Permalink(element,base,options)This class is an extension of {OpenLayers.Control.Permalink}.
draw()Set the permalink value
updateLink()Update the permalink
createParams(center, zoom, layers)Create the permalink parameters

Properties

id

’mapfish.api.permalink’

coordsParams

lon and lat coordinate of map center

api

{MapFish.API} instance

argParserClass

{MapFish.API.ArgParser}

Functions

MapFish.API.Permalink(element,base,options)

This class is an extension of {OpenLayers.Control.Permalink}.  It is used to save the current app context as URL parameters.

Parameters

options.apiapi
options.coordsParamscoordinate

draw()

draw: function()

Set the permalink value

updateLink()

updateLink: function()

Update the permalink

createParams(center, zoom, layers)

createParams: function(center,
zoom,
layers)

Create the permalink parameters

Parameters

center{OpenLayers.LonLat}
zoomzoom level
layersarray of {OpenLayers.Layer}
draw: function()
Set the permalink value
updateLink: function()
Update the permalink
createParams: function(center,
zoom,
layers)
Create the permalink parameters
Close