Retour à la documentation
define([
'dojo/_base/declare',
'dojo/_base/lang',
'spw/api/DataMapService',
'spw/api/GPXLayer'
],
function(declare, lang, DataMapService, GPXLayer) {
/**
* @class spw.api.DataMapService
* @classdesc Service du viewer permettant d'afficher des données au format GPX
* @extends {spw.api.GraphicsMapService}
*/
var GPXMapService = declare('spw.api.GPXMapService', [DataMapService], /** @lends spw.api.GPXMapService.prototype */ {
constructor: function(opts) {
this._options = opts;
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 GPXLayer(lang.mixin({
id: this.serviceId
}, this._options, this.fileInfo));
this.inherited(arguments);
}
});
return GPXMapService;
});