Skip to content

Commit

Permalink
feat(layer): save visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Sep 8, 2017
1 parent 20c096b commit b352b3a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export class ContextListBindingDirective implements OnInit, OnDestroy {
params: layer.dataSource.options.params,
url: layer.dataSource.options.url
},
order: order--
order: order--,
visible: layer.visible
};
changes.layers.push(opts);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ md-radio-button {
padding: 14px 14px 14px 0;
}

.scopeForm {
.scopeForm, form {
padding: 5px;
}
4 changes: 3 additions & 1 deletion src/lib/map/bookmark-button/bookmark-button.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export class BookmarkButtonComponent {
};

const layers = this.map.layers$.getValue();

let order = layers.length;
for (const l of layers) {
const layer: any = l;
Expand All @@ -69,7 +70,8 @@ export class BookmarkButtonComponent {
params: layer.dataSource.options.params,
url: layer.dataSource.options.url
},
order: order--
order: order--,
visible: layer.visible
};
context.layers.push(opts);
}
Expand Down

0 comments on commit b352b3a

Please sign in to comment.