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 6e76af9 commit a576af4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cadastre/classes/listParcellePropDatasource.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public function getData($form)
return array();
}

if (!empty($commune) && !empty($comptecommunal
&& substr($comptecommunal, 0, 6) !== $commune)) {
return array();
}

if (!empty($commune) && !empty($compte)) {
$comptecommunal = $commune . $compte;
}
Expand Down
6 changes: 6 additions & 0 deletions cadastre/www/cadastre.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,11 @@ lizMap.events.on({


$('#' + formId + '_commune').change(function () {
$('#' + formId + '_section').val('');
$('#' + formId + '_adresse').val('');
$('#' + formId + '_voie').val('');
$('#' + formId + '_geo_parcelle_lieu').val('');
$('#' + formId + '_geo_parcelle_lieu').html('<option value selected="selected">-- Choisir --</option>');
if ($('#' + formId + '_zoom').hasClass('active')) {
zoomToCadastreFeature();
}
Expand All @@ -314,8 +318,10 @@ lizMap.events.on({

$('#' + formId + '_commune_prop').change(function () {
$('#' + formId + '_proprietaire').val('');
$('#' + formId + '_comptecommunal').val('');
$('#' + formId + '_compte').val('');
$('#' + formId + '_geo_parcelle_prop').val('');
$('#' + formId + '_geo_parcelle_prop').html('<option value selected="selected">-- Choisir --</option>');
if ($('#' + formId + '_zoom').hasClass('active')) {
zoomToCadastreFeature();
}
Expand Down

0 comments on commit a576af4

Please sign in to comment.