Class: ServerFeature

SuperMap.ServerFeature

The ServerFeature class. This class describes the returned vector features information on the server, including fields and geometries.

new SuperMap.ServerFeature(geometry, options)

D:/iClient9_English0919/src/common/iServer/ServerFeature.js, line 6
Name Type Description
geometry SuperMap.ServerGeometry

The geometry information ServerGeometry from the features.

options Object

The parameters.

Name Type Description
fieldNames Array.<string> optional

A property field collection of the graphic object.

fieldValues Array.<string> optional

A property filed collection of the graphic object.

Members

fieldNamesArray.<string>

A property field collection of the graphic object.

fieldValuesArray.<string>

A property filed collection of the graphic object.

The geometry information ServerGeometry from the features.

Methods

destroy()

D:/iClient9_English0919/src/common/iServer/ServerFeature.js, line 43

Disposes the resource. The property that references resource is set to null.

fromJson(jsonObject){SuperMap.ServerFeature}

D:/iClient9_English0919/src/common/iServer/ServerFeature.js, line 84

Transform the server - side vector feature represented by JSON objects to the ServerFeature.

Name Type Description
jsonObject Object

The JSON object to be turned.

Returns:
Type Description
SuperMap.ServerFeature The ServerFeature object.

toFeature(){SuperMap.Vector}

D:/iClient9_English0919/src/common/iServer/ServerFeature.js, line 57

Converts the ServerFeature on the server to the Feature on the client.

Returns:
Type Description
SuperMap.Vector The client features converted.