Make sure vector-wfs example works in JSFiddle
This commit is contained in:
@@ -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));
|
vectorSource.addFeatures(geojsonFormat.readFeatures(response));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user