KmlLayerSourceCreateOptions is an interface that contains the required parameters to create a KmlLayerSourceProvider.
var kmlLayerSourceCreateOptions = { name: 'kmlfilename', data: null }; var mapServiceDetailsPromise = Q($.ajax({ url: urlToMapDetails, type: "GET"})); Q.all([mapServiceDetailsPromise]).then((data: any[]) => { kmlLayerSourceCreateOptions.data = new DOMParser().parseFromString(data[0], "text/xml"); });
KmlLayerSourceCreateOptions is an interface that contains the required parameters to create a KmlLayerSourceProvider.
var kmlLayerSourceCreateOptions = { name: 'kmlfilename', data: null };
var mapServiceDetailsPromise = Q($.ajax({ url: urlToMapDetails, type: "GET"}));
Q.all([mapServiceDetailsPromise]).then((data: any[]) => { kmlLayerSourceCreateOptions.data = new DOMParser().parseFromString(data[0], "text/xml"); });