var DMap2=Class.create({_olMap:undefined,_overlayList:undefined,_icons:undefined,initialize:function(D){var B=new OpenLayers.Bounds(8.5,49.35,8.9,49.45);var A=new OpenLayers.LonLat(8.69,49.41);OpenLayers.ImgPath="/plugins/dmcore-0.1/js/img/";this._olMap=new OpenLayers.Map("map_container",{controls:[],projection:"EPSG:4326",scales:[100000,60000,30000,14000,8000,4000,3000,800],maxExtent:B,units:"dd"});this._olMap.addControl(new OpenLayers.Control.PanZoomBar());this._olMap.addControl(new OpenLayers.Control.Navigation({zoomWheelEnabled:false}));var C=new OpenLayers.Layer.KaMap("kamap",D,{map:"hdmap"});this._olMap.addLayer(C);this._olMap.setCenter(A,2);this._overlayList=new OverlayList(this._olMap)},addOverlay:function(A){this._overlayList.addOverlay(A)},addRoute:function(A){this._overlayList.addRoute(A)},clearOverlays:function(){this._overlayList.clearOverlays()},removeOverlay:function(A){this._overlayList.removeOverlay(A)},removeRoute:function(A){this._overlayList.removeRoute(A)},centerOnOverlay:function(B){var A=this._overlayList.getOverlay(B);if(A!=undefined){A.openPopup()}},centerOnOverlays:function(){var A=this._overlayList.getBoundingBox();if(A!=undefined){this._olMap.zoomToExtent(A)}},getOverlay:function(A){return this._overlayList.getOverlay(A)},toggleMap:function(){var A=$("map_container");var B=$("map_toggle");if(parseInt(A.style.width)<=350){A.style.width="500px";A.style.height="500px";A.style.border="3px solid #000";A.style.zIndex="500";B.innerHTML="verkleinern";B.style.zIndex="501"}else{A.style.width="350px";A.style.height="250px";A.style.border="0px";A.style.zIndex="1";B.innerHTML="vergrößern";B.style.zIndex="10";this.centerOnOverlays()}}});