Skip to content

Commit

Permalink
Add Push
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Sep 24, 2024
1 parent f901119 commit 74cbb3e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/web/src/components/Styling/Layer.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<template>
<div class='ps-3'>
<div class='col-lg'>
<div v-if='l.filter' class='col-lg'>
<label class='subheader'>Filter</label>
<pre
class='col-12 px-2 py-1'
v-text='JSON.stringify(l.filter)'
/>
</div>
<div class='col-12'>
<div v-if='l["source-layer"]' class='col-12'>
<label class='subheader'>Source Layer</label>
<pre
class='col-12 py-1'
Expand Down
6 changes: 5 additions & 1 deletion api/web/src/components/Styling/Style.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,11 @@ export default {
},
methods: {
newLayer: function() {
this.layers.push({ id: "new-layer" });
this.styles.push({
id: "new-layer",
layout: {},
paint: {}
});
this.open.add('new-layer');
}
}
Expand Down

0 comments on commit 74cbb3e

Please sign in to comment.