Skip to content

Commit

Permalink
fix(feature): getinfo too sensitive for html
Browse files Browse the repository at this point in the history
  • Loading branch information
gignacnic authored and mbarbeau committed Nov 13, 2017
1 parent b868cb0 commit 5e42c4c
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 @@ -135,7 +135,7 @@ export class QueryService {
}

const bbox = bbox_raw.split(',');
let threshold = 5000;
let threshold = (Math.abs(parseFloat(bbox[0])) - Math.abs(parseFloat(bbox[2])))*(0.1);
// for context in degree (EPSG:4326,4269...)
if (Math.abs(parseFloat(bbox[0])) < 180) {
threshold = 0.045;
Expand Down

0 comments on commit 5e42c4c

Please sign in to comment.