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

Merge branch 'redmine-issues/12616' into 'develop'

parents 4e8e2960 e87eddfe
No related branches found
No related tags found
No related merge requests found
......@@ -630,15 +630,13 @@ export default {
addFeatureToMap() {
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`;
`?feature_id=${this.$route.params.slug_signal}&output=geojson`;
axios
.get(url)
.then((response) => {
const feature = response.data.features[0];
if (feature) {
const currentFeature = [feature];
if (response.data.features.length > 0) {
const featureGroup = mapUtil.addFeatures(
currentFeature,
response.data.features,
{},
true,
this.$store.state.feature_type.feature_types
......
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