-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zoom feature #361
Zoom feature #361
Conversation
… into zoomFeature
… into zoomFeature
… into zoomFeature
@@ -108,13 +108,16 @@ | |||
</igo-entity-table> | |||
</app-expansion-panel> | |||
|
|||
<app-toast-panel | |||
<app-toast-panel *ngIf="queryStore.entities$.value.length" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace with *ngIf="!(queryStore.empty$ | async)"
return this.results.length ? 'visible' : 'hidden'; | ||
if (this.results.length) { | ||
if (this.results.length === 1 && this.initialize) { | ||
this.selectResult(this.store.entities$.value[0]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not this.results[0]?
tooltip: this.languageService.translate.instant('toastPanel.zoomOnFeaturesTooltip'), | ||
icon: 'magnify-plus', | ||
availability: () => { | ||
this.store.all().length > 1 ? this.multiple$.next(true) : this.multiple$.next(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a strange pattern. Availability should react to multiple$, not set it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a cool feature.
… operator control (#361) * refactor(ogc-filter) Manage ogcfilterwriter usage. * refactor(ogc-filter) interface modified * refactor(wfs-datasource) simplification * feat(wfs-datasource) only call needed fields * refactor(wms-wfs-datasource)Filters to igoFilters * refactor(*) geometry name for filters * refactor(wms-wfs) Moving common utils/methods * refactor(wms-wfs) using shared method and const. * refactor(*) various minor fix * feat(pushButtons)Adding pushbutton over ogcfilters * refactor(*) ogcfilters result from buildFilter * wip(ogc-filters) * feat (wfs,ogcfilters)Enable wfs to have pushbutton * refactor(wfs) build url on empty pushbutton * typo(togglebuttons) * refactor(ogc-filter) switch to mdi SVG icon * feat(ogc-filters) exclude field from sourceFields * refactor(ogc-filter)remove geometry as overlay * refactor(ogc-filter) Minor fixes * feat(ogc-filter) Limit operators's list by type * feat(demo) Add ogcfilters pushButtons example * refactor(*) PR 631 simple reviews part 1 * refactor(ogc) place setter before getter * refactor(ogc) remove mention to showfeatureonmap * refactor(*) PR 631 simple reviews part 2 * refactor(wms & wfs & ogcfilters) defaut values * refactor(wfs) removing mention to wfscapabilities * refactor(wfs) default options for filters. * refactor(wms) way to manage empty sourcefields & pushbuttons * refactor(wfs-service) Simplification * refactor(ogc-filter-toggle-button.component) Simplification by binding a boolean. * refactor(ogc-filter) removing usage of feature extent
Possibility to allow the user to zoom on selected(s) feature(s) from the toast panel :