Skip to content

Commit ab2d746

Browse files
committed
【update】地图卷帘范例优化; review by songym
1 parent 01983d6 commit ab2d746

File tree

1 file changed

+72
-8
lines changed

1 file changed

+72
-8
lines changed

examples/component/components_compare_vue.html

Lines changed: 72 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,44 @@
1616
width: 100%;
1717
height: 100%;
1818
}
19+
20+
.compare-title {
21+
position: absolute;
22+
top: 20px;
23+
left: 12%;
24+
display: flex;
25+
align-items: center;
26+
justify-content: space-between;
27+
width: 74%;
28+
z-index: 100;
29+
}
30+
31+
.compare-title .sm-component-border {
32+
width: 334px;
33+
height: 48px;
34+
}
1935
</style>
2036
</head>
2137

2238
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
2339
<div id="main">
40+
<div class="compare-title">
41+
<sm-border type="border6">
42+
<sm-text v-bind="textProps" title="全球疫情累积确诊">
43+
</sm-text>
44+
</sm-border>
45+
<sm-border type="border6">
46+
<sm-text v-bind="textProps" title="全球疫情累积发病率">
47+
</sm-text>
48+
</sm-border>
49+
</div>
2450
<sm-compare :before-map-options="beforeMapOptions" :after-map-options="afterMapOptions"></sm-compare>
2551
<!-- <sm-compare>
26-
<sm-web-map slot="beforeMap" target="beforeMap" server-url="https://iportal.supermap.io/iportal"
27-
:map-id="801571284">
52+
<sm-web-map slot="beforeMap" target="beforeMap" server-url="https://www.supermapol.com/" @load="load"
53+
:map-id="2134374143">
2854
</sm-web-map>
29-
<sm-web-map slot="afterMap" target="afterMap" server-url="https://iportal.supermap.io/iportal"
30-
:map-id="491609698">
55+
<sm-web-map slot="afterMap" target="afterMap" server-url="https://www.supermapol.com/"
56+
:map-id="1127786844">
3157
</sm-web-map>
3258
</sm-compare> -->
3359
</div>
@@ -39,13 +65,51 @@
3965
return {
4066
beforeMapOptions: {
4167
target: 'beforeMap',
42-
serverUrl: 'https://iportal.supermap.io/iportal',
43-
mapId: 801571284
68+
serverUrl: 'https://www.supermapol.com',
69+
mapId: 2134374143,
70+
mapOptions: {
71+
center: [-39.9535, 38.0542],
72+
zoom: 2.44
73+
74+
},
75+
legendControl: {
76+
background: "rgba(0,0,0,0.3)",
77+
textColor: "#fff",
78+
show: true,
79+
position: "bottom-left",
80+
layerNames: ["0315countrycenternpc"],
81+
mode: "simple"
82+
}
4483
},
4584
afterMapOptions: {
4685
target: 'afterMap',
47-
serverUrl: 'https://iportal.supermap.io/iportal',
48-
mapId: 491609698
86+
serverUrl: 'https://www.supermapol.com/',
87+
mapId: 1127786844,
88+
mapOptions: {
89+
center: [-39.9535, 38.0542],
90+
zoom: 2.44
91+
92+
},
93+
legendControl: {
94+
background: "rgba(0,0,0,0.3)",
95+
textColor: "#fff",
96+
show: true,
97+
position: "bottom-right",
98+
layerNames: ["0315contryregion"],
99+
mode: "simple"
100+
}
101+
},
102+
textProps: {
103+
textColor: "#fff",
104+
background: "rgba(0,0,0,0)",
105+
fontStyle: {
106+
fontSize: '27px',
107+
lineHeight: 1.5,
108+
fontWeight: "normal",
109+
justifyContent: "center",
110+
textIndent: 0,
111+
fontFamily: "微软雅黑",
112+
}
49113
}
50114
};
51115
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy