Network links inside KML

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Network links inside KML

dnbphysicist
Hello all, when adding a KML layer in OpenLayers, is there a way to alert the user if the KML contains a network link to a KMZ, rather than just failing silently and not letting the user an error has occured? I tried:

var kmlLayer = new OpenLayers.Layer.Vector('KML',{...});
try {
    map.addLayer(kmlLayer);
} catch(e) {
    alert('An error occured');
}

But, it seems the error is thrown when the proxy throws an exception and returns a 500 error: OpenLayers.debug.js (line 45218). The proxy throws an error because of the encoding in the binary file.
--
HYX

_______________________________________________
Users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/openlayers-users