ensure srid is numeric, otherwise use entire code

lint
This commit is contained in:
mike-000
2021-06-06 18:09:49 +01:00
committed by GitHub
parent bb8c82b98c
commit ec5864a41a

View File

@@ -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(',');