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 +})