Replace goog.isDef(foo[bar]) with bar in foo
This commit is contained in:
@@ -240,7 +240,7 @@ ol.source.TileWMS.prototype.getRequestUrl_ =
|
||||
switch (this.serverType_) {
|
||||
case ol.source.wms.ServerType.GEOSERVER:
|
||||
var dpi = (90 * pixelRatio + 0.5) | 0;
|
||||
if (goog.isDef(params['FORMAT_OPTIONS'])) {
|
||||
if ('FORMAT_OPTIONS' in params) {
|
||||
params['FORMAT_OPTIONS'] += ';dpi:' + dpi;
|
||||
} else {
|
||||
params['FORMAT_OPTIONS'] = 'dpi:' + dpi;
|
||||
|
||||
Reference in New Issue
Block a user