Opened 7 years ago

#2636 new bug

openlayers does not trigger loadend when it cannot parse request reply

Reported by: arno Owned by:
Priority: minor Milestone: 2.13 Release
Component: general Version: 2.9
Keywords: Cc:


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), returns null, and this.addFeatures( throws an exception in OpenLayers.Layer.GML.requestSuccess then"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.

Change History (0)

Note: See TracTickets for help on using tickets.