Skip to content

Commit 5d35085

Browse files
ICL-1433 openlayers ImageSuperMapRest以image方式出图,url为编码形式时不出图
1 parent a95abe2 commit 5d35085

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/openlayers/mapping/ImageSuperMapRest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ import { containsExtent, getCenter, getHeight, getWidth, getForViewAndSize } fro
140140
params['maxVisibleVertex'] = Math.round(+options.maxVisibleVertex);
141141
}
142142

143-
this._layerUrl = CommonUtil.urlAppend(encodeURI(this._layerUrl), CommonUtil.getParameterString(params));
143+
this._layerUrl = CommonUtil.urlAppend(this._layerUrl, CommonUtil.getParameterString(params));
144144

145145
//存储一个cacheEnabled
146146
this.cacheEnabled = cacheEnabled;

test/openlayers/mapping/ImageSuperMapRestSpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ describe('openlayers_ImageSuperMapRest', () => {
7272

7373
var tileUrl = imageTileSource.getImageInternal(extent, resolution, pixelRatio).src_;
7474
expect(tileUrl).toBe(
75-
GlobeParameter.mapServiceURL +
76-
'%E4%B8%96%E7%95%8C%E5%9C%B0%E5%9B%BE_Day/image.png?transparent=true&cacheEnabled=true&redirect=false&width=3840&height=794&viewBounds=%7B%22leftBottom%22%3A%7B%22x%22%3A-159.16992187500045%2C%22y%22%3A-22.895507812500092%7D%2C%22rightTop%22%3A%7B%22x%22%3A178.33007812500045%2C%22y%22%3A46.88964843750009%7D%7D'
75+
url +
76+
'/image.png?transparent=true&cacheEnabled=true&redirect=false&width=3840&height=794&viewBounds=%7B%22leftBottom%22%3A%7B%22x%22%3A-159.16992187500045%2C%22y%22%3A-22.895507812500092%7D%2C%22rightTop%22%3A%7B%22x%22%3A178.33007812500045%2C%22y%22%3A46.88964843750009%7D%7D'
7777
);
7878
});
7979

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