We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c3e67b commit 4f1d449Copy full SHA for 4f1d449
src/openlayers/mapping/WebMap.js
@@ -174,7 +174,8 @@ export class WebMap extends ol.Observable {
174
if(proj4){
175
ol.proj.setProj4(proj4);
176
}
177
- if(mapInfo.projection === "EPSG:-1000" || mapInfo.projection === "EPSG:0"){
+ // 目前iServer服务中可能出现的EPSG 0,-1,-1000
178
+ if(mapInfo.projection.indexOf("EPSG") === 0 && mapInfo.projection.split(":")[1] <= 0){
179
//对于这两种地图,只能view,不能叠加其他图层
180
that.createSpecLayer(mapInfo);
181
return;
0 commit comments