Opened 5 years ago
openlayers does not trigger loadend when it cannot parse request reply
|Reported by:||arno||Owned by:|
Hi, I've a gml layer with format GeoJSON.
when server sends not well formed geojson (this should not happen, but can happen in case of server bug), gml.read(doc) returns null, and this.addFeatures(gml.read(doc)) throws an exception in OpenLayers.Layer.GML.requestSuccess then this.events.triggerEvent("loadend"); is not executed. So script cannot be notified of a parsing error. maybe, this exception could be catched, or OpenLayers.Layer.Vector.addFeatures could check for a null argument and return directly.