',
disableAutoPan: false,
maxWidth: 0,
pixelOffset: new google.maps.Size(-138, -335),
zIndex: null,
closeBoxURL: "http://www.google.com/intl/en_us/mapfiles/close.gif",
infoBoxClearance: new google.maps.Size(1, 1),
position: new google.maps.LatLng(marker_map[0], marker_map[1]),
isHidden: false,
pane: "floatPane",
enableEventPropagation: false
};
marker.infobox = new InfoBox(myOptions);
marker.infobox.isOpen = false;
markers.push(marker);
// action
google.maps.event.addListener(marker, "click", function (e) {
var curMarker = this;
$.each(markers, function (index, marker) {
// if marker is not the clicked marker, close the marker
if (marker !== curMarker) {
marker.infobox.close();
marker.infobox.isOpen = false;
}
});
if (curMarker.infobox.isOpen === false) {
curMarker.infobox.open(map, this);
curMarker.infobox.isOpen = true;
map.panTo(curMarker.getPosition());
} else {
curMarker.infobox.close();
curMarker.infobox.isOpen = false;
}
});
});
var mcOptions = {
gridSize: 40,
styles: [
{
height: 42,
url: 'https://www.gonenemlak.com.tr/assets/img/cluster/cluster.png',
width: 42,
textColor: '#46616B'
}
]
};
marker_clusterer = new MarkerClusterer(map, markers, mcOptions);
if (myLocationEnabled) {
// [START gmap mylocation]
// Construct your control in whatever manner is appropriate.
// Generally, your constructor will want access to the
// DIV on which you'll attach the control UI to the Map.
var controlDiv = document.createElement('div');
// We don't really need to set an index value here, but
// this would be how you do it. Note that we set this
// value as a property of the DIV itself.
controlDiv.index = 1;
// Add the control to the map at a designated control position
// by pushing it on the position's array. This code will
// implicitly add the control to the DOM, through the Map
// object. You should not attach the control manually.
map.controls[google.maps.ControlPosition.RIGHT_TOP].push(controlDiv);
HomeControl(controlDiv, map)
// [END gmap mylocation]
}
}
}
var map;
function map_property() {
if ($('#property-map').length) {
// map init
var myLocationEnabled = true;
var style_map =[{"featureType":"administrative","elementType":"labels.text.fill","stylers":[{"color":"#444444"}]},{"featureType":"landscape","elementType":"all","stylers":[{"color":"#f2f2f2"}]},{"featureType":"poi","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"all","stylers":[{"saturation":-100},{"lightness":45}]},{"featureType":"road.highway","elementType":"all","stylers":[{"visibility":"simplified"}]},{"featureType":"road.arterial","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"all","stylers":[{"color":"#46bcec"},{"visibility":"on"}]}];
var scrollwheelEnabled = false;
var markers1 = new Array();
var mapOptions1 = {
center: new google.maps.LatLng(40.05593030583628, 27.987617891680713),
zoom: 15,
mapTypeId: google.maps.MapTypeId.ROADMAP,
scrollwheel: scrollwheelEnabled,
styles:style_map
};
map = new google.maps.Map(document.getElementById('property-map'), mapOptions1);
map_propertyLoc = map
var marker1 = new google.maps.Marker({
position: new google.maps.LatLng(40.05593030583628, 27.987617891680713),
map: map,
icon: 'https://www.gonenemlak.com.tr/assets/img/markers/house.png'
});
var myOptions2 = {
content: "