Commit a7bb76ba authored by ncastejon's avatar ncastejon
Browse files

Remove the code for the updateFeatures (into the map)

parent c5ae6349
<div id="map" class="mapbox-map"
[ngClass]="{'fullscreen': fullscreen===true, 'display-details': selectedData !== null && displayDataDetails === true, 'hide-details': displayDataDetails === false && selectedData !== null}">
[ngClass]="{'display-details': selectedData !== null && displayDataDetails === true, 'hide-details': displayDataDetails === false && selectedData !== null}">
<div id="menu" *ngIf="displayControls">
<div class="columns is-mobile is-marginless">
<div class="column is-narrow">
......@@ -42,33 +42,6 @@
</button>
</div>
<div class="columns is-mobile update-map" *ngIf="displayUpdateFeatures">
<div class="column is-narrow">
<div class="column-content">
<a class="button is-medium" (click)="updateFeatures()">
<span i18n="@@dataset.detail.map.search">Search this area</span>
<span class="icon" *ngIf="displaySpinner">
<i class="fas fa-spinner fa-spin"></i>
</span>
</a>
</div>
</div>
</div>
<div class="columns is-mobile update-map"
*ngIf="displayMessageLimitedFeatures && currentLayerType === linkFormats.wfs">
<div class="column is-narrow">
<div class="column-content">
<div class="message is-medium">
<p class=""><span>{{settings.maxDisplayFeatures}}&nbsp;</span>
<span i18n="@@dataset.detail.map.message1">records out of</span>
<span class="has-text-danger">&nbsp;{{totalData}}&nbsp;</span>
<span i18n="@@dataset.detail.map.message2">in the displayed area</span></p>
<p class="" i18n="@@dataset.detail.map.message3">More details on zoom</p>
</div>
</div>
</div>
</div>
<div class="data-details-wrapper" *ngIf="selectedData !== null"
[ngClass]="{'data-details-opened': selectedData !== null && displayDataDetails === true, 'data-details-closed': displayDataDetails === false}">
<app-data-details (close)="closeDataDetails()" [properties]="selectedData" class="app-data-details">
......
......@@ -115,41 +115,6 @@
}
}
.update-map {
z-index: 1;
position: absolute;
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
margin-top: 0;
width: 20%;
.button {
box-shadow: 0 2px 5px -1px rgba(0, 0, 0, 0.3);
border: none;
text-decoration: none;
&:hover {
background-color: #f7f7f7;
}
}
.message {
padding: 0.5em;
cursor: default;
box-shadow: 0 2px 5px -1px rgba(0, 0, 0, 0.3);
border: none;
background-color: #fff;
text-align: center;
}
.span.message3::before {
content: '\A';
white-space: pre;
}
}
#menu {
z-index: 1;
position: absolute;
......
......@@ -35,9 +35,6 @@ export class MapComponent implements OnInit, OnDestroy {
display3d = false;
// Attributes to manage the display of the pudate map button
displayUpdateFeatures = false;
displaySpinner = false;
displayMessageLimitedFeatures = false;
totalData = 0;
previousDatasetId: string;
......
......@@ -405,22 +405,6 @@
<x id="INTERPOLATION"/>
lines</target>
</trans-unit>
<trans-unit id="dataset.detail.map.search" datatype="html">
<source>Search this area</source>
<target>Search this area</target>
</trans-unit>
<trans-unit id="dataset.detail.map.message1" datatype="html">
<source>records out of</source>
<target>records out of</target>
</trans-unit>
<trans-unit id="dataset.detail.map.message2" datatype="html">
<source>in the displayed area</source>
<target>in the displayed area</target>
</trans-unit>
<trans-unit id="dataset.detail.map.message3" datatype="html">
<source>More details on zoom</source>
<target>More details on zoom</target>
</trans-unit>
<trans-unit id="dataset.detail.map.share" datatype="html">
<source>Share the map</source>
<target>Share the map</target>
......
......@@ -409,22 +409,6 @@ données sont en accès restreint. Pour consulter ou utiliser l’intégralité
<x id="INTERPOLATION"/>
lignes</target>
</trans-unit>
<trans-unit id="dataset.detail.map.search" datatype="html">
<source>Search this area</source>
<target>Rechercher dans cette zone</target>
</trans-unit>
<trans-unit id="dataset.detail.map.message1" datatype="html">
<source>records out of</source>
<target>enregistrements sur</target>
</trans-unit>
<trans-unit id="dataset.detail.map.message2" datatype="html">
<source>in the displayed area</source>
<target>dans la zone affichée</target>
</trans-unit>
<trans-unit id="dataset.detail.map.message3" datatype="html">
<source>More details on zoom</source>
<target>Plus de détails au zoom</target>
</trans-unit>
<trans-unit id="dataset.detail.map.share" datatype="html">
<source>Share the map</source>
<target>Partager la carte</target>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment