Skip to content

Commit

Permalink
Merge pull request #486 from PnX-SI/fix/advanded_search
Browse files Browse the repository at this point in the history
BUG : pas d'affichage cartographique sur la page "/recherche"
  • Loading branch information
amandine-sahl authored Sep 14, 2023
2 parents 2edec08 + c70336d commit 062dc81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atlas/templates/core/advanced_search.html
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
}
}).done(function (observations) {
var geoJsonDatas = observations;
if (observations['features'][0]['geometry']['type'] != 'point') {
if ((observations['features'][0]['geometry']['type']).toLowerCase() != 'point') {
polygonLayerToCentroid(geoJsonDatas);
}
//var color = getRandomColor();
Expand Down

0 comments on commit 062dc81

Please sign in to comment.