Restore previous map state on popstate
This commit is contained in:
parent
db675e706a
commit
bcc4897ef6
1 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,10 @@ $(document).ready(function () {
|
|||
|
||||
map.hash = L.hash(map);
|
||||
|
||||
$(window).on('popstate', function() {
|
||||
map.hash.update();
|
||||
});
|
||||
|
||||
var copyright = I18n.t('javascripts.map.copyright', {copyright_url: '/copyright'});
|
||||
|
||||
var layers = [
|
||||
|
|
Loading…
Add table
Reference in a new issue