Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
baidu_map
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
mahui
baidu_map
Commits
c483c1f0
Commit
c483c1f0
authored
Jun 15, 2021
by
mahui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
e74c1f36
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
index.js
config/index.js
+1
-1
map.vue
src/components/map.vue
+1
-1
No files found.
config/index.js
View file @
c483c1f0
...
@@ -13,7 +13,7 @@ module.exports = {
...
@@ -13,7 +13,7 @@ module.exports = {
proxyTable
:
{},
proxyTable
:
{},
// Various Dev Server settings
// Various Dev Server settings
host
:
'1
27.0.0.100
'
,
// can be overwritten by process.env.HOST
host
:
'1
92.168.1.122
'
,
// can be overwritten by process.env.HOST
port
:
80
,
// can be overwritten by process.env.PORT, if port is in use, a free one will be determined
port
:
80
,
// can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser
:
false
,
autoOpenBrowser
:
false
,
errorOverlay
:
true
,
errorOverlay
:
true
,
...
...
src/components/map.vue
View file @
c483c1f0
...
@@ -784,7 +784,7 @@
...
@@ -784,7 +784,7 @@
});
});
this
.
map
.
addOverlay
(
label
);
this
.
map
.
addOverlay
(
label
);
let
url
=
type
==
1
?
"static/monitor1.png"
:
type
==
2
?
"static/monitor2.png"
:
type
==
3
?
"static/monitor3.png"
:
"static/blue.png"
;
let
url
=
type
==
1
?
"static/monitor1.png"
:
type
==
2
?
"static/monitor2.png"
:
type
==
3
?
"static/monitor3.png"
:
"static/blue.png"
;
let
myIcon
=
new
BMap
.
Icon
(
url
,
new
BMap
.
Size
(
12
,
16
));
let
myIcon
=
new
BMap
.
Icon
(
url
,
new
BMap
.
Size
(
30
,
30
));
let
marker
=
new
BMap
.
Marker
(
coordinate
,{
icon
:
myIcon
});
let
marker
=
new
BMap
.
Marker
(
coordinate
,{
icon
:
myIcon
});
this
.
map
.
addOverlay
(
marker
);
// 将标注添加到地图中
this
.
map
.
addOverlay
(
marker
);
// 将标注添加到地图中
marker
.
addEventListener
(
"click"
,
function
()
{
marker
.
addEventListener
(
"click"
,
function
()
{
...
...
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