Skip to content
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

Merged
merged 20 commits into from
Dec 9, 2019
Merged

Zoom feature #361

merged 20 commits into from
Dec 9, 2019

Conversation

PhilippeLafreniere18
Copy link
Contributor

Possibility to allow the user to zoom on selected(s) feature(s) from the toast panel :

  • Back to query list
  • Zoom on feature
  • Zoom on features
  • Zoom auto

@@ -108,13 +108,16 @@
</igo-entity-table>
</app-expansion-panel>

<app-toast-panel
<app-toast-panel *ngIf="queryStore.entities$.value.length"
Copy link
Collaborator

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]);
Copy link
Collaborator

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);
Copy link
Collaborator

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.

Copy link
Collaborator

@cbourget cbourget left a 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.

@mbarbeau mbarbeau merged commit 0c1a5bd into master Dec 9, 2019
@mbarbeau mbarbeau deleted the zoomFeature branch December 9, 2019 20:18
matrottier pushed a commit that referenced this pull request Nov 17, 2021
… 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants