new SuperMap.ServerFeature(geometry, options)
ServerFeature.js, line 6
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
geometry |
SuperMap.ServerGeometry |
The geometry information ServerGeometry from the features. |
|||||||||
options |
Object |
The parameters.
|
Members
-
fieldNamesArray.<string>
-
A property field collection of the graphic object.
-
fieldValuesArray.<string>
-
A property filed collection of the graphic object.
-
geometrySuperMap.ServerGeometry
-
The geometry information ServerGeometry from the features.
Methods
-
destroy()
ServerFeature.js, line 43 -
Disposes the resource. The property that references resource is set to null.
-
fromJson(jsonObject){SuperMap.ServerFeature}
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}
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.