@@ -119,7 +119,7 @@ export class WebMap extends Observable {
119
119
this . layers = [ ] ;
120
120
this . events = new Events ( this , null , [ "updateDataflowFeature" ] , true ) ;
121
121
this . webMap = options . webMap ;
122
- this . tileFormat = options . tileFormat ;
122
+ this . tileFormat = options . tileFormat && options . tileFormat . toLowerCase ( ) ;
123
123
this . createMap ( options . mapSetting ) ;
124
124
if ( this . webMap ) {
125
125
// webmap有可能是url地址,有可能是webmap对象
@@ -1262,7 +1262,7 @@ export class WebMap extends Observable {
1262
1262
return result
1263
1263
}
1264
1264
let format = 'png' ;
1265
- if ( that . tileFormat === 'WebP ' ) {
1265
+ if ( that . tileFormat === 'webp ' ) {
1266
1266
const isSupportWebp = await that . isSupportWebp ( layerInfo . url , token ) ;
1267
1267
format = isSupportWebp ? 'webp' : 'png' ;
1268
1268
}
@@ -1318,7 +1318,7 @@ export class WebMap extends Observable {
1318
1318
let token = layerInfo . credential ? layerInfo . credential . token : undefined ;
1319
1319
layerInfo . format = 'png' ;
1320
1320
// china_dark为默认底图,还是用png出图
1321
- if ( that . tileFormat === 'WebP ' && layerInfo . url !== 'https://maptiles.supermapol.com/iserver/services/map_China/rest/maps/China_Dark' ) {
1321
+ if ( that . tileFormat === 'webp ' && layerInfo . url !== 'https://maptiles.supermapol.com/iserver/services/map_China/rest/maps/China_Dark' ) {
1322
1322
const isSupprtWebp = await that . isSupportWebp ( layerInfo . url , token ) ;
1323
1323
layerInfo . format = isSupprtWebp ? 'webp' : 'png' ;
1324
1324
}
@@ -1961,6 +1961,13 @@ export class WebMap extends Observable {
1961
1961
if ( ! this . excludePortalProxyUrl && ! CommonUtil . isInTheSameDomain ( requestUrl ) ) {
1962
1962
serviceOptions . proxy = this . getProxy ( ) ;
1963
1963
}
1964
+ if ( [ 'EPSG:-1' , 'EPSG:0' , 'EPSG:-1000' ] . includes ( layer . projection ) ) {
1965
+ // 不支持动态投影restData服务
1966
+ that . layerAdded ++ ;
1967
+ that . sendMapToUser ( layerLength ) ;
1968
+ that . errorCallback && that . errorCallback ( { } , 'getFeatureFaild' , that . map ) ;
1969
+ return ;
1970
+ }
1964
1971
//因为itest上使用的https,iserver是http,所以要加上代理
1965
1972
Util . getFeatureBySQL ( requestUrl , [ dataSourceName ] , serviceOptions , function ( result ) {
1966
1973
let features = that . parseGeoJsonData2Feature ( {
0 commit comments