Browse Source

Improve the position

tags/2.3.1
Caven Chen 4 years ago
parent
commit
45c54617e6
1 changed files with 11 additions and 2 deletions
  1. 11
    2
      modules/position/Position.js

+ 11
- 2
modules/position/Position.js View File

@@ -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 {*[]}

Loading…
Cancel
Save