ol-ext: Permalink control
is hyperlink that will return the user to the current map view.
The href is updated as the map is zoomed, panned, rotated and whilst layers are switched or opacity is changed
(as soon as the layer has a permalink
Use urlReplace option to activate the url replacement.
Use localStorage option to save the the current map view in the localstorage.
Information in the url has priority over the localStorage, ie. localStorage is used if no information
is provided in the url or if urlReplace option is set to false.
You can hide the control on the map using the hidden option.
Only layers with a permalink properties are handled by the control.
The permalink propertie is used to name the layer in the url.
By default, clicking the control will enable/disable the url replacement.
Use the onclick option to change this behavior (mail to a friend...).
Use getUrlParam, setUrlParam or hasUrlParam methods
to get, add or test user parameters in the url and handle new functionnalities
(layers opacity, visibility, ordering, etc.)