Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
Project
Project
Details
Activity
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
耿迪迪
gassafety
Commits
3bbdfba8
Commit
3bbdfba8
authored
Jul 12, 2021
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地图控件 gengdidi
parent
5c6c40c8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
gaodeMap.js
gassafety-web/src/utils/gaodeMap.js
+8
-4
No files found.
gassafety-web/src/utils/gaodeMap.js
View file @
3bbdfba8
...
...
@@ -231,10 +231,14 @@ class gaodeMap {
}
amapLoader
(){
map
.
addControl
(
new
AMap
.
MapType
({
defaultType
:
0
,
//0代表默认,1代表卫星
showRoad
:
true
//显示路况(右上角也可点击)
}));
AMap
.
plugin
([
'AMap.ToolBar'
,
'AMap.Scale'
,
'AMap.OverView'
,
'AMap.MapType'
,
'AMap.Geolocation'
],
function
(){
//创建并添加工具控件,上下左右移动,以及缩放
//map.addControl(new AMap.ToolBar());
map
.
addControl
(
new
AMap
.
Scale
());
//map.addControl(new AMap.OverView({isOpen:true}))
map
.
addControl
(
new
AMap
.
MapType
());
//map.addControl(new AMap.Geolocation());
});
}
...
...
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