Parse

转换库

new TS.Parse()

Methods

static TS.Parse.parsePointCoordToArray(position)

Parses point position to array
Name Type Description
position
Returns:

static TS.Parse.parsePolygonCoordToLonlat(positions)

将自定义的
Name Type Description
positions
Returns:

static TS.Parse.parsePolylineCoordToArray(positions)

Parses polyline positions to array
Name Type Description
positions
Returns:
Number[]

static TS.Parse.parsePosition(position)Position

转换坐标
Name Type Description
position Array | String | Position 要转换的坐标
Returns:
生成的坐标

static TS.Parse.parsePositions(positions)Array.<Position>

转换坐标组
Name Type Description
positions Array | String | Position 要转换的坐标组
Returns: