From edbafe463bdaa51f7b466a1491943e0bdcd4dd13 Mon Sep 17 00:00:00 2001
From: CJJ <Administrator@USER-20180117QL>
Date: 星期二, 25 十二月 2018 17:42:33 +0800
Subject: [PATCH] bug
---
gx_tieta/WebRoot/mobil/map.html | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/gx_tieta/WebRoot/mobil/map.html b/gx_tieta/WebRoot/mobil/map.html
index ddfc4d4..608108d 100644
--- a/gx_tieta/WebRoot/mobil/map.html
+++ b/gx_tieta/WebRoot/mobil/map.html
@@ -695,6 +695,8 @@
});
map.addOverlay(mk); // 娣诲姞瑕嗙洊鐗�
+ // 鏇存柊鍐呭
+ updateAllStationData(name, lng, lat);
locationByHomeName(map, name);
@@ -869,6 +871,20 @@
history.pushState(null, null, location.href );
//姝ゅ鍔犲叆鍥為��鏃朵綘瑕佹墽琛岀殑浠g爜
});
+
+ // 鏇存柊鎵�鏈夋満鎴跨殑淇℃伅
+ function updateAllStationData(name, lng, lat) {
+ console.log(allStation);
+ for(var i=0; i<allStation.length; i++) {
+ var _data = allStation[i];
+ if(_data.title == name) {
+ _data.lng = lng;
+ _data.lat = lat;
+ }
+ }
+ }
+
+
</script>
</body>
</html>
\ No newline at end of file
--
Gitblit v1.9.1