Restore previous map state on popstate

This commit is contained in:
John Firebaugh 2013-10-08 15:54:07 -07:00
parent db675e706a
commit bcc4897ef6

View file

@ -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 = [