Skip to content

Commit ec6cf7c

Browse files
committed
更改openlayers出图相关图层命名空间:ol.supermap->ol.source
1 parent 819bd94 commit ec6cf7c

File tree

85 files changed

+169
-169
lines changed

Some content is hidden

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

85 files changed

+169
-169
lines changed

dist/iclient9-openlayers.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11076,7 +11076,7 @@ __webpack_require__(4);
1107611076
__webpack_require__(18);
1107711077
var ol = __webpack_require__(2);
1107811078
var SuperMap = __webpack_require__(0);
11079-
ol.supermap.TileSuperMapRest = function (options) {
11079+
ol.source.TileSuperMapRest = function (options) {
1108011080
if (options.url === undefined) {
1108111081
return;
1108211082
}
@@ -11207,8 +11207,8 @@ ol.supermap.TileSuperMapRest = function (options) {
1120711207
layersID: options.layersID
1120811208
});
1120911209
};
11210-
ol.inherits(ol.supermap.TileSuperMapRest, ol.source.TileImage);
11211-
ol.supermap.TileSuperMapRest.optionsFromMapJSON = function (url, mapJSONObj) {
11210+
ol.inherits(ol.source.TileSuperMapRest, ol.source.TileImage);
11211+
ol.source.TileSuperMapRest.optionsFromMapJSON = function (url, mapJSONObj) {
1121211212
var options = {};
1121311213
options.url = url;
1121411214
options.crossOrigin = 'anonymous';
@@ -11251,7 +11251,7 @@ ol.supermap.TileSuperMapRest.optionsFromMapJSON = function (url, mapJSONObj) {
1125111251
return options;
1125211252
};
1125311253

11254-
module.exports = ol.supermap.TileSuperMapRest;
11254+
module.exports = ol.source.TileSuperMapRest;
1125511255

1125611256
/***/ }),
1125711257
/* 60 */
@@ -11395,7 +11395,7 @@ ol.supermap.WebMap.prototype.createLayer = function (type, layerInfo) {
1139511395
switch (type) {
1139611396
case "SUPERMAP_REST" :
1139711397
layer = new ol.layer.Tile({
11398-
source: new ol.supermap.TileSuperMapRest({
11398+
source: new ol.source.TileSuperMapRest({
1139911399
url: layerInfo.url,
1140011400
opaque: opacity
1140111401
}),
@@ -11723,15 +11723,15 @@ __webpack_require__(50);
1172311723
var ol = __webpack_require__(2);
1172411724
var SuperMap = __webpack_require__(0);
1172511725

11726-
ol.supermap.VectorTileSuperMapRest = function (options) {
11726+
ol.source.VectorTileSuperMapRest = function (options) {
1172711727
if (options.url === undefined) {
1172811728
return;
1172911729
}
1173011730
options.crossOrigin = 'anonymous';
11731-
options.attributions = options.attributions||
11732-
new ol.Attribution({
11733-
html: 'Tile Data <a href="http://support.supermap.com.cn/product/iServer.aspx">SuperMap iServer</a> with <a href="http://iclient.supermapol.com/">SuperMap iClient</a>'
11734-
})
11731+
options.attributions = options.attributions ||
11732+
new ol.Attribution({
11733+
html: 'Tile Data <a href="http://support.supermap.com.cn/product/iServer.aspx">SuperMap iServer</a> with <a href="http://iclient.supermapol.com/">SuperMap iClient</a>'
11734+
})
1173511735
var layerUrl = options.url + '/tileFeature.json?';
1173611736
if (options.format instanceof ol.format.MVT) {
1173711737
layerUrl = options.url + '/tileFeature.mvt?';
@@ -11881,9 +11881,9 @@ ol.supermap.VectorTileSuperMapRest = function (options) {
1188111881
wrapX: options.wrapX !== undefined ? options.wrapX : false
1188211882
});
1188311883
};
11884-
ol.inherits(ol.supermap.VectorTileSuperMapRest, ol.source.VectorTile);
11884+
ol.inherits(ol.source.VectorTileSuperMapRest, ol.source.VectorTile);
1188511885

11886-
ol.supermap.VectorTileSuperMapRest.optionsFromMapJSON = function (url, mapJSONObj) {
11886+
ol.source.VectorTileSuperMapRest.optionsFromMapJSON = function (url, mapJSONObj) {
1188711887
var options = {};
1188811888
options.url = url;
1188911889
options.crossOrigin = 'anonymous';
@@ -11970,7 +11970,7 @@ ol.supermap.VectorTileSuperMapRest.optionsFromMapJSON = function (url, mapJSONOb
1197011970
return options;
1197111971
};
1197211972

11973-
module.exports = ol.supermap.VectorTileSuperMapRest;
11973+
module.exports = ol.source.VectorTileSuperMapRest;
1197411974

1197511975
/***/ }),
1197611976
/* 63 */

dist/iclient9-openlayers.min.js

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

examples/openlayers/01_layerService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
overlays: [overlay]
7676
});
7777
var layer = new ol.layer.Tile({
78-
source: new ol.supermap.TileSuperMapRest({
78+
source: new ol.source.TileSuperMapRest({
7979
url: url
8080
}),
8181
projection: 'EPSG:4326'

examples/openlayers/01_mapQueryByBounds.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
})
2525
});
2626
var layer = new ol.layer.Tile({
27-
source: new ol.supermap.TileSuperMapRest({
27+
source: new ol.source.TileSuperMapRest({
2828
url: url
2929
}),
3030
projection: 'EPSG:4326'

examples/openlayers/01_mapQueryByDistance.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
})
2525
});
2626
var layer = new ol.layer.Tile({
27-
source: new ol.supermap.TileSuperMapRest({
27+
source: new ol.source.TileSuperMapRest({
2828
url: url
2929
}),
3030
projection: 'EPSG:4326'

examples/openlayers/01_mapQueryByGeometry.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
})
2525
});
2626
var layer = new ol.layer.Tile({
27-
source: new ol.supermap.TileSuperMapRest({
27+
source: new ol.source.TileSuperMapRest({
2828
url: url
2929
}),
3030
projection: 'EPSG:4326'

examples/openlayers/01_mapQueryBySQL.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
})
2424
});
2525
var layer = new ol.layer.Tile({
26-
source: new ol.supermap.TileSuperMapRest({
26+
source: new ol.source.TileSuperMapRest({
2727
url: url
2828
}),
2929
projection: 'EPSG:4326'

examples/openlayers/01_mapService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
overlays: [overlay]
7676
});
7777
var layer = new ol.layer.Tile({
78-
source: new ol.supermap.TileSuperMapRest({
78+
source: new ol.source.TileSuperMapRest({
7979
url: url
8080
}),
8181
projection: 'EPSG:4326'

examples/openlayers/01_measure_area.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
})
2626
});
2727
var layer = new ol.layer.Tile({
28-
source: new ol.supermap.TileSuperMapRest({
28+
source: new ol.source.TileSuperMapRest({
2929
url: url
3030
}),
3131
projection: 'EPSG:4326'

examples/openlayers/01_measure_distance.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
})
2727
});
2828
var layer = new ol.layer.Tile({
29-
source: new ol.supermap.TileSuperMapRest({
29+
source: new ol.source.TileSuperMapRest({
3030
url: url
3131
}),
3232
projection: 'EPSG:4326'

0 commit comments

Comments
 (0)