明树Git Lab

Commit 29aca50e authored by chenron's avatar chenron

修改

parent f432e65a
Pipeline #104148 passed with stage
in 13 seconds
...@@ -9,15 +9,15 @@ import { nextTick, onMounted, reactive, ref } from "vue"; ...@@ -9,15 +9,15 @@ import { nextTick, onMounted, reactive, ref } from "vue";
import gansuLine from "./newLine.json"; import gansuLine from "./newLine.json";
let map = null; let map = null;
window._AMapSecurityConfig = { window._AMapSecurityConfig = {
// securityJsCode: "75a8291a9e8f7c838fc5e4dd0d538f30", securityJsCode: "75a8291a9e8f7c838fc5e4dd0d538f30",
securityJsCode: "7aee6d6553ba9a8178e0c57b60a51481", // securityJsCode: "7aee6d6553ba9a8178e0c57b60a51481",
}; };
// 初始化地图 // 初始化地图
const handleInitMap = () => { const handleInitMap = () => {
let selectName = sessionStorage.getItem("selectedContentBtn"); let selectName = sessionStorage.getItem("selectedContentBtn");
AMapLoader.load({ AMapLoader.load({
// key: "c691971f068b92c897fb908c4ddef6d4", // 申请好的Web端开发者Key key: "c691971f068b92c897fb908c4ddef6d4", // 申请好的Web端开发者Key
key: "9a22433229a51dc5114d4bbf92f687ee", // 申请好的Web端开发者Key // key: "9a22433229a51dc5114d4bbf92f687ee", // 申请好的Web端开发者Key
version: "2.0", version: "2.0",
plugins: ["AMap.DistrictSearch", "AMap.GeoJSON"], plugins: ["AMap.DistrictSearch", "AMap.GeoJSON"],
}) })
...@@ -28,8 +28,8 @@ const handleInitMap = () => { ...@@ -28,8 +28,8 @@ const handleInitMap = () => {
zoom: 4, //初始化地图级别 zoom: 4, //初始化地图级别
center: [100.808299, 35.791787], //初始化地图中心点位置 center: [100.808299, 35.791787], //初始化地图中心点位置
expandZoomRange: true, // 开启显示范围设置 expandZoomRange: true, // 开启显示范围设置
// mapStyle: "amap://styles/2d017848d08f94f20b6e50aaae661148", mapStyle: "amap://styles/2d017848d08f94f20b6e50aaae661148",
mapStyle: "amap://styles/d9cd35cfbd75e272e528a7fde0bcfc53", // mapStyle: "amap://styles/d9cd35cfbd75e272e528a7fde0bcfc53",
rotateEnable: false, // 是否可以旋转 rotateEnable: false, // 是否可以旋转
copyrightControl: false, copyrightControl: false,
logoControl: false, logoControl: false,
...@@ -393,7 +393,7 @@ onMounted(() => { ...@@ -393,7 +393,7 @@ onMounted(() => {
color: #93d2ff; color: #93d2ff;
margin-left: 2px; margin-left: 2px;
} }
.amap-container{ .amap-container {
background: none; background: none;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment