Class: Util

mapboxgl.supermap.Util

The tool class.

new mapboxgl.supermap.Util()

Util.js, line 5

Methods

static extend(dest, arguments){Object}

Util.js, line 100

Object copy assignment

Name Type Description
dest Object

target object.

arguments Object

Object to be copied.

Returns:
Type Description
Object Assigned target object.

static isArray(obj){boolean}

Util.js, line 53

Determine if it is an array format.

Name Type Description
obj Object

The object to be determined.

Returns:
Type Description
boolean Whether it is an array.

static toGeoJSON(smObj)

Util.js, line 64

Transform the passed object to GeoJSON.

Name Type Description
smObj Object

The object to be passed.

static toProcessingParam(points){Object}

Util.js, line 76

Transform the array of nodes about the region to the processing analysis service parameters.

Name Type Description
points Array

The array of nodes about region.

Returns:
Type Description
Object The processing service cut、the query analysis and the parameters of the analysis.

static toSuperMapGeometry(geoJSON)

Util.js, line 12

Transform the geoJSON to SuperMap Geometry.

Name Type Description
geoJSON GeoJSONObject

The geoJSON.