Skip to content

Commit

Permalink
Update modules/layers/src/immutable-feature-collection.js
Browse files Browse the repository at this point in the history
  • Loading branch information
georgios-uber committed Mar 29, 2019
1 parent c6e871c commit 5b13676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/layers/src/immutable-feature-collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class ImmutableFeatureCollection {

function getUpdatedPosition(updatedPosition: Position, previousPosition: Position): Position {
// This function checks if the updatedPosition is missing elevation
// and copies if from previousPosition
// and copies it from previousPosition
if (updatedPosition.length === 2 && previousPosition.length === 3) {
const elevation = (previousPosition: any)[2];
return [updatedPosition[0], updatedPosition[1], elevation];
Expand Down

0 comments on commit 5b13676

Please sign in to comment.