Skip to content

Commit 4f1d449

Browse files
committed
[update] iServer rest map中提供的epsg 有些时候是 -1,兼容下这种情况
1 parent 0c3e67b commit 4f1d449

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/openlayers/mapping/WebMap.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ export class WebMap extends ol.Observable {
174174
if(proj4){
175175
ol.proj.setProj4(proj4);
176176
}
177-
if(mapInfo.projection === "EPSG:-1000" || mapInfo.projection === "EPSG:0"){
177+
// 目前iServer服务中可能出现的EPSG 0,-1,-1000
178+
if(mapInfo.projection.indexOf("EPSG") === 0 && mapInfo.projection.split(":")[1] <= 0){
178179
//对于这两种地图,只能view,不能叠加其他图层
179180
that.createSpecLayer(mapInfo);
180181
return;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy