Add projection option to ol.source.IGC

This commit is contained in:
Tom Payne
2014-02-06 16:48:42 +01:00
parent 8f9e2ea88d
commit f1276e86a1
2 changed files with 4 additions and 0 deletions

View File

@@ -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.<string>|undefined} urls URLs.

View File

@@ -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