Merge pull request #3709 from bartvde/issue-3709

vector-wfs example does not work in JSFiddle
This commit is contained in:
Bart van den Eijnden
2015-05-19 21:58:50 +02:00

View File

@@ -28,9 +28,12 @@ var vectorSource = new ol.source.Vector({
}))
});
// the global function whose name is specified in the URL of JSONP WFS
// GetFeature requests
var loadFeatures = function(response) {
/**
* JSONP WFS callback function.
* @param {Object} response The response object.
*/
window.loadFeatures = function(response) {
vectorSource.addFeatures(geojsonFormat.readFeatures(response));
};