contribs/gmf/src/profile/component.js
function(item) {
    if ('values' in item && layerName in item.values && item.values[layerName]) {
      return parseFloat(item.values[layerName]);
    }
    throw new Error('Unexpected');
  }
function(item) {
    if ('values' in item && layerName in item.values && item.values[layerName]) {
      return parseFloat(item.values[layerName]);
    }
    throw new Error('Unexpected');
  }
function ( item ) { if ( 'values' in item && layerName in item . values && item . values [ layerName ] ) { return parseFloat ( item . values [ layerName ] ) ; } throw new Error ( 'Unexpected' ) ; }
Generic GMF extractor for the 'given' value in 'values' in profileData.
@param {Object} item The item.
@return {number} The elevation.
@private
Generic GMF extractor for the given value in values in profileData .