Skip to content
Snippets Groups Projects
Commit 65b4c291 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

fix: Display of selected point (coordinates) in observation form

parent 16dd3d34
No related branches found
No related tags found
No related merge requests found
......@@ -518,7 +518,7 @@ export default {
this.latitude = this.myGeoInfo.features[0].geometry.coordinates[0];
this.longitude = this.myGeoInfo.features[0].geometry.coordinates[1];
this.mapZoom = CommonUtil.CONST_GPS_OBSERVATION_ZOOM;
this.showOnlyUsersPOIs = this.myGeoInfo.features[0].properties.pointOfInterestTypeId !== 1;
this.showOnlyUsersPOIs = this.myGeoInfo.features[0].properties && this.myGeoInfo.features[0].properties.pointOfInterestTypeId !== 1;
} else {
this.mapZoom = CommonUtil.CONST_GPS_DEFAULT_ZOOM;
}
......
......@@ -70,7 +70,7 @@
<font-awesome-icon class="form-icon" icon="map-location"/>{{ mapGeoinfo ? $t("observation.map.label.edit") : $t("observation.map.label.new") }}
</router-link>
</div>
<div class="col-4 d-flex align-items-center justify-content-end" v-html="currentLocationName()"></div>
<div class="col-4 d-flex align-items-end justify-content-end" v-html="currentLocationName()"></div>
</div>
<div v-if="mapGeoinfo" id="divMapGeoInfo">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment