Skip to content

Commit b7d4bb9

Browse files
committed
【bug】在IE11中 Rest Map 叠加图层不显示
1 parent 0d1e215 commit b7d4bb9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/openlayers/mapping/WebMap.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,10 @@ export class WebMap extends ol.Observable {
768768
let projection = {
769769
epsgCode: that.baseProjection.split(":")[1]
770770
}
771-
url += `.json?prjCoordSys=${JSON.stringify(projection)}`;
771+
//url += `.json?prjCoordSys=${JSON.stringify(projection)}`;
772+
// bug IE11 不会自动编码
773+
url += '.json?prjCoordSys=' + encodeURI(JSON.stringify(projection));
774+
772775
}else{
773776
url += (url.indexOf('?') > -1 ? '&SERVICE=WMS&REQUEST=GetCapabilities' : '?SERVICE=WMS&REQUEST=GetCapabilities');
774777
}

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