Class: Vector

L.supermap.Vector

The constructor of the UGC vector layer class.

new L.supermap.Vector(options)

Vector.js, line 6
Name Type Description
options Object

The parameters.

Name Type Description
style L.supermap.ServerStyle optional

The vector layer style.

Extends

Members

The vector layer style.

Methods

fromJson(jsonObject)

Vector.js, line 38

Convert the server-side JSON object to the current client object.

Name Type Description
jsonObject Object

JSON object to be converted.

toServerJSONObject(){Object}

Vector.js, line 51

Converts to corresponding JSON object.

Returns:
Type Description
Object Corresponding JSON object.