old_contents: function initMap() {
      // add the map layer
      map = new L.Map("localmap");
      var min = 14;
      var max = 17;
      var myLayer = new L.TileLayer('http://tiles3.buergerbautstadt.de/berlin/{z}/{x}/{y}.png', {
          minZoom: min,
          maxZoom: max,
          attribution: 'Map data &copy; 2012 OpenStreetMap contributors',
          zIndex: 0,
          errorTileUrl: 'http://tiles3.buergerbautstadt.de/error.png',
          reuseTiles: true
      });
      map.addLayer(myLayer);
  
      // center map
      var center = new L.LatLng(lat, lon); 	
      map.setView(center, 15);
      
      var icon = L.icon({
          iconUrl: staticUrl + '/img/Baustellenschilder/klein/schild_gruen_klein.png',
          iconSize:     [26, 45], // size of the icon width,height                                    
          iconAnchor:   [13, 45], // point of the icon which will correspond to marker's location  
      });
      
      var polygonOptions = {
          weight: 3,
          color: '#de6a00',
          opacity: 1,
          fill: true,
          fillColor: '#de6a00',
          fillOpacity: 0.05
      }
  
      if (typeof(polygon) !== 'undefined') {
          if (polygontype === 'Polygon') {
              L.polygon(polygon).setStyle(polygonOptions).addTo(map);
          } else if (polygontype === 'MultiPolygon') {
              L.multiPolygon(polygon).setStyle(polygonOptions).addTo(map);
          }
      }
      L.marker([lat,lon],{icon: icon}).addTo(map);
  
  }
  
  $(document).ready(function() {
      setTimeout('initMap()',100);     
  });
new_contents: function initMap() {
      // add the map layer
      map = new L.Map("localmap");
      var min = 14;
      var max = 17;
      var myLayer = new L.TileLayer('http://tiles3.buergerbautstadt.de/berlin/{z}/{x}/{y}.png', {
          minZoom: min,
          maxZoom: max,
          attribution: 'Map data &copy; 2012 OpenStreetMap contributors and <a href="http://fbinter.stadt-berlin.de/fb/berlin/service.jsp?id=re_bplan@senstadt&type=WFS&themeType=spatial" target="_blank">Geoportal Berlin/Geltungsbereiche der Bebauungspläne</a>',
          zIndex: 0,
          errorTileUrl: 'http://tiles3.buergerbautstadt.de/error.png',
          reuseTiles: true
      });
      map.addLayer(myLayer);
  
      // center map
      var center = new L.LatLng(lat, lon); 	
      map.setView(center, 15);
      
      var icon = L.icon({
          iconUrl: staticUrl + '/img/Baustellenschilder/klein/schild_gruen_klein.png',
          iconSize:     [26, 45], // size of the icon width,height                                    
          iconAnchor:   [13, 45], // point of the icon which will correspond to marker's location  
      });
      
      var polygonOptions = {
          weight: 3,
          color: '#de6a00',
          opacity: 1,
          fill: true,
          fillColor: '#de6a00',
          fillOpacity: 0.05
      }
  
      if (typeof(polygon) !== 'undefined') {
          if (polygontype === 'Polygon') {
              L.polygon(polygon).setStyle(polygonOptions).addTo(map);
          } else if (polygontype === 'MultiPolygon') {
              L.multiPolygon(polygon).setStyle(polygonOptions).addTo(map);
          }
      }
      L.marker([lat,lon],{icon: icon}).addTo(map);
  
  }
  
  $(document).ready(function() {
      setTimeout('initMap()',100);     
  });
  
subject: Update localmap.js