Skip to content
Snippets Groups Projects
Commit 04aa6b7b authored by DESPRES Damien's avatar DESPRES Damien
Browse files

passage vuejs

parent fae0902a
No related branches found
No related tags found
1 merge request!5Ajout du tri et de la pagination sur les features
This commit is part of merge request !5. Comments created here will be created in the context of that merge request.
......@@ -91,8 +91,8 @@
Importer
<i class="checkmark icon"></i>
</button>
</div>
<p>
</div>
<p v-if="showGeoPositionBtn">
<button @click="create_point_geoposition()"
id="create-point-geoposition"
type="button"
......@@ -278,6 +278,7 @@ export default {
map:null,
file:null,
showGeoRef:false,
showGeoPositionBtn:true,
erreurGeolocalisationMessage:null,
erreurUploadMessage:null,
attachmentDataKey: 0,
......@@ -606,10 +607,8 @@ export default {
this.drawControlFull.addTo(this.map);
this.updateGeomField("");
if (geomType === "point") {
document.getElementById("create-point-geoposition").style.display =
"inline";
document.getElementById("erreur-geolocalisation").style.display =
"none";
this.showGeoPositionBtn=true;
this.erreurGeolocalisationMessage="";
}
}.bind(this)
);
......@@ -656,8 +655,6 @@ export default {
mapDefaultViewCenter,
mapDefaultViewZoom,
});
// mapUtil.addLayers(layers, serviceMap, optionsMap);
const currentFeatureId = this.$route.params.slug_signal;
const url = `${this.$store.state.configuration.VUE_APP_DJANGO_API_BASE}projects/${this.$route.params.slug}/feature/?output=geojson`;
......@@ -703,10 +700,8 @@ export default {
//this.updateGeomField(wellknown.stringify(layer.toGeoJSON()))
this.updateGeomField(layer.toGeoJSON());
if (this.feature_type.geomType === "point") {
document.getElementById("create-point-geoposition").style.display =
"none";
document.getElementById("erreur-geolocalisation").style.display =
"none";
this.showGeoPositionBtn=false;
this.erreurGeolocalisationMessage="";
}
},
},
......
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