Convert S-T examples to strapless template

This commit is contained in:
Tim Schaub
2015-11-16 15:20:20 -07:00
parent c984bedd09
commit baed03d50d
26 changed files with 204 additions and 307 deletions

View File

@@ -12,9 +12,11 @@ goog.require('ol.source.Vector');
var source = new ol.source.Vector();
$.ajax('data/geojson/roads-seoul.geojson').then(function(response) {
fetch('data/geojson/roads-seoul.geojson').then(function(response) {
return response.json();
}).then(function(json) {
var format = new ol.format.GeoJSON();
var features = format.readFeatures(response);
var features = format.readFeatures(json);
var street = features[0];
// convert to a turf.js feature