Skip to content

Commit d5aa5ee

Browse files
committed
【feature】新增地图卷帘组件范例; 新增随机点mapboxgl范例; review by songym
1 parent cffa573 commit d5aa5ee

File tree

11 files changed

+74492
-67193
lines changed

11 files changed

+74492
-67193
lines changed

dist/mapboxgl/iclient-mapboxgl-vue.css

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

dist/mapboxgl/iclient-mapboxgl-vue.js

Lines changed: 71172 additions & 67149 deletions
Large diffs are not rendered by default.

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

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<!--********************************************************************
2+
* Copyright© 2000 - 2020 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_componentsCompare_Vue'></title>
10+
<script type="text/javascript" include="vue" src="../js/include-web.js"></script>
11+
<script include="ant-design-vue,iclient-mapboxgl-vue,mapbox-gl-enhance"
12+
src="../../dist/mapboxgl/include-mapboxgl.js"></script>
13+
<style>
14+
#main {
15+
margin: 0 auto;
16+
width: 100%;
17+
height: 100%;
18+
}
19+
</style>
20+
</head>
21+
22+
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
23+
<div id="main">
24+
<sm-compare :before-map-options="beforeMapOptions" :after-map-options="afterMapOptions"></sm-compare>
25+
<!-- <sm-compare>
26+
<sm-web-map slot="beforeMap" target="beforeMap" server-url="https://iportal.supermap.io/iportal"
27+
:map-id="801571284">
28+
</sm-web-map>
29+
<sm-web-map slot="afterMap" target="afterMap" server-url="https://iportal.supermap.io/iportal"
30+
:map-id="491609698">
31+
</sm-web-map>
32+
</sm-compare> -->
33+
</div>
34+
35+
<script>
36+
new Vue({
37+
el: '#main',
38+
data() {
39+
return {
40+
beforeMapOptions: {
41+
target: 'beforeMap',
42+
serverUrl: 'https://iportal.supermap.io/iportal',
43+
mapId: 801571284
44+
},
45+
afterMapOptions: {
46+
target: 'afterMap',
47+
serverUrl: 'https://iportal.supermap.io/iportal',
48+
mapId: 491609698
49+
}
50+
};
51+
}
52+
})
53+
54+
</script>
55+
</body>
56+
57+
</html>

examples/component/config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ var exampleConfig = {
6969
thumbnail: 'components_ncp_world.png',
7070
fileName: 'components_ncp_world',
7171
localIgnore: true
72+
},
73+
{
74+
name: '地图卷帘',
75+
name_en: 'Map Compare',
76+
version: '10.1.0',
77+
thumbnail: 'components_compare_vue.png',
78+
fileName: 'components_compare_vue',
79+
localIgnore: true
7280
}
7381
]
7482
},
16.2 KB
Loading

examples/locales/en-US/resources.js

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -599,23 +599,24 @@ window.examplesResources = {
599599
"title_ChinaEarthquakeHeat": 'China Earthquake',
600600
"title_ChinaEarthquakeHeatWGS84": 'China Earthquake WGS84',
601601
"title_ChinaEarthquakeHeatClient": 'China Earthquake(Classic) WGS84',
602-
"title_componentsChart_Vue": 'Chart component(Vue',
603-
"title_componentsChart_Vue(pie)":'Pie Chart component(Vue',
604-
"title_componentsChart_Vue(radar)":'Radar Chart component(Vue',
605-
"title_componentsChart_Vue(gauge)":'Gauge Chart component(Vue',
602+
"title_componentsChart_Vue": 'Chart component(Vue)',
603+
"title_componentsChart_Vue(pie)":'Pie Chart component(Vue)',
604+
"title_componentsChart_Vue(radar)":'Radar Chart component(Vue)',
605+
"title_componentsChart_Vue(gauge)":'Gauge Chart component(Vue)',
606606
"title_componentsLayerList_Vue": 'LayerList component(Vue)',
607607
"title_componentsOpenFile_Vue":'OpenFile component(Vue)',
608-
"title_componentsMap_Vue": 'iServer Map component(Vue)',
609-
"title_componentsMiniMap_Vue": 'MiniMap component(Vue)',
610-
"title_componentsPan_Vue": 'Pan component(Vue)',
611-
"title_componentsScale_Vue": 'Scale component(Vue)',
612-
"title_componentsWebmap_Vue": 'iPortal Map component(Vue)',
613-
"title_componentsZoom_Vue": 'Zoom component(Vue)',
614-
"title_componentsLegend_Vue": 'Legend component(Vue)',
615-
"title_componentsBasic_Vue": 'Basic component(Vue)',
616-
"title_componentsMeasure_Vue": 'Measure component(Vue)',
617-
"title_componentsQuery_Vue": 'Query component(Vue)',
618-
"title_componentsSearch_Vue": 'Search component(Vue)',
608+
"title_componentsMap_Vue": 'iServer Map component(Vue)',
609+
"title_componentsMiniMap_Vue": 'MiniMap component(Vue)',
610+
"title_componentsPan_Vue": 'Pan component(Vue)',
611+
"title_componentsScale_Vue": 'Scale component(Vue)',
612+
"title_componentsWebmap_Vue": 'iPortal Map component(Vue)',
613+
"title_componentsCompare_Vue": 'Map Compare(Vue)',
614+
"title_componentsZoom_Vue": 'Zoom component(Vue)',
615+
"title_componentsLegend_Vue": 'Legend component(Vue)',
616+
"title_componentsBasic_Vue": 'Basic component(Vue)',
617+
"title_componentsMeasure_Vue": 'Measure component(Vue)',
618+
"title_componentsQuery_Vue": 'Query component(Vue)',
619+
"title_componentsSearch_Vue": 'Search component(Vue)',
619620
"title_componentsTheme_Vue": 'Theme component',
620621
"title_componentsDemo_Vue": 'Landuse demo',
621622
"title_componentsEstateMonitoringPlatform_Vue": 'Estate project visual monitoring platform demo',
@@ -1081,6 +1082,7 @@ window.examplesResources = {
10811082
"text_cartoCSSStyleChart": "Style Chart of CartoCSS: ",
10821083
"text_heatMapLayer": "Heat Map Layer",
10831084
"text_fastHeatMapLayer": "Fast Heat Map Layer",
1085+
"text_fastHeatMapLayer_mgl": "Heat Map Layer",
10841086
"text_degree": "degree",
10851087
"text_heatMapColorSection": "Heat Map Color Section",
10861088
"text_colorSection": "Color Section",
@@ -1362,7 +1364,7 @@ window.examplesResources = {
13621364
'text_user_download': "Everyone can download",
13631365
'text_user_view': "Everyone can view",
13641366
'text_user_editor': "Login users can edit",
1365-
'text_nickname': "NicknameUsername",
1367+
'text_nickname': "Nickname(Username)",
13661368
'text_department': "Department Name",
13671369
'text_group': "Group Name",
13681370
'text_is_search': "Search",

examples/locales/zh-CN/resources.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,7 @@ window.examplesResources = {
556556
"title_componentsPan_Vue": '平移组件',
557557
"title_componentsScale_Vue": '比例尺组件',
558558
"title_componentsWebmap_Vue": 'iPortal地图',
559+
"title_componentsCompare_Vue": '地图卷帘',
559560
"title_componentsZoom_Vue": '缩放组件',
560561
"title_componentsLegend_Vue": '图例组件',
561562
"title_componentsBasic_Vue": '基础组件',
@@ -1032,6 +1033,7 @@ window.examplesResources = {
10321033
"text_cartoCSSStyleChart": "CartoCSS样式表:",
10331034
"text_heatMapLayer": "热点图",
10341035
"text_fastHeatMapLayer": "新版热点图",
1036+
"text_fastHeatMapLayer_mgl": "热点图",
10351037
"text_degree": "地理单位",
10361038
"text_heatMapColorSection": "热点图颜色分段配置",
10371039
"text_colorSection": "颜色分段配置",

examples/mapboxgl/config.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ var exampleConfig = {
2020
name_en: "3857 coordinate system",
2121
thumbnail: "mb_TileLayer.png",
2222
fileName: "01_tiledMapLayer"
23-
},
23+
},
2424
{
2525
name: "地图-栅格分析",
2626
name_en: "map rasterFunction",
2727
version: "10.0.0",
2828
thumbnail: "tiledMapLayerRasterfunction.png",
2929
fileName: "01_tiledMapLayer_rasterfunction"
30-
},
30+
},
3131
{
3232
name: "地图信息",
3333
name_en: "map query service",
@@ -408,6 +408,13 @@ var exampleConfig = {
408408
name_en: "Heat map",
409409
version: "9.1.0",
410410
content: [
411+
{
412+
name: "随机点",
413+
name_en: "random points",
414+
version: "10.1.0",
415+
thumbnail: "mb_heatMapLayer.png",
416+
fileName: "heatmaplayer_mbgl"
417+
},
411418
{
412419
name: "随机点 (Classic)",
413420
name_en: "random points (Classic)",

0 commit comments

Comments
 (0)