ensure srid is numeric, otherwise use entire code

removed duplicate )
This commit is contained in:
mike-000
2021-06-06 18:00:16 +01:00
committed by GitHub
parent fcdf7d02ac
commit 1bb75897ee

View File

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