Class: turfLayer

L.supermap.turfLayer

The Turf layer class.

L.supermap.turfLayer(options)

TurfLayer.js, line 6
Name Type Description
options Object

he optional parameters.

Name Type Default Description
attribution string '<span>© <a href='http://turfjs.org/' title='turfjs' target='_blank'>turfjs</a></span>' optional

The copyright information.

Extends

Methods

process(type, args, callback, addFeaturesToMap)

TurfLayer.js, line 224

Process related spatial analysis method provided by Turf.js.

Name Type Default Description
type string

The type of the spatial analysis method provided by Turf.js.

args Object

Parameters objects corresponding to the spatial analysis method provided by Turf.js.

callback function

The callback after the completion of the spatial analysis, which returns the result of execution.

addFeaturesToMap boolean true optional

Weather add to the map or not.