Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KmlLayerSourceProvider

KmlLayerSourceProvider is a class used to build KmlDynamicLayerSource.

example



var layerSourceProvider = new KmlLayerSourceProvider();
var kmlLayerSourceCreateOptions = { name: 'kmlfilename', data: null };
var mapServiceDetailsPromise = Q($.ajax({ url: urlToMapDetails, type: "GET"}));
Q(mapServiceDetailsPromise).then((data: any[]) => {
kmlLayerSourceCreateOptions.data = new DOMParser().parseFromString(data[0], "text/xml");
layerSourceProvider.create(this.fileSource, kmlLayerSourceCreateOptions);
});

Hierarchy

  • KmlLayerSourceProvider

Implements

Index

Properties

Private _convertToKmlDataSource

  • _convertToKmlDataSource(id: string, ms: MapServiceDescription, options?: KmlLayerSourceCreateOptions): KmlDynamicLayerSource
  • Parameters

    • id: string
    • ms: MapServiceDescription
    • Optional options: KmlLayerSourceCreateOptions

    Returns KmlDynamicLayerSource

Private _convertToKmlLayer

  • _convertToKmlLayer(sourceId: string, layerIndex: number, layerInfos: Array<BasicLayerInfo>): KmlLayer
  • Parameters

    • sourceId: string
    • layerIndex: number
    • layerInfos: Array<BasicLayerInfo>

    Returns KmlLayer

Methods

create