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

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 {
} 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.

Users mailing list
[hidden email]