Skip to content

Commit

Permalink
fix(demo/toast-panel): fix spatial-filter alias in demo / resize chec…
Browse files Browse the repository at this point in the history
…kbox in zoom menu feature (#586)
  • Loading branch information
PhilippeLafreniere18 authored and mbarbeau committed May 11, 2020
1 parent f0c33d5 commit b9a1727
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 7 additions & 2 deletions demo/src/app/geo/spatial-filter/spatial-filter.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class AppSpatialFilterComponent {
for (const feature of features) {
if (this.type === SpatialFilterType.Predefined) {
for (const layer of this.map.layers) {
if (layer.alias === feature.properties.code) {
if (layer.options._internal.code === feature.properties.code) {
return;
}
if (layer.title.startsWith('Zone')) {
Expand All @@ -202,7 +202,12 @@ export class AppSpatialFilterComponent {
.subscribe((dataSource: DataSource) => {
const olLayer = this.layerService.createLayer({
title: 'Zone ' + i as string,
alias: this.type === SpatialFilterType.Predefined ? feature.properties.code : undefined,
_internal: {
code:
this.type === SpatialFilterType.Predefined
? feature.properties.code
: undefined
},
source: dataSource,
visible: true,
style: (_feature, resolution) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ mat-list-item.igo-actionbar-item-no-display {
}

mat-checkbox {
position: absolute;
padding: 12px;
}

Expand Down

0 comments on commit b9a1727

Please sign in to comment.