diff --git a/public/food/foodMap.html b/public/food/foodMap.html
index 90edd5b..104fd2c 100644
--- a/public/food/foodMap.html
+++ b/public/food/foodMap.html
@@ -36,9 +36,9 @@
var defaultArea = "nj";
var positions = {
- // "pk": { name: "浦口区", lng: 118.592631, lat: 32.049500, markers: [{ icon: "images/marker.png", width: 128, height: 128, lng: 118.589631, lat: 32.049500, data: "12345" }, { icon: "images/marker.png", width: 32, height: 32, lng: 118.592832, lat: 32.059502, data: "12345" }] },
- // "nj": { "lng": 118.802997, "lat": 32.066366, markers: [{ icon: "images/shengfloor.png",w:330,h:230, lng:118.82276, lat:32.095614, data: "省公司大楼" },{ icon: "images/1.png",w:300,h:200, lng: 118.816436, lat: 32.038332, data: "供应商1" },{ icon: "images/2.png",w:300,h:200, lng: 118.730198, lat: 32.022659, data: "供应商2" },{ icon: "images/3.png",w:300,h:200, lng: 118.895199, lat: 32.13427, data: "供应商3" }] },
- "nj": { "lng": 118.802997, "lat": 32.066366, markers: [{ icon: "images/shengfloor.png", lng: 118.773886, lat:32.058391, data: "省公司大楼" },{ icon: "images/1.png",lng: 118.816436, lat: 32.038332, data: "供应商1" },{ icon: "images/2.png",lng: 118.730198, lat: 32.022659, data: "供应商2" },{ icon: "images/3.png",lng: 118.895199, lat: 32.13427, data: "供应商3" }] },
+ // "pk": { name: "浦口区", lng: 118.592631, lat: 32.049500, markers: [{ icon: "images/marker.png", width: 128, height: 128, lng: 118.589631, lat: 32.049500, data: "12345" }, { icon: "images/marker.png", width: 32, height: 32, lng: 118.592832, lat: 32.059502, data: "12345" }] },
+ // "nj": { "lng": 118.802997, "lat": 32.066366, markers: [{ icon: "images/shengfloor.png",w:330,h:230, lng:118.82276, lat:32.095614, data: "省公司大楼" },{ icon: "images/1.png",w:300,h:200, lng: 118.816436, lat: 32.038332, data: "供应商1" },{ icon: "images/2.png",w:300,h:200, lng: 118.730198, lat: 32.022659, data: "供应商2" },{ icon: "images/3.png",w:300,h:200, lng: 118.895199, lat: 32.13427, data: "供应商3" }] },
+ "nj": { "lng": 118.802997, "lat": 32.066366, markers: [{ icon: "images/shengfloor.png", lng: 118.777408, lat: 32.055459, data: "省公司大楼" }, { icon: "images/1.png", lng: 118.816436, lat: 32.038332, data: "供应商1" }, { icon: "images/2.png", lng: 118.730198, lat: 32.022659, data: "供应商2" }, { icon: "images/3.png", lng: 118.895199, lat: 32.13427, data: "供应商3" }] },
"jy": { name: "建邺区", lng: 118.729156, lat: 32.005818 },
"gl": { name: "鼓楼区", lng: 118.774862, lat: 32.086006 },
"yh": { name: "雨花区", lng: 118.683091, lat: 31.941923 },
@@ -73,11 +73,11 @@
style: "aegis://styles/aegis/Streets",
// 默认缩放层级
zoom: 11,
-
+
// 地图中心点
center: [lng, lat],
- //倾斜角度
- pitch: 45,
+ //倾斜角度
+ pitch: 45,
// 地图默认字体
localIdeographFontFamily: "Microsoft YoHei"
});
@@ -127,10 +127,10 @@
el.className = "marker";
// 自定义图标
el.src = markerData.icon;
- // el.style.width = markerData.width == undefined ? "64px" : markerData.width + "px";
- // el.style.height = markerData.height == undefined ? "64px" : markerData.height + "px";
- // el.style.width = markerData.width == undefined ? "260px" : markerData.width + "px";
- // el.style.height = markerData.height == undefined ? "200px" : markerData.height + "px";
+ // el.style.width = markerData.width == undefined ? "64px" : markerData.width + "px";
+ // el.style.height = markerData.height == undefined ? "64px" : markerData.height + "px";
+ // el.style.width = markerData.width == undefined ? "260px" : markerData.width + "px";
+ // el.style.height = markerData.height == undefined ? "200px" : markerData.height + "px";
// 如果不传el,会默认给一个蓝色水滴图标
var mk = new SGMap.Marker(el, {
// marker相对经纬度点坐标点的位置
diff --git a/public/green/greenMap.html b/public/green/greenMap.html
index 5b78d8d..e2e3319 100644
--- a/public/green/greenMap.html
+++ b/public/green/greenMap.html
@@ -36,9 +36,9 @@
var defaultArea = "nj";
var positions = {
- // "pk": { name: "浦口区", lng: 118.592631, lat: 32.049500, markers: [{ icon: "greenImages/marker.png", width: 128, height: 128, lng: 118.589631, lat: 32.049500, data: "12345" }, { icon: "greenImages/marker.png", width: 32, height: 32, lng: 118.592832, lat: 32.059502, data: "12345" }] },
- // "nj": { "lng": 118.802997, "lat": 32.066366, markers: [{ icon: "greenImages/shengfloor.png",w:330,h:230, lng: 118.85244, lat:32.11629, data: "江苏省公司大楼" },{ icon: "greenImages/floor2.png",w:330,h:230, lng: 118.647195, lat: 32.039924, data: "南京市公司大楼" },{ icon: "greenImages/floor3.png",w:330,h:230, lng: 119.02204, lat: 32.10846, data: "客服中心公司大楼" },] },
- "nj": { "lng": 118.802997, "lat": 32.066366, markers: [{ icon: "greenImages/shengfloor.png",w:330,h:230, lng: 118.773886, lat:32.058391, data: "江苏省公司大楼" },] },
+ // "pk": { name: "浦口区", lng: 118.592631, lat: 32.049500, markers: [{ icon: "greenImages/marker.png", width: 128, height: 128, lng: 118.589631, lat: 32.049500, data: "12345" }, { icon: "greenImages/marker.png", width: 32, height: 32, lng: 118.592832, lat: 32.059502, data: "12345" }] },
+ // "nj": { "lng": 118.802997, "lat": 32.066366, markers: [{ icon: "greenImages/shengfloor.png",w:330,h:230, lng: 118.85244, lat:32.11629, data: "江苏省公司大楼" },{ icon: "greenImages/floor2.png",w:330,h:230, lng: 118.647195, lat: 32.039924, data: "南京市公司大楼" },{ icon: "greenImages/floor3.png",w:330,h:230, lng: 119.02204, lat: 32.10846, data: "客服中心公司大楼" },] },
+ "nj": { 'lng': 118.802997, 'lat': 32.066366, markers: [{ icon: "greenImages/shengfloor.png", w: 330, h: 230, lng: 118.777408, lat: 32.055459, data: "江苏省公司大楼" },] },
"jy": { name: "建邺区", lng: 118.729156, lat: 32.005818 },
"gl": { name: "鼓楼区", lng: 118.774862, lat: 32.086006 },
"yh": { name: "雨花区", lng: 118.683091, lat: 31.941923 },
@@ -75,8 +75,8 @@
zoom: 11,
// 地图中心点
center: [lng, lat],
- //倾斜角度
- pitch: 45,
+ //倾斜角度
+ pitch: 45,
// 地图默认字体
localIdeographFontFamily: "Microsoft YoHei"
});
@@ -126,9 +126,9 @@
el.className = "marker";
// 自定义图标
el.src = markerData.icon;
- // el.style.width = markerData.width == undefined ? "64px" : markerData.width + "px";
- // el.style.height = markerData.height == undefined ? "64px" : markerData.height + "px";
- el.style.width = markerData.width == undefined ? "260px" : markerData.width + "px";
+ // el.style.width = markerData.width == undefined ? "64px" : markerData.width + "px";
+ // el.style.height = markerData.height == undefined ? "64px" : markerData.height + "px";
+ el.style.width = markerData.width == undefined ? "260px" : markerData.width + "px";
el.style.height = markerData.height == undefined ? "150px" : markerData.height + "px";
// 如果不传el,会默认给一个蓝色水滴图标
var mk = new SGMap.Marker(el, {
@@ -142,7 +142,8 @@
el.addEventListener("click", function (e) {
/////////////////////////////////自定义输出内容//////////////////////////////////////
console.log("跳转" + e.target.cusData.data);
- // window.parent['vueDefinedMyProp']('nanjing')
+ // window.parent['vueDefinedMyProp']('nanjing')
+ console.log(markerData.lng, markerData.lat)
});
return mk;
diff --git a/public/land/data/fc.json b/public/land/data/fc.json
index ece2799..a01af59 100644
--- a/public/land/data/fc.json
+++ b/public/land/data/fc.json
@@ -437,7 +437,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,32.921756"
+ "position": "118.808192,31.92217"
},
{
"tudi": "金银街17号3幢3单元101室",
@@ -624,7 +624,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,32.921756"
+ "position": "118.808192,31.92217"
},
{
"tudi": "二条巷9号506室",
@@ -1064,7 +1064,7 @@
"city": "南京市",
"area": "江宁区",
"street": "宁电馨苑小区",
- "position": "118.850878,32.935406"
+ "position": "118.850878,31.935406"
},
{
"tudi": "3号楼辅楼1",
@@ -1141,7 +1141,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,32.921756"
+ "position": "118.808192,31.92217"
},
{
"tudi": "车站南村48号20幢102室",
@@ -1196,7 +1196,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,32.921756"
+ "position": "118.808192,31.92217"
},
{
"tudi": "清凉门大街1号5幢二单元2303室",
@@ -1504,7 +1504,7 @@
"city": "南京市",
"area": "江宁区",
"street": "宁电馨苑小区",
- "position": "118.850878,32.935406"
+ "position": "118.850878,31.935406"
},
{
"tudi": "龙园西路113号(枫亚苑05幢1101室)",
@@ -1537,7 +1537,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,32.921756"
+ "position": "118.808192,31.92217"
},
{
"tudi": "龙园西路113号(枫亚苑05幢1102室)",
@@ -1570,7 +1570,7 @@
"city": "南京市",
"area": "江宁区",
"street": "宁电馨苑小区",
- "position": "118.850878,32.935406"
+ "position": "118.850878,31.935406"
},
{
"tudi": "迎春里23幢401室",
@@ -1691,7 +1691,7 @@
"city": "南京市",
"area": "江宁区",
"street": "宁电馨苑小区",
- "position": "118.850878,32.935406"
+ "position": "118.850878,31.935406"
},
{
"tudi": "裕顺雅苑6号702室",
@@ -1735,7 +1735,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,32.921756"
+ "position": "118.808192,31.92217"
},
{
"tudi": "清凉门大街8号03幢1单元1602室",
@@ -1900,7 +1900,7 @@
"city": "南京市",
"area": "江宁区",
"street": "宁电馨苑小区",
- "position": "118.850878,32.935406"
+ "position": "118.850878,31.935406"
},
{
"tudi": "清凉门大街8号03幢1单元304室",
@@ -1922,7 +1922,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,32.921756"
+ "position": "118.808192,31.92217"
},
{
"tudi": "宁电馨苑17栋102",
@@ -1933,7 +1933,7 @@
"city": "南京市",
"area": "江宁区",
"street": "宁电馨苑小区",
- "position": "118.850878,32.935406"
+ "position": "118.850878,31.935406"
},
{
"tudi": "原电试院办公区",
@@ -2098,7 +2098,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,32.921756"
+ "position": "118.808192,31.92217"
},
{
"tudi": "龙园西路113号地下车库20号",
@@ -2285,7 +2285,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,32.921756"
+ "position": "118.808192,31.92217"
},
{
"tudi": "乐山路207号12栋一单元2202",
@@ -2340,7 +2340,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,32.921756"
+ "position": "118.808192,31.92217"
},
{
"tudi": "白云园116号102室",
@@ -2494,7 +2494,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,32.921756"
+ "position": "118.804671,31.921426"
},
{
"tudi": "清凉门大街8号03幢1单元1401室",
diff --git a/public/land/data/td.json b/public/land/data/td.json
index 07e6389..43d4c4e 100644
--- a/public/land/data/td.json
+++ b/public/land/data/td.json
@@ -250,7 +250,7 @@
"city": "南京市",
"area": "江宁区",
"street": "宁电馨苑小区",
- "position": "118.850878,32.935406"
+ "position": "118.850878,31.935406"
},
{
"zongbu": "江苏电力公司",
@@ -492,7 +492,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,32.921756"
+ "position": "118.80723,31.921752"
},
{
"zongbu": "江苏电力公司",
@@ -756,7 +756,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,32.921756"
+ "position": "118.80723,31.921752"
},
{
"zongbu": "江苏电力公司",
@@ -778,7 +778,7 @@
"city": "南京市",
"area": "江宁区",
"street": "宁电馨苑小区",
- "position": "118.850878,32.935406"
+ "position": "118.850878,31.935406"
},
{
"zongbu": "江苏电力公司",
@@ -833,7 +833,7 @@
"city": "南京市",
"area": "江宁区",
"street": "宁电馨苑小区",
- "position": "118.850878,32.935406"
+ "position": "118.850878,31.935406"
},
{
"zongbu": "江苏电力公司",
@@ -976,7 +976,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,32.921756"
+ "position": "118.80723,31.921752"
},
{
"zongbu": "江苏电力公司",
@@ -1031,7 +1031,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,32.921756"
+ "position": "118.80723,31.921752"
},
{
"zongbu": "江苏电力公司",
@@ -1416,7 +1416,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,32.921756"
+ "position": "118.80723,31.921752"
},
{
"zongbu": "江苏电力公司",
@@ -1493,7 +1493,7 @@
"city": "南京市",
"area": "江宁区",
"street": "宁电馨苑小区",
- "position": "118.850878,32.935406"
+ "position": "118.850878,31.935406"
},
{
"zongbu": "江苏电力公司",
@@ -1515,7 +1515,7 @@
"city": "南京市",
"area": "江宁区",
"street": "宁电馨苑小区",
- "position": "118.850878,32.935406"
+ "position": "118.850878,31.935406"
},
{
"zongbu": "江苏电力公司",
@@ -1757,7 +1757,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,31.921756"
+ "position": "118.80723,31.921752"
},
{
"zongbu": "江苏电力公司",
@@ -1966,7 +1966,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,32.921756"
+ "position": "118.80723,31.921752"
},
{
"zongbu": "江苏电力公司",
@@ -2010,7 +2010,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,32.921756"
+ "position": "118.80723,31.921752"
},
{
"zongbu": "江苏电力公司",
@@ -2043,7 +2043,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,32.921756"
+ "position": "118.80723,31.921752"
},
{
"zongbu": "江苏电力公司",
@@ -2241,7 +2241,7 @@
"city": "南京市",
"area": "江宁区",
"street": "宁电馨苑小区",
- "position": "118.850878,32.935406"
+ "position": "118.850878,31.935406"
},
{
"zongbu": "江苏电力公司",
@@ -2252,7 +2252,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,32.921756"
+ "position": "118.80723,31.921752"
},
{
"zongbu": "江苏电力公司",
@@ -2285,7 +2285,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,32.921756"
+ "position": "118.80723,31.921752"
},
{
"zongbu": "江苏电力公司",
@@ -2351,7 +2351,7 @@
"city": "南京市",
"area": "江宁区",
"street": "苏源大道8号",
- "position": "118.807225,32.921756"
+ "position": "118.80723,31.921752"
},
{
"zongbu": "江苏电力公司",
diff --git a/public/land/landMap.html b/public/land/landMap.html
index 82f4d64..376d51c 100644
--- a/public/land/landMap.html
+++ b/public/land/landMap.html
@@ -14,338 +14,373 @@
width: 100%;
height: 100%;
}
- .fc{
+
+ .fc {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/fc.png);
- position:relative;
+ position: relative;
/*z-index:9999;*/
}
- .fc:hover{
+ .fc:hover {
background-image: url(images/fc-hot.png);
}
- .yzfc{
+
+ .yzfc {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/fc.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .yzfc:hover{
+ .yzfc:hover {
background-image: url(images/fc-hot.png);
}
- .tzfc{
+
+ .tzfc {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/fc.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .tzfc:hover{
+ .tzfc:hover {
background-image: url(images/fc-hot.png);
- }.sqfc{
+ }
+
+ .sqfc {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/fc.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .sqfc:hover{
+ .sqfc:hover {
background-image: url(images/fc-hot.png);
- }.wxfc{
+ }
+
+ .wxfc {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/fc.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .wxfc:hover{
+ .wxfc:hover {
background-image: url(images/fc-hot.png);
- }.szfc{
+ }
+
+ .szfc {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/fc.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .szfc:hover{
+ .szfc:hover {
background-image: url(images/fc-hot.png);
- }.czfc{
+ }
+
+ .czfc {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/fc.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .czfc:hover{
+ .czfc:hover {
background-image: url(images/fc-hot.png);
}
- .ntfc{
+
+ .ntfc {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/fc.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .ntfc:hover{
+ .ntfc:hover {
background-image: url(images/fc-hot.png);
}
- .lygfc{
+
+ .lygfc {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/fc.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .lygfc:hover{
+ .lygfc:hover {
background-image: url(images/fc-hot.png);
}
- .hafc{
+
+ .hafc {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/fc.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .hafc:hover{
+ .hafc:hover {
background-image: url(images/fc-hot.png);
}
- .ycfc{
+
+ .ycfc {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/fc.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .ycfc:hover{
+ .ycfc:hover {
background-image: url(images/fc-hot.png);
}
- .xzfc{
+
+ .xzfc {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/fc.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .xzfc:hover{
+ .xzfc:hover {
background-image: url(images/fc-hot.png);
}
- .zjfc{
+
+ .zjfc {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/fc.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .zjfc:hover{
+ .zjfc:hover {
background-image: url(images/fc-hot.png);
}
-/* 土地样式 */
- .td{
+
+ /* 土地样式 */
+ .td {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/td.png);
- position:relative;
+ position: relative;
/*z-index:9999;*/
}
- .td:hover{
+ .td:hover {
background-image: url(images/td-hot.png);
}
- .yztd{
+
+ .yztd {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/td.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .yztd:hover{
+ .yztd:hover {
background-image: url(images/td-hot.png);
}
- .tztd{
+
+ .tztd {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/td.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .tztd:hover{
+ .tztd:hover {
background-image: url(images/td-hot.png);
- }.sqtd{
+ }
+
+ .sqtd {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/td.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .sqtd:hover{
+ .sqtd:hover {
background-image: url(images/td-hot.png);
- }.wxtd{
+ }
+
+ .wxtd {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/td.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .wxtd:hover{
+ .wxtd:hover {
background-image: url(images/td-hot.png);
- }.sztd{
+ }
+
+ .sztd {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/td.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .sztd:hover{
+ .sztd:hover {
background-image: url(images/td-hot.png);
- }.cztd{
+ }
+
+ .cztd {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/td.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .cztd:hover{
+ .cztd:hover {
background-image: url(images/td-hot.png);
}
- .nttd{
+
+ .nttd {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/td.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .nttd:hover{
+ .nttd:hover {
background-image: url(images/td-hot.png);
}
- .lygtd{
+
+ .lygtd {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/td.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .lygtd:hover{
+ .lygtd:hover {
background-image: url(images/td-hot.png);
}
- .hatd{
+
+ .hatd {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/td.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .hatd:hover{
+ .hatd:hover {
background-image: url(images/td-hot.png);
}
- .yctd{
+
+ .yctd {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/td.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .yctd:hover{
+ .yctd:hover {
background-image: url(images/td-hot.png);
}
- .xztd{
+
+ .xztd {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/td.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .xztd:hover{
+ .xztd:hover {
background-image: url(images/td-hot.png);
}
- .zjtd{
+
+ .zjtd {
width: 31px;
height: 36px;
display: none;
z-index: 100;
background-image: url(images/td.png);
- position:relative;
- z-index:9999;
+ position: relative;
+ z-index: 9999;
}
- .zjtd:hover{
+ .zjtd:hover {
background-image: url(images/td-hot.png);
}
- .wnd{
+
+ .wnd {
width: 297px;
height: 93px;
margin-left: -135px;
@@ -353,11 +388,11 @@
display: none;
z-index: 101;
background-image: url(images/wnd.png);
- position:relative;
- z-index:65536;
+ position: relative;
+ z-index: 65536;
}
- .txt{
+ .txt {
width: 100%;
height: 35px;
margin-left: 0px;
@@ -368,13 +403,13 @@
font-size: 12px;
font-weight: bold;
line-height: 35px;
- overflow:hidden;
+ overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
- -o-text-overflow:ellipsis;
+ -o-text-overflow: ellipsis;
}
- .pos{
+ .pos {
width: 100%;
height: 20px;
margin-left: 0px;
@@ -386,20 +421,22 @@
line-height: 20px;
}
-.labelBox{
- /* display: inline-block; */
- width: 100px;
- height: 45px;
- padding-left: 20px;
- /* text-align: center; */
- line-height: 45px;
- background: url(images/box.png) no-repeat;;
- background-size: 100% 100%;
- color: #fff;
- font-weight: 700;
-
-}
-/* .label{
+ .labelBox {
+ /* display: inline-block; */
+ width: 100px;
+ height: 45px;
+ padding-left: 20px;
+ /* text-align: center; */
+ line-height: 45px;
+ background: url(images/box.png) no-repeat;
+ ;
+ background-size: 100% 100%;
+ color: #fff;
+ font-weight: 700;
+
+ }
+
+ /* .label{
color: #000;
font-weight: 700;
@@ -425,13 +462,13 @@
-

房产
+

房产
-
-

地产
-
-
+
+

地产
+
+
@@ -447,192 +484,218 @@
var cityBoundsData = new Object();
var cityOverColor = "#ff002a";//城市鼠标经过颜色
var cityColor = "transparent"
- //socket
-// var socket = io('wss://111.229.30.246:18443');
-var socket = io('ws://111.229.30.246:18444');
-
-//本地socket id
-var socketId = "dtfdzy";// new Date().getTime().toString();//改为自己的固定ID
+ //socket
+ // var socket = io('wss://111.229.30.246:18443');
+ var socket = io('ws://111.229.30.246:18444');
-//document.title = socketId;
+ //本地socket id
+ var socketId = "dtfdzy";// new Date().getTime().toString();//改为自己的固定ID
-//注册
-socket.emit('register', socketId);
+ //document.title = socketId;
-//接收
-socket.on('receive', function (message) {
- switch (message) {
+ //注册
+ socket.emit('register', socketId);
+
+ //接收
+ socket.on('receive', function (message) {
+ switch (message) {
case "0":
- console.log("注册成功!");
- break;
+ console.log("注册成功!");
+ break;
default:
- console.log("其它消息:" + message);
- break;
+ console.log("其它消息:" + message);
+ break;
+ }
+ });
+
+ function send(val) {
+ console.log("val", val)
+ // var targetId = $("txtTarget").value;//目标页面socketId
+ // var message = $("txtMessage").value;//发给目标页面的消息内容
+ socket.emit('sendto', { target: 'fdzy', data: val });
}
-});
-function send(val) {
- console.log("val",val)
- // var targetId = $("txtTarget").value;//目标页面socketId
- // var message = $("txtMessage").value;//发给目标页面的消息内容
- socket.emit('sendto', { target: 'fdzy', data: val });
-}
-
-// function $(id) {
-// return document.getElementById(id);
-// }
+ // function $(id) {
+ // return document.getElementById(id);
+ // }
var positions = {
- "nj": { name: "南京市", lng: 119.932628, lat: 32.473465, markers: [
- { icon: "images/sgs.png", width: 200, height: 138, lng: 118.773886, lat:32.058391, data: "省大楼",url:"/build/sgs.html",zIndex:9999},
- { icon: "images/fwds.png", width: 200, height: 138, lng: 118.741654, lat: 31.992058, data: "服务大厦",url:"/build/tgs.html",zIndex:9999 },
- { icon: "images/sdl.png", width: 200, height: 138, lng: 118.744015, lat: 31.990507, data: "市大楼",url:"/build/cgs.html",zIndex:9999 },] },
- // "nj": { name: "南京市", lng: 118.802997, lat: 32.066366, markers: [
- // { icon: "images/sgs.png", width: 200, height: 100, lng: 118.77416, lat: 32.0578, data: "省大楼" }] },
- "njData": { name: "南京市", lng: 118.802997, lat: 32.066366, markers: [
- { icon: "images/sgs.png", width: 200, height: 100, lng: 118.773886, lat:32.058391, data: "省大楼" },
- { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
- { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
- { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
- { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
- { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
- { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
- { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
- { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
- { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
- { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
- { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat:31.941923, data: "yh" }] },
- "pk": { name: "浦口区", lng: 118.58949874899827, lat: 32.05737447444322, markers: [
- { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
- { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
- { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
- { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
- { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
- { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
- { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
- { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
- { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
- { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
- { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat:31.941923, data: "yh" }] },
- "jy": { name: "建邺区", lng: 118.71473206728729, lat: 32.01047746726674 , markers: [
- { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
- { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
- { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
- { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
- { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
- { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
- { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
- { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
- { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
- { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
- { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat:31.941923, data: "yh" }] },
- "gl": { name: "鼓楼区", lng: 118.76311325517088, lat: 32.0780463450443 , markers: [
- { icon: "images/sgs.png", width: 200, height: 100, lng: 118.773886, lat:32.058391, data: "省大楼" } ,{ icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
- { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
- { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
- { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
- { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
- { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
- { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
- { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
- { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
- { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
- { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat:31.941923, data: "yh" }] },
- "yh": { name: "雨花区", lng: 118.683091, lat: 31.941923 , markers: [
- { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
- { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
- { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
- { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
- { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
- { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
- { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
- { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
- { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
- { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
- { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat:31.941923, data: "yh" }] },
- "qh": { name: "秦淮区", lng: 118.82082851919154, lat: 32.006870857050345 , markers: [
- { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
- { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
- { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
- { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
- { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
- { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
- { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
- { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
- { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
- { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
- { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat:31.941923, data: "yh" }] },
- "jn": { name: "江宁区", lng: 118.80566892449599, lat: 31.827523158402315 , markers: [
- { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
- { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
- { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
- { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
- { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
- { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
- { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
- { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
- { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
- { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
- { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat:31.941923, data: "yh" }] },
- "ls": { name: "溧水区", lng: 119.057397, lat: 31.574872 , markers: [
- { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
- { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
- { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
- { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
- { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
- { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
- { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
- { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
- { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
- { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
- { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat:31.941923, data: "yh" }] },
- "gc": { name: "高淳区", lng: 118.976972, lat: 31.322781 , markers: [
- { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
- { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
- { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
- { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
- { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
- { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
- { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
- { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
- { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
- { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
- { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat:31.941923, data: "yh" }] },
- "lh": { name: "六合区", lng: 118.83795657512042, lat: 32.3903835211603 , markers: [
- { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
- { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
- { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
- { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
- { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
- { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
- { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
- { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
- { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
- { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
- { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat:31.941923, data: "yh" }] },
- "qx": { name: "栖霞区", lng: 118.92919207298758, lat: 32.12803511304287 , markers: [
- { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
- { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
- { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
- { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
- { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
- { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
- { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
- { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
- { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
- { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
- { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat:31.941923, data: "yh" }] },
- "xw": { name: "玄武区", lng: 118.84821532650221, lat: 32.06267580599376 , markers: [
- { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
- { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
- { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
- { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
- { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
- { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
- { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
- { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
- { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
- { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
- { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat:31.941923, data: "yh" }] }
+ "nj": {
+ name: "南京市", lng: 119.932628, lat: 32.473465, markers: [
+ { icon: "images/sgs.png", width: 200, height: 138, lng: 118.777408, lat: 32.055459, data: "省大楼", url: "/build/sgs.html", zIndex: 9999 },
+ { icon: "images/fwds.png", width: 200, height: 138, lng: 118.745114, lat: 31.989611, data: "服务大厦", url: "/build/tgs.html", zIndex: 9999 },
+ { icon: "images/sdl.png", width: 200, height: 138, lng: 118.747345, lat: 31.987819, data: "市大楼", url: "/build/cgs.html", zIndex: 9999 },]
+ },
+ // "nj": { name: "南京市", lng: 118.802997, lat: 32.066366, markers: [
+ // { icon: "images/sgs.png", width: 200, height: 100, lng: 118.77416, lat: 32.0578, data: "省大楼" }] },
+ "njData": {
+ name: "南京市", lng: 118.802997, lat: 32.066366, markers: [
+ { icon: "images/sgs.png", width: 200, height: 100, lng: 118.773886, lat: 32.058391, data: "省大楼" },
+ { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
+ { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
+ { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
+ { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
+ { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
+ { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
+ { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
+ { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
+ { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
+ { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
+ { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat: 31.941923, data: "yh" }]
+ },
+ "pk": {
+ name: "浦口区", lng: 118.58949874899827, lat: 32.05737447444322, markers: [
+ { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
+ { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
+ { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
+ { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
+ { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
+ { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
+ { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
+ { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
+ { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
+ { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
+ { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat: 31.941923, data: "yh" }]
+ },
+ "jy": {
+ name: "建邺区", lng: 118.71473206728729, lat: 32.01047746726674, markers: [
+ { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
+ { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
+ { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
+ { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
+ { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
+ { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
+ { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
+ { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
+ { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
+ { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
+ { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat: 31.941923, data: "yh" }]
+ },
+ "gl": {
+ name: "鼓楼区", lng: 118.76311325517088, lat: 32.0780463450443, markers: [
+ { icon: "images/sgs.png", width: 200, height: 100, lng: 118.773886, lat: 32.058391, data: "省大楼" }, { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
+ { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
+ { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
+ { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
+ { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
+ { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
+ { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
+ { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
+ { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
+ { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
+ { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat: 31.941923, data: "yh" }]
+ },
+ "yh": {
+ name: "雨花区", lng: 118.683091, lat: 31.941923, markers: [
+ { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
+ { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
+ { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
+ { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
+ { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
+ { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
+ { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
+ { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
+ { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
+ { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
+ { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat: 31.941923, data: "yh" }]
+ },
+ "qh": {
+ name: "秦淮区", lng: 118.82082851919154, lat: 32.006870857050345, markers: [
+ { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
+ { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
+ { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
+ { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
+ { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
+ { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
+ { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
+ { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
+ { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
+ { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
+ { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat: 31.941923, data: "yh" }]
+ },
+ "jn": {
+ name: "江宁区", lng: 118.80566892449599, lat: 31.827523158402315, markers: [
+ { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
+ { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
+ { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
+ { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
+ { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
+ { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
+ { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
+ { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
+ { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
+ { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
+ { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat: 31.941923, data: "yh" }]
+ },
+ "ls": {
+ name: "溧水区", lng: 119.057397, lat: 31.574872, markers: [
+ { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
+ { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
+ { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
+ { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
+ { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
+ { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
+ { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
+ { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
+ { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
+ { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
+ { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat: 31.941923, data: "yh" }]
+ },
+ "gc": {
+ name: "高淳区", lng: 118.976972, lat: 31.322781, markers: [
+ { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
+ { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
+ { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
+ { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
+ { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
+ { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
+ { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
+ { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
+ { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
+ { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
+ { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat: 31.941923, data: "yh" }]
+ },
+ "lh": {
+ name: "六合区", lng: 118.83795657512042, lat: 32.3903835211603, markers: [
+ { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
+ { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
+ { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
+ { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
+ { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
+ { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
+ { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
+ { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
+ { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
+ { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
+ { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat: 31.941923, data: "yh" }]
+ },
+ "qx": {
+ name: "栖霞区", lng: 118.92919207298758, lat: 32.12803511304287, markers: [
+ { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
+ { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
+ { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
+ { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
+ { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
+ { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
+ { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
+ { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
+ { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
+ { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
+ { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat: 31.941923, data: "yh" }]
+ },
+ "xw": {
+ name: "玄武区", lng: 118.84821532650221, lat: 32.06267580599376, markers: [
+ { icon: "images/gc.png", width: 50, height: 20, lng: 118.976972, lat: 31.322781, data: "gc" },
+ { icon: "images/gl.png", width: 50, height: 20, lng: 118.76311325517088, lat: 32.0780463450443, data: "gl" },
+ { icon: "images/jy.png", width: 50, height: 20, lng: 118.71473206728729, lat: 32.01047746726674, data: "jy" },
+ { icon: "images/jn.png", width: 50, height: 20, lng: 118.80566892449599, lat: 31.827523158402315, data: "jn" },
+ { icon: "images/ls.png", width: 50, height: 20, lng: 119.057397, lat: 31.574872, data: "ls" },
+ { icon: "images/lh.png", width: 50, height: 20, lng: 118.83795657512042, lat: 32.3903835211603, data: "lh" },
+ { icon: "images/pk.png", width: 50, height: 20, lng: 118.58949874899827, lat: 32.05737447444322, data: "pk" },
+ { icon: "images/qx.png", width: 50, height: 20, lng: 118.92919207298758, lat: 32.12803511304287, data: "qx" },
+ { icon: "images/qh.png", width: 50, height: 20, lng: 118.82082851919154, lat: 32.006870857050345, data: "qh" },
+ { icon: "images/xw.png", width: 50, height: 20, lng: 118.84821532650221, lat: 32.06267580599376, data: "xw" },
+ { icon: "images/yh.png", width: 50, height: 20, lng: 118.683091, lat: 31.941923, data: "yh" }]
+ }
}
var layers = {}
@@ -652,7 +715,7 @@ function send(val) {
function initMap() {
var area = GetQueryString("area");
- console.log("defaultArea",defaultArea)
+ console.log("defaultArea", defaultArea)
var lng = positions[defaultArea].lng;
var lat = positions[defaultArea].lat;
if (area != null) {
@@ -682,8 +745,8 @@ function send(val) {
};
function initMap1() {
var area = GetQueryString("area");
- // console.log("defaultArea",defaultArea)
- defaultArea="njData"
+ // console.log("defaultArea",defaultArea)
+ defaultArea = "njData"
loadMarkers(defaultArea);
};
@@ -705,19 +768,19 @@ function send(val) {
layers.jiangsu = new Object();
layers.jiangsu.line = createLine("jiangsu", res.jiangsu, '#3787ff', 2).id;
layers.jiangsu.polygon = createPolygon("jiangsu", res.jiangsu, '#3787ff', 0.1).id;
- createCities("nanjing",res.nanjing);
- createCities("zhenjiang",res.zhenjiang);
- createCities("suzhou",res.suzhou);
- createCities("changzhou",res.changzhou);
- createCities("wuxi",res.wuxi);
- createCities("nantong",res.nantong);
- createCities("taizhou",res.taizhou);
- createCities("yangzhou",res.yangzhou);
- createCities("yancheng",res.yancheng);
- createCities("huaian",res.huaian);
- createCities("suqian",res.suqian);
- createCities("lianyungang",res.lianyungang);
- createCities("xuzhou",res.xuzhou);
+ createCities("nanjing", res.nanjing);
+ createCities("zhenjiang", res.zhenjiang);
+ createCities("suzhou", res.suzhou);
+ createCities("changzhou", res.changzhou);
+ createCities("wuxi", res.wuxi);
+ createCities("nantong", res.nantong);
+ createCities("taizhou", res.taizhou);
+ createCities("yangzhou", res.yangzhou);
+ createCities("yancheng", res.yancheng);
+ createCities("huaian", res.huaian);
+ createCities("suqian", res.suqian);
+ createCities("lianyungang", res.lianyungang);
+ createCities("xuzhou", res.xuzhou);
});
@@ -785,72 +848,86 @@ function send(val) {
var hidePolygon = createPolygon("hide" + cityName, cityData, "#000000", 0);
map.on('mouseover', hidePolygon.id, function (ev) {
- createPolygon("show" +cityName , cityData, cityOverColor, 0.1);
+ createPolygon("show" + cityName, cityData, cityOverColor, 0.1);
createLine("show" + cityName, cityData, cityOverColor, 1);
});
map.on('mouseleave', hidePolygon.id, function (ev) {
- clearLayer("p-show" +cityName);
- clearLayer("l-show" +cityName);
+ clearLayer("p-show" + cityName);
+ clearLayer("l-show" + cityName);
});
map.on('click', hidePolygon.id, function (ev) {
- console.log("1111",cityData[0],cityName)
+ console.log("1111", cityData[200], cityName)
map.easeTo({ center: [cityData[100][0], cityData[100][1]], zoom: getMapZoom1() });
send(cityName)
- if(cityName=='nanjing'){
- // initMap1()`
- visibleFC('nanjing')
- visibleTD('nanjing')
- window.parent['nanjing']('nanjing')
- }else if(cityName=='yangzhou'){
- visibleFC('yangzhou')
- visibleTD('yangzhou')
- window.parent['yangzhou']('yangzhou')
- }else if(cityName=='huaian'){
- visibleFC('huaian')
- visibleTD('huaian')
- window.parent['huaian']('huaian')
- }else if(cityName=='taizhou'){
- visibleFC('taizhou')
- visibleTD('taizhou')
- window.parent['taizhou']('taizhou')
- }else if(cityName=='changzhou'){
- visibleFC('changzhou')
- visibleTD('changzhou')
- window.parent['changzhou']('changzhou')
- }else if(cityName=='wuxi'){
- visibleFC('wuxi')
- visibleTD('wuxi')
- window.parent['wuxi']('wuxi')
- }else if(cityName=='xuzhou'){
- visibleFC('xuzhou')
- visibleTD('xuzhou')
- window.parent['xuzhou']('xuzhou')
- }else if(cityName=='nantong'){
- visibleFC('nantong')
- visibleTD('nantong')
- window.parent['nantong']('nantong')
- }else if(cityName=='suzhou'){
- visibleFC('suzhou')
- visibleTD('suzhou')
- window.parent['suzhou']('suzhou')
- }else if(cityName=='zhenjiang'){
- visibleFC('zhenjiang')
- visibleTD('zhenjiang')
- window.parent['zhenjiang']('zhenjiang')
- }else if(cityName=='suqian'){
- visibleFC('suqian')
- visibleTD('suqian')
- window.parent['suqian']('suqian')
- }else if(cityName=='yancheng'){
- visibleFC('yancheng')
- visibleTD('yancheng')
- window.parent['yancheng']('yancheng')
- }else if(cityName=='lianyungang'){
- visibleFC('lianyungang')
- visibleTD('lianyungang')
- window.parent['lianyungang']('lianyungang')
-}
+ if (cityName == 'nanjing') {
+ // initMap1()`
+ visibleFC('nanjing')
+ visibleTD('nanjing')
+ window.parent['nanjing']('nanjing')
+ map.easeTo({ center: [118.796624, 32.059344], zoom: getMapZoom1() });
+ } else if (cityName == 'yangzhou') {
+ visibleFC('yangzhou')
+ visibleTD('yangzhou')
+ window.parent['yangzhou']('yangzhou')
+ map.easeTo({ center: [119.412834, 32.394404], zoom: getMapZoom1() });
+ } else if (cityName == 'huaian') {
+ visibleFC('huaian')
+ visibleTD('huaian')
+ window.parent['huaian']('huaian')
+ map.easeTo({ center: [119.113166, 33.551495], zoom: getMapZoom1() });
+ } else if (cityName == 'taizhou') {
+ visibleFC('taizhou')
+ visibleTD('taizhou')
+ window.parent['taizhou']('taizhou')
+ map.easeTo({ center: [119.924622, 32.455809], zoom: getMapZoom1() });
+
+ } else if (cityName == 'changzhou') {
+ visibleFC('changzhou')
+ visibleTD('changzhou')
+ window.parent['changzhou']('changzhou')
+ map.easeTo({ center: [119.974092, 31.811313], zoom: getMapZoom1() });
+ } else if (cityName == 'wuxi') {
+ visibleFC('wuxi')
+ visibleTD('wuxi')
+ window.parent['wuxi']('wuxi')
+ map.easeTo({ center: [120.311889, 31.491064], zoom: getMapZoom1() });
+ } else if (cityName == 'xuzhou') {
+ visibleFC('xuzhou')
+ visibleTD('xuzhou')
+ window.parent['xuzhou']('xuzhou')
+ map.easeTo({ center: [117.283752, 34.204224], zoom: getMapZoom1() });
+ } else if (cityName == 'nantong') {
+ visibleFC('nantong')
+ visibleTD('nantong')
+ window.parent['nantong']('nantong')
+ map.easeTo({ center: [120.894522, 31.981269], zoom: getMapZoom1() });
+ } else if (cityName == 'suzhou') {
+ visibleFC('suzhou')
+ visibleTD('suzhou')
+ window.parent['suzhou']('suzhou')
+ map.easeTo({ center: [120.585294, 31.299758], zoom: getMapZoom1() });
+ } else if (cityName == 'zhenjiang') {
+ visibleFC('zhenjiang')
+ visibleTD('zhenjiang')
+ window.parent['zhenjiang']('zhenjiang')
+ map.easeTo({ center: [119.424441, 32.188141], zoom: getMapZoom1() });
+ } else if (cityName == 'suqian') {
+ visibleFC('suqian')
+ visibleTD('suqian')
+ window.parent['suqian']('suqian')
+ map.easeTo({ center: [118.275228, 33.963186], zoom: getMapZoom1() });
+ } else if (cityName == 'yancheng') {
+ visibleFC('yancheng')
+ visibleTD('yancheng')
+ window.parent['yancheng']('yancheng')
+ map.easeTo({ center: [120.16263, 33.348176], zoom: getMapZoom1() });
+ } else if (cityName == 'lianyungang') {
+ visibleFC('lianyungang')
+ visibleTD('lianyungang')
+ window.parent['lianyungang']('lianyungang')
+ map.easeTo({ center: [119.221487, 34.596639], zoom: getMapZoom1() });
+ }
});
}
@@ -864,14 +941,14 @@ function send(val) {
//获取地图层级
function getMapZoom() {
- // console.log("getZoom",map.getZoom())
- return map.getZoom()+2;
+ // console.log("getZoom",map.getZoom())
+ return map.getZoom() + 2;
}
- //获取地图层级
- function getMapZoom1() {
- // console.log("getZoom",map.getZoom())
- // return map.getZoom();
- return 10;
+ //获取地图层级
+ function getMapZoom1() {
+ // console.log("getZoom",map.getZoom())
+ // return map.getZoom();
+ return 10;
}
//设置地图层级
function setMapZoom(n) {
@@ -927,12 +1004,12 @@ function send(val) {
});
mk.setLngLat([markerData.lng, markerData.lat]);
mk.addTo(map);
- el.addEventListener("click", function (e) {
+ el.addEventListener("click", function (e) {
/////////////////////////////////自定义输出内容//////////////////////////////////////
console.log("场景跳转@" + e.target.cusData.data);
- // window.parent['vueDefinedMyProp1']('build')
- window.parent.postMessage({ data:"办公用地",params:e.target.cusData.data,url:e.target.cusData.url},'*');
- // gotoPosition(e.target.cusData.data)
+ // window.parent['vueDefinedMyProp1']('build')
+ window.parent.postMessage({ data: "办公用地", params: e.target.cusData.data, url: e.target.cusData.url }, '*');
+ // gotoPosition(e.target.cusData.data)
});
return mk;
}
@@ -954,1684 +1031,1684 @@ function send(val) {
}
}
function loadFC() {
-
+
$.get("data/fc.json", function (res) {
for (var i in res) {
- if(res[i].city=='南京市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
+ if (res[i].city == '南京市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
visibleTD('nanjing')
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","fc");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省南京市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.tudi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "fc");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省南京市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.tudi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '扬州市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "yzfc");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省扬州市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.tudi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '镇江市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "zjfc");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省镇江市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.tudi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '泰州市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "tzfc");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省泰州市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.tudi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '宿迁市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "sqfc");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省宿迁市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.tudi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '无锡市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "wxfc");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省无锡市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.tudi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '苏州市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "szfc");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省苏州市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.tudi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '常州市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "czfc");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省常州市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.tudi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '南通市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "ntfc");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省南通市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.tudi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '连云港市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "lygfc");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省连云港市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.tudi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '淮安市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "hafc");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省淮安市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.tudi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '盐城市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "ycfc");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省盐城市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.tudi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '徐州市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "xzfc");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省徐州市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.tudi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
}
- }else if(res[i].city=='扬州市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","yzfc");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省扬州市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.tudi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }else if(res[i].city=='镇江市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","zjfc");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省镇江市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.tudi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }else if(res[i].city=='泰州市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","tzfc");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省泰州市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.tudi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }else if(res[i].city=='宿迁市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","sqfc");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省宿迁市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.tudi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }else if(res[i].city=='无锡市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","wxfc");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省无锡市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.tudi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }else if(res[i].city=='苏州市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","szfc");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省苏州市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.tudi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }else if(res[i].city=='常州市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","czfc");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省常州市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.tudi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }else if(res[i].city=='南通市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","ntfc");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省南通市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.tudi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }else if(res[i].city=='连云港市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","lygfc");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省连云港市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.tudi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }else if(res[i].city=='淮安市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","hafc");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省淮安市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.tudi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }else if(res[i].city=='盐城市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","ycfc");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省盐城市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.tudi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }else if(res[i].city=='徐州市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","xzfc");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省徐州市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.tudi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }
-
+
}
});
}
function loadTD() {
$.get("data/td.json", function (res) {
- console.log("res",res)
+ console.log("res", res)
for (var i in res) {
- if(res[i].city=='南京市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","td");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省南京市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" ,e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@" + e.target.cusData);
- });
- el.addEventListener("click", function (e) {
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@" + e.target.cusData.data);
-
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [-15.5, -18]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
+ if (res[i].city == '南京市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "td");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省南京市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.zongdi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" ,e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@" + e.target.cusData);
+ });
+ el.addEventListener("click", function (e) {
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@" + e.target.cusData.data);
+
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [-15.5, -18]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '扬州市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "yztd");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省扬州市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.zongdi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '镇江市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "zjtd");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省镇江市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.zongdi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '泰州市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "tztd");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省泰州市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.zongdi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '宿迁市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "sqtd");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省宿迁市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.zongdi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '无锡市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "wxtd");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省无锡市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.zongdi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '苏州市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "sztd");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省苏州市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.zongdi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '常州市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "cztd");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省常州市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.zongdi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '南通市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "nttd");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省南通市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.zongdi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '连云港市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "lygtd");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省连云港市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.zongdi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '淮安市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "hatd");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省淮安市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.zongdi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '盐城市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "yctd");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省盐城市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.zongdi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
+ } else if (res[i].city == '徐州市') {
+ var row = res[i];
+ var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
+ var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
+ // console.log(lng, lat);
+ if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
+ //画marker点
+ var el = document.createElement("div");
+ el.className = "marker";
+ el.cusData = row;
+ el.lng = lng;
+ el.lat = lat;
+ el.setAttribute("class", "xztd");
+ var tip = document.createElement("div");
+ tip.setAttribute("class", "wnd");
+ el.appendChild(tip);
+ el.tip = tip;
+ var txt = document.createElement("div");
+ txt.innerText = "龙园西路113号(枫亚湾5幢701)";
+ txt.setAttribute("class", "txt");
+ tip.appendChild(txt);
+ tip.txt = txt;
+ var pos = document.createElement("div");
+ pos.innerText = "江苏省徐州市";
+ pos.setAttribute("class", "pos");
+ tip.appendChild(pos);
+ tip.pos = pos;
+ el.addEventListener("mouseover", function (e) {
+ $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
+ $(e.target.tip.txt).html(e.target.cusData.street + "(" + e.target.cusData.zongdi + ")");
+ $(e.target.tip.pos).html(e.target.cusData.province + e.target.cusData.city + e.target.cusData.area + e.target.cusData.street);
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ // console.log("场景跳转@",e.target.cusData);
+ });
+ el.addEventListener("mouseleave", function (e) {
+ $(e.target.tip).hide();
+ /////////////////////////////////自定义输出内容//////////////////////////////////////
+ //console.log("场景跳转@" + e.target.cusData);
+ });
+ // 如果不传el,会默认给一个蓝色水滴图标
+ var mk = new SGMap.Marker(el, {
+ // marker相对经纬度点坐标点的位置
+ anchor: "bottom",
+ // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
+ offset: [0, 0]
+ });
+ mk.setLngLat([lng, lat]);
+ mk.addTo(map);
+ }
}
- }else if(res[i].city=='扬州市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","yztd");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省扬州市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }else if(res[i].city=='镇江市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","zjtd");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省镇江市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }else if(res[i].city=='泰州市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","tztd");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省泰州市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }else if(res[i].city=='宿迁市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","sqtd");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省宿迁市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }else if(res[i].city=='无锡市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","wxtd");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省无锡市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }else if(res[i].city=='苏州市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","sztd");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省苏州市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }else if(res[i].city=='常州市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","cztd");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省常州市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }else if(res[i].city=='南通市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","nttd");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省南通市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }else if(res[i].city=='连云港市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","lygtd");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省连云港市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }else if(res[i].city=='淮安市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","hatd");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省淮安市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }else if(res[i].city=='盐城市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","yctd");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省盐城市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }else if(res[i].city=='徐州市'){
- var row = res[i];
- var lng = parseFloat(row.position.substring(0, row.position.indexOf(',')));
- var lat = parseFloat(row.position.substr(row.position.indexOf(',') + 1));
- // console.log(lng, lat);
- if (lng != NaN && lat != NaN && lng > 100 && lat < 100) {
- //画marker点
- var el = document.createElement("div");
- el.className = "marker";
- el.cusData = row;
- el.lng = lng;
- el.lat = lat;
- el.setAttribute("class","xztd");
- var tip = document.createElement("div");
- tip.setAttribute("class","wnd");
- el.appendChild(tip);
- el.tip = tip;
- var txt = document.createElement("div");
- txt.innerText = "龙园西路113号(枫亚湾5幢701)";
- txt.setAttribute("class","txt");
- tip.appendChild(txt);
- tip.txt = txt;
- var pos = document.createElement("div");
- pos.innerText = "江苏省徐州市";
- pos.setAttribute("class","pos");
- tip.appendChild(pos);
- tip.pos = pos;
- el.addEventListener("mouseover", function (e) {
- $(e.target.tip).show();//(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.txt).html(e.target.cusData.street+"("+e.target.cusData.zongdi+")");
- $(e.target.tip.pos).html(e.target.cusData.province+e.target.cusData.city+e.target.cusData.area+e.target.cusData.street);
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- // console.log("场景跳转@",e.target.cusData);
- });
- el.addEventListener("mouseleave", function (e) {
- $(e.target.tip).hide();
- /////////////////////////////////自定义输出内容//////////////////////////////////////
- //console.log("场景跳转@" + e.target.cusData);
- });
- // 如果不传el,会默认给一个蓝色水滴图标
- var mk = new SGMap.Marker(el, {
- // marker相对经纬度点坐标点的位置
- anchor: "bottom",
- // 相对于元素中心点,偏移的像素距离,负数代表向左和向上
- offset: [0, 0]
- });
- mk.setLngLat([lng, lat]);
- mk.addTo(map);
- }
- }
-
+
}
});
}
- function visibleFC(val){
- // if(val)
- // $(".fc").show();
- // else
- // $(".fc").hide();
- if(val=='nanjing'){
- $(".fc").show();
- $(".yzfc").hide();
- $(".tzfc").hide();
- $(".sqfc").hide();
- $(".wxfc").hide();
- $(".szfc").hide();
- $(".czfc").hide();
- $(".ntfc").hide();
- $(".lygfc").hide();
- $(".hafc").hide();
- $(".ycfc").hide();
- $(".xzfc").hide();
- $(".zjfc").hide();
- }else if(val=='yangzhou'){
- $(".fc").hide();
- $(".yzfc").show();
- $(".tzfc").hide();
- $(".sqfc").hide();
- $(".wxfc").hide();
- $(".szfc").hide();
- $(".czfc").hide();
- $(".ntfc").hide();
- $(".lygfc").hide();
- $(".hafc").hide();
- $(".ycfc").hide();
- $(".xzfc").hide();
- $(".zjfc").hide();
- }else if(val=='huaian'){
- $(".fc").hide();
- $(".yzfc").hide();
- $(".tzfc").hide();
- $(".sqfc").hide();
- $(".wxfc").hide();
- $(".szfc").hide();
- $(".czfc").hide();
- $(".ntfc").hide();
- $(".lygfc").hide();
- $(".hafc").show();
- $(".ycfc").hide();
- $(".xzfc").hide();
- $(".zjfc").hide();
- }else if(val=='taizhou'){
- $(".fc").hide();
- $(".yzfc").hide();
- $(".tzfc").show();
- $(".sqfc").hide();
- $(".wxfc").hide();
- $(".szfc").hide();
- $(".czfc").hide();
- $(".ntfc").hide();
- $(".lygfc").hide();
- $(".hafc").hide();
- $(".ycfc").hide();
- $(".xzfc").hide();
- $(".zjfc").hide();
- }else if(val=='changzhou'){
- $(".fc").hide();
- $(".yzfc").hide();
- $(".tzfc").hide();
- $(".sqfc").hide();
- $(".wxfc").hide();
- $(".szfc").hide();
- $(".czfc").show();
- $(".ntfc").hide();
- $(".lygfc").hide();
- $(".hafc").hide();
- $(".ycfc").hide();
- $(".xzfc").hide();
- $(".zjfc").hide();
- }else if(val=='wuxi'){
- $(".fc").hide();
- $(".yzfc").hide();
- $(".tzfc").hide();
- $(".sqfc").hide();
- $(".wxfc").show();
- $(".szfc").hide();
- $(".czfc").hide();
- $(".ntfc").hide();
- $(".lygfc").hide();
- $(".hafc").hide();
- $(".ycfc").hide();
- $(".xzfc").hide();
- $(".zjfc").hide();
- }else if(val=='xuzhou'){
- $(".fc").hide();
- $(".yzfc").hide();
- $(".tzfc").hide();
- $(".sqfc").hide();
- $(".wxfc").hide();
- $(".szfc").hide();
- $(".czfc").hide();
- $(".ntfc").hide();
- $(".lygfc").hide();
- $(".hafc").hide();
- $(".ycfc").hide();
- $(".xzfc").show();
- $(".zjfc").hide();
- }else if(val=='nantong'){
- $(".fc").hide();
- $(".yzfc").hide();
- $(".tzfc").hide();
- $(".sqfc").hide();
- $(".wxfc").hide();
- $(".szfc").hide();
- $(".czfc").hide();
- $(".ntfc").show();
- $(".lygfc").hide();
- $(".hafc").hide();
- $(".ycfc").hide();
- $(".xzfc").hide();
- $(".zjfc").hide();
- }else if(val=='suzhou'){
- $(".fc").hide();
- $(".yzfc").hide();
- $(".tzfc").hide();
- $(".sqfc").hide();
- $(".wxfc").hide();
- $(".szfc").show();
- $(".czfc").hide();
- $(".ntfc").hide();
- $(".lygfc").hide();
- $(".hafc").hide();
- $(".ycfc").hide();
- $(".xzfc").hide();
- $(".zjfc").hide();
- }else if(val=='zhenjiang'){
- $(".fc").hide();
- $(".yzfc").hide();
- $(".tzfc").hide();
- $(".sqfc").hide();
- $(".wxfc").hide();
- $(".szfc").hide();
- $(".czfc").hide();
- $(".ntfc").hide();
- $(".lygfc").hide();
- $(".hafc").hide();
- $(".ycfc").hide();
- $(".xzfc").hide();
- $(".zjfc").show();
- }else if(val=='suqian'){
- $(".fc").hide();
- $(".yzfc").hide();
- $(".tzfc").hide();
- $(".sqfc").show();
- $(".wxfc").hide();
- $(".szfc").hide();
- $(".czfc").hide();
- $(".ntfc").hide();
- $(".lygfc").hide();
- $(".hafc").hide();
- $(".ycfc").hide();
- $(".xzfc").hide();
- $(".zjfc").hide();
- }else if(val=='yancheng'){
- $(".fc").hide();
- $(".yzfc").hide();
- $(".tzfc").hide();
- $(".sqfc").hide();
- $(".wxfc").hide();
- $(".szfc").hide();
- $(".czfc").hide();
- $(".ntfc").hide();
- $(".lygfc").hide();
- $(".hafc").hide();
- $(".ycfc").show();
- $(".xzfc").hide();
- $(".zjfc").hide();
- }else if(val=='lianyungang'){
- $(".fc").hide();
- $(".yzfc").hide();
- $(".tzfc").hide();
- $(".sqfc").hide();
- $(".wxfc").hide();
- $(".szfc").hide();
- $(".czfc").hide();
- $(".ntfc").hide();
- $(".lygfc").show();
- $(".hafc").hide();
- $(".ycfc").hide();
- $(".xzfc").hide();
- $(".zjfc").hide();
- }
+ function visibleFC(val) {
+ // if(val)
+ // $(".fc").show();
+ // else
+ // $(".fc").hide();
+ if (val == 'nanjing') {
+ $(".fc").show();
+ $(".yzfc").hide();
+ $(".tzfc").hide();
+ $(".sqfc").hide();
+ $(".wxfc").hide();
+ $(".szfc").hide();
+ $(".czfc").hide();
+ $(".ntfc").hide();
+ $(".lygfc").hide();
+ $(".hafc").hide();
+ $(".ycfc").hide();
+ $(".xzfc").hide();
+ $(".zjfc").hide();
+ } else if (val == 'yangzhou') {
+ $(".fc").hide();
+ $(".yzfc").show();
+ $(".tzfc").hide();
+ $(".sqfc").hide();
+ $(".wxfc").hide();
+ $(".szfc").hide();
+ $(".czfc").hide();
+ $(".ntfc").hide();
+ $(".lygfc").hide();
+ $(".hafc").hide();
+ $(".ycfc").hide();
+ $(".xzfc").hide();
+ $(".zjfc").hide();
+ } else if (val == 'huaian') {
+ $(".fc").hide();
+ $(".yzfc").hide();
+ $(".tzfc").hide();
+ $(".sqfc").hide();
+ $(".wxfc").hide();
+ $(".szfc").hide();
+ $(".czfc").hide();
+ $(".ntfc").hide();
+ $(".lygfc").hide();
+ $(".hafc").show();
+ $(".ycfc").hide();
+ $(".xzfc").hide();
+ $(".zjfc").hide();
+ } else if (val == 'taizhou') {
+ $(".fc").hide();
+ $(".yzfc").hide();
+ $(".tzfc").show();
+ $(".sqfc").hide();
+ $(".wxfc").hide();
+ $(".szfc").hide();
+ $(".czfc").hide();
+ $(".ntfc").hide();
+ $(".lygfc").hide();
+ $(".hafc").hide();
+ $(".ycfc").hide();
+ $(".xzfc").hide();
+ $(".zjfc").hide();
+ } else if (val == 'changzhou') {
+ $(".fc").hide();
+ $(".yzfc").hide();
+ $(".tzfc").hide();
+ $(".sqfc").hide();
+ $(".wxfc").hide();
+ $(".szfc").hide();
+ $(".czfc").show();
+ $(".ntfc").hide();
+ $(".lygfc").hide();
+ $(".hafc").hide();
+ $(".ycfc").hide();
+ $(".xzfc").hide();
+ $(".zjfc").hide();
+ } else if (val == 'wuxi') {
+ $(".fc").hide();
+ $(".yzfc").hide();
+ $(".tzfc").hide();
+ $(".sqfc").hide();
+ $(".wxfc").show();
+ $(".szfc").hide();
+ $(".czfc").hide();
+ $(".ntfc").hide();
+ $(".lygfc").hide();
+ $(".hafc").hide();
+ $(".ycfc").hide();
+ $(".xzfc").hide();
+ $(".zjfc").hide();
+ } else if (val == 'xuzhou') {
+ $(".fc").hide();
+ $(".yzfc").hide();
+ $(".tzfc").hide();
+ $(".sqfc").hide();
+ $(".wxfc").hide();
+ $(".szfc").hide();
+ $(".czfc").hide();
+ $(".ntfc").hide();
+ $(".lygfc").hide();
+ $(".hafc").hide();
+ $(".ycfc").hide();
+ $(".xzfc").show();
+ $(".zjfc").hide();
+ } else if (val == 'nantong') {
+ $(".fc").hide();
+ $(".yzfc").hide();
+ $(".tzfc").hide();
+ $(".sqfc").hide();
+ $(".wxfc").hide();
+ $(".szfc").hide();
+ $(".czfc").hide();
+ $(".ntfc").show();
+ $(".lygfc").hide();
+ $(".hafc").hide();
+ $(".ycfc").hide();
+ $(".xzfc").hide();
+ $(".zjfc").hide();
+ } else if (val == 'suzhou') {
+ $(".fc").hide();
+ $(".yzfc").hide();
+ $(".tzfc").hide();
+ $(".sqfc").hide();
+ $(".wxfc").hide();
+ $(".szfc").show();
+ $(".czfc").hide();
+ $(".ntfc").hide();
+ $(".lygfc").hide();
+ $(".hafc").hide();
+ $(".ycfc").hide();
+ $(".xzfc").hide();
+ $(".zjfc").hide();
+ } else if (val == 'zhenjiang') {
+ $(".fc").hide();
+ $(".yzfc").hide();
+ $(".tzfc").hide();
+ $(".sqfc").hide();
+ $(".wxfc").hide();
+ $(".szfc").hide();
+ $(".czfc").hide();
+ $(".ntfc").hide();
+ $(".lygfc").hide();
+ $(".hafc").hide();
+ $(".ycfc").hide();
+ $(".xzfc").hide();
+ $(".zjfc").show();
+ } else if (val == 'suqian') {
+ $(".fc").hide();
+ $(".yzfc").hide();
+ $(".tzfc").hide();
+ $(".sqfc").show();
+ $(".wxfc").hide();
+ $(".szfc").hide();
+ $(".czfc").hide();
+ $(".ntfc").hide();
+ $(".lygfc").hide();
+ $(".hafc").hide();
+ $(".ycfc").hide();
+ $(".xzfc").hide();
+ $(".zjfc").hide();
+ } else if (val == 'yancheng') {
+ $(".fc").hide();
+ $(".yzfc").hide();
+ $(".tzfc").hide();
+ $(".sqfc").hide();
+ $(".wxfc").hide();
+ $(".szfc").hide();
+ $(".czfc").hide();
+ $(".ntfc").hide();
+ $(".lygfc").hide();
+ $(".hafc").hide();
+ $(".ycfc").show();
+ $(".xzfc").hide();
+ $(".zjfc").hide();
+ } else if (val == 'lianyungang') {
+ $(".fc").hide();
+ $(".yzfc").hide();
+ $(".tzfc").hide();
+ $(".sqfc").hide();
+ $(".wxfc").hide();
+ $(".szfc").hide();
+ $(".czfc").hide();
+ $(".ntfc").hide();
+ $(".lygfc").show();
+ $(".hafc").hide();
+ $(".ycfc").hide();
+ $(".xzfc").hide();
+ $(".zjfc").hide();
+ }
}
- function visibleTD(val){
- // if(val)
- // $(".td").show();
- // else
- // $(".td").hide();
- if(val=='nanjing'){
+ function visibleTD(val) {
+ // if(val)
+ // $(".td").show();
+ // else
+ // $(".td").hide();
+ if (val == 'nanjing') {
$(".td").show();
- $(".yztd").hide();
- $(".tztd").hide();
- $(".sqtd").hide();
- $(".wxtd").hide();
- $(".sztd").hide();
- $(".cztd").hide();
- $(".nttd").hide();
- $(".lygtd").hide();
- $(".hatd").hide();
- $(".yctd").hide();
- $(".xztd").hide();
- $(".zjtd").hide();
- }else if(val=='yangzhou'){
- $(".td").hide();
- $(".yztd").show();
- $(".tztd").hide();
- $(".sqtd").hide();
- $(".wxtd").hide();
- $(".sztd").hide();
- $(".cztd").hide();
- $(".nttd").hide();
- $(".lygtd").hide();
- $(".hatd").hide();
- $(".yctd").hide();
- $(".xztd").hide();
- $(".zjtd").hide();
- }else if(val=='huaian'){
- $(".td").hide();
- $(".yztd").hide();
- $(".tztd").hide();
- $(".sqtd").hide();
- $(".wxtd").hide();
- $(".sztd").hide();
- $(".cztd").hide();
- $(".nttd").hide();
- $(".lygtd").hide();
- $(".hatd").show();
- $(".yctd").hide();
- $(".xztd").hide();
- $(".zjtd").hide();
- }else if(val=='taizhou'){
- $(".td").hide();
- $(".yztd").hide();
- $(".tztd").show();
- $(".sqtd").hide();
- $(".wxtd").hide();
- $(".sztd").hide();
- $(".cztd").hide();
- $(".nttd").hide();
- $(".lygtd").hide();
- $(".hatd").hide();
- $(".yctd").hide();
- $(".xztd").hide();
- $(".zjtd").hide();
- }else if(val=='changzhou'){
- $(".td").hide();
- $(".yztd").hide();
- $(".tztd").hide();
- $(".sqtd").hide();
- $(".wxtd").hide();
- $(".sztd").hide();
- $(".cztd").show();
- $(".nttd").hide();
- $(".lygtd").hide();
- $(".hatd").hide();
- $(".yctd").hide();
- $(".xztd").hide();
- $(".zjtd").hide();
- }else if(val=='wuxi'){
- $(".td").hide();
- $(".yztd").hide();
- $(".tztd").hide();
- $(".sqtd").hide();
- $(".wxtd").show();
- $(".sztd").hide();
- $(".cztd").hide();
- $(".nttd").hide();
- $(".lygtd").hide();
- $(".hatd").hide();
- $(".yctd").hide();
- $(".xztd").hide();
- $(".zjtd").hide();
- }else if(val=='xuzhou'){
- $(".td").hide();
- $(".yztd").hide();
- $(".tztd").hide();
- $(".sqtd").hide();
- $(".wxtd").hide();
- $(".sztd").hide();
- $(".cztd").hide();
- $(".nttd").hide();
- $(".lygtd").hide();
- $(".hatd").hide();
- $(".yctd").hide();
- $(".xztd").show();
- $(".zjtd").hide();
- }else if(val=='nantong'){
- $(".td").hide();
- $(".yztd").hide();
- $(".tztd").hide();
- $(".sqtd").hide();
- $(".wxtd").hide();
- $(".sztd").hide();
- $(".cztd").hide();
- $(".nttd").show();
- $(".lygtd").hide();
- $(".hatd").hide();
- $(".yctd").hide();
- $(".xztd").hide();
- $(".zjtd").hide();
- }else if(val=='suzhou'){
- $(".td").hide();
- $(".yztd").hide();
- $(".tztd").hide();
- $(".sqtd").hide();
- $(".wxtd").hide();
- $(".sztd").show();
- $(".cztd").hide();
- $(".nttd").hide();
- $(".lygtd").hide();
- $(".hatd").hide();
- $(".yctd").hide();
- $(".xztd").hide();
- $(".zjtd").hide();
- }else if(val=='zhenjiang'){
- $(".td").hide();
- $(".yztd").hide();
- $(".tztd").hide();
- $(".sqtd").hide();
- $(".wxtd").hide();
- $(".sztd").hide();
- $(".cztd").hide();
- $(".nttd").hide();
- $(".lygtd").hide();
- $(".hatd").hide();
- $(".yctd").hide();
- $(".xztd").hide();
- $(".zjtd").show();
- }else if(val=='suqian'){
- $(".td").hide();
- $(".yztd").hide();
- $(".tztd").hide();
- $(".sqtd").show();
- $(".wxtd").hide();
- $(".sztd").hide();
- $(".cztd").hide();
- $(".nttd").hide();
- $(".lygtd").hide();
- $(".hatd").hide();
- $(".yctd").hide();
- $(".xztd").hide();
- $(".zjtd").hide();
- }else if(val=='yancheng'){
- $(".td").hide();
- $(".yztd").hide();
- $(".tztd").hide();
- $(".sqtd").hide();
- $(".wxtd").hide();
- $(".sztd").hide();
- $(".cztd").hide();
- $(".nttd").hide();
- $(".lygtd").hide();
- $(".hatd").hide();
- $(".yctd").show();
- $(".xztd").hide();
- $(".zjtd").hide();
- }else if(val=='lianyungang'){
- $(".td").hide();
- $(".yztd").hide();
- $(".tztd").hide();
- $(".sqtd").hide();
- $(".wxtd").hide();
- $(".sztd").hide();
- $(".cztd").hide();
- $(".nttd").hide();
- $(".lygtd").show();
- $(".hatd").hide();
- $(".yctd").hide();
- $(".xztd").hide();
- $(".zjtd").hide();
- }
+ $(".yztd").hide();
+ $(".tztd").hide();
+ $(".sqtd").hide();
+ $(".wxtd").hide();
+ $(".sztd").hide();
+ $(".cztd").hide();
+ $(".nttd").hide();
+ $(".lygtd").hide();
+ $(".hatd").hide();
+ $(".yctd").hide();
+ $(".xztd").hide();
+ $(".zjtd").hide();
+ } else if (val == 'yangzhou') {
+ $(".td").hide();
+ $(".yztd").show();
+ $(".tztd").hide();
+ $(".sqtd").hide();
+ $(".wxtd").hide();
+ $(".sztd").hide();
+ $(".cztd").hide();
+ $(".nttd").hide();
+ $(".lygtd").hide();
+ $(".hatd").hide();
+ $(".yctd").hide();
+ $(".xztd").hide();
+ $(".zjtd").hide();
+ } else if (val == 'huaian') {
+ $(".td").hide();
+ $(".yztd").hide();
+ $(".tztd").hide();
+ $(".sqtd").hide();
+ $(".wxtd").hide();
+ $(".sztd").hide();
+ $(".cztd").hide();
+ $(".nttd").hide();
+ $(".lygtd").hide();
+ $(".hatd").show();
+ $(".yctd").hide();
+ $(".xztd").hide();
+ $(".zjtd").hide();
+ } else if (val == 'taizhou') {
+ $(".td").hide();
+ $(".yztd").hide();
+ $(".tztd").show();
+ $(".sqtd").hide();
+ $(".wxtd").hide();
+ $(".sztd").hide();
+ $(".cztd").hide();
+ $(".nttd").hide();
+ $(".lygtd").hide();
+ $(".hatd").hide();
+ $(".yctd").hide();
+ $(".xztd").hide();
+ $(".zjtd").hide();
+ } else if (val == 'changzhou') {
+ $(".td").hide();
+ $(".yztd").hide();
+ $(".tztd").hide();
+ $(".sqtd").hide();
+ $(".wxtd").hide();
+ $(".sztd").hide();
+ $(".cztd").show();
+ $(".nttd").hide();
+ $(".lygtd").hide();
+ $(".hatd").hide();
+ $(".yctd").hide();
+ $(".xztd").hide();
+ $(".zjtd").hide();
+ } else if (val == 'wuxi') {
+ $(".td").hide();
+ $(".yztd").hide();
+ $(".tztd").hide();
+ $(".sqtd").hide();
+ $(".wxtd").show();
+ $(".sztd").hide();
+ $(".cztd").hide();
+ $(".nttd").hide();
+ $(".lygtd").hide();
+ $(".hatd").hide();
+ $(".yctd").hide();
+ $(".xztd").hide();
+ $(".zjtd").hide();
+ } else if (val == 'xuzhou') {
+ $(".td").hide();
+ $(".yztd").hide();
+ $(".tztd").hide();
+ $(".sqtd").hide();
+ $(".wxtd").hide();
+ $(".sztd").hide();
+ $(".cztd").hide();
+ $(".nttd").hide();
+ $(".lygtd").hide();
+ $(".hatd").hide();
+ $(".yctd").hide();
+ $(".xztd").show();
+ $(".zjtd").hide();
+ } else if (val == 'nantong') {
+ $(".td").hide();
+ $(".yztd").hide();
+ $(".tztd").hide();
+ $(".sqtd").hide();
+ $(".wxtd").hide();
+ $(".sztd").hide();
+ $(".cztd").hide();
+ $(".nttd").show();
+ $(".lygtd").hide();
+ $(".hatd").hide();
+ $(".yctd").hide();
+ $(".xztd").hide();
+ $(".zjtd").hide();
+ } else if (val == 'suzhou') {
+ $(".td").hide();
+ $(".yztd").hide();
+ $(".tztd").hide();
+ $(".sqtd").hide();
+ $(".wxtd").hide();
+ $(".sztd").show();
+ $(".cztd").hide();
+ $(".nttd").hide();
+ $(".lygtd").hide();
+ $(".hatd").hide();
+ $(".yctd").hide();
+ $(".xztd").hide();
+ $(".zjtd").hide();
+ } else if (val == 'zhenjiang') {
+ $(".td").hide();
+ $(".yztd").hide();
+ $(".tztd").hide();
+ $(".sqtd").hide();
+ $(".wxtd").hide();
+ $(".sztd").hide();
+ $(".cztd").hide();
+ $(".nttd").hide();
+ $(".lygtd").hide();
+ $(".hatd").hide();
+ $(".yctd").hide();
+ $(".xztd").hide();
+ $(".zjtd").show();
+ } else if (val == 'suqian') {
+ $(".td").hide();
+ $(".yztd").hide();
+ $(".tztd").hide();
+ $(".sqtd").show();
+ $(".wxtd").hide();
+ $(".sztd").hide();
+ $(".cztd").hide();
+ $(".nttd").hide();
+ $(".lygtd").hide();
+ $(".hatd").hide();
+ $(".yctd").hide();
+ $(".xztd").hide();
+ $(".zjtd").hide();
+ } else if (val == 'yancheng') {
+ $(".td").hide();
+ $(".yztd").hide();
+ $(".tztd").hide();
+ $(".sqtd").hide();
+ $(".wxtd").hide();
+ $(".sztd").hide();
+ $(".cztd").hide();
+ $(".nttd").hide();
+ $(".lygtd").hide();
+ $(".hatd").hide();
+ $(".yctd").show();
+ $(".xztd").hide();
+ $(".zjtd").hide();
+ } else if (val == 'lianyungang') {
+ $(".td").hide();
+ $(".yztd").hide();
+ $(".tztd").hide();
+ $(".sqtd").hide();
+ $(".wxtd").hide();
+ $(".sztd").hide();
+ $(".cztd").hide();
+ $(".nttd").hide();
+ $(".lygtd").show();
+ $(".hatd").hide();
+ $(".yctd").hide();
+ $(".xztd").hide();
+ $(".zjtd").hide();
+ }
}
/*
1.获取2个经纬度之间的距离