MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / fromString

Method fromString

src/common/commontypes/LonLat.js:168–171  ·  view source on GitHub ↗

* @function LonLat.fromString * @description 通过字符串生成一个 LonLat 对象。 * @example * var str = "100,50"; * var lonLat = LonLat.fromString(str); * @param {string} str - 字符串的格式:Lon+","+Lat。如:"100,50"。 * @returns {LonLat} LonLat 对象。

(str)

Source from the content-addressed store, hash-verified

166 * @returns {LonLat} {@link LonLat} 对象。
167 */
168 static fromString(str) {
169 var pair = str.split(",");
170 return new LonLat(pair[0], pair[1]);
171 }
172
173 /**
174 * @function LonLat.fromArray

Callers 4

BoundsSpec.jsFile · 0.45
mapbox-gl.jsFile · 0.45
NrFunction · 0.45
ol.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected