I have a Windows 2012 file server and need to reference a local file on the file server using a https:// formatted reference for a COTS function to load. It is a KML file and I am unable to load it. The error I am getting is "Failed to load network link". Here is the code I have been using but am unable to get it to work this far:
var overlayProperties = {
"name": "Operations",
"url": "https://localhost/KML/Operations.kml",
"type": MoW.protocols.KMLProtocol.TYPE.url
};
var newOverlayObject = MoW.Factory.createKMLOverlay(overlayProperties);
map.addOverlay(newOverlayObject, {
showAlert: true
});
}