Skip to content

Commit df8b5c6

Browse files
【fix】修复mapbox图表pop变小,组件范例代码优化,天地图子组件小红点被遮住 review by liq
1 parent 734ea84 commit df8b5c6

12 files changed

+23
-24
lines changed

examples/component/components_measure_vue.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<div id="main">
2323
<sm-web-map server-url='http://support.supermap.com.cn:8092/' map-id="1649097980">
2424
<!-- 量算组件: sm-measure -->
25-
<sm-measure position="top-left" :collapsed="false"></sm-measure>
25+
<sm-measure :collapsed="false"></sm-measure>
2626
</sm-web-map>
2727
</div>
2828

examples/component/components_rangetheme_vue.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
:data="features" @load="layerLoaded" v-show="!!features.length">
3636
</sm-range-theme-layer>
3737
</sm-web-map>
38+
<!-- 属性表 -->
3839
<div style="width: 272px;float:right">
3940
<div id="infoBox" class="panel panel-primary infoPane"
4041
style="width:272px;margin-top: 250px;position: absolute;fontSize:14px;display: none;float:right">

examples/component/components_ranksymboltheme_vue.html

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,6 @@
3636
v-show="!!features.length">
3737
</sm-ranksymbol-theme-layer>
3838
</sm-web-map>
39-
<div style="width: 272px;float:right">
40-
<div id="infoBox" class="panel panel-primary infoPane"
41-
style="width:272px;margin-top: 250px;position: absolute;fontSize:14px;display: none;float:right">
42-
<div class="panel-heading">
43-
<h5 class='panel-title text-center' data-i18n="resources.text_attributeTable"></h5>
44-
</div>
45-
<div id="infoContent" class="panel-body content">
46-
</div>
47-
</div>
48-
</div>
4939
</div>
5040
<script type="text/javascript" include="vue,bootstrap" src="../js/include-web.js"></script>
5141
<script include="ant-design-vue,iclient-mapboxgl-vue,mapbox-gl-enhance"
@@ -98,7 +88,7 @@ <h5 class='panel-title text-center' data-i18n="resources.text_attributeTable"></
9888
},
9989
features,
10090
themeOptions: {
101-
// map: map,//该可选参数将在下个版本遗弃
91+
//map: map,//该可选参数将在下个版本遗弃
10292
attributions: " ",
10393
themeField: "CON2009",
10494
// 配置图表参数

examples/component/components_search_vue.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@
2323
<sm-web-map server-url='http://support.supermap.com.cn:8092/' map-id="1649097980">
2424
<!-- 搜索组件: sm-search -->
2525
<!-- 支持的数据:layer-names address-match rest-map rest-data online-local-search-->
26-
<sm-search position="top-left" :layer-names="layerNames" :address-match="addressMatch"
27-
:rest-map="restMap"
28-
:online-local-search='onlineLocalSearch'></sm-search>
29-
</sm-web-map>
26+
<sm-search :layer-names="layerNames" :address-match="addressMatch" :rest-map="restMap" :online-local-search='onlineLocalSearch'></sm-search>
27+
</sm-web-map>
3028
</div>
3129

3230
<script>

examples/component/components_tianditu_home_vue.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666

6767
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
6868
<div class="container">
69+
<!-- 导航 -->
6970
<div class="nav-header">
7071
<a href="https://www.tianditu.gov.cn/" class="logo"
7172
><image class="logo-image" src="../img/tianditu/tianditu.png"></image
@@ -79,10 +80,12 @@
7980
<li><a href="http://yjfw.tianditu.gov.cn/" target="_blank">应急服务</a></li>
8081
</ul>
8182
</div>
83+
<!-- 天地图及其子组件 -->
8284
<div id="main">
8385
<sm-web-map :map-options="mapOptions">
8486
<!-- 天地图路线查询组件: sm-tdt-route
85-
天地图搜索组件:sm-tdt-search -->
87+
天地图搜索组件:sm-tdt-search
88+
天地图切换组件:sm-tdt-map-switcher-->
8689
<sm-tdt-route position="top-right" :data="{tk:tk}" :collapsed="true"></sm-tdt-route>
8790
<sm-tdt-search position="top-right" :data="{tk:tk}" :collapsed="true"></sm-tdt-search>
8891
<sm-tdt-map-switcher position="top-right" :data="{tk:tk}" :collapsed="true"></sm-tdt-map-switcher>

examples/component/components_tianditu_switch_vue.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<div id="main">
2525
<sm-web-map :map-options="mapOptions">
2626
<!-- 天地图切换组件:sm-tdt-map-switcher -->
27-
<sm-tdt-map-switcher position="top-left" :data="{tk:tk}" :collapsed="false"></sm-tdt-map-switcher>
27+
<sm-tdt-map-switcher :data="{tk:tk}" :collapsed="false"></sm-tdt-map-switcher>
2828
</sm-web-map>
2929
</div>
3030

examples/component/components_uniquetheme_vue.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
:data="features" @load="layerLoaded" v-show="!!features.length">
3636
</sm-unique-theme-layer>
3737
</sm-web-map>
38+
39+
<!-- 属性表 -->
3840
<div style="width: 272px;float:right">
3941
<div id="infoBox" class="panel panel-primary infoPane"
4042
style="width:272px;margin-top: 250px;position: absolute;fontSize:14px;display: none;float:right">

examples/css/sideBar.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ a.sidebar-toggle {
9191
.skin-blue .treeview-menu > li > a {
9292
color: white;
9393
padding-left: 35px;
94-
padding-right: 26px !important;
94+
padding-right: 17px !important;
9595
}
9696

9797
.skin-blue .sidebar-menu > li > .treeview-menu {

examples/mapboxgl/echarts_bar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
});
145145

146146
map.on('click', 'points', function (e) {
147-
popup = new mapboxgl.Popup();
147+
popup = new mapboxgl.Popup({maxWidth: 'none'});
148148
popup.setLngLat(e.lngLat.toArray())
149149
.setDOMContent(div) // sets a popup on this marker
150150
.addTo(map);

examples/mapboxgl/echarts_lineMarker.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200

201201
map.on('click', 'points', function (e) {
202202

203-
popup = new mapboxgl.Popup();
203+
popup = new mapboxgl.Popup({maxWidth: 'none'});
204204
popup.setLngLat(e.lngLat.toArray())
205205
.setDOMContent(div) // sets a popup on this marker
206206
.addTo(map);

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