明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jt_front
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
jt_front
Commits
29aca50e
Commit
29aca50e
authored
Dec 04, 2025
by
chenron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
f432e65a
Pipeline
#104148
passed with stage
in 13 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
CommonMap.vue
src/components/CommonMap.vue
+7
-7
No files found.
src/components/CommonMap.vue
View file @
29aca50e
...
...
@@ -9,15 +9,15 @@ import { nextTick, onMounted, reactive, ref } from "vue";
import
gansuLine
from
"./newLine.json"
;
let
map
=
null
;
window
.
_AMapSecurityConfig
=
{
//
securityJsCode: "75a8291a9e8f7c838fc5e4dd0d538f30",
securityJsCode
:
"7aee6d6553ba9a8178e0c57b60a51481"
,
securityJsCode
:
"75a8291a9e8f7c838fc5e4dd0d538f30"
,
//
securityJsCode: "7aee6d6553ba9a8178e0c57b60a51481",
};
// 初始化地图
const
handleInitMap
=
()
=>
{
let
selectName
=
sessionStorage
.
getItem
(
"selectedContentBtn"
);
AMapLoader
.
load
({
//
key: "c691971f068b92c897fb908c4ddef6d4", // 申请好的Web端开发者Key
key
:
"9a22433229a51dc5114d4bbf92f687ee"
,
// 申请好的Web端开发者Key
key
:
"c691971f068b92c897fb908c4ddef6d4"
,
// 申请好的Web端开发者Key
//
key: "9a22433229a51dc5114d4bbf92f687ee", // 申请好的Web端开发者Key
version
:
"2.0"
,
plugins
:
[
"AMap.DistrictSearch"
,
"AMap.GeoJSON"
],
})
...
...
@@ -28,8 +28,8 @@ const handleInitMap = () => {
zoom
:
4
,
//初始化地图级别
center
:
[
100.808299
,
35.791787
],
//初始化地图中心点位置
expandZoomRange
:
true
,
// 开启显示范围设置
//
mapStyle: "amap://styles/2d017848d08f94f20b6e50aaae661148",
mapStyle
:
"amap://styles/d9cd35cfbd75e272e528a7fde0bcfc53"
,
mapStyle
:
"amap://styles/2d017848d08f94f20b6e50aaae661148"
,
//
mapStyle: "amap://styles/d9cd35cfbd75e272e528a7fde0bcfc53",
rotateEnable
:
false
,
// 是否可以旋转
copyrightControl
:
false
,
logoControl
:
false
,
...
...
@@ -393,7 +393,7 @@ onMounted(() => {
color: #93d2ff;
margin-left: 2px;
}
.amap-container{
.amap-container
{
background: none;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment