Move countries.geojson into geojson subdirectory
This commit is contained in:
@@ -30,7 +30,7 @@ var map = new ol.Map({
|
||||
new ol.layer.Image({
|
||||
source: new ol.source.ImageVector({
|
||||
source: new ol.source.GeoJSON({
|
||||
url: 'data/countries.geojson'
|
||||
url: 'data/geojson/countries.geojson'
|
||||
}),
|
||||
styleFunction: function(feature, resolution) {
|
||||
return styleArray;
|
||||
|
||||
@@ -23,7 +23,7 @@ var styleArray = [new ol.style.Style({
|
||||
|
||||
var vectorLayer = new ol.layer.Vector({
|
||||
source: new ol.source.GeoJSON({
|
||||
url: 'data/countries.geojson'
|
||||
url: 'data/geojson/countries.geojson'
|
||||
}),
|
||||
styleFunction: function(feature, resolution) {
|
||||
return styleArray;
|
||||
|
||||
Reference in New Issue
Block a user