Skip to content

Commit b6c8781

Browse files
committed
【update】 新增绘制和指南针组件例子; review by xiongjj
1 parent cc3eb40 commit b6c8781

File tree

7 files changed

+90
-0
lines changed

7 files changed

+90
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!--********************************************************************
2+
* Copyright© 2000 - 2021 SuperMap Software Co.Ltd. All rights reserved.
3+
*********************************************************************-->
4+
<!DOCTYPE html>
5+
<html>
6+
7+
<head>
8+
<meta charset="UTF-8">
9+
<title data-i18n='resources.title_componentsCompass_Vue'></title>
10+
<script type="text/javascript" include="vue" src="../js/include-web.js"></script>
11+
<script include="iclient-mapboxgl-vue,mapbox-gl-enhance" src="../../dist/mapboxgl/include-mapboxgl.js"></script>
12+
<style>
13+
#main{
14+
margin: 0 auto;
15+
width: 100%;
16+
height: 100%;
17+
}
18+
</style>
19+
</head>
20+
21+
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
22+
<div id="main">
23+
<sm-web-map server-url='https://iportal.supermap.io/iportal' map-id="801571284">
24+
<sm-compass></sm-compass>
25+
</sm-web-map>
26+
</div>
27+
28+
<script>
29+
new Vue({
30+
el: '#main'
31+
})
32+
33+
</script>
34+
</body>
35+
36+
</html>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!--********************************************************************
2+
* Copyright© 2000 - 2021 SuperMap Software Co.Ltd. All rights reserved.
3+
*********************************************************************-->
4+
<!DOCTYPE html>
5+
<html>
6+
7+
<head>
8+
<meta charset="UTF-8">
9+
<title data-i18n='resources.title_componentsDraw_Vue'></title>
10+
<script type="text/javascript" include="vue" src="../js/include-web.js"></script>
11+
<script include="iclient-mapboxgl-vue,mapbox-gl-enhance,draw" src="../../dist/mapboxgl/include-mapboxgl.js"></script>
12+
<style>
13+
#main{
14+
margin: 0 auto;
15+
width: 100%;
16+
height: 100%;
17+
}
18+
</style>
19+
</head>
20+
21+
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
22+
<div id="main">
23+
<sm-web-map server-url="https://iportal.supermap.io/iportal/" map-id="801571284">
24+
<sm-draw :collapsed="false"></sm-draw>
25+
</sm-web-map>
26+
</div>
27+
28+
<script>
29+
new Vue({
30+
el: '#main'
31+
})
32+
33+
</script>
34+
</body>
35+
36+
</html>

examples/component/config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,20 @@ var exampleConfig = {
152152
version: '10.0.1',
153153
thumbnail: 'components_layerManager_vue.png',
154154
fileName: 'components_layerManager_vue'
155+
},
156+
{
157+
name: '指南针',
158+
name_en: 'Compass',
159+
version: '11.0.0',
160+
thumbnail: 'components_compass_vue.png',
161+
fileName: 'components_compass_vue'
162+
},
163+
{
164+
name: '绘制',
165+
name_en: 'Draw',
166+
version: '11.0.0',
167+
thumbnail: 'components_draw_vue.png',
168+
fileName: 'components_draw_vue'
155169
}
156170
]
157171
},
40 KB
Loading
35.5 KB
Loading

examples/locales/en-US/resources.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,8 @@ window.examplesResources = {
620620
"title_componentsMeasure_Vue": 'Measure component(Vue)',
621621
"title_componentsQuery_Vue": 'Query component(Vue)',
622622
"title_componentsSearch_Vue": 'Search component(Vue)',
623+
"title_componentsCompass_Vue": 'Compass component(Vue)',
624+
"title_componentsDraw_Vue": 'Draw component(Vue)',
623625
"title_componentsTheme_Vue": 'Theme component',
624626
"title_componentsDemo_Vue": 'Landuse demo',
625627
"title_componentsEstateMonitoringPlatform_Vue": 'Estate project visual monitoring platform demo',

examples/locales/zh-CN/resources.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,8 @@ window.examplesResources = {
566566
"title_componentsMeasure_Vue": '量算组件',
567567
"title_componentsQuery_Vue": '查询组件',
568568
"title_componentsSearch_Vue": '搜索组件',
569+
"title_componentsCompass_Vue": '指南针组件',
570+
"title_componentsDraw_Vue": '绘制组件',
569571
"title_componentsTheme_Vue": '主题切换',
570572
"title_componentsDemo_Vue": '土地利用示例',
571573
"title_componentsEstateMonitoringPlatform_Vue": '房产项目可视化监控平台示例',

0 commit comments

Comments
 (0)