Skip to content

Commit

Permalink
Merge pull request #49 from gisaia/fix/MapPWithin
Browse files Browse the repository at this point in the history
Fix extent value after deleting a bbox
  • Loading branch information
sebbousquet authored May 31, 2018
2 parents e00ae00 + ef998b4 commit fd172d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/contributors/MapContributor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export class MapContributor extends Contributor {
let filter = {};
if (!this.isBbox) {
filter = {
pwithin: [[pwithin.substring(1).trim().toLocaleLowerCase()]],
pwithin: [[pwithin.trim()]],
};
}
const count: Observable<Hits> = this.collaborativeSearcheService.resolveButNotHits([projType.count, {}], '', filter);
Expand Down Expand Up @@ -157,6 +157,10 @@ export class MapContributor extends Contributor {
}
}

public setGIntersect(active: boolean) {
this.isGIntersect = active;
}

public setData(data: any) {
switch (this.fetchType) {
case fetchType.tile: {
Expand Down Expand Up @@ -369,7 +373,7 @@ export class MapContributor extends Contributor {
let filter = {};
if (!this.isBbox) {
filter = {
pwithin: [[pwithin.substring(1).trim().toLocaleLowerCase()]],
pwithin: [[pwithin.trim()]],
};
}
const count: Observable<Hits> = this.collaborativeSearcheService.resolveButNotHits([projType.count, {}], '', filter);
Expand Down
1 change: 0 additions & 1 deletion tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@
"variable-declaration": "nospace"
}
],
"typeof-compare": true,
"unified-signatures": true,
"variable-name": [
true,
Expand Down

0 comments on commit fd172d8

Please sign in to comment.