Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Muse
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
罗超
Muse
Commits
bb2439be
Commit
bb2439be
authored
Nov 25, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
973ef678
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
24 deletions
+24
-24
centerMpBaidu.vue
src/components/sellDashboard/map/centerMpBaidu.vue
+21
-21
viittoData2.vue
src/components/viitto/viittoData2.vue
+3
-3
No files found.
src/components/sellDashboard/map/centerMpBaidu.vue
View file @
bb2439be
...
...
@@ -60,12 +60,12 @@ export default {
//实例化点
const
point
=
new
BMap
.
Point
(
item
.
Lng
,
item
.
Lat
)
//自定义点的样式
// type 0 激活 绿色 201911250
15057879
// 1 未拜访 紫色 201911250
15102111
// 2 未激活
红色 20191125015100234
// type 0 激活 绿色 201911250
22113414
// 1 未拜访 紫色 201911250
22118834
// 2 未激活
蓝色 20191125022116319
const
icon
=
new
BMap
.
Icon
(
item
.
type
===
0
?
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/201911250
15057879.png'
:
item
.
type
===
1
?
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191125015102111.png'
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191125015100234
.png'
,
new
BMap
.
Size
(
3
0
,
30
)
item
.
type
===
0
?
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/201911250
22113414.png'
:
item
.
type
===
1
?
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191125022118834.png'
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191125022116319
.png'
,
new
BMap
.
Size
(
3
4
,
34
)
);
//生成点标注
const
marker
=
new
BMap
.
Marker
(
point
,
{
icon
:
icon
});
...
...
@@ -80,60 +80,60 @@ export default {
map
.
addOverlay
(
marker
);
})
// //2种聚合的实现
const
size
=
new
BMap
.
Size
(
3
0
,
30
)
const
size
=
new
BMap
.
Size
(
3
4
,
34
)
var
markerClusterer1
=
new
window
.
BMapLib
.
MarkerClusterer
(
map
,
{
markers
:
markerClusterers
[
1
],
styles
:
[{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/201911250
15102111
.png'
,
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/201911250
22118834
.png'
,
size
:
size
,
textSize
:
18
,
textColor
:
'white'
,
},
{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/201911250
15102111
.png'
,
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/201911250
22118834
.png'
,
size
:
size
,
textSize
:
1
8
,
textSize
:
1
6
,
textColor
:
'white'
,
},
{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/201911250
15102111
.png'
,
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/201911250
22118834
.png'
,
size
:
size
,
textSize
:
1
8
,
textSize
:
1
4
,
textColor
:
'white'
,
}]
})
var
markerClusterer2
=
new
window
.
BMapLib
.
MarkerClusterer
(
map
,
{
markers
:
markerClusterers
[
2
],
styles
:
[{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/201911250
15100234
.png'
,
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/201911250
22116319
.png'
,
size
:
size
,
textSize
:
18
,
textColor
:
'white'
,
},
{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/201911250
15100234
.png'
,
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/201911250
22116319
.png'
,
size
:
size
,
textSize
:
1
8
,
textSize
:
1
6
,
textColor
:
'white'
,
},
{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/201911250
15100234
.png'
,
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/201911250
22116319
.png'
,
size
:
size
,
textSize
:
1
8
,
textSize
:
1
4
,
textColor
:
'white'
,
}]
})
var
markerClusterer4
=
new
window
.
BMapLib
.
MarkerClusterer
(
map
,
{
markers
:
markerClusterers
[
0
],
styles
:
[{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/201911250
15057879
.png'
,
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/201911250
22113414
.png'
,
size
:
size
,
textSize
:
18
,
textColor
:
'white'
,
},
{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/201911250
15057879
.png'
,
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/201911250
22113414
.png'
,
size
:
size
,
textSize
:
1
8
,
textSize
:
1
6
,
textColor
:
'white'
,
},
{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/201911250
15057879
.png'
,
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/201911250
22113414
.png'
,
size
:
size
,
textSize
:
1
8
,
textSize
:
1
4
,
textColor
:
'white'
,
}]
})
this
.
map
=
map
...
...
src/components/viitto/viittoData2.vue
View file @
bb2439be
...
...
@@ -258,14 +258,14 @@
width
:
6px
;
height
:
6px
;
display
:
inline-block
;
background-color
:
#
d81e06
;
background-color
:
#
1eb3ff
;
margin-left
:
10px
;
}
.color-type
span
.b
{
background-color
:
#
1296db
;
background-color
:
#
5fffa3
;
}
.color-type
span
.y
{
background-color
:
#f
4ea2a
;
background-color
:
#f
daefd
;
}
.color-type
>
div
{
display
:
flex
;
...
...
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