Skip to content

Commit

Permalink
Amélioration du zoom lors de la recherche
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Oct 20, 2023
1 parent 90c0d86 commit 6e76af9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Utilisation du cache handler de projet
* Amélioration des recherches par autocomplétion
* Amélioration de la recherche par section
* Amélioration du zoom lors de la recherche

### Funded

Expand Down
8 changes: 7 additions & 1 deletion cadastre/www/cadastre.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,15 @@ lizMap.events.on({

$('#' + formId + '_commune').change(function () {
$('#' + formId + '_geo_parcelle_lieu').val('');
if ($('#' + formId + '_zoom').hasClass('active')) {
zoomToCadastreFeature();
}
});
$('#' + formId + '_section').change(function () {
$('#' + formId + '_geo_parcelle_lieu').val('');
window.setTimeout(function() {
$('#' + formId + '_adresse').val('');
$('#' + formId + '_voie').val('');
$('#' + formId + '_voie').val('').change();
}, 500);
});
$('#' + formId + '_adresse').change(function () {
Expand All @@ -313,6 +316,9 @@ lizMap.events.on({
$('#' + formId + '_proprietaire').val('');
$('#' + formId + '_compte').val('');
$('#' + formId + '_geo_parcelle_prop').val('');
if ($('#' + formId + '_zoom').hasClass('active')) {
zoomToCadastreFeature();
}

});

Expand Down

0 comments on commit 6e76af9

Please sign in to comment.