From 90d1e28f4b50973da244a2da14200b43ff36027a Mon Sep 17 00:00:00 2001 From: leandro <leandroalmada86@gmail.com> Date: Thu, 2 Dec 2021 09:16:32 +0100 Subject: [PATCH] fix info popup in map --- src/views/feature/Feature_detail.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/feature/Feature_detail.vue b/src/views/feature/Feature_detail.vue index 9b2a4e31..759f27f0 100644 --- a/src/views/feature/Feature_detail.vue +++ b/src/views/feature/Feature_detail.vue @@ -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( -- GitLab