Skip to content

Commit 479f94f

Browse files
committed
【feature】 组件范例增加 leaflet 目录 review by songym
1 parent f836fa7 commit 479f94f

File tree

11 files changed

+25178
-16
lines changed

11 files changed

+25178
-16
lines changed

dist/leaflet/iclient-leaflet-vue.css

Lines changed: 1698 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/leaflet/iclient-leaflet-vue.js

Lines changed: 23368 additions & 0 deletions
Large diffs are not rendered by default.

dist/leaflet/iclient-leaflet-vue.min.css

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/leaflet/iclient-leaflet-vue.min.js

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/leaflet/include-leaflet.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,14 @@
131131
inputScript("http://iclient.supermap.io/web/libs/plotting/leaflet/10.0.0/iclient-plot-leaflet.min.js");
132132
}
133133
}
134+
if (inArray(includes, 'ant-design-vue')) {
135+
inputCSS("https://unpkg.com/ant-design-vue@1.3.9/dist/antd.min.css");
136+
inputScript("https://unpkg.com/ant-design-vue@1.3.9/dist/antd.min.js");
137+
}
138+
if (inArray(includes, 'iclient-leaflet-vue')) {
139+
inputCSS("../../dist/leaflet/iclient-leaflet-vue.css");
140+
inputScript("../../dist/leaflet/iclient-leaflet-vue.min.js");
141+
}
134142
}
135143

136144

examples/component/config.js

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ var identification = {
77
};
88

99
var exampleConfig = {
10-
vuecomponents: {
11-
name: 'Vue',
12-
name_en: 'Vue',
10+
vuecomponents_mbgl: {
11+
name: 'Vue - MapboxGL',
12+
name_en: 'Vue - MapboxGL',
1313
content: {
1414
map: {
1515
name: '地图',
@@ -26,7 +26,7 @@ var exampleConfig = {
2626
name: 'iPortal 地图',
2727
name_en: 'iPortal Map',
2828
version: '10.0.0',
29-
thumbnail: 'components_webmap_vue.png',
29+
thumbnail: 'components_webmap.png',
3030
fileName: 'components_webmap_vue',
3131
localIgnore: true
3232
},
@@ -386,9 +386,29 @@ var exampleConfig = {
386386
}
387387
}
388388
},
389-
reactcomponents: {
390-
name: 'React',
391-
name_en: 'React',
389+
vuecomponents_leaflet: {
390+
name: 'Vue - Leaflet',
391+
name_en: 'Vue - Leaflet',
392+
content: {
393+
l_map: {
394+
name: '地图',
395+
name_en: 'Map',
396+
content: [
397+
{
398+
name: 'iPortal 地图',
399+
name_en: 'iPortal Map',
400+
version: '10.0.1',
401+
thumbnail: 'components_webmap.png',
402+
fileName: 'l_webmap_vue',
403+
localIgnore: true
404+
}
405+
]
406+
}
407+
}
408+
},
409+
reactcomponents_mbgl: {
410+
name: 'React - MapboxGL',
411+
name_en: 'React - MapboxGL',
392412
localIgnore: true,
393413
content: {
394414
react_map: {
@@ -406,7 +426,7 @@ var exampleConfig = {
406426
name: 'iPortal 地图',
407427
name_en: 'iPortal Map',
408428
version: '10.0.0',
409-
thumbnail: 'components_webmap_react.png',
429+
thumbnail: 'components_webmap.png',
410430
fileName: 'components_webmap_react',
411431
localIgnore: true
412432
},
@@ -557,8 +577,9 @@ var exampleConfig = {
557577
*不分层
558578
*/
559579
var sideBarIconConfig = {
560-
vuecomponents: 'fa-window-restore',
561-
reactcomponents: 'fa-globe',
580+
vuecomponents_mbgl: 'fa-window-restore',
581+
vuecomponents_leaflet: 'fa-window-restore',
582+
reactcomponents_mbgl: 'fa-globe',
562583
h5components: 'fa-map'
563584
};
564585

@@ -568,8 +589,9 @@ var sideBarIconConfig = {
568589
*与sideBarIconConfig的区别:sideBarIconConfig包括侧边栏所有层级目录的图标,exampleIconConfig仅包括一级标题的图标
569590
*/
570591
var exampleIconConfig = {
571-
vuecomponents: 'fa-window-restore',
572-
reactcomponents: 'fa-globe',
592+
vuecomponents_mbgl: 'fa-window-restore',
593+
vuecomponents_leaflet: 'fa-window-restore',
594+
reactcomponents_mbgl: 'fa-globe',
573595
h5components: 'fa-map'
574596
};
575597
window.componentExampleConfig = exampleConfig;
15.3 KB
Loading
-14.3 KB
Binary file not shown.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!--********************************************************************
2+
* Copyright© 2000 - 2019 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_componentsWebmap_Vue'></title>
10+
<script type="text/javascript" include="vue" src="../js/include-web.js"></script>
11+
<script include="ant-design-vue,iclient-leaflet-vue" src="../../dist/leaflet/include-leaflet.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='http://support.supermap.com.cn:8092/' map-id="1649097980"></sm-web-map>
24+
</div>
25+
26+
<script>
27+
new Vue({
28+
el: '#main'
29+
})
30+
31+
</script>
32+
</body>
33+
34+
</html>

examples/locales/en-US/resources.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ window.examplesResources = {
8383
"others": "Others",
8484
"3D-WebGL": "3D-WebGL",
8585
"multiCoordSys": "Multiple CRS",
86-
"vuecomponents": "Vue",
87-
"reactcomponents": 'React',
86+
"vuecomponents_mbgl": "Vue - MapboxGL",
87+
"vuecomponents_leaflet": "Vue - Leaflet",
88+
"reactcomponents_mbgl": 'React - MapboxGL',
8889
"h5components": "H5"
8990
},
9091
"more": {

0 commit comments

Comments
 (0)