Merge pull request #1656 from twpayne/fix-igc-projection

Fix projection in IGC example
This commit is contained in:
Tom Payne
2014-02-06 17:03:21 +01:00
3 changed files with 5 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ var styleFunction = function(feature, resolution) {
};
var vectorSource = new ol.source.IGC({
projection: 'EPSG:3857',
urls: [
'data/igc/Clement-Latour.igc',
'data/igc/Damien-de-Baenst.igc',

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