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