var layers = [
new L.OSM.Mapnik({
- attribution: copyright+" – "+donate,
+ attribution: copyright + " ♥ " + donate,
code: "M",
keyid: "mapnik",
name: I18n.t("javascripts.map.base.standard")
initializeNotes(map);
OSM.Index = function(map) {
- var page = {}, minimized = $('#sidebar').hasClass('minimized');
+ var page = {};
page.pushstate = page.popstate = function(path) {
- if (minimized) $("#sidebar").addClass("minimized");
+ $("#sidebar").addClass("minimized");
map.invalidateSize();
$('#sidebar_content').load(path);
};
map.getCenter().lng.toFixed(precision)));
});
+ function removeSidebar() {
+ if ($(window).width() < 721) {
+ $('#sidebar').addClass("minimized");
+ }
+ }
+
+ $(window).resize(function() {
+ removeSidebar();
+ });
+
+ removeSidebar();
+
});