-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filters, map, and list all interact in the way they should (with some…
… minor problems) First problem, clicking an element in the list centers on the element correctly, but the map is not refreshed and is "blurry" (error in console) until the user clicks on the map (which causes a refresh). Second, ExpressionChangedAfterItHasBeenCheckedError occurs at line 121 in portal.component.html
- Loading branch information
1 parent
e7d8d9a
commit 13bb81a
Showing
18 changed files
with
725 additions
and
325 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,7 +136,7 @@ | |
} | ||
|
||
.disabled { | ||
color: gray; | ||
color: gray !important; | ||
} | ||
|
||
.filter-info { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { Subject } from 'rxjs'; | ||
|
||
@Injectable({ | ||
providedIn: 'root' | ||
}) | ||
export class EntitiesAllService { | ||
|
||
private eventSubject = new Subject<Array<Object>>(); | ||
|
||
emitEvent(entitiesAll: Array<Object>) { | ||
this.eventSubject.next(entitiesAll); | ||
} | ||
|
||
onEvent() { | ||
return this.eventSubject.asObservable(); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/app/pages/list/listServices/filtered-entities.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { Feature } from 'geojson'; | ||
import { Subject } from 'rxjs'; | ||
|
||
@Injectable({ | ||
providedIn: 'root' | ||
}) | ||
export class FilteredEntitiesService { | ||
|
||
private eventSubject = new Subject<Array<Feature>>(); | ||
|
||
emitEvent(filteredEntities: Array<Feature>) { | ||
this.eventSubject.next(filteredEntities); | ||
} | ||
|
||
onEvent() { | ||
return this.eventSubject.asObservable(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.