Remove unnecessary newlines
This commit is contained in:
@@ -71,15 +71,13 @@ ol.format.GPX.appendCoordinate_ = function(flatCoordinates, node, values) {
|
|||||||
parseFloat(node.getAttribute('lon')),
|
parseFloat(node.getAttribute('lon')),
|
||||||
parseFloat(node.getAttribute('lat')));
|
parseFloat(node.getAttribute('lat')));
|
||||||
if ('ele' in values) {
|
if ('ele' in values) {
|
||||||
flatCoordinates.push(
|
flatCoordinates.push(/** @type {number} */ (values['ele']));
|
||||||
/** @type {number} */ (values['ele']));
|
|
||||||
delete values['ele'];
|
delete values['ele'];
|
||||||
} else {
|
} else {
|
||||||
flatCoordinates.push(0);
|
flatCoordinates.push(0);
|
||||||
}
|
}
|
||||||
if ('time' in values) {
|
if ('time' in values) {
|
||||||
flatCoordinates.push(
|
flatCoordinates.push(/** @type {number} */ (values['time']));
|
||||||
/** @type {number} */ (values['time']));
|
|
||||||
delete values['time'];
|
delete values['time'];
|
||||||
} else {
|
} else {
|
||||||
flatCoordinates.push(0);
|
flatCoordinates.push(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user