<%@ page language="C#" autoeventwireup="true" inherits="map, App_Web_llnzchxq" %> <% string order = (Request.QueryString["order"] == null ? "" : Request.QueryString["order"].ToString()); string cityName = (Request.QueryString["cityName"] == null ? "" : Request.QueryString["cityName"].ToString()); string keyWord = (Request["keyWord"] == null ? "" : Request["keyWord"].ToString()); string key = keyWord; if (keyWord.Equals("")) { key = "请输入关键字(楼盘名)"; } string typename = (Request.QueryString["typename"] == null ? "" : Request.QueryString["typename"].ToString()); string priceAvg = (Request.QueryString["priceAvg"] == null ? "" : Request.QueryString["priceAvg"].ToString()); string id = (Request.QueryString["id"] == null ? "" : Request.QueryString["id"].ToString()); if (priceAvg.Equals("")) { priceAvg = "0-9999999"; } %> 驻马店楼市地图-驻马店网 var URL = ""; var COOKIENAME = "hisMap"; //使.mapBox自适应窗口宽度和高度 $(function () { mapheight(); }); function mapheight() { var win_width = $(window).width(); var win_height = $(window).height(); var topHeight = $("#topHead").height(); $("#container").css({ "height": win_height - topHeight - 34, "width": win_width - 302 }); $(".tx_mm").css({ "height": win_height - 281 }); } function show(c_Str, imgg) { if (document.all(c_Str).style.display == 'none') { document.all(c_Str).style.display = 'block'; document.all(imgg).src = '/app/images/maphouse/xsmore_02.gif'; } else { document.all(c_Str).style.display = 'none'; document.all(imgg).src = '/app/images/maphouse/xsmore_01.gif'; } mapheight(); }
当前的位置:房产频道 > 楼市地图

找到 0 个符合要求的楼盘

清 空 以下是您浏览过的楼盘
$(function () { $(".changeMenu > ul > li > a").mouseover(function (e) { if (this == e.target) { var container = $(this).parent().parent(); var index = $.inArray(this, $(this).parent().parent().parent().find("a")); var panels, temStyle; panels = $(this).parent().parent().parent().parent().find(".con_tabs"); if (panels.eq(index).is(".con_tabs")) { if ($(container).children().is(".on")) { $(container).children().removeClass("on").eq(index).addClass("on"); } panels.addClass("conNo").eq(index).removeClass("conNo"); } } }); //tab切换 }); //jquery的onready con_tabs divNone0
  • <#=i #> <#=n.title#>

    楼盘类型:<#=n.type#>
    项目特色: <#=n.feature #>
    <#=price #>
    咨询热线: <#=n.sellerTel #>
    楼盘地址: <#=n.address #>

  • var keyWord = "<%=keyWord %>"; var map = new BMap.Map("container"); var cityName="<%=cityName %>"; //map.centerAndZoom(new BMap.Point(114.029104,33.018827), 16); if (cityName == "") { map.centerAndZoom(new BMap.Point(114.029104,33.018827), 13); //先定位海口 } else { var cpos = $("#cityList li").find("a").filter(function () { return $.trim($(this).html()) == cityName; }).eq(0).closest("li").attr("pos"); map.centerAndZoom(new BMap.Point(cpos.split(",")[0], cpos.split(",")[1]), 13); } map.enableScrollWheelZoom(); map.addControl(new BMap.NavigationControl()); //添加默认缩放平移控件 //创建参数 var myRichMarker2 = new Array(); var index = new Array(); var icon = ''; function showMapInfo() { alert("当前地图中心点:" + map.getCenter().lng + "," + map.getCenter().lat) } //条件选择=============== $(function() { $("#orderBtn a").each(function(i) { $(this).click(function() { //alert(i); if (i == 0) { var sortName = "startByname"; } else { var sortName = "priceMin"; } $("#sortName").val(sortName); if ($(this).hasClass("on")) { var sortType = "asc"; $("#orderBtn a").removeClass(); } else { var sortType = "desc"; $("#orderBtn a").removeClass(); $(this).addClass("on"); } $("#sortType").val(sortType); my_showMarker(); }); }); }); //提交搜索 function submiBtn() { value = $("#loupanText").val(); if (value == "" || value == "请输入关键字(楼盘名)") { alert("请输入楼盘名称"); } else { map.centerAndZoom(new BMap.Point(114.029104,33.018827), 9); map.clearOverlays(); $("#loupanNum").html(icon); var sortName = $("#sortName").val(); var sortType = $("#sortType").val(); var bs = map.getBounds(); //获取可视区域 var bssw = bs.getSouthWest(); //可视区域左下角 var bsne = bs.getNorthEast(); //可视区域右上角 $.post(URL + "/data.aspx?keyWord=" + value, { aLng: bssw.lng, aLat: bssw.lat, bLng: bsne.lng, bLat: bsne.lat, sortName: sortName, sortType: sortType, title: value }, function (data) { //var obj = jQuery.parseJSON(data); var obj = eval("(" + data + ")"); window.listDate = obj.data; $("#buildingList").empty(); //alert(listDate.length) $.each(listDate, function (i, n) { biaozhu(n); buildingList(i, n); }); if (listDate.length == 1) { map.centerAndZoom(new BMap.Point(listDate[0].mapLng, listDate[0].mapLat), 13); myInfo(listDate[0]); //alert(listDate[0].mapLng); } $("#loupanNum").text(obj.info); }); } } //条件选择end=============== //操作事件++++ map.addEventListener("dragend", function() { my_showMarker(); }); // map.addEventListener("zoomend", function() { // my_showMarker(); // }); //单个楼盘大图 var id="<%=id %>"; if (id == "") { my_showMarker(); //单个城市大图 } else { submitFourm(id); } //地图的所有批量标注 function my_showMarker() { map.clearOverlays(); $("#loupanNum").html(icon); //var type = $("#type").text(); //var price = $("#price").text(); var type = ''; var price = 0; var sortName = $("#sortName").val(); var sortType = $("#sortType").val(); var bs = map.getBounds(); //获取可视区域 var bssw = bs.getSouthWest(); //可视区域左下角 var bsne = bs.getNorthEast(); //可视区域右上角 //alert("当前地图可视范围是:" + bssw.lng + "," + bssw.lat + "到" + bsne.lng + "," + bsne.lat); $.post("/data.aspx?" + window.location.href.split('?')[1], { aLng: bssw.lng, aLat: bssw.lat, bLng: bsne.lng, bLat: bsne.lat, type: type, price: price, sortName: sortName, sortType: sortType }, function (data) { //var obj = jQuery.parseJSON(data); var obj = eval("(" + data + ")"); //alert("Data Loaded: " + obj.status); //先清空左侧buildingList window.listDate = obj.data; $("#buildingList").empty(); $.each(listDate, function (i, n) { biaozhu(n); buildingList(i, n); }); //alert(obj.info); $("#loupanNum").text(obj.info); if (keyWord != "") { if (obj.data.length == 1) { myInfo(obj.data[0]); } } }); } //楼盘搜索-单个标注 function submitFourm(id) { map.clearOverlays(); $("#loupanNum").html(icon); $.post("/data.aspx?id=" + id, function (data) { //var obj = jQuery.parseJSON(data); var obj = eval("(" + data + ")"); if (obj.status == 1) { $("#loupanNum").text(obj.info); var n = obj.data[0]; map.centerAndZoom(new BMap.Point(n.mapLng, n.mapLat), 13); biaozhu(n); $("#buildingList").empty(); buildingList(0, n); myInfo(n) } else { $("#loupanNum").text(0); map.clearOverlays(); } }); } //富标注函数 function biaozhu(n) { myRichMarker = new BMapLib.RichMarker('

    ' + n.title + '

    ', new BMap.Point(n.mapLng, n.mapLat), { "anchor": new BMap.Size( - 12, -38), "enableDragging": false }); //标注点击事件 myRichMarker.addEventListener("onclick", function(e) { //var price = getPrice(n.priceMin,n.priceAvg,n.priceMax); //var marker = new BMap.Marker(new BMap.Point(n.mapLng,n.mapLat)); myInfo(n); }); myRichMarker.addEventListener("onmouseover", function(e) { $("#m" + n.id).addClass("hover"); $("#m" + n.id).parent("div").css("z-index", 99999); }); myRichMarker.addEventListener("onmouseout", function(e) { //document.getElementById("rm3_image").src = "http://1.com/Public/images/icon.png"; //alert(222); $("#m" + n.id).removeClass("hover"); $("#m" + n.id).parent("div").css("z-index", 0); }); map.addOverlay(myRichMarker); } //左侧列表 function buildingList(i, n) { i++; var price = getPrice(n.priceMin, n.priceAvg, n.priceMax); //alert(price); var data = new Object(); data.n = n; data.i = i; data.price = price; //data.nm = JSON.stringify(n); //alert(data.toSource()); var bt = baidu.template; var html = bt('t:_1234-abcd-1', data); $("#buildingList").append(html); } function tomyInfo(i) { $("#buildingListWarp li").removeClass("blue"); $("#blist_" + i).addClass("blue"); i--; //var json_listDate = jQuery.parseJSON(listDate); //alert(typeof listDate); //alert(listDate[i].toSource()); myInfo(listDate[i]); } //弹出信息框 function myInfo(n) { changeCookie(n); var marker = new BMap.Marker(new BMap.Point(n.mapLng, n.mapLat)); var sContent = '

    ' + n.title + '

    • 楼盘类型:' + n.type + '
    • ' + getPrice1(n.priceMin, n.priceAvg, n.priceMax) + '
    • 咨询热线:' + n.sellerTel + '
    • 楼盘地址: ' + n.address + '
    '; //var opt = { // offset:new BMap.Size(-5, -28), // }; var opts = { offset: new BMap.Size( - 5, -28) } var infoWindow = new BMap.InfoWindow(sContent, opts); // 创建信息窗口对象 map.openInfoWindow(infoWindow, new BMap.Point(n.mapLng, n.mapLat)); // 打开信息窗口 } //价格转化 function getPrice(priceMin, priceAvg, priceMax) { if (priceMin != 0) { return "起 价:" + priceMin + "元/㎡"; } else if (priceAvg != 0) { return "均 价:" + priceAvg + "元/㎡"; } else if (priceMax != 0) { return "最 高 价:" + priceMax + "元/㎡"; } else { return "价 格:暂无报价"; } } //价格转化1 function getPrice1(priceMin, priceAvg, priceMax) { if (priceMin != 0) { return "起 价:" + priceMin + "元/㎡"; } else if (priceAvg != 0) { return "均 价:" + priceAvg + "元/㎡"; } else if (priceMax != 0) { return "最 高 价:" + priceMax + "元/㎡"; } else { return "价 格:暂无报价"; } } //图标颜色 function setIcon(value) { return value > 3 ? 2 : 3; } //历史列表 //插入浏览cookie function changeCookie(n) { var id = n.id; var title = n.title; var canAdd = true; //初始可以插入cookie信息 var hisArt = $.cookie(COOKIENAME); var len = 0; if (hisArt) { hisArt = eval("(" + hisArt + ")"); len = hisArt.length; } $(hisArt).each(function() { if (this.id == id) { canAdd = false; //已经存在,不能插入 return false; } }); if (canAdd == true) { var json = "["; var start = 0; if (len > 14) { start = 1; } for (var i = start; i < len; i++) { json = json + "{\"title\":\"" + hisArt[i].title + "\",\"id\":\"" + hisArt[i].id + "\"},"; } json = json + "{\"title\":\"" + title + "\",\"id\":\"" + id + "\"}]"; $.cookie(COOKIENAME, json, { expires: 100 }); } hisShow(); } //删除cookie function delCookie(i, id) { if (i < 0) { //i小于0,则为清空 $.cookie(COOKIENAME, null); $("#hisMapList").html(''); } else { var flag = false; var obj = eval("(" + $.cookie(COOKIENAME) + ")"); $(obj).each(function() { if (this.id == id) { flag = true; } }); if (flag) { obj.splice(i, 1); var json = $.toJSON(obj); $.cookie(COOKIENAME, json, { expires: 100 }); hisShow(); } } } hisShow(); function hisShow() { var hisMap = $.cookie(COOKIENAME); var json = eval("(" + hisMap + ")"); var list = ""; for (var i = 0; i < json.length; i++) { //list = list + "
  • "+json[i].title+"
  • "; list = list + '' + json[i].title + '关闭'; } $("#hisMapList").html(list); //$("#hisMapList").append(html); } function hismyinfo(id) { $.post("/data.aspx", { id: id }, function (data) { //var obj = jQuery.parseJSON(data); var obj = eval("(" + data + ")"); if (obj.status == 1) { var n = obj.data[0]; map.centerAndZoom(new BMap.Point(n.mapLng, n.mapLat), 14); map.clearOverlays(); $("#buildingList").empty(); buildingList(0, n); biaozhu(n); myInfo(n); } else { alert("无法找到该楼盘"); } }); //alert(id); } //auto function displayResult(item, val, text) { submitFourm(val); }