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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
src/views/trafficShow/map.vue
src/views/trafficShow/map.vue
View file @
4aaaee7
<
template
>
<div>
<div
style=
"width:100%"
>
<div
id=
"map"
class=
"maps"
></div>
<div
id=
"popup"
class=
"ol-popup"
>
<a
...
...
@@ -444,8 +444,10 @@ export default {
},
watch
:{
mapopen
(){
debugger
map
.
updateSize
();
setTimeout
(()
=>
{
map
.
updateSize
();
},
1000
)
// this.InitMap();
}
},
...
...
@@ -466,7 +468,9 @@ export default {
<
style
lang=
"stylus"
scoped
>
.maps
{
background
:
url("./map.png")
background
:
url("./map.png")
;
width
100%
}
.ol-control
button
{
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