From ec6193939600ca7930193b1d5942b1700baf9e06 Mon Sep 17 00:00:00 2001 From: zuoxiao <470321431@qq.com> Date: 星期五, 21 二月 2025 09:20:15 +0800 Subject: [PATCH] 1.巡检记录列表页的实现 2.巡检记录地图展示路径的详情页。 3.处理巡检记录详情页因打开同一个网址导致的webView不显示问题。 4.实现地图页搜索后的地图跳转功能。 5.巡检记录详情页数据加载的优化,默认加载本地数据,当本地没有数据时从服务端获取数据。 --- app/src/main/assets/index.html | 44 ++++++++++++++++++++++++-------------------- 1 files changed, 24 insertions(+), 20 deletions(-) diff --git a/app/src/main/assets/index.html b/app/src/main/assets/index.html index 69d3cf5..2032c9b 100644 --- a/app/src/main/assets/index.html +++ b/app/src/main/assets/index.html @@ -4,32 +4,36 @@ <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <title>澶╁湴鍥�</title> + <title>Map Example</title> <style> - /* 纭繚 body 鍜� html 鍏呮弧鏁翠釜瑙嗗彛 */ + /* 纭繚 body 鍜� html 鍏呮弧鏁翠釜瑙嗗彛 */ html, body { - margin: 0; - padding: 0; - width: 100%; - height: 100%; - overflow: hidden; /* 闃叉婊氬姩鏉″嚭鐜� */ - } - /* 纭繚鍦板浘瀹瑰櫒鍏呮弧鏁翠釜瑙嗗彛 */ - #mapDiv { - width: 100%; - height: 100%; - position: absolute; /* 淇濊瘉鍦板浘鍏ㄥ睆 */ - top: 0; - left: 0; - } + margin: 0; + padding: 0; + width: 100%; + height: 100%; + overflow: hidden; /* 闃叉婊氬姩鏉″嚭鐜� */ + } + /* 纭繚鍦板浘瀹瑰櫒鍏呮弧鏁翠釜瑙嗗彛 */ + #mapDiv { + width: 100%; + height: 100%; + position: absolute; /* 淇濊瘉鍦板浘鍏ㄥ睆 */ + top: 0; + left: 0; + } </style> - <script src="http://api.tianditu.gov.cn/api?v=4.0&tk=d8beed89b43160a9a185e5aff431f85d" - type="text/javascript"></script> + <!-- 寮曠敤鏈湴鐨勫ぉ鍦板浘 JS 鏂囦欢 --> + <script src="js/tianditu.js"></script> + <!-- <script src="http://api.tianditu.gov.cn/api?v=4.0&tk=d8beed89b43160a9a185e5aff431f85d" + type="text/javascript"></script> --> </head> <body> - <div id="mapDiv"></div> - <script src="js/map.js"></script> +<div id="mapDiv"></div> + +<script src="js/map.js"></script> + </body> </html> \ No newline at end of file -- Gitblit v1.8.0