This is map info content.
You can add html content, image etc.. into this area. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
Hybrid
Roadmap
Satellite
Terrain
(function($) {
“use strict”;
$(function(){
var containerparent = $(“#wpf-map-container”).parent().parent().parent().parent().parent();
if (containerparent.hasClass(“vc_row-o-full-height”)) {
var calc_height = containerparent.height();
if (!$(“.wpf-container”).hasClass(“pftransparenthead”) && $.pf_tablet_check()) {
calc_height = (calc_height – $(“#pfheadernav”).height());
}
if (!$.pf_tablet_check()) {
calc_height = (calc_height – $(“#pfheadernav”).height());
}
setTimeout(function(){
$(“#wpf-map”)
.height(calc_height)
.gmap3({trigger:”resize”});
}, 100);
}
if ($(“.wpf-container”).hasClass(“pftransparenthead”)) {
if($.pf_tablet_check()){
$(“.pfsearch-draggable-window”).css(“margin-top”,($(“#pfheadernav”).height()+20));
$(“.pfnotificationwindow”).css(“top”,($(“#pfheadernav”).height()+29));
$(“.pf-err-button”).css(“top”,($(“#pfheadernav”).height()+30));
};
}
});
$(function(){if ($(‘#pfsearch-draggable’).parents(‘.pf-fullwidth’).length == 0) {if ($.pf_mobile_check()) {$(‘#pfsearch-draggable’).css(‘margin-right’,’50px’).css(‘margin-left’,’50px’);};};});
/* CORE FUNCTIONS ADDON STARTED ——————————————————————————————–*/
$.pfmultipleowlsetdefaults = function(owl){owl.owlCarousel({navigation : false,singleItem : true,autoPlay:true,slideSpeed:400,mouseDrag:false,touchDrag:true,transitionStyle : “fade”,autoHeight : false,});};
$.pfloadmarkers = function(ne,sw,ne2,sw2,saction,sdata){
$.typeofsdata = typeof sdata;
var kxdata = [{name:’pointfinderltypes’,value:”},{name:’pointfinderlocations’,value:”},{name:’pointfinderconditions’,value:”},{name:’pointfinderitypes’,value:”},{name:’pointfinderfeatures’,value:”}];
$.ajax({
beforeSend: function(){$(“.pfmaploading”).fadeIn(“slow”);},
type: ‘POST’,
dataType: ‘script’,
url: theme_map_functionspf.ajaxurl,
cache:false,
data: {
‘action’: ‘pfget_markers’,
‘act’: saction,
‘spl’: $.pfgmap3static.spl,
‘splo’: $.pfgmap3static.splo,
‘splob’: $.pfgmap3static.splob,
‘ne’: ne,
‘sw’: sw,
‘ne2’: ne2,
‘sw2’: sw2,
‘dt’: sdata,
‘dtx’:kxdata,
‘cl’:$.pfgmap3static.currentlang,
‘security’: theme_map_functionspf.pfget_markers
},
success:function(data){
$.pfgmap3static.callbackdata = data;
$.pftogglewnotificationclearex = function(){
if($(‘.pf-err-button’).is(‘:visible’)){
$(‘.pf-err-button’).hide(‘fast’);
}else{
$(‘.pf-err-button’).show({ effect: “fade”,direction: “up” },0);
}
};
if(wpflistdata.length == 0){
$.pftogglewnotificationclearex();
$.pftogglewnotification(‘Ekli firma bulunamadı.’,5000,’pfnotfoundimage’);
}else if(wpflistdata.length != 0 && 1==1){
$.pftogglewnotification(‘‘+wpflistdata.length+’ Firma Bulundu! Listelemek için tıklayın!‘,5000,’pfnotfoundimagei’);
}
$.pfclearallmarkers();
if($.pf_tablet_check()){
$.mdefaultopacity = 1.0;
}else{
$.mdefaultopacity = 1;
}
$(‘#wpf-map’).gmap3({
marker: {
values: wpflistdata,
options:{opacity: $.mdefaultopacity},
cluster: {
radius:100,
10: {content: ‘
CLUSTER_COUNT
‘,width: 53,height: 53,},
15: {content: ‘
CLUSTER_COUNT
‘,width: 56,height: 56,},
30: {content: ‘
CLUSTER_COUNT
‘,width: 66,height: 66,},
75: {content: ‘
CLUSTER_COUNT
‘,width: 78,height: 78,},
100: {content: ‘
CLUSTER_COUNT
‘,width: 90,height: 90,},
events: {
click: function(cluster, event, context) {
var map = $.pfgmap3static.pfmapobj;
map.panTo(cluster.main.getPosition());
map.setZoom(map.getZoom() + 1);
/*
var latlngbounds = new google.maps.LatLngBounds();
for (var i = 0; i < context.data.markers.length; i++) {
latlngbounds.extend(new google.maps.LatLng(context.data.markers[i].latLng[0], context.data.markers[i].latLng[1]));
}
map.fitBounds(latlngbounds);
*/
},
mouseover: function(cluster){
$(cluster.main.getDOMElement()).css("opacity", "1.0");
},
mouseout: function(cluster){
$(cluster.main.getDOMElement()).css("opacity", "1.0");
}
}
},
events:{
click: function(marker, event, context){
$.pfloadinfowindow(marker, event, context.data.id);
if($.pf_tablet_check()){
if ($.isEmptyObject($.zindexclicker)) { $.zindexclicker = {}; $.zindexclicker.click = 0};
$.zindexclicker.click++
marker.setZIndex(google.maps.Marker.MAX_ZINDEX + $.zindexclicker.click);
}
},
}
},
});
var saction;
var sdata;
if(!$.isEmptyObject($.pfsearchformvars)){saction = $.pfsearchformvars.action;}else{saction = '';}
if(!$.isEmptyObject($.pfsearchformvars)){sdata = $.pfsearchformvars.vars;}else{sdata = '';}
if (sdata != '') {
$.fn.pfgetpagelistdata({saction : saction,sdata : sdata,dtx :kxdata,ne : ne,sw : sw,ne2 : ne2,sw2 : sw2,});
$.pftogglewnotificationclear();
$.smoothScroll({scrollTarget: '.pfsearchresults-container',offset: -110});
};
$('#pfshowsearchresults').click(function(){
$.fn.pfgetpagelistdata({saction : saction,sdata : sdata,dtx :kxdata,ne : ne,sw : sw,ne2 : ne2,sw2 : sw2,});
$.pftogglewnotificationclear();
$.smoothScroll({scrollTarget: '.pfsearchresults-container',offset: -110});
});
},
error: function(jqXHR,textStatus,errorThrown){
console.log(errorThrown);
},
complete: function(){
console.log('Map loaded.')
$(".pfmaploading").fadeOut("slow");
if(!$.isEmptyObject($.pfsearchformvars)){$.pfaftersearch();} },
});
};
/* LOAD MARKERS FINISHED ——————————————————————————————–*/
/* GEOLOCATION FUNCTION STARTED ————————————————————————————-*/
$.pfgeolocation = function(){
$('#wpf-map').gmap3({
getgeoloc:{
callback : function(latLng){
if (latLng){
$(this).gmap3({
circle:{
values:[{id:'geoloccircle'}],
options:{
center: latLng,
editable: false,
draggable:false,
clickable:true,
radius : 10000,
fillColor : "#008BB2",
fillOpacity: "0.3",
strokeColor : "#005BB7",
strokeOpacity: "0.6",
},
callback: function(){
$.pfgmap3static.geocircle = $(this).gmap3({get: {id: 'geoloccircle'}});
$.pfgmap3static.geocircleBounds = $.pfgmap3static.geocircle.getBounds();
$(".pfmaploading").fadeOut("slow");
$.pfgmap3static.pfmapobj.setCenter(latLng);
$.pfGeolocationDefaults = {};
$.pfGeolocationDefaults.icon1 = 'https://antepisrehberi.com/wp-content/themes/pointfinder/images/geo.png';
$.pfGeolocationDefaults.icon2 = 'https://antepisrehberi.com/wp-content/themes/pointfinder/images/geo2.png';
$.pfGeolocationDefaults.latLng = latLng;
$.pfGeolocationDefaults.distance = 10;
$.pfGeolocationDefaults.hideinfo = false;
$.pfGeolocationDefaults.unit = "km";$.pfGeolocationDefaults.automove = false; var distanceWidget = new $.pfDistanceWidget($(this).gmap3('get'));
},
},
});
}
}
},
});
};
/* GEOLOCATION FUNCTION FINISHED ————————————————————————————*/
/* GEOLOCATION FUNCTION FINDPOSITION STARTED ————————————————————————————-*/
$.pfgeolocation_findme = function(fieldval){
$('#wpf-map').gmap3({
getgeoloc:{
callback : function(latLng){
if (latLng){
var geocoder = new google.maps.Geocoder();
geocoder.geocode({'latLng': latLng}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
if (results[0]) {
$('#'+fieldval+'').val(results[0].formatted_address);
$('#pointfinder_google_search_coord').val(latLng.lat()+','+latLng.lng());
}
}
});
}
$('.pf-search-locatemebut').show('fast'); $('.pf-search-locatemebutloading').hide('fast');
}
},
});
};
/* GEOLOCATION FUNCTION FINDPOSITION FINISHED ————————————————————————————*/
/* LOAD MAP STARTED ——————————————————————————————–*/
$(function(){
//Define static vars
$.pfgmap3static = {};
$.pfgmap3static.center = [37.06595,37.37811];
$.pfgmap3static.zoom = 13;
$.pfgmap3static.zoom_mobile = 10;
$.pfgmap3static.geocircle = null;
$.pfgmap3static.geocircleBounds = null;
$.pfgmap3static.allmarkers = null;
$.pfgmap3static.pfmapsingle = 0;
$.pfgmap3static.pfmapobj = null;
$.pfgmap3static.callbackdata = null;
$.pfgmap3static.currentlang = "";
$.pfgmap3static.spl = -1;
$.pfgmap3static.splo = "";
$.pfgmap3static.splob = "";
$.pfgmap3static.movemaplatlng = new Array();
$.pfgmap3static.heightbetweenitems = (!$.pf_mobile_check())? 0 :0;
$.pfgmap3static.widthbetweenitems = (!$.pf_mobile_check())? -6 :0;
$.pfgmap3static.hidemultiplenav = null;
if($.pf_mobile_check()){
$.pfgmap3static.streetview = false;
}else{
$.pfgmap3static.streetview = false;
}
$('#wpf-map').gmap3({
defaults:{
classes:{
Marker:RichMarker
}
},
map:{
options:{
center:[37.06595,37.37811],
zoom: (!$.pf_mobile_check())? $.pfgmap3static.zoom_mobile:$.pfgmap3static.zoom,
maxZoom:20,
mapTypeId: google.maps.MapTypeId.ROADMAP,
mapTypeControl: false,
zoomControl: false,
panControl: false,
scaleControl: false,
navigationControl: false,
draggable:true,
scrollwheel: false,
streetViewControl: $.pfgmap3static.streetview,
streetViewControlOptions: {
position: google.maps.ControlPosition.RIGHT_BOTTOM,
},
styles: [] },
events:{
projection_changed: function(map){
var bounds = map.getBounds();
var ne = bounds.getNorthEast();
var sw = bounds.getSouthWest();
$.pfloadmarkers(ne.lat(),sw.lat(),ne.lng(),sw.lng()); },
},
callback: function(){
$.pfgmap3static.pfmapobj = $(this).gmap3('get');
if($.pf_mobile_check() == false){
$("#wpf-map").css("height","351px");
$(this).gmap3({trigger:"resize"});
}
if($.pf_mobile_check() && $.pf_tablet_check() == false){
$("#wpf-map").css("height","401px");
$(this).gmap3({trigger:"resize"});
}
if ($.pf_mobile_check() == false || $.pf_tablet_check() == false) {
$(".pfcontrol-lock i").removeClass('pfadmicon-glyph-151').removeClass('pfadmicon-glyph-152').addClass('pfadmicon-glyph-151');
var map = $.pfgmap3static.pfmapobj;
map.setOptions({draggable: false});
}
}
}
});
});
/* LOAD MAP FINISHED ——————————————————————————————–*/
})(jQuery);