Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b06b911

Browse files
[update] 将mapboxgl和maplibregl示例中map-china400服务替换为map-china服务
(review by zq)
1 parent c5eef5a commit b06b911

File tree

284 files changed

+379
-371
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

284 files changed

+379
-371
lines changed

‎examples/mapboxgl/01_tiledMapLayer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
// 方式一:1.调用 mapboxgl.supermap.initMap,根据 SuperMap iServer 地图服务的地图信息,创建地图和底图
3737
mapboxgl.supermap
38-
.initMap(host + '/iserver/services/map-china400/rest/maps/China')
38+
.initMap(host + '/iserver/services/map-china/rest/maps/China')
3939
.then(function (result) {
4040
var map = result.map;
4141
map.addControl(new mapboxgl.NavigationControl(), 'top-left');
@@ -50,7 +50,7 @@
5050
// "raster-tiles": {
5151
// "attribution": attribution,
5252
// "type": "raster",
53-
// "tiles": [host + '/iserver/services/map-china400/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}'],
53+
// "tiles": [host + '/iserver/services/map-china/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}'],
5454
// "tileSize": 256
5555
// }
5656
// },

‎examples/mapboxgl/02_getFeatureByIDs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h5 class='panel-title text-center' data-i18n="resources.title_getFeatureByIDs">
4848
var attribution = "<a href='https://www.mapbox.com/about/maps/' target='_blank'>© Mapbox </a>" +
4949
" with <span>© <a href='https://iclient.supermap.io' target='_blank'>SuperMap iClient</a> | </span>" +
5050
" Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> ";
51-
var baseUrl = host + '/iserver/services/map-china400/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}',
51+
var baseUrl = host + '/iserver/services/map-china/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}',
5252
dataUrl = host + "/iserver/services/data-world/rest/data";
5353
var map = new mapboxgl.Map({
5454
container: 'map',

‎examples/mapboxgl/02_getFeatureBySQL.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ <h5 class='panel-title text-center' data-i18n="resources.title_getFeatureBySQL">
5454
"with <span>© <a href='https://iclient.supermap.io' target='_blank'>SuperMap iClient</a> | </span>" +
5555
" Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span>";
5656
var host = window.isLocal ? window.server : "https://iserver.supermap.io";
57-
var baseUrl = host + '/iserver/services/map-china400/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}';
57+
var baseUrl = host + '/iserver/services/map-china/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}';
5858
var dataUrl = host + "/iserver/services/data-world/rest/data";
5959

6060
var map = new mapboxgl.Map({

‎examples/mapboxgl/02_getFeatureBySQL_FGB.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h5 class='panel-title text-center' data-i18n="resources.title_getFeatureBySQL">
5555
"with <span>© <a href='https://iclient.supermap.io' target='_blank'>SuperMap iClient</a> | </span>" +
5656
" Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span>";
5757
var host = window.isLocal ? window.server : 'https://iserver.supermap.io';
58-
var baseUrl = host + '/iserver/services/map-china400/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}';
58+
var baseUrl = host + '/iserver/services/map-china/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}';
5959
var dataUrl = host + '/iserver/services/data-world/rest/data';
6060

6161
var map = new mapboxgl.Map({

‎examples/mapboxgl/03_themeGraduatedSymbol.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"with <span>© <a href='https://iclient.supermap.io' target='_blank'>SuperMap iClient</a> | </span>" +
2020
" Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> ";
2121

22-
var dataUrl = host + "/iserver/services/map-china400/rest/maps/China";
22+
var dataUrl = host + "/iserver/services/map-china/rest/maps/China";
2323
var map = new mapboxgl.Map({
2424
container: 'map',
2525
style: {
@@ -28,7 +28,7 @@
2828
"raster-tiles": {
2929
"attribution": attribution,
3030
"type": "raster",
31-
"tiles": [host + '/iserver/services/map-china400/rest/maps/China/zxyTileImage.png?prjCoordSys='+encodeURIComponent('{"epsgCode":3857}')+'&z={z}&x={x}&y={y}'],
31+
"tiles": [host + '/iserver/services/map-china/rest/maps/China/zxyTileImage.png?prjCoordSys='+encodeURIComponent('{"epsgCode":3857}')+'&z={z}&x={x}&y={y}'],
3232
"tileSize": 256,
3333
},
3434
},
@@ -63,7 +63,7 @@
6363

6464
var themeParameters = new mapboxgl.supermap.ThemeParameters({
6565
themes: [themeGraduatedSymbol],
66-
datasetNames: ["China_Province_pg"],
66+
datasetNames: ["Province_R"],
6767
dataSourceNames: ["China"]
6868
});
6969

@@ -72,7 +72,7 @@
7272
if (result && result.newResourceID) {
7373
map.addSource("theme", {
7474
"type": 'raster',
75-
"tiles": [host + '/iserver/services/map-china400/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}&transparent=true&cacheEnabled=false&layersID=' + result.newResourceID],
75+
"tiles": [host + '/iserver/services/map-china/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}&transparent=true&cacheEnabled=false&layersID=' + result.newResourceID],
7676
"tileSize": 256,
7777
});
7878

‎examples/mapboxgl/03_themeRange.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"with <span>© <a href='https://iclient.supermap.io' target='_blank'>SuperMap iClient</a> | </span>" +
2020
" Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> ";
2121

22-
var dataUrl = host + "/iserver/services/map-china400/rest/maps/China";
22+
var dataUrl = host + "/iserver/services/map-china/rest/maps/China";
2323
var map = new mapboxgl.Map({
2424
container: 'map',
2525
style: {
@@ -28,7 +28,7 @@
2828
"raster-tiles": {
2929
"attribution": attribution,
3030
"type": "raster",
31-
"tiles": [host + '/iserver/services/map-china400/rest/maps/China/zxyTileImage.png?prjCoordSys='+encodeURIComponent('{"epsgCode":3857}')+'&z={z}&x={x}&y={y}'],
31+
"tiles": [host + '/iserver/services/map-china/rest/maps/China/zxyTileImage.png?prjCoordSys='+encodeURIComponent('{"epsgCode":3857}')+'&z={z}&x={x}&y={y}'],
3232
"tileSize": 256,
3333
},
3434
},
@@ -83,7 +83,7 @@
8383
items: [themeRangeItem1, themeRangeItem2, themeRangeItem3]
8484
});
8585
var themeParameters = new mapboxgl.supermap.ThemeParameters({
86-
datasetNames: ["China_Province_pg"],
86+
datasetNames: ["Province_R"],
8787
dataSourceNames: ["China"],
8888
joinItems: null,
8989
themes: [themeRange]
@@ -95,7 +95,7 @@
9595
if (result && result.newResourceID) {
9696
map.addSource("theme", {
9797
"type": 'raster',
98-
"tiles": [host + '/iserver/services/map-china400/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}&noWrap=true&transparent=true&cacheEnabled=false&layersID=' + result.newResourceID],
98+
"tiles": [host + '/iserver/services/map-china/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}&noWrap=true&transparent=true&cacheEnabled=false&layersID=' + result.newResourceID],
9999
"tileSize": 256,
100100
});
101101

‎examples/mapboxgl/03_themeUnique.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"with <span>© <a href='https://iclient.supermap.io' target='_blank'>SuperMap iClient</a> | </span>" +
2020
" Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> ";
2121

22-
var dataUrl = host + "/iserver/services/map-china400/rest/maps/China";
22+
var dataUrl = host + "/iserver/services/map-china/rest/maps/China";
2323
var map = new mapboxgl.Map({
2424
container: 'map',
2525
style: {
@@ -28,7 +28,7 @@
2828
"raster-tiles": {
2929
"attribution": attribution,
3030
"type": "raster",
31-
"tiles": [host + '/iserver/services/map-china400/rest/maps/China/zxyTileImage.png?prjCoordSys='+encodeURIComponent('{"epsgCode":3857}')+'&z={z}&x={x}&y={y}'],
31+
"tiles": [host + '/iserver/services/map-china/rest/maps/China/zxyTileImage.png?prjCoordSys='+encodeURIComponent('{"epsgCode":3857}')+'&z={z}&x={x}&y={y}'],
3232
"tileSize": 256,
3333
},
3434
},
@@ -216,7 +216,7 @@
216216
defaultStyle: style1
217217
});
218218
var themeParameters = new mapboxgl.supermap.ThemeParameters({
219-
datasetNames: ["China_Province_pg"],
219+
datasetNames: ["Province_R"],
220220
dataSourceNames: ["China"],
221221
themes: [themeUnique]
222222
});
@@ -226,7 +226,7 @@
226226
// if (result && result.newResourceID) {
227227
// map.addSource("theme", {
228228
// "type": 'raster',
229-
// "tiles": [host + '/iserver/services/map-china400/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}&noWrap=true&transparent=true&cacheEnabled=false&layersID=' + result.newResourceID],
229+
// "tiles": [host + '/iserver/services/map-china/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}&noWrap=true&transparent=true&cacheEnabled=false&layersID=' + result.newResourceID],
230230
// "tileSize": 256,
231231
// });
232232

@@ -243,7 +243,7 @@
243243
if (result && result.newResourceID) {
244244
map.addSource("theme", {
245245
"type": 'raster',
246-
"tiles": [host + '/iserver/services/map-china400/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}&noWrap=true&transparent=true&cacheEnabled=false&layersID=' + result.newResourceID],
246+
"tiles": [host + '/iserver/services/map-china/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}&noWrap=true&transparent=true&cacheEnabled=false&layersID=' + result.newResourceID],
247247
"tileSize": 256,
248248
});
249249

‎examples/mapboxgl/04_surfaceAnalystService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
attribution = "<a href='https://www.mapbox.com/about/maps/' target='_blank'>© Mapbox </a>" +
2222
" with <span>© <a href='https://iclient.supermap.io' target='_blank'>SuperMap iClient</a> | </span>" +
2323
" Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> ",
24-
baseUrl = host + "/iserver/services/map-china400/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}",
24+
baseUrl = host + "/iserver/services/map-china/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}",
2525
serviceUrl = host + "/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst";
2626
map = new mapboxgl.Map({
2727
container: 'map',

‎examples/mapboxgl/04_surfaceAnalystService_FGB.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
attribution = "<a href='https://www.mapbox.com/about/maps/' target='_blank'>© Mapbox </a>" +
2222
" with <span>© <a href='https://iclient.supermap.io' target='_blank'>SuperMap iClient</a> | </span>" +
2323
" Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> ",
24-
baseUrl = host + "/iserver/services/map-china400/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}",
24+
baseUrl = host + "/iserver/services/map-china/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}",
2525
serviceUrl = host + "/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst";
2626
map = new mapboxgl.Map({
2727
container: 'map',

‎examples/mapboxgl/addressMatchService.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
attribution = "<a href='https://www.mapbox.com/about/maps/' target='_blank'>© Mapbox </a>" +
129129
" with <span>© <a href='https://iclient.supermap.io' target='_blank'>SuperMap iClient</a> | </span>" +
130130
" Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> ",
131-
url = host + "/iserver/services/map-china400/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}",
131+
url = host + "/iserver/services/map-china/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}",
132132
addressUrl = host + "/iserver/services/addressmatch-Address/restjsr/v1/address",
133133

134134
map = new mapboxgl.Map({
@@ -152,7 +152,7 @@
152152
}]
153153
},
154154
center: [116.383572, 39.914714],
155-
zoom: 11
155+
zoom: 10
156156
});
157157
map.addControl(new mapboxgl.NavigationControl(), 'top-left');
158158
map.addControl(new mapboxgl.supermap.LogoControl({ link: "https://iclient.supermap.io" }), 'bottom-right');

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /