From ec5864a41a7f7879ae83c4394cec16361b02b655 Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Sun, 6 Jun 2021 18:09:49 +0100 Subject: [PATCH] ensure srid is numeric, otherwise use entire code lint --- src/ol/source/TileArcGISRest.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ol/source/TileArcGISRest.js b/src/ol/source/TileArcGISRest.js index 15b298fdbc..ed76984d4a 100644 --- a/src/ol/source/TileArcGISRest.js +++ b/src/ol/source/TileArcGISRest.js @@ -154,7 +154,10 @@ class TileArcGISRest extends TileImage { // 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'] = tileSize[0] + ',' + tileSize[1]; params['BBOX'] = tileExtent.join(',');