From aeb1b15fc40ce3a755ddcb5bf291eb3ffc58a8e8 Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Fri, 25 May 2018 23:55:56 +0200 Subject: [PATCH 1/1] Do reprojection. --- wrmap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrmap.js b/wrmap.js index 135ba39..ec39a99 100644 --- a/wrmap.js +++ b/wrmap.js @@ -48,7 +48,7 @@ function init_wrmap(i, jq_map) { jq_map.empty(); // once parsed, remove geojson string from the map element. var json_js = JSON.parse(json_string); var format_geojson = new ol.format.GeoJSON(); - var features_all = format_geojson.readFeatures(json_js); + var features_all = format_geojson.readFeatures(json_js, {dataProjection: 'EPSG:4326', featureProjection: 'EPSG:3857'}); // extract, tranform and split features to layers /* -- 2.39.5