From 3a4343f647f038a9e8366f17b33a07fdfd8b680c Mon Sep 17 00:00:00 2001 From: zuoxiao <470321431@qq.com> Date: 星期四, 05 十二月 2024 10:26:57 +0800 Subject: [PATCH] 1.添加巡检时的后台定位权限获取 --- 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