Don't use the string constructor
This commit is contained in:
@@ -275,7 +275,7 @@ ol.source.ImageWMS.prototype.getRequestUrl_ = function(extent, size, pixelRatio,
|
|||||||
params[this.v13_ ? 'CRS' : 'SRS'] = projection.getCode();
|
params[this.v13_ ? 'CRS' : 'SRS'] = projection.getCode();
|
||||||
|
|
||||||
if (!('STYLES' in this.params_)) {
|
if (!('STYLES' in this.params_)) {
|
||||||
params['STYLES'] = new String('');
|
params['STYLES'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pixelRatio != 1) {
|
if (pixelRatio != 1) {
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ ol.source.TileWMS.prototype.getRequestUrl_ = function(tileCoord, tileSize, tileE
|
|||||||
params[this.v13_ ? 'CRS' : 'SRS'] = projection.getCode();
|
params[this.v13_ ? 'CRS' : 'SRS'] = projection.getCode();
|
||||||
|
|
||||||
if (!('STYLES' in this.params_)) {
|
if (!('STYLES' in this.params_)) {
|
||||||
params['STYLES'] = new String('');
|
params['STYLES'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pixelRatio != 1) {
|
if (pixelRatio != 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user