I want to add a KML file, hosted internally on a server, as operationallayers. It doesn't seem to be working.
If I put the KML file in Google Drive or Github and then call it like :
{
type: 'kml',
url: 'http://googlemaps.github.io/js-v2-samples/ggeoxml/cta.kml',
title: 'Quakes2',
options: {
id: 'quake_kml',
opacity: 1.0,
visible: true,
//imageParameters: imageParameters
mode: 0
},
identifyLayerInfos: {
//layerIds: [0]
},
legendLayerInfos: {
layerInfo: {
}
},
layerControlLayerInfos: {
swipe: true,
metadataUrl: true,
expanded: true
}
}
. It works. If i change to "url: 'http://localhost/mykml/cta.kml'", it doesn't work. But I don't want to put my resource on outside premises.
How can I put this KML file on my internal network so that I can call it in my app?
I have read about KML parser called geoxml3, but I don't know how to convert the result of geoxml3 so that it can be passed to my CMV app. Any ideas?