Zu Google Maps',g=d.appendChild(document.createElement("div"));g.className="item";var h=g.appendChild(document.createElement("a"));h.href="#",h.className="title",h.innerHTML=a.name+"
"+r(a,50);var y=g.appendChild(document.createElement("div"));y.className="details",y.innerHTML=a.address,g.appendChild(document.createElement("div")).innerHTML=''+a.open+"";var v=0;h.onclick=function(){return v=1,u(g),t.setView(e.getLatLng(),16),e.fire("click"),n.style.display="block",!1},e.on("click",(function(a){1!=v&&t.setView([a.latlng.lat,a.latlng.lng],16),v=0,$(".item").show(),$("#searchbox").hide(),i.innerHTML='',t.hasLayer(s)&&t.removeLayer(s),u(g),n.style.display="block",o.innerHTML=f;var r=e.getLatLng();setTimeout((function(){s=new L.circleMarker(r,{color:"red",fillColor:"#f03",fillOpacity:.5,radius:10}).addTo(t)}),200)}));let b=new URL(l);e.setIcon(L.icon({iconUrl:b,iconSize:[40,40],iconAnchor:[20,40],popupAnchor:[-14,-47]}))})),t.locate({setView:!0,maxZoom:14}),t.on("locationfound",(function(a){new L.Circle(a.latlng,20,{color:"#52b5ba",fillColor:"#37e3e3",fillOpacity:.3,radius:20}).addTo(t);var n=turf.point([a.longitude,a.latitude]),o=(e.features.map((function(e){var t=turf.feature(e.geometry);if(turf.distance(t,n,{units:"miles"})<=10)return e})),turf.nearest(n,m.toGeoJSON()));o.properties.name&&($("#infoDivInner").html("Fachgeschäft gefunden!
Der nächste Standort ist "+o.properties.name+""),s=new L.circleMarker([o.geometry.coordinates[1],o.geometry.coordinates[0]],{color:"red",fillColor:"#f03",fillOpacity:.5,radius:5}).addTo(t)),$("#storeinfo").show()})),c()}))}(e)));