var map;
var maphash = null;
var geosearch = new L.Control.GeoSearch({
                    provider: new L.GeoSearch.Provider.OpenStreetMap({countrycodes: 'ch'}),
                    searchLabel: 'Adresse eingeben',
                    notFoundMessage: 'Es wurden keine Ergebnisse gefunden'
                });

$(document).ready(function() {
    $('#more-map-selector').html('<a href="#" class="rotate">Mehr Karte</a>');
    $('#map').text('');
    map = L.map('map').setView([47, 8.5], 9);
    L.tileLayer('http://tile.osm.ch/switzerland/{z}/{x}/{y}.png', {
        maxZoom: 21,
        attribution: '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors'
    }).addTo(map);

    $('.view-selector').click(function() { 
        $("body").toggleClass('map-only'); 
        if ($("body").hasClass('map-only')) {
            if (maphash)
                maphash.startListening();
            else
                maphash = new L.Hash(map);
            geosearch.addTo(map);
        } else {
            maphash.stopListening();
            geosearch.removeFrom(map);
        }
        map.invalidateSize();
    });

    if (/#[0-9]+\//.test(location.hash)) {
        $("body").addClass('map-only');
        maphash = new L.Hash(map);
        geosearch.addTo(map);
        map.invalidateSize();
    }
});

@@ -305,16 +305,1705 @@
    %7D);%0A%0A
+%0AL.Control.OSMReportAProblem = L.Control.Attribution.extend(%7B%0A        options: %7B%0A                position: 'bottomright',%0A                prefix: '%3Ca href=%22http://www.openstreetmap.org/fixthemap?lat=%7Bx%7D&lon=%7By%7D&zoom=%7Bz%7D%22%3EBehebe einen Fehler%3C/a%3E'%0A        %7D,%0A        onAdd: function (map) %7B%0A                this._container = L.DomUtil.create('div', 'leaflet-control-attribution');%0A                L.DomEvent.disableClickPropagation(this._container);%0A%0A                // TODO ugly, refactor%0A                for (var i in map._layers) %7B%0A                        if (map._layers%5Bi%5D.getAttribution) %7B%0A                                this.addAttribution(map._layers%5Bi%5D.getAttribution());%0A                        %7D%0A                %7D%0A%0A                this._update();%0A                map.on('moveend', this._update, this);%0A%0A                return this._container;%0A        %7D,%0A        _update: function () %7B%0A                if (!this._map) %7B return; %7D%0A%0A                var attribs = %5B%5D;%0A%0A                for (var i in this._attributions) %7B%0A                        if (this._attributions%5Bi%5D) %7B%0A                                attribs.push(i);%0A                        %7D%0A                %7D%0A%0A                var prefixAndAttribs = %5B%5D;%0A%0A                if (this.options.prefix) %7B%0A                        prefixAndAttribs.push(this.options.prefix);%0A                %7D%0A                if (attribs.length) %7B%0A                        prefixAndAttribs.push(attribs.join(', '));%0A                %7D%0A%0A                this._container.innerHTML = prefixAndAttribs.join(' %7C ').replace('%7Bx%7D', this._map.getCenter().lat).replace('%7By%7D', this._map.getCenter().lng).replace('%7Bz%7D', this._map.getZoom());%0A        %7D%0A%0A        %7D);%0A%0A
 $(docume
@@ -2149,16 +2149,45 @@
 ap('map'
+, %7BattributionControl: false%7D
 ).setVie
@@ -2398,16 +2398,16 @@
 butors'%0A
-
     %7D).a
@@ -2416,16 +2416,70 @@
 To(map);
+%0A    (new L.Control.OSMReportAProblem(%7B%7D)).addTo(map);
 %0A%0A    $(

add a 'Fix the map' link