Skip to content
Snippets Groups Projects
Commit c393899e authored by Sébastien DA ROCHA's avatar Sébastien DA ROCHA :bicyclist:
Browse files

Merge branch 'REDMINE-ISSUES/12576v2' into 'develop'

parents 538d43a4 90d1e28f
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