Skip to content
Snippets Groups Projects
Commit 1113ff11 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

disactivate map on feature details if non geographical feature type

parent 9a1daa91
No related branches found
No related tags found
1 merge request!735REDMINE_ISSUE-19119 | Permettre la gestion de signalements non-géographiques (REDMINE_ISSUE-19667 | La recherche de doublon à l'import de signalement s'applique sur les signalements supprimés)
......@@ -32,7 +32,10 @@
@tofeature="pushNgo"
/>
</div>
<div class="eight wide column">
<div
v-if="feature_type && feature_type.geom_type !== 'none'"
class="eight wide column"
>
<div class="map-container">
<div
id="map"
......@@ -358,7 +361,9 @@ export default {
async initPage() {
await this.getPageInfo();
if (this.currentFeature) this.initMap();
if (this.currentFeature && this.feature_type && this.feature_type.geom_type !== 'none') {
this.initMap();
}
},
async getPageInfo() {
......@@ -418,8 +423,10 @@ export default {
async reloadPage() {
await this.getPageInfo();
mapService.removeFeatures();
this.addFeatureToMap();
if (this.feature_type && this.feature_type.geom_type !== 'none') {
mapService.removeFeatures();
this.addFeatureToMap();
}
},
pushNgo(newEntry) {
......
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