diff --git a/src/ol/source/ImageArcGISRest.js b/src/ol/source/ImageArcGISRest.js index 41d7112ecd..c8840fd1ed 100644 --- a/src/ol/source/ImageArcGISRest.js +++ b/src/ol/source/ImageArcGISRest.js @@ -242,7 +242,7 @@ class ImageArcGISRest extends ImageSource { // ArcGIS Server only wants the numeric portion of the projection ID. // (if there is no numeric portion the entire projection code must // form a valid ArcGIS SpatialReference definition). - const srid = projection.getCode().split(/:(?=\d+$)/)).pop(); + const srid = projection.getCode().split(/:(?=\d+$)/).pop(); params['SIZE'] = size[0] + ',' + size[1]; params['BBOX'] = extent.join(',');