Add projection option to ol.source.IGC
This commit is contained in:
@@ -620,6 +620,9 @@
|
|||||||
* @typedef {Object} olx.source.IGCOptions
|
* @typedef {Object} olx.source.IGCOptions
|
||||||
* @property {ol.format.IGCZ|undefined} altitudeMode Altitude mode.
|
* @property {ol.format.IGCZ|undefined} altitudeMode Altitude mode.
|
||||||
* Possible values are `barometric`, `gps`, and `none`. Default is `none`.
|
* 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} text Text.
|
||||||
* @property {string|undefined} url URL.
|
* @property {string|undefined} url URL.
|
||||||
* @property {Array.<string>|undefined} urls URLs.
|
* @property {Array.<string>|undefined} urls URLs.
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ ol.source.IGC = function(opt_options) {
|
|||||||
format: new ol.format.IGC({
|
format: new ol.format.IGC({
|
||||||
altitudeMode: options.altitudeMode
|
altitudeMode: options.altitudeMode
|
||||||
}),
|
}),
|
||||||
|
projection: options.projection,
|
||||||
text: options.text,
|
text: options.text,
|
||||||
url: options.url,
|
url: options.url,
|
||||||
urls: options.urls
|
urls: options.urls
|
||||||
|
|||||||
Reference in New Issue
Block a user