"+a+"
"+t+"
";i&&"*"!=i&&(m=m+"
Telefon : "+i,c=c+'
Telefon : '+i+""),n&&"*"!=n&&(m=m+"
Fax : "+n,c=c+"Fax : "+n+""),r&&"*"!=r&&(m=m+"
Email : "+r,c=c+'Email : '+r+""),c+="",$(".select-content").append(c);var p=new google.maps.InfoWindow({content:m});if(void 0!==listAddress[t])return addMarker(map,listAddress[t],null,p),!0;isNaN(s.lat)||isNaN(s.lng)?e.geocode({address:t},(function(e,o){o===google.maps.GeocoderStatus.OK&&(addMarker(map,e[0].geometry.location,null,p),listAddress[t]=e[0].geometry.location)})):addMarker(map,s,null,p)}function setCenter(e,t,o){if(t=t.replace("İlçe Seçiniz, ","").replace("İLÇE SEÇİNİZ",""),void 0!==listAddress[t])return o.setCenter(listAddress[t]),!0;e.geocode({address:t},(function(e,l){l===google.maps.GeocoderStatus.OK&&(o.setCenter(e[0].geometry.location),listAddress[t]=e[0].geometry.location)}))}autocomplete.addListener("place_changed",(function(){directionsDisplay.setMap(null),geocoder.geocode({address:input.value},(function(e,t){if(t==google.maps.GeocoderStatus.OK){directionsDisplay.setMap(map);for(var o=0;odistance)&&(closest={marker:this,distance})})),closest&&(request={origin:e[0].geometry.location,destination:closest.marker.getPosition(),travelMode:google.maps.DirectionsTravelMode.DRIVING},directionsService.route(request,(function(e,t){t==google.maps.DirectionsStatus.OK&&directionsDisplay.setDirections(e)})),google.maps.event.trigger(closest.marker,"click"),closest=!1)}}))}),map);var mapSwitch=0;function searchSales(){if($("input[name=search_name]").val().length>2){window.mapSwitch=1,directionsDisplay.setMap(null);for(var e=0;eTüm İlçeler')),$.post("https://stolswebsite.com/satis-noktalari_type=getregions",{city:t,_token:"P3JGR5h3k78iKxKfMS6CDe1AOfqbaq5JBXxlOYm3"},(function(e){var t='';$.each(e,(function(e,o){t+='"})),$("select[name=region]").html(t),$("select[name=region2]").html(t)})).done((function(){getAll()}))}function selectContent(e=!0){n=$("ul.select-content li.sale"),n.length>0&&1==e?($("#bayi-liste").show(0),$(".satis-maps").addClass("right-width")):($(".bayi-liste").hide(0),$(".satis-maps").removeClass("right-width"))}getAll();var bothselects=$("select[name=city], select[name=city2]");bothselects.change((function(e){bothselects.val(this.value),getRegion()}));var bothselects2=$("select[name=region], select[name=region2]");bothselects2.change((function(e){bothselects2.val(this.value),getAll()}));var bothselects3=$("select[name=category], select[name=category2]");bothselects3.change((function(e){bothselects3.val(this.value),getAll()}));