var salonid = 256;var ARR_Places_Food = new Array();var ARR_Places_Shopping = new Array();ARR_Places_Food[ARR_Places_Food.length] = new Array();ARR_Places_Food[ARR_Places_Food.length - 1][0] = 5687;ARR_Places_Food[ARR_Places_Food.length - 1][1] = "Cinemovie";ARR_Places_Food[ARR_Places_Food.length - 1][2] = 38.76234916998361;ARR_Places_Food[ARR_Places_Food.length - 1][3] = 30.54877281188965;ARR_Places_Food[ARR_Places_Food.length] = new Array();ARR_Places_Food[ARR_Places_Food.length - 1][0] = 6192;ARR_Places_Food[ARR_Places_Food.length - 1][1] = "Oda Restaurant";ARR_Places_Food[ARR_Places_Food.length - 1][2] = 38.7615795117574;ARR_Places_Food[ARR_Places_Food.length - 1][3] = 30.542850494384766;ARR_Places_Food[ARR_Places_Food.length] = new Array();ARR_Places_Food[ARR_Places_Food.length - 1][0] = 50430;ARR_Places_Food[ARR_Places_Food.length - 1][1] = "Çat Kapı";ARR_Places_Food[ARR_Places_Food.length - 1][2] = 38.7581;ARR_Places_Food[ARR_Places_Food.length - 1][3] = 30.5441;ARR_Places_Food[ARR_Places_Food.length] = new Array();ARR_Places_Food[ARR_Places_Food.length - 1][0] = 50448;ARR_Places_Food[ARR_Places_Food.length - 1][1] = "Corner Cafe";ARR_Places_Food[ARR_Places_Food.length - 1][2] = 38.7571;ARR_Places_Food[ARR_Places_Food.length - 1][3] = 30.5444;ARR_Places_Food[ARR_Places_Food.length] = new Array();ARR_Places_Food[ARR_Places_Food.length - 1][0] = 8721;ARR_Places_Food[ARR_Places_Food.length - 1][1] = "Aşçı Bacaksız";ARR_Places_Food[ARR_Places_Food.length - 1][2] = 38.758233075134974;ARR_Places_Food[ARR_Places_Food.length - 1][3] = 30.543193817138672;ARR_Places_Food[ARR_Places_Food.length] = new Array();ARR_Places_Food[ARR_Places_Food.length - 1][0] = 8720;ARR_Places_Food[ARR_Places_Food.length - 1][1] = "Gamze Döner";ARR_Places_Food[ARR_Places_Food.length - 1][2] = 38.756693661594284;ARR_Places_Food[ARR_Places_Food.length - 1][3] = 30.539932250976562;ARR_Places_Food[ARR_Places_Food.length] = new Array();ARR_Places_Food[ARR_Places_Food.length - 1][0] = 25133;ARR_Places_Food[ARR_Places_Food.length - 1][1] = "Pasta Club/İbrahim Büyükerkme";ARR_Places_Food[ARR_Places_Food.length - 1][2] = 38.75222582776154;ARR_Places_Food[ARR_Places_Food.length - 1][3] = 30.545167922973633;ARR_Places_Food[ARR_Places_Food.length] = new Array();ARR_Places_Food[ARR_Places_Food.length - 1][0] = 51123;ARR_Places_Food[ARR_Places_Food.length - 1][1] = "AVM Fast Food";ARR_Places_Food[ARR_Places_Food.length - 1][2] = 38.7547;ARR_Places_Food[ARR_Places_Food.length - 1][3] = 30.5398;ARR_Places_Food[ARR_Places_Food.length] = new Array();ARR_Places_Food[ARR_Places_Food.length - 1][0] = 8723;ARR_Places_Food[ARR_Places_Food.length - 1][1] = "Nur Lokantası";ARR_Places_Food[ARR_Places_Food.length - 1][2] = 38.756660195713756;ARR_Places_Food[ARR_Places_Food.length - 1][3] = 30.537700653076172;ARR_Places_Food[ARR_Places_Food.length] = new Array();ARR_Places_Food[ARR_Places_Food.length - 1][0] = 8722;ARR_Places_Food[ARR_Places_Food.length - 1][1] = "Art Cafe";ARR_Places_Food[ARR_Places_Food.length - 1][2] = 38.74698789869036;ARR_Places_Food[ARR_Places_Food.length - 1][3] = 30.552635192871094;ARR_Places_Food[ARR_Places_Food.length] = new Array();ARR_Places_Food[ARR_Places_Food.length - 1][0] = 58147;ARR_Places_Food[ARR_Places_Food.length - 1][1] = "Meşhur Adıyaman Çiğköftecisi";ARR_Places_Food[ARR_Places_Food.length - 1][2] = 38.77536517547476;ARR_Places_Food[ARR_Places_Food.length - 1][3] = 30.53272247314453;ARR_Places_Food[ARR_Places_Food.length] = new Array();ARR_Places_Food[ARR_Places_Food.length - 1][0] = 6191;ARR_Places_Food[ARR_Places_Food.length - 1][1] = "Çetingül (Nokta) Restaurant";ARR_Places_Food[ARR_Places_Food.length - 1][2] = 38.77978137804918;ARR_Places_Food[ARR_Places_Food.length - 1][3] = 30.491180419921875;ARR_Places_Food[ARR_Places_Food.length] = new Array();ARR_Places_Food[ARR_Places_Food.length - 1][0] = 41967;ARR_Places_Food[ARR_Places_Food.length - 1][1] = "Kadaifçioğlu";ARR_Places_Food[ARR_Places_Food.length - 1][2] = 38.78;ARR_Places_Food[ARR_Places_Food.length - 1][3] = 30.4895;ARR_Places_Food[ARR_Places_Food.length] = new Array();ARR_Places_Food[ARR_Places_Food.length - 1][0] = 25134;ARR_Places_Food[ARR_Places_Food.length - 1][1] = "Burger King - Zeyland AVM";ARR_Places_Food[ARR_Places_Food.length - 1][2] = 38.78024974713084;ARR_Places_Food[ARR_Places_Food.length - 1][3] = 30.481224060058594;ARR_Places_Food[ARR_Places_Food.length] = new Array();ARR_Places_Food[ARR_Places_Food.length - 1][0] = 6190;ARR_Places_Food[ARR_Places_Food.length - 1][1] = "Alper Lokanta";ARR_Places_Food[ARR_Places_Food.length - 1][2] = 38.76479194327964;ARR_Places_Food[ARR_Places_Food.length - 1][3] = 30.470237731933594;ARR_Places_Food[ARR_Places_Food.length] = new Array();ARR_Places_Food[ARR_Places_Food.length - 1][0] = 6189;ARR_Places_Food[ARR_Places_Food.length - 1][1] = "Akçam Restaurant";ARR_Places_Food[ARR_Places_Food.length - 1][2] = 38.53084460847914;ARR_Places_Food[ARR_Places_Food.length - 1][3] = 31.245460510253906;var ARR_Places_Shopping = new Array();ARR_Places_Shopping[ARR_Places_Shopping.length] = new Array();ARR_Places_Shopping[ARR_Places_Shopping.length - 1][0] = 5687;ARR_Places_Shopping[ARR_Places_Shopping.length - 1][1] = "Cinemovie";ARR_Places_Shopping[ARR_Places_Shopping.length - 1][2] = 38.76234916998361;ARR_Places_Shopping[ARR_Places_Shopping.length - 1][3] = 30.54877281188965;ARR_Places_Shopping[ARR_Places_Shopping.length] = new Array();ARR_Places_Shopping[ARR_Places_Shopping.length - 1][0] = 63667;ARR_Places_Shopping[ARR_Places_Shopping.length - 1][1] = "Doğlat Kırtasiye";ARR_Places_Shopping[ARR_Places_Shopping.length - 1][2] = 38.75645730847718;ARR_Places_Shopping[ARR_Places_Shopping.length - 1][3] = 30.540820062160492;ARR_Places_Shopping[ARR_Places_Shopping.length] = new Array();ARR_Places_Shopping[ARR_Places_Shopping.length - 1][0] = 49349;ARR_Places_Shopping[ARR_Places_Shopping.length - 1][1] = "Hido AVM";ARR_Places_Shopping[ARR_Places_Shopping.length - 1][2] = 38.7746;ARR_Places_Shopping[ARR_Places_Shopping.length - 1][3] = 30.5697;var map; var currentZIndex = 100; function GetZIndex(marker,b) { return currentZIndex--; } function Tooltip(marker, text, padding){ this.marker_ = marker; this.text_ = text; this.padding_ = padding; } Tooltip.prototype = new GOverlay(); Tooltip.prototype.initialize = function(map){ var div = document.createElement("div"); div.innerHTML = this.text_; div.style.width = "150px"; div.style.textAlign = "center"; div.style.backgroundColor = "#ffffff"; div.style.border = "solid 3px #dedede"; div.style.padding = '10px'; div.style.position = 'absolute'; div.style.visibility = 'hidden'; div.style.fontFamily = "Tahoma, Verdana, Arial"; div.style.fontSize = "11px"; div.style.fontWeight = "bold"; map.getPane(G_MAP_FLOAT_PANE).appendChild(div); this.map_ = map; this.div_ = div; } Tooltip.prototype.remove = function(){ this.div_.parentNode.removeChild(this.div_); } Tooltip.prototype.copy = function(){ return new Tooltip(this.marker_,this.text_,this.padding_); } Tooltip.prototype.redraw = function(force){ if (!force) return; var markerPos = this.map_.fromLatLngToDivPixel(this.marker_.getPoint()); var iconAnchor = this.marker_.getIcon().iconAnchor; var xPos = Math.round(markerPos.x - this.div_.clientWidth / 2); var yPos = markerPos.y - iconAnchor.y - this.div_.clientHeight - this.padding_; this.div_.style.top = yPos - 5 + 'px'; this.div_.style.left = xPos + 50 + 'px'; } Tooltip.prototype.show = function(){ this.div_.style.visibility = 'visible'; } Tooltip.prototype.hide = function(){ this.div_.style.visibility = 'hidden'; } if (GBrowserIsCompatible()) { map = new GMap2(document.getElementById("DIV_MekanistMap")); map.disableDoubleClickZoom() } function createMarker(point, MarkerImage, PlaceName, PlaceId) { var icon = new GIcon(); icon.image = 'http://www.mekanist.net/img/markers/' + MarkerImage; icon.iconSize = new GSize(22, 28); icon.iconAnchor = new GPoint(3, 26); icon.shadow = 'http://www.mekanist.net/img/markers/shadow.png'; icon.shadowSize = new GSize(36, 28); icon.infoWindowAnchor = new GPoint(10, 10); var marker = new GMarker(point, {icon:icon, zIndexProcess:GetZIndex}); GEvent.addListener(marker, 'click', function() { //window.location.assign('http://www.mekanist.net/showplace.aspx?id=' + PlaceId); window.open("http://www.mekanist.net/showplace.aspx?id=" + PlaceId); }); return marker; } var ImageArray = new Array(); var PointArray = new Array(); function SelectTab(tab) { tab.style.height = "21px"; tab.style.border = "solid 3px #789b10"; tab.style.backgroundColor = "#789b10"; tab.style.color = "#ffffff"; tab.style.padding = "2px 8px 0px 8px"; } function UnselectTab(tab) { tab.style.height = "18px"; tab.style.border = "solid 3px #cad3b1"; tab.style.backgroundColor = "#ffffff"; tab.style.color = "#5f683e"; tab.style.padding = "2px 8px 0px 8px"; } function GetPlacesAround(PlaceType) { document.getElementById("IMG_Loader").style.display = ''; var ActiveArray; if (PlaceType == "yemek") { SelectTab(document.getElementById("DIV_yemek")); UnselectTab(document.getElementById("DIV_alisveris")); ActiveArray = ARR_Places_Food; } else if (PlaceType = "alisveris") { SelectTab(document.getElementById("DIV_alisveris")); UnselectTab(document.getElementById("DIV_yemek")); ActiveArray = ARR_Places_Shopping; } map.clearOverlays(); PointArray = new Array(); currentZIndex = 100; for(var i=0; i 0) { document.getElementById("MEKANIST_MapControl_ZoomOut").style.display = ''; document.getElementById("MEKANIST_MapControl_ZoomOut0").style.display = 'none'; } else { document.getElementById("MEKANIST_MapControl_ZoomOut").style.display = 'none'; document.getElementById("MEKANIST_MapControl_ZoomOut0").style.display = ''; } } function ZoomIn() { var zoom = map.getZoom(); if (zoom < 17) { map.setZoom(++zoom); } CheckZoom(); } function ZoomOut() { var zoom = map.getZoom(); if (zoom > 0) { map.setZoom(--zoom); } CheckZoom(); } function fitPlaces(points, placecount) { var bounds = new GLatLngBounds(); for (var i = 0; i < points.length; i++) { bounds.extend(points[i]); } var zoomLevel = map.getBoundsZoomLevel(bounds); if (placecount < 10 && zoomLevel > 1) zoomLevel--; map.setZoom(zoomLevel); //map.setCenter(bounds.getCenter()); CheckZoom() } GetPlacesAround("yemek");