diff --git a/examples/vector-layer.js b/examples/vector-layer.js index 671cc5a663..d91bb83ba6 100644 --- a/examples/vector-layer.js +++ b/examples/vector-layer.js @@ -51,8 +51,6 @@ xhr.onload = function() { // this is silly to have to tell the layer the destination projection var projection = map.getView().getProjection(); vector.parseFeatures(xhr.responseText, geojson, projection); - } else { - throw new Error('Data loading failed: ' + xhr.status); } }; xhr.send();