| @@ -95,10 +95,10 @@ class Position { | |||
| } | |||
| /** | |||
| * | |||
| * clone a position | |||
| * @returns {Position} | |||
| */ | |||
| copy() { | |||
| clone() { | |||
| let position = new Position() | |||
| position.lng = this.lng || 0 | |||
| position.lat = this.lat || 0 | |||
| @@ -109,6 +109,15 @@ class Position { | |||
| return position | |||
| } | |||
| /** | |||
| * clone a position | |||
| * @deprecated | |||
| * @returns {Position} | |||
| */ | |||
| copy() { | |||
| return this.clone() | |||
| } | |||
| /** | |||
| * | |||
| * @returns {*[]} | |||