ol.control.Permalink 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 propertie).
-
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.)