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

Merge branch 'develop' into redmine-issues/12517

parents 8b070c46 c393899e
No related branches found
No related tags found
No related merge requests found
......@@ -625,12 +625,12 @@ export default {
},
addFeatureToMap() {
const currentFeatureId = this.$route.params.slug_signal;
const url = `${this.$store.state.configuration.VUE_APP_DJANGO_API_BASE}features/${currentFeatureId}/?feature_type__slug=${this.$route.params.slug_type_signal}&output=geojson`;
const url = `${this.$store.state.configuration.VUE_APP_DJANGO_API_BASE}projects/${this.$route.params.slug}/feature/` +
`?feature_type__slug=${this.$store.state.feature_type.feature_types[0].slug}&output=geojson`;
axios
.get(url)
.then((response) => {
const feature = response.data;
const feature = response.data.features[0];
if (feature) {
const currentFeature = [feature];
const featureGroup = mapUtil.addFeatures(
......
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