diff --git a/assets/layers/overlay.js b/assets/layers/overlay.js index 6a32f3c..b780d9c 100644 --- a/assets/layers/overlay.js +++ b/assets/layers/overlay.js @@ -53,8 +53,8 @@ var tile = new ol.layer.Tile({ // }) // }); - var vectorSource = new ol.source.Vector( - { url: path + 'assets/geojson/searchtest.geojson', + var vectorSource = new ol.source.Vector({ + url: 'assets/geojson/searchtest.geojson', projection: 'EPSG:3857', format: new ol.format.GeoJSON() - }); \ No newline at end of file + });