Retour à la documentation
define([
'dojo/_base/declare',
'dojo/_base/lang',
'spw/api/DataMapService',
'spw/api/CsvLayer'
],
function(declare, lang, DataMapService, CsvLayer) {
/**
* @class spw.api.CsvMapService
* @classdesc Service du viewer permettant d'afficher le contenu d'un fichier CSV
* @extends {spw.api.GraphicsMapService}
*/
var CsvMapService = declare('spw.api.CsvMapService', [DataMapService], /** @lends spw.api.CsvMapService.prototype */ {
valuesIgnored: false,
constructor: function() {
this._propertiesToKeep.push('csvInfo');
},
/**
* Crée le layer Esri sur base de la configuration du MapService.
* @memberOf spw.api.MapService
*/
createMapLayer: function() {
this.layer = new CsvLayer(lang.mixin({
id: this.serviceId,
_mapService: this,
style: this.style
}, this.csvInfo));
this.inherited(arguments);
}
});
return CsvMapService;
});