If I try to load a KML with an icon from an external, non-CORS server, the image is not retrieved even though I have my KMLDataSource proxy set. If I add an ‘else’ statement to the following code then it works fine. Am I doing something wrong (do I need a sourceUri as well as a proxy) or is this a DR?
if (!hrefResolved && defined(sourceUri)) {
var baseUri = new Uri(document.location.href);
sourceUri = new Uri(sourceUri);
href = new Uri(href).resolve(sourceUri.resolve(baseUri)).toString();
href = proxyUrl(href, proxy);
}
``
//FIX???
else{
href = proxyUrl(href, proxy);
}
``