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的经纬度坐标,即火星坐标。
+说明:
+1、鼠标滚轮可以缩放地图,拖动地图。
+2、点击地图,即可获得GCJ-02的经纬度坐标,即火星坐标。
+说明:
+1、鼠标滚轮可以缩放地图,拖动地图。
+2、点击地图,即可获得GCJ-02的经纬度坐标,即火星坐标。
+