Retour à la documentation
define([
'dojo/_base/declare',
'dojo/_base/lang',
'spw/api/DataMapService',
'spw/api/KMLLayer'
],
function(declare, lang, DataMapService, KMLLayer) {
/**
* @class spw.api.KMLMapService
* @classdesc Service du viewer permettant d'afficher des données au format KML
* @extends {spw.api.GraphicsMapService}
*/
var KMLMapService = declare('spw.api.KMLMapService', [DataMapService], /** @lends spw.api.KMLMapService.prototype */ {
constructor: function(opt) {
this._options = opt;
this._propertiesToKeep.push('fileInfo');
},
/**
* Crée le layer Esri sur base de la configuration du MapService.
* @memberOf spw.api.MapService
*/
createMapLayer: function() {
this.layer = new KMLLayer(lang.mixin({
id: this.serviceId
}, this._options, this.fileInfo));
this.inherited(arguments);
}
});
return KMLMapService;
});