Skip to content

Commit aacbe8c

Browse files
committed
【fix】修复平面无投影例子访问失败的问题,ol.proj.Projection的code是必填参数, review by liqian
1 parent 0bb70a6 commit aacbe8c

27 files changed

+27
-2
lines changed

dist/mapboxgl/iclient9-mapboxgl-vue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38427,7 +38427,7 @@ var LayerModel_LayerModel = function LayerModel() {
3842738427
this.minzoom = options.minzoom;
3842838428
this.source = options.source;
3842938429
this.type = options.type;
38430-
this.visibility = options.visibility;
38430+
this.visibility = options.visibility || 'visible';
3843138431
};
3843238432

3843338433
/* harmony default export */ var web_map_LayerModel = (LayerModel_LayerModel);

dist/mapboxgl/iclient9-mapboxgl-vue.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_tiledMapLayerNoProj.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
var url = (window.isLocal ? window.server : "http://support.supermap.com.cn:8090")+"/iserver/services/map-changchun/rest/maps/长春市区图";
1616
var extent = [48.4, -7668.25, 8958.85, -55.58];
1717
var projection = new ol.proj.Projection({
18+
code:'',
1819
extent: extent,
1920
units: 'm',
2021
getPointResolution:function(resolution, point){

examples/openlayers/04_bufferAnalystService.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
serviceUrl = (window.isLocal ? window.server : "http://support.supermap.com.cn:8090")+"/iserver/services/spatialanalyst-changchun/restjsr/spatialanalyst";
1818
var extent = [48.4, -7668.25, 8958.85, -55.58];
1919
var projection = new ol.proj.Projection({
20+
code:'',
2021
extent: extent,
2122
units: 'm'
2223
});

examples/openlayers/04_bufferAnalystService_geometry.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
serviceUrl = (window.isLocal ? window.server : "http://support.supermap.com.cn:8090")+"/iserver/services/spatialanalyst-changchun/restjsr/spatialanalyst";
1818
var extent = [48.4, -7668.25, 8958.85, -55.58];
1919
var projection = new ol.proj.Projection({
20+
code:'',
2021
extent: extent,
2122
units: 'm'
2223
});

examples/openlayers/04_densityKernelAnalystService.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
serviceUrl = (window.isLocal ? window.server : "http://support.supermap.com.cn:8090")+"/iserver/services/spatialanalyst-changchun/restjsr/spatialanalyst";
1818
var extent = [48.4, -7668.25, 8958.85, -55.58];
1919
var projection = new ol.proj.Projection({
20+
code:'',
2021
extent: extent,
2122
units: 'm'
2223
});

examples/openlayers/04_generateSpatialDataService.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
serviceUrl = (window.isLocal ? window.server : "http://support.supermap.com.cn:8090")+"/iserver/services/spatialanalyst-changchun/restjsr/spatialanalyst";
1818
var extent = [48.4, -7668.25, 8958.85, -55.58];
1919
var projection = new ol.proj.Projection({
20+
code:'',
2021
extent: extent,
2122
units: 'm'
2223
});

examples/openlayers/04_interpolationAnalystService_Density.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
serviceUrl = (window.isLocal ? window.server : "http://support.supermap.com.cn:8090")+"/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst";
1818
var extent = [-2640403.63, 1873792.1, 3247669.39, 5921501.4];
1919
var projection = new ol.proj.Projection({
20+
code:'',
2021
extent: extent,
2122
units: 'm'
2223
});

examples/openlayers/04_interpolationAnalystService_IDW_dataset.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
serviceUrl = (window.isLocal ? window.server : "http://support.supermap.com.cn:8090")+"/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst";
1818
var extent = [-2640403.63, 1873792.1, 3247669.39, 5921501.4];
1919
var projection = new ol.proj.Projection({
20+
code:'',
2021
extent: extent,
2122
units: 'm'
2223
});

examples/openlayers/04_interpolationAnalystService_IDW_geometry.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
var mapService = new ol.supermap.MapService(baseUrl);
2020
var extent = [-2640403.63, 1873792.1, 3247669.39, 5921501.4];
2121
var projection = new ol.proj.Projection({
22+
code:'',
2223
extent: extent,
2324
units: 'm'
2425
});

0 commit comments

Comments
 (0)