Skip to content
Snippets Groups Projects
Commit 887cd78c authored by Timothee P's avatar Timothee P :sunflower:
Browse files

complete project_mapping form & remove logs

parent 83cc6a45
No related branches found
No related tags found
No related merge requests found
......@@ -28,9 +28,16 @@
<!-- {{ form.opacity.errors }} -->
</div>
<div class="field three wide">
<div class="ui checkbox">
<input type="checkbox" v-model="layerQueryable" name="queryable" />
<label for="queryable">Requêtable</label>
<div
@click="updateLayer({ ...layer, queryable: !layer.queryable })"
class="ui checkbox"
>
<input
type="checkbox"
:checked="layer.queryable"
name="queryable"
/>
<label for="queryable"> Requêtable</label>
</div>
<!-- {{ form.queryable.errors }} -->
</div>
......@@ -88,15 +95,6 @@ export default {
},
},
layerQueryable: {
get() {
return this.layer.queryable;
},
set(newValue) {
this.updateLayer({ ...this.layer, queryable: newValue });
},
},
availableLayers: function () {
return this.layers.map((el) => {
return { name: el.service, value: el.title };
......
......@@ -60,7 +60,6 @@ export default {
computed: {
maxLayersCount: function () {
console.log("maxLayersCount", this.basemap.layers);
return this.basemap.layers.reduce((acc, curr) => {
if (curr.dataKey > acc) {
return curr.dataKey;
......@@ -89,7 +88,6 @@ export default {
},
addLayer() {
console.log("addLayer", this.maxLayersCount);
const newLayer = {
dataKey: this.maxLayersCount + 1,
opacity: "1.00",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment