Skip to content

Commit

Permalink
fix(getFeatureInfo): polygon ((NaN,...)) for html getfeatureinfo (#115)
Browse files Browse the repository at this point in the history
* Fix polygon ((NaN,...)) for html getfeatureinfo

* Fix url decoding

* fix html polygon nan

* lint
  • Loading branch information
pelord authored and mbarbeau committed Jan 25, 2018
1 parent 0ca8d09 commit dfa674b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/query/shared/query.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
Expand Down

0 comments on commit dfa674b

Please sign in to comment.