Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
platform
/
fanxing_new
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4aaaee78
authored
Apr 10, 2020
by
潘建波
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改地图拉伸后出现空白问题
1 parent
a0e307be
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
src/views/trafficShow/map.vue
src/views/trafficShow/map.vue
View file @
4aaaee7
<
template
>
<
template
>
<div>
<div
style=
"width:100%"
>
<div
id=
"map"
class=
"maps"
></div>
<div
id=
"map"
class=
"maps"
></div>
<div
id=
"popup"
class=
"ol-popup"
>
<div
id=
"popup"
class=
"ol-popup"
>
<a
<a
...
@@ -444,8 +444,10 @@ export default {
...
@@ -444,8 +444,10 @@ export default {
},
},
watch
:{
watch
:{
mapopen
(){
mapopen
(){
debugger
setTimeout
(()
=>
{
map
.
updateSize
();
map
.
updateSize
();
},
1000
)
// this.InitMap();
// this.InitMap();
}
}
},
},
...
@@ -466,7 +468,9 @@ export default {
...
@@ -466,7 +468,9 @@ export default {
<
style
lang=
"stylus"
scoped
>
<
style
lang=
"stylus"
scoped
>
.maps
{
.maps
{
background
:
url("./map.png")
background
:
url("./map.png")
;
width
100%
}
}
.ol-control
button
{
.ol-control
button
{
display
:
none
!important
;
display
:
none
!important
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment