Skip to content
Snippets Groups Projects
Merged Leandro Almada requested to merge REDMINE-ISSUES/12576v2 into develop
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -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(
Loading