Remove assertion
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
goog.provide('ol.source.TileArcGISRest');
|
goog.provide('ol.source.TileArcGISRest');
|
||||||
|
|
||||||
goog.require('ol');
|
goog.require('ol');
|
||||||
goog.require('ol.asserts');
|
|
||||||
goog.require('ol.extent');
|
goog.require('ol.extent');
|
||||||
goog.require('ol.math');
|
goog.require('ol.math');
|
||||||
goog.require('ol.obj');
|
goog.require('ol.obj');
|
||||||
@@ -125,9 +124,6 @@ ol.source.TileArcGISRest.prototype.getRequestUrl_ = function(tileCoord, tileSize
|
|||||||
var modifiedUrl = url
|
var modifiedUrl = url
|
||||||
.replace(/MapServer\/?$/, 'MapServer/export')
|
.replace(/MapServer\/?$/, 'MapServer/export')
|
||||||
.replace(/ImageServer\/?$/, 'ImageServer/exportImage');
|
.replace(/ImageServer\/?$/, 'ImageServer/exportImage');
|
||||||
if (modifiedUrl == url) {
|
|
||||||
ol.asserts.assert(false, 50); // Cannot determine Rest Service from url
|
|
||||||
}
|
|
||||||
return ol.uri.appendParams(modifiedUrl, params);
|
return ol.uri.appendParams(modifiedUrl, params);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user