MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / clone

Method clone

src/common/commontypes/LonLat.js:70–72  ·  view source on GitHub ↗

* @function LonLat.prototype.clone * @description 复制坐标对象,并返回复制后的新对象。 * @example * var lonLat1 = new LonLat(100,50); * var lonLat2 = lonLat1.clone(); * @returns {LonLat} 相同坐标值的新的坐标对象。

()

Source from the content-addressed store, hash-verified

68 * @returns {LonLat} 相同坐标值的新的坐标对象。
69 */
70 clone() {
71 return new LonLat(this.lon, this.lat);
72 }
73
74 /**
75 * @function LonLat.prototype.add

Callers 1

wrapDateLineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected