diff --git a/src/objectliterals.jsdoc b/src/objectliterals.jsdoc index e45cf73c45..c61369d6fc 100644 --- a/src/objectliterals.jsdoc +++ b/src/objectliterals.jsdoc @@ -620,6 +620,9 @@ * @typedef {Object} olx.source.IGCOptions * @property {ol.format.IGCZ|undefined} altitudeMode Altitude mode. * Possible values are `barometric`, `gps`, and `none`. Default is `none`. + * @property {ol.proj.ProjectionLike} projection Destination projection. If + * provided, features will be transformed to this projection. If not + * provided, features will not be transformed. * @property {string|undefined} text Text. * @property {string|undefined} url URL. * @property {Array.|undefined} urls URLs. diff --git a/src/ol/source/igcsource.js b/src/ol/source/igcsource.js index f599730405..3548e139e7 100644 --- a/src/ol/source/igcsource.js +++ b/src/ol/source/igcsource.js @@ -19,6 +19,7 @@ ol.source.IGC = function(opt_options) { format: new ol.format.IGC({ altitudeMode: options.altitudeMode }), + projection: options.projection, text: options.text, url: options.url, urls: options.urls