Skip to content

Commit 08413d8

Browse files
【fix】 去除打印信息,修改例子标题 review by xiongjiaojiao
1 parent 114413e commit 08413d8

9 files changed

+20
-46
lines changed

examples/component/components_cluster_react.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<body>
2424
<div id="main"></div>
2525
<script type="text/babel">
26-
// import {SmClusterLayer} from '@supermap/react-iclient'
26+
// import {SmClusterLayer} from '@supermap/react-iclient'
2727
var SmWebMap = window.SuperMap.Components.SmWebMap;
2828
var SmClusterLayer = window.SuperMap.Components.SmClusterLayer;
2929

@@ -61,10 +61,9 @@
6161
}
6262
}
6363

64-
6564
ReactDOM.render(
66-
<SmWebMap mapId={'676816598'} serverUrl={'http://support.supermap.com.cn:8092/'} >
67-
<SmClusterLayer data={geojson} radius={100}/>
65+
<SmWebMap mapId={'676816598'} serverUrl={'http://support.supermap.com.cn:8092/'}>
66+
<SmClusterLayer data={geojson} radius={100} />
6867
</SmWebMap>,
6968
document.getElementById('main')
7069
);

examples/component/components_deckgl_react.html

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
<meta charset="UTF-8" />
88
<title data-i18n="resources.title_componentsDeckGL_React"></title>
99
<script type="text/javascript" include="react,jquery,papaparse,widgets" src="../js/include-web.js"></script>
10-
<script include="deck,iclient-mapboxgl-react,mapbox-gl-enhance" src="../../dist/mapboxgl/include-mapboxgl.js"></script>
10+
<script
11+
include="deck,iclient-mapboxgl-react,mapbox-gl-enhance"
12+
src="../../dist/mapboxgl/include-mapboxgl.js"
13+
></script>
1114
<style>
1215
html,
1316
body {
@@ -25,10 +28,6 @@
2528
<script type="text/babel">
2629
// import {SmDeckglLayer} from '@supermap/react-iclient'
2730
var host = window.isLocal ? window.server : 'http://support.supermap.com.cn:8090';
28-
var attribution =
29-
"<a href='https://www.mapbox.com/about/maps/' target='_blank'>© Mapbox </a>" +
30-
" with <span>© <a href='http://iclient.supermap.io' target='_blank'>SuperMap iClient</a> | </span>" +
31-
" Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> ";
3231
var SmWebMap = window.SuperMap.Components.SmWebMap;
3332
var SmDeckglLayer = window.SuperMap.Components.SmDeckglLayer;
3433
var mapOptions = {
@@ -37,7 +36,6 @@
3736
version: 8,
3837
sources: {
3938
'raster-tiles': {
40-
attribution: attribution,
4139
type: 'raster',
4240
tiles: [host + '/iserver/services/map-china400/rest/maps/ChinaDark/zxyTileImage.png?z={z}&x={x}&y={y}'],
4341
tileSize: 256
@@ -61,11 +59,12 @@
6159

6260
widgets.loader.showLoader('data loading...');
6361
var _this = this,
64-
popup, map;
62+
popup,
63+
map;
6564

6665
function mapIsLoaded(e) {
67-
map = e.map;
68-
}
66+
map = e.map;
67+
}
6968

7069
$.get('../data/deck.gl/strees_data.csv', function(csvstr) {
7170
widgets.loader.removeLoader();
@@ -131,10 +130,7 @@
131130
}
132131
};
133132
ReactDOM.render(
134-
<SmWebMap
135-
mapOptions={mapOptions}
136-
onLoad={mapIsLoaded}
137-
>
133+
<SmWebMap mapOptions={mapOptions} onLoad={mapIsLoaded}>
138134
<SmDeckglLayer layerType={'hexagon-layer'} options={deckglOptions} />
139135
</SmWebMap>,
140136
document.getElementById('main')

examples/component/components_echarts_react.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@
103103
]
104104
};
105105

106-
console.log(echartsOptions);
107-
108106
ReactDOM.render(
109107
<SmWebMap mapOptions={mapOptions}>
110108
<SmEchartsLayer options={echartsOptions} />

examples/component/components_geojson_react.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@
6060
var layerStyle = new SuperMap.Components.commontypes.CircleStyle();
6161

6262
$.get('../data/全国671个气象站观测数据.geojson', function(res) {
63-
var data = JSON.parse(JSON.stringify(res));
63+
var data = JSON.parse(res);
6464

6565
ReactDOM.render(
6666
<SmWebMap mapOptions={mapOptions}>
67-
<SmGeojsonLayer data={res} layerStyle={layerStyle} />
67+
<SmGeojsonLayer data={data} layerStyle={layerStyle} />
6868
</SmWebMap>,
6969
document.getElementById('main')
7070
);

examples/component/components_labeltheme_react.html

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@
2828
var SmWebMap = window.SuperMap.Components.SmWebMap;
2929
var SmLabelThemeLayer = window.SuperMap.Components.SmLabelThemeLayer;
3030
var host = window.isLocal ? window.server : 'http://iclient.supermap.io';
31-
var attribution =
32-
"<a href='https://www.mapbtyx.com/about/maps/' target='_blank'>© Mapbox </a>" +
33-
" with <span>© <a href='http://iclient.supermap.io' target='_blank'>SuperMap iClient</a> | </span>" +
34-
" Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> ";
35-
3631
var features = [];
3732
var feat, popup, map;
3833
for (var i = 0; i < themeData.length; i++) {
@@ -50,7 +45,6 @@
5045
version: 8,
5146
sources: {
5247
'raster-tiles': {
53-
attribution: attribution,
5448
type: 'raster',
5549
tiles: [host + '/iserver/services/map-china400/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}'],
5650
tileSize: 256
@@ -72,7 +66,6 @@
7266

7367
var themeOptions = {
7468
// map: map,//该可选参数将在下个版本遗弃
75-
attributions: ' ',
7669
style: new SuperMap.ThemeStyle({
7770
labelRect: true,
7871
fontColor: '#000000',
@@ -153,7 +146,7 @@
153146
var statisticsData = getStatisticsData();
154147
var contentHTML =
155148
'<table><tbody><tr>' +
156-
"<td><div>" +
149+
'<td><div>' +
157150
'<table><tbody><tr>' +
158151
"<td><div id='contentID' style='margin-top: 2px;margin-bottom: 2px;width:65px;height:60px;line-height:60px;text-align: center;font-size:35px;color: #ffffff;'>" +
159152
feature.attributes.aqi +

examples/component/components_ranksymboltheme_react.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@
3838
<script type="text/babel">
3939
// import {SmRanksymbolThemeLayer} from '@supermap/react-iclient'
4040
var host = window.isLocal ? window.server : 'http://support.supermap.com.cn:8090';
41-
var attribution =
42-
"<a href='https://www.mapbox.com/about/maps/' target='_blank'>© Mapbox </a>" +
43-
" with <span>© <a href='http://iclient.supermap.io' target='_blank'>SuperMap iClient</a> | </span>" +
44-
" Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> ";
4541
var SmWebMap = window.SuperMap.Components.SmWebMap;
4642
var SmRanksymbolThemeLayer = window.SuperMap.Components.SmRanksymbolThemeLayer;
4743

@@ -65,7 +61,6 @@
6561
version: 8,
6662
sources: {
6763
'raster-tiles': {
68-
attribution: attribution,
6964
type: 'raster',
7065
tiles: [host + '/iserver/services/map-china400/rest/maps/China_4326/zxyTileImage.png?z={z}&x={x}&y={y}'],
7166
tileSize: 256
@@ -87,7 +82,6 @@
8782

8883
var themeOptions = {
8984
//map: map,//该可选参数将在下个版本遗弃
90-
attributions: ' ',
9185
themeField: 'CON2009',
9286
// 配置图表参数
9387
symbolSetting: {

examples/component/components_uniquetheme_react.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,8 @@ <h5 class="panel-title text-center" data-i18n="resources.text_attributeTable"></
209209
feas.push(feature);
210210
}
211211
}
212-
console.log(IHFeas.concat(feas));
213212
// 岛洞多面要素必需在其他要素之前添加
214213
features = IHFeas.concat(feas);
215-
console.log(features);
216214

217215
ReactDOM.render(
218216
<SmWebMap mapOptions={mapOptions}>

examples/component/components_vector_tile_react.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
<div id="main"></div>
2727
<script type="text/babel">
2828
var host = window.isLocal ? window.server : 'http://iclient.supermap.io';
29-
var attribution =
30-
"<a href='https://www.mapbox.com/about/maps/' target='_blank'>© Mapbox </a>" +
31-
" with <span>© <a href='http://iclient.supermap.io' target='_blank'>SuperMap iClient</a> | </span>" +
32-
" Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> ";
3329
var SmWebMap = window.SuperMap.Components.SmWebMap;
3430
var SmVectorTileLayer = window.SuperMap.Components.SmVectorTileLayer;
3531
var styleOptions =

examples/component/config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ var exampleConfig = {
422422
name: '矢量瓦片图层',
423423
name_en: 'Vector Tile Layer',
424424
version: '10.0.0',
425-
thumbnail: 'components_map_vue.png',
425+
thumbnail: 'components_vector_tile_vue.png',
426426
fileName: 'components_vector_tile_react',
427427
localIgnore: true
428428
}
@@ -433,7 +433,7 @@ var exampleConfig = {
433433
name_en: 'Visualization',
434434
content: [
435435
{
436-
name: '点聚合图层组件',
436+
name: '点聚合图层',
437437
name_en: 'Cluster Layer',
438438
version: '10.0.0',
439439
thumbnail: 'components_cluster_vue.png',
@@ -454,14 +454,14 @@ var exampleConfig = {
454454
fileName: 'components_rangetheme_react'
455455
},
456456
{
457-
name: '等级符号专题图图层组件',
457+
name: '等级符号专题图',
458458
name_en: 'RankSymbolTheme Layer',
459459
version: '10.0.0',
460460
thumbnail: 'components_ranksymboltheme_vue.png',
461461
fileName: 'components_ranksymboltheme_react'
462462
},
463463
{
464-
name: '标签专题图图层组件',
464+
name: '标签专题图',
465465
name_en: 'LabelTheme Layer',
466466
version: '10.0.0',
467467
thumbnail: 'components_labeltheme_vue.png',
@@ -497,7 +497,7 @@ var exampleConfig = {
497497
fileName: 'components_echarts_react'
498498
},
499499
{
500-
name: 'DeckGL 图层组件',
500+
name: 'DeckGL 图层',
501501
name_en: 'DeckGL Layer',
502502
version: '10.0.0',
503503
thumbnail: 'components_deckgl_vue.png',

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