From c48aa865ec86af1a4f8a0a37a7773cb3e9565b46 Mon Sep 17 00:00:00 2001 From: Orka Arnest CRUZE Date: Tue, 8 Nov 2022 14:30:40 +0100 Subject: [PATCH] fix erreur js page report --- assets/js/pages/report.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/assets/js/pages/report.js b/assets/js/pages/report.js index 128850e..d1936e2 100644 --- a/assets/js/pages/report.js +++ b/assets/js/pages/report.js @@ -12,6 +12,10 @@ $(function () { var extent = $('#extent-map').data('extent'); + if (!extent) { + return; + } + var features = new GeoJSON({ dataProjection: 'EPSG:4326', featureProjection: 'EPSG:3857' @@ -27,4 +31,4 @@ $(function () { viewer.getView().fit(vectorSource.getExtent()); }) -}) \ No newline at end of file +})