From bb8c82b98c973af803c66c3587b29f5c4ef0af32 Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Sun, 6 Jun 2021 18:09:45 +0100 Subject: [PATCH] ensure srid is numeric, otherwise use entire code lint --- src/ol/source/ImageArcGISRest.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ol/source/ImageArcGISRest.js b/src/ol/source/ImageArcGISRest.js index c8840fd1ed..518a560387 100644 --- a/src/ol/source/ImageArcGISRest.js +++ b/src/ol/source/ImageArcGISRest.js @@ -242,7 +242,10 @@ 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(',');