Plotting Layer Class
| Name | Type | Description |
|---|---|---|
scene |
Scene | Scene |
layerName |
String | Name of plotting layer |
Members
-
geoGraphicObjects : Array.<GeoGraphicObject>
-
Array of plotting objects for layers
-
ID of Layer
-
Is the layer editable?
-
Is the layer locked?
-
Is the layer selectable?
-
The name of the layer
-
readonlyselectedFeature : GeoGraphicObject
-
The currently selected object
-
symbolAddedEvent : Event
-
symbol added event
-
Visibility of the layer
Methods
-
Add symbols to the plotting layer
Name Type Description geoGraphicObjectGeoGraphicObject plotting object to add Returns:
Whether the addition was successful -
Create composite objects based on GeoJson
Name Type Description geoJSONGeoJson The GeoJson object Returns:
Array of composite objects. -
Create a composite object.
Name Type Description featuresArray.<GeoGraphicObject> Plotting object. Returns:
composite objects -
Create plotting objects based on model and image resource paths
Name Type Description optionsObject Configuration item Name Type Description libIDNumber Symbol library encoding codeNumber symbol encoding pointsArray.<MPoint3D> Array of position points for symbol urlString Model or image resource path modelScaleNumber model scale value callbackfunction optional Callback function -
Create symbols based on symbol library encoding and symbol encoding
Name Type Description libIDNumber symbol library encoding codeNumber symbol encoding pointsArray.<MPoint3D> Array of position points for symbol optionsObject Configuration items (extended properties for creating models and image elements) Name Type Description lineColorColor Line color lineWidthNumber Line width modelScaleNumber Model scale pictureSizeCartesian2 Image size textContentString annotation content fontSizeString annotation size fontColorString annotation color urlString Resource path for the model or image callbackfunction optional callback function. -
release resources and destroy layers
Name Type Description isRaiseEventBoolean Whether to trigger a plotting removal event -
Convert geoJson to a plotting object and add it to the current plotting layer
Name Type Description geoJSONJSON GeoJson formatted data callbackfunction optional callback function. -
Get the bounds of the plotting layer
Returns:
layer bounds -
getFeatureByUuid(id) → GeoGraphicObject
-
Identify the plotting object based on its ID
Name Type Description idString id of plotting object Returns:
plotting object -
Release the selected object
-
Clear the layer
Name Type Description isRaiseEventBoolean Whether the plotting removal event is triggered -
Remove the specified plot symbol from the layer based on UUID
Name Type Description uuidString The ID of the plot symbol to be removed isRaiseEventBoolean Whether to send a plotting removal event -
Remove the specified symbol
Name Type Description geoGraphicObjectGeoGraphicObject plotting object to be removed isRaiseEventBoolean Whether to send a plotting removal event -
Set the selected symbol
Name Type Description geoGraphicObjectGeoGraphicObject -
Set the selected symbol based on the ID
Name Type Description idString ID of plotting object -
Set the selected symbol based on the index
Name Type Description indexNumber index in the layer -
Set whether the layer supports depth detection
Name Type Description Whether depth detection is supportedBoolean -
Split composite object
Name Type Description featuresArray.<GeoGraphicObject> Composite object Returns:
Whether the splitting was successful. -
Modify a plotting object via GeoJson
Name Type Description geoJsonObject Returns:
plotting object
