google.load("maps","2");DL.Widget.GoogleMap=new DL.Class({initialize:function(c){this.options={appendTo:document.body,lat:47.72,lng:10.17,zoom:8,open:1,closebutton:null,width:"100%",height:400,poidata:[],maptype:"G_PHYSICAL_MAP",cluster:null,kategorie:[],autozoom:0};var d=this;var e=this.elements={};var o=this.setOptions(c);var b;var f;this.mm;this.MarkerArray=Array();this.infoWindow=0;this.infoWindowArray=Array();this.KategorieArray=Array();this.KategorieArrayXHR=Array();this.create();this.xhr=new DL.XHR({mode:'json',method:'post',url:'/cgi-bin/siteengine.pl?GeoData::Extern::GoogleMapData',oncomplete:function(a){gm.initMarker(a);DL.Element.addClass(e.Kategoriestatus,'hidden')},onerror:function(a){if(typeof console!='undefined')console.log('DL.Widget.GoogleMaps - DL.XHR meldet folgend Fehler:\n'+a)}});this.xhrinfo=new DL.XHR({mode:'json',method:'post',url:'/cgi-bin/siteengine.pl?GeoData::Extern::GoogleMapDetail&id=%id%',params:{},oncomplete:function(a){e.InfoWindow_content.innerHTML=a["innerHTML"];gm.infoWindowArray[a["id"]]=a["innerHTML"]},onerror:function(a){if(typeof console!='undefined')console.log('DL.Widget.GoogleMaps - DL.XHR meldet folgend Fehler:\n'+a)}});for(var i=0;i1){DL.Element.addNode(e.MapContainer,e.Kategorieliste=DL.$C('div',{className:'kategorieliste'},e.Kategorielistebody=DL.$C('div',{className:'kategorielistebody'},DL.$C('h3',"Auf Karte anzeigen"),e.Kategorielisteul=DL.$C('ul',{}),e.Kategoriestatus=DL.$C('div',{className:'loading hidden'},"Daten werden geladen")),e.Kategorielistefooter=DL.$C('div',{className:'kategorielistefooter'})));for(var i=0;i3){map.setCenter(a.getCenter(),map.getBoundsZoomLevel(a))}},toggleMarker:function(data){var c=this,o=this.options,e=this.elements,d=data.id,b=data.classe;if(this.KategorieArrayXHR[d]==undefined){this.getMarkerData(data)}if(this.KategorieArray[d]==1){DL.Element.removeClass(e.KategorielisteElement[d],'active');for(var b in this.MarkerArray){if(this.MarkerArray[b].kategorie==d){this.MarkerArray[b].hide();this.mm.removeMarker(this.MarkerArray[b],0);this.mm.refresh()}}this.KategorieArray[d]=0}else{DL.Element.addClass(e.KategorielisteElement[d],'active');for(var b in this.MarkerArray){if(this.MarkerArray[b].kategorie==d){this.MarkerArray[b].show();this.mm.addMarker(this.MarkerArray[b],this.MarkerArray[b].name);this.mm.refresh()}}this.KategorieArray[d]=1}this.mm.refresh()},initMarker:function(b){if(b!=undefined){this.options.poidata=b}var d=this,o=this.options,e=this.elements;for(var i=0;i