goog.provide('ol.source.IGC');

goog.require('ol.format.IGC');
goog.require('ol.source.VectorFile');



/**
 * @constructor
 * @extends {ol.source.VectorFile}
 * @param {olx.source.IGCOptions=} opt_options Options.
 */
ol.source.IGC = function(opt_options) {

  var options = goog.isDef(opt_options) ? opt_options : {};

  goog.base(this, {
    format: new ol.format.IGC({
      altitudeMode: options.altitudeMode
    }),
    text: options.text,
    url: options.url,
    urls: options.urls
  });

};
goog.inherits(ol.source.IGC, ol.source.VectorFile);

goog.provide('ol.source.IGC');

goog.require('ol.format.IGC');
goog.require('ol.source.VectorFile');



/**
 * @constructor
 * @extends {ol.source.VectorFile}
 * @param {olx.source.IGCOptions=} opt_options Options.
 * @todo stability experimental
 */
ol.source.IGC = function(opt_options) {

  var options = goog.isDef(opt_options) ? opt_options : {};

  goog.base(this, {
    format: new ol.format.IGC({
      altitudeMode: options.altitudeMode
    }),
    text: options.text,
    url: options.url,
    urls: options.urls
  });

};
goog.inherits(ol.source.IGC, ol.source.VectorFile);

Add stability annotation to ol.source.IGC
Add stability annotation to ol.source.IGC
