Skip to content

Commit dc86660

Browse files
修改 fgb 示例
1 parent 79a0818 commit dc86660

21 files changed

+83
-52
lines changed

examples/leaflet/01_mapQueryBySQL_FGB.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
maxZoom: 18,
2323
zoom: 2
2424
});
25-
new L.supermap.TiledMapLayer(url).addTo(map);
25+
new L.supermap.TiledMapLayer(url, {noWrap: true}).addTo(map);
2626
query();
2727

2828
function query() {

examples/leaflet/02_getFeatureBySQL_FGB.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
crs: L.CRS.EPSG4326,
2323
center: { lon: 0, lat: 0 },
2424
maxZoom: 18,
25-
zoom: 1
25+
zoom: 2,
2626
});
27-
new L.supermap.TiledMapLayer(baseUrl).addTo(map);
27+
new L.supermap.TiledMapLayer(baseUrl, {noWrap: true}).addTo(map);
2828
query();
2929
function query() {
3030
var sqlParam = new L.supermap.GetFeaturesBySQLParameters({

examples/leaflet/config.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ var exampleConfig = {
106106
name: "SQL查询 (FGB)",
107107
name_en: "SQL query (FGB)",
108108
version: '11.1.0',
109-
thumbnail: "l_mapQueryBySQL.png",
109+
thumbnail: "query_fgb_features.png",
110110
fileName: "01_mapQueryBySQL_FGB"
111111
}]
112112
},
@@ -127,7 +127,7 @@ var exampleConfig = {
127127
name: "SQL查询 (FGB)",
128128
name_en: "SQL query (FGB)",
129129
version: '11.1.0',
130-
thumbnail: "l_getFeatureBySQL.png",
130+
thumbnail: "query_fgb_features.png",
131131
fileName: "02_getFeatureBySQL_FGB"
132132
},{
133133
name: "范围查询",
@@ -1085,21 +1085,21 @@ var exampleConfig = {
10851085
}
10861086
]
10871087
},
1088-
"FGBLayer": {
1089-
name: 'FGBLayer',
1090-
name_en: 'FGBLayer',
1088+
"FGB": {
1089+
name: 'FGB',
1090+
name_en: 'FGB',
10911091
version: '11.1.0',
10921092
content: [
10931093
{
1094-
name: 'FGB 全量加载',
1095-
name_en: 'FGB Full Load',
1094+
name: 'FGB 全量加载(2500万点数据量)',
1095+
name_en: 'FGB Full Load (Use lines to draw 25 millions Chinese roads)',
10961096
version: '11.1.0',
10971097
thumbnail: 'fgb_all_load.png',
10981098
fileName: 'fgb_all_load'
10991099
},
11001100
{
1101-
name: 'FGB 按需加载',
1102-
name_en: 'FGB Extent Load',
1101+
name: 'FGB 按需加载(2500万点数据量)',
1102+
name_en: 'FGB Extent Load (Use lines to draw 25 millions Chinese roads)',
11031103
version: '11.1.0',
11041104
thumbnail: 'fgb_bbox_load.png',
11051105
fileName: 'fgb_bbox_load'

examples/leaflet/fgb_all_load.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
map = L.map('map', {
2020
preferCanvas: true,
2121
crs: L.CRS.EPSG4326,
22-
center: { lon: 110, lat: 30 },
22+
center: { lon: 110, lat: 35 },
2323
maxZoom: 18,
24-
zoom: 3
24+
zoom: 4
2525
});
2626
new L.supermap.TiledMapLayer(baseUrl).addTo(map);
2727
new L.supermap.FGBLayer(fgbUrl, {

examples/leaflet/fgb_bbox_load.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
});
2626
new L.supermap.TiledMapLayer(baseUrl).addTo(map);
2727
new L.supermap.FGBLayer(fgbUrl, {
28-
strategy: 'bbox'
28+
strategy: 'bbox',
29+
style: {
30+
color: '#38f',
31+
weight: 2
32+
}
2933
}).addTo(map);
3034
</script>
3135
</body>
30.5 KB
Loading
477 KB
Loading

examples/mapboxgl/01_mapQueryBySQL_FGB.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
" Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> ";
2020
var map = new mapboxgl.Map({
2121
container: 'map',
22+
renderWorldCopies: false,
2223
style: {
2324
"version": 8,
2425
"sources": {
@@ -60,7 +61,11 @@
6061
var FGBLayer = new mapboxgl.supermap.FGBLayer({
6162
url: serviceResult.result.newResourceLocation,
6263
layerID: 'points',
63-
strategy: 'all'
64+
strategy: 'all',
65+
paint: {
66+
'fill-color': '#FF3300' /* 填充的颜色 */,
67+
'fill-opacity': 0.6 /* 透明度 */
68+
}
6469
});
6570
map.addLayer(FGBLayer);
6671
}, 'FGB');

examples/mapboxgl/02_getFeatureBySQL_FGB.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636

3737
var map = new mapboxgl.Map({
3838
container: 'map', //div id
39+
renderWorldCopies: false,
3940
style: {
4041
version: 8,
4142
sources: {

examples/mapboxgl/config.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ var exampleConfig = {
7474
name: 'SQL查询 (FGB)',
7575
name_en: 'SQL query (FGB)',
7676
version: '11.1.0',
77-
thumbnail: 'mb_mapQueryBySQL.png',
77+
thumbnail: 'query_fgb_features.png',
7878
fileName: '01_mapQueryBySQL_FGB'
7979
}
8080
]
@@ -99,7 +99,7 @@ var exampleConfig = {
9999
name: 'SQL查询 (FGB)',
100100
name_en: 'SQL query (FGB)',
101101
version: '11.1.0',
102-
thumbnail: 'mb_getFeatureBySQL.png',
102+
thumbnail: 'query_fgb_features.png',
103103
fileName: '02_getFeatureBySQL_FGB'
104104
},
105105
{
@@ -462,7 +462,7 @@ var exampleConfig = {
462462
fileName: "imageService"
463463
}
464464
]
465-
},
465+
}
466466
}
467467
},
468468
iPortal: {
@@ -1097,21 +1097,21 @@ var exampleConfig = {
10971097
}
10981098
]
10991099
},
1100-
FGBLayer: {
1101-
name: 'FGB图层',
1102-
name_en: 'FGBLayer',
1100+
FGB: {
1101+
name: 'FGB',
1102+
name_en: 'FGB',
11031103
version: '11.0.1',
11041104
content: [
11051105
{
1106-
name: 'FGB 全量加载',
1107-
name_en: 'FGB Full Load',
1106+
name: 'FGB 全量加载(2500万点数据量)',
1107+
name_en: 'FGB Full Load (Use lines to draw 25 millions Chinese roads)',
11081108
version: '11.1.0',
11091109
thumbnail: 'fgb_all_load.png',
11101110
fileName: 'fgb_all_load'
11111111
},
11121112
{
1113-
name: 'FGB 按需加载',
1114-
name_en: 'FGB Extent Load',
1113+
name: 'FGB 按需加载(2500万点数据量)',
1114+
name_en: 'FGB Extent Load (Use lines to draw 25 millions Chinese roads)',
11151115
version: '11.1.0',
11161116
thumbnail: 'fgb_bbox_load.png',
11171117
fileName: 'fgb_bbox_load'

0 commit comments

Comments
 (0)