Skip to content

Commit 1accf41

Browse files
committed
【feature】新增webmap3.0例子
1 parent 4dde7fc commit 1accf41

File tree

5 files changed

+31
-0
lines changed

5 files changed

+31
-0
lines changed

examples/locales/en-US/resources.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,7 @@ window.examplesResources = {
597597
"title_iportalWebMap_unicode": "SuperMap iPortal Point Style",
598598
"title_iportalWebMap_unique": "SuperMap iPortal Unique Map",
599599
"title_iportalWebMap_label": "SuperMap iPortal Label Map",
600+
"title_iportalWebMap_mapstudio": "SuperMap iPortal WebMap 3.0",
600601
"title_earthquakeHeatMapLayer": "Earthquake occurrences(2005-2016)(Classic)",
601602
"title_echartsEarthquake": "Earthquake occurrences(2005-2016)",
602603
"title_l_echartsEarthquake": "Earthquake heat map (2001-2014)",

examples/locales/zh-CN/resources.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ window.examplesResources = {
541541
"title_iportalWebMap_unicode": "SuperMap iPortal 点样式",
542542
"title_iportalWebMap_unique": "SuperMap iPortal 单值专题图",
543543
"title_iportalWebMap_label": "SuperMap iPortal 标签专题图",
544+
"title_iportalWebMap_mapstudio": "SuperMap iPortal WebMap 3.0",
544545
"title_earthquakeHeatMapLayer": "2005-2016地震次数(Classic)",
545546
"title_echartsEarthquake": "2005到2016年地震发生情况",
546547
"title_l_echartsEarthquake": "2001年到2014年地震热力图",

examples/mapboxgl/config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,13 @@ var exampleConfig = {
599599
version: '9.1.2',
600600
thumbnail: 'iPortalWebmap_unicode.png',
601601
fileName: 'iPortalWebmap_unicode'
602+
},
603+
{
604+
name: 'WebMap 3.0',
605+
name_en: 'WebMap 3.0',
606+
version: '11.2.0',
607+
thumbnail: 'iPortalWebmap_mapstudio.png',
608+
fileName: 'iPortalWebmap_mapstudio'
602609
}
603610
]
604611
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!--********************************************************************
2+
* Copyright© 2000 - 2021 SuperMap Software Co.Ltd. All rights reserved.
3+
*********************************************************************-->
4+
<!DOCTYPE html>
5+
<html style=" width: 100%;height: 100%;">
6+
7+
<head>
8+
<meta charset="UTF-8">
9+
<title data-i18n="resources.title_iportalWebMap_mapstudio"></title>
10+
<script type="text/javascript" include="bootstrap" src="../js/include-web.js"></script>
11+
<script type="text/javascript" include='mapbox-gl-enhance' src="../../dist/mapboxgl/include-mapboxgl.js"></script>
12+
</head>
13+
14+
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height: 100%">
15+
<div id="map" style="width: 100%;height:100%"></div>
16+
<script type="text/javascript">
17+
new mapboxgl.supermap.WebMap(1245594435, {
18+
target: 'map',
19+
server: 'https://www.supermapol.com/'
20+
});
21+
</script>
22+
</body>
112 KB
Loading

0 commit comments

Comments
 (0)