[OpenLayers-Users] Reporting creation errors for Vector/GeoRSS layers

Andreas Hocevar ahocevar at opengeo.org
Thu Oct 27 05:45:40 EDT 2011


We don't have error handling for this on the library level. But what you could do is register for the layer's loadend event and check for layer.features.length. You could notify the user when the number of features is zero.

Andreas.

On Oct 26, 2011, at 18:20 , Tito, Joseph wrote:

> Is it possible to recover error messages in the following scenarios:
>  
> 1)      A vector layer is created from a KML file in which the KML file is corrupted.
> 2)      A GeoRSS layer is created from a GeoRSS file in which the file is corrupted.
>  
> I’m trying to report errors to my users if they supply a file that is corrupted.
>  
> Joe Tito
>  
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users

-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Users mailing list