Skip to content

Commit

Permalink
Amélioration de la recherche par section
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Oct 20, 2023
1 parent 2c7772a commit b48179c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

* Amélioration de la recherche des parcelles
* Utilisation du cache handler de projet
* Améliroation des recherches par autocomplétion
* Amélioration des recherches par autocomplétion
* Amélioration de la recherche par section

### Funded

Expand Down
13 changes: 8 additions & 5 deletions cadastre/www/cadastre.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,10 @@ lizMap.events.on({
if (!cadastreConfig.layer)
return;

var cadastreCrs = 'EPSG:2154';
if ('qgisServerVersion' in lizMap.config.options && lizMap.config.options.qgisServerVersion != '2.14')
cadastreCrs = 'EPSG:4326';
var cadastreCrs = 'EPSG:4326';
if ('qgisServerVersion' in lizMap.config.options && lizMap.config.options.qgisServerVersion == '2.14') {
cadastreCrs = 'EPSG:2154';
}

function initCadastreForm() {
var formId = $('#div_form_cadastre_search form').attr('id');
Expand Down Expand Up @@ -298,9 +299,11 @@ lizMap.events.on({
$('#' + formId + '_geo_parcelle_lieu').val('');
});
$('#' + formId + '_section').change(function () {
$('#' + formId + '_adresse').val('');
$('#' + formId + '_voie').val('');
$('#' + formId + '_geo_parcelle_lieu').val('');
window.setTimeout(function() {
$('#' + formId + '_adresse').val('');
$('#' + formId + '_voie').val('');
}, 500);
});
$('#' + formId + '_adresse').change(function () {
$('#' + formId + '_section').val('');
Expand Down

0 comments on commit b48179c

Please sign in to comment.