diff --git a/src/components/MapObservation.vue b/src/components/MapObservation.vue index ff62e8deb55b29f2077b8278363de0c7b06d7fce..6cac73983378d4cc20d8062991ff0cf18e8420af 100644 --- a/src/components/MapObservation.vue +++ b/src/components/MapObservation.vue @@ -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; } diff --git a/src/components/Observation.vue b/src/components/Observation.vue index e636fa23007edcd6b0757e99e16391444846c10a..e9321fc19314848f04b8d3842b707eab70746895 100644 --- a/src/components/Observation.vue +++ b/src/components/Observation.vue @@ -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">