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...).
-
The getUrlParams method enable you to add user parameters to the url to handle new functionnalities (layers ordering, etc.)