From dfa674b2aaf1f1ea7047dda9c9ac54d33668f8de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-=C3=89tienne=20Lord?= <7397743+pelord@users.noreply.github.com> Date: Thu, 25 Jan 2018 14:10:15 -0500 Subject: [PATCH] fix(getFeatureInfo): polygon ((NaN,...)) for html getfeatureinfo (#115) * Fix polygon ((NaN,...)) for html getfeatureinfo * Fix url decoding * fix html polygon nan * lint --- src/lib/query/shared/query.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/query/shared/query.service.ts b/src/lib/query/shared/query.service.ts index 9853edbbeb..7d8cbdcfcf 100644 --- a/src/lib/query/shared/query.service.ts +++ b/src/lib/query/shared/query.service.ts @@ -134,7 +134,7 @@ export class QueryService { y_position = parseInt(searchParams.get('y'), 10); } - const bbox = bbox_raw.split(','); + const bbox = decodeURIComponent(bbox_raw).split(','); let threshold = (Math.abs(parseFloat(bbox[0])) - Math.abs(parseFloat(bbox[2]))) * (0.1); // for context in degree (EPSG:4326,4269...)