From 7b34b0e8c4f02634f791c3ed09f288aa392fafdf Mon Sep 17 00:00:00 2001 From: yin5th <541304803@qq.com> Date: Sat, 14 Jan 2023 17:19:29 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=90=8E=E5=8F=B0=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E6=8F=92=E4=BB=B6):=20=E4=BD=BF=E7=94=A8=E6=96=B0=E7=9A=84?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/manager/Map.php | 21 +++ .../js/lay-module/location/location.js | 3 +- view/manager/map/baidu.html | 100 +++++++++++ view/manager/map/gaode.html | 167 ++++++++++++++++++ view/manager/map/tengxun.html | 144 +++++++++++++++ view/manager/worksite/add.html | 79 ++++----- view/manager/worksite/edit.html | 116 ++++++++---- 7 files changed, 552 insertions(+), 78 deletions(-) create mode 100644 app/controller/manager/Map.php create mode 100644 view/manager/map/baidu.html create mode 100644 view/manager/map/gaode.html create mode 100644 view/manager/map/tengxun.html diff --git a/app/controller/manager/Map.php b/app/controller/manager/Map.php new file mode 100644 index 0000000..c8e4e56 --- /dev/null +++ b/app/controller/manager/Map.php @@ -0,0 +1,21 @@ +data['lng'] = input('lng/s'); + $this->data['lat'] = input('lat/s'); + return $this->view('/manager/map/'.$template); + } +} \ No newline at end of file diff --git a/public/static/layuimini/js/lay-module/location/location.js b/public/static/layuimini/js/lay-module/location/location.js index e93435d..a821f3f 100755 --- a/public/static/layuimini/js/lay-module/location/location.js +++ b/public/static/layuimini/js/lay-module/location/location.js @@ -731,7 +731,8 @@ layui.define(['layer', 'locationX'], function (exports) { $("#lat").val(o.lat); // 渲染地图 if (undefined === window.AMap) { - $.getScript("https://webapi.amap.com/maps?v=1.4.14&key=006d995d433058322319fa797f2876f5", function () { + // $.getScript("https://webapi.amap.com/maps?v=1.4.14&key=006d995d433058322319fa797f2876f5", function () { + $.getScript("https://webapi.amap.com/maps?v=1.4.14&key=68b7bd8022d63972a2a31b5d6a3c69b6", function () { o.openGaodeMap(); }); } else { diff --git a/view/manager/map/baidu.html b/view/manager/map/baidu.html new file mode 100644 index 0000000..7e4820a --- /dev/null +++ b/view/manager/map/baidu.html @@ -0,0 +1,100 @@ + + + + + 地图 + + + + + + + + +
+

说明:

+

1、鼠标滚轮可以缩放地图,拖动地图。

+

2、点击地图,即可获得GCJ-02的经纬度坐标,即火星坐标。

+
+
+
+
+
+ +
+
+ +
+
+
+
+
+ + + \ No newline at end of file diff --git a/view/manager/map/gaode.html b/view/manager/map/gaode.html new file mode 100644 index 0000000..22327b7 --- /dev/null +++ b/view/manager/map/gaode.html @@ -0,0 +1,167 @@ + + + + + 地图 + + + + + + + + +
+

说明:

+

1、鼠标滚轮可以缩放地图,拖动地图。

+

2、点击地图,即可获得GCJ-02的经纬度坐标,即火星坐标。

+
+
+
+
+
+ +
+
+ +
+
+
+
+
+ + + \ No newline at end of file diff --git a/view/manager/map/tengxun.html b/view/manager/map/tengxun.html new file mode 100644 index 0000000..23e5d91 --- /dev/null +++ b/view/manager/map/tengxun.html @@ -0,0 +1,144 @@ + + + + + 地图 + + + + + + + + +
+

说明:

+

1、鼠标滚轮可以缩放地图,拖动地图。

+

2、点击地图,即可获得GCJ-02的经纬度坐标,即火星坐标。

+
+
+
+
+
+ +
+
+ +
+
+
+
+
+ + + \ No newline at end of file diff --git a/view/manager/worksite/add.html b/view/manager/worksite/add.html index ba9d99f..e7f6ba3 100644 --- a/view/manager/worksite/add.html +++ b/view/manager/worksite/add.html @@ -21,12 +21,27 @@
- +
- + +
+ +
+ 地图坐标查询可能有频率限制,当出现不准确或者无法使用等情况,请通过 腾讯地图坐标拾取 自助查询坐标。 如获取到的坐标:30.656691,104.136461 逗号前的为维度,之后为经度 +
+ + + + + + -
@@ -65,18 +80,7 @@ + + \ No newline at end of file diff --git a/view/manager/worksite/edit.html b/view/manager/worksite/edit.html index 6346dc2..7b620ba 100644 --- a/view/manager/worksite/edit.html +++ b/view/manager/worksite/edit.html @@ -16,17 +16,46 @@ + + + + + + + + + + + + + +
- +
- + +
+ +
+ 地图坐标查询可能有频率限制,当出现不准确或者无法使用等情况,请通过 腾讯地图坐标拾取 自助查询坐标。 如获取到的坐标:30.656691,104.136461 逗号前的为维度,之后为经度 +
+ + + + + + -
@@ -71,18 +100,35 @@ + \ No newline at end of file