Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
C
crsf-ptvue
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
wuhan
crsf-ptvue
Commits
dcb166c5
Commit
dcb166c5
authored
Sep 13, 2021
by
xiexingan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改电子地图-图片大小
parent
3c0f937e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
index.vue
src/pages/ol/demo/index.vue
+3
-2
index.vue
src/pages/routes/ol/index/index.vue
+10
-7
No files found.
src/pages/ol/demo/index.vue
View file @
dcb166c5
...
...
@@ -246,7 +246,8 @@ export default {
this
.
imgurl
=
url
// 计算静态地图映射到地图上的范围
let
extent
=
[
-
1100
,
110
,
1460
,
820
]
// let extent = [-1100, 110, 1460, 820]
let
extent
=
[
-
600
,
-
100
,
800
,
1000
]
let
projection
=
new
Projection
({
// 投影
...
...
@@ -323,7 +324,7 @@ export default {
view
:
new
View
({
projection
:
projection
,
center
:
getCenter
([
0
,
0
,
0
,
0
]),
// 获取范围的中心坐标。
zoom
:
2.5
,
zoom
:
1.6
,
maxZoom
:
5.0
,
minZoom
:
1.5
,
// extent: [-1100, -200, 1500, 1000] //[minX, minY, maxX, maxY] 控制拖动
...
...
src/pages/routes/ol/index/index.vue
View file @
dcb166c5
...
...
@@ -945,7 +945,8 @@ color: #fff;
.left
{
width
:
13%
;
height
:
90px
;
line-height
:
90px
;
height
:
12%
;
line-height
:
12%
;
text-align
:
center
;
border
:
1px
solid
red
;
position
:
absolute
;
...
...
@@ -957,25 +958,27 @@ color: #fff;
.center
{
width
:
22%
;
height
:
440px
;
line-height
:
440px
;
height
:
56%
;
line-height
:
56%
;
text-align
:
center
;
border
:
1px
solid
red
;
position
:
absolute
;
left
:
4
1
%
;
top
:
2
8
%
;
transform
:
skewX
(
-16deg
)
rotate
(
4
deg
);
left
:
4
0
.5
%
;
top
:
2
9
%
;
transform
:
skewX
(
-16deg
)
rotate
(
6
deg
);
}
.right
{
width
:
15%
;
height
:
170px
;
line-height
:
170px
;
height
:
22%
;
line-height
:
22%
;
text-align
:
center
;
border
:
1px
solid
red
;
position
:
absolute
;
left
:
69%
;
top
:
24%
;
transform
:
skewX
(
7deg
)
rotate
(
5
deg
);
transform
:
skewX
(
7deg
)
rotate
(
4
deg
);
}
}
...
...
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