Add countries.json to examples data dir

The examples cannot use files located in the test dir, or they won't work when hosted as GitHub pages.
This commit is contained in:
Éric Lemoine
2013-03-15 14:17:19 +01:00
parent 8692c42318
commit a34adc6f62
2 changed files with 182 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@@ -38,7 +38,7 @@ var vector = new ol.layer.Vector({
});
var geojson = new ol.parser.GeoJSON();
var url = '../test/spec/ol/parser/geojson/countries.json';
var url = 'data/countries.json';
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);