From 9c9fe312b4a3a3e6907cbdb187f07d5eeca600ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-=C3=89tienne=20Lord?= <7397743+pelord@users.noreply.github.com> Date: Wed, 25 Sep 2019 07:34:34 -0400 Subject: [PATCH] fix(wms-wfs.utils) Json as outputformat. (#426) --- .../geo/src/lib/datasource/shared/datasources/wms-wfs.utils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/geo/src/lib/datasource/shared/datasources/wms-wfs.utils.ts b/packages/geo/src/lib/datasource/shared/datasources/wms-wfs.utils.ts index 737eda4f19..2b2bb57f0c 100644 --- a/packages/geo/src/lib/datasource/shared/datasources/wms-wfs.utils.ts +++ b/packages/geo/src/lib/datasource/shared/datasources/wms-wfs.utils.ts @@ -159,6 +159,9 @@ export function getFormatFromOptions( } else if (outputFormat.toLowerCase().match('esrijson')) { olFormatCls = OlFormat.EsriJSON; return new olFormatCls(); + } else if (outputFormat.toLowerCase().match('json')) { + olFormatCls = OlFormat.GeoJSON; + return new olFormatCls(); } else if (outputFormat.toLowerCase().match('gpx')) { olFormatCls = OlFormat.GPX; return new olFormatCls();