SitDataManager

new Cesium.SitDataManager(options)

Situation diagram manager singleton class
Name Type Description
options Object optional The object has the following properties
Name Type Description
scene scene optional Scenes.
serverUrl String optional Plotting service url
smlInfo SmlInfoStruct optional Information about the currently open situation map
smlFileName String optional The name of the currently open situation map
sitData SitDataStruct optional Information structure of the currently opened situation map

Members

readonlyaddSmlFileCompleted : Event

Successful event of superimposing local situation map files

readonlyaddSmlFileFailed : Event

Failure to superimpose local situation map files

readonlyaddSmlFileToLayerCompleted : Event

Superimpose the situation file to the specified layer success event

readonlyaddSmlFileToLayerFailed : Event

Failed to superimpose situation file to specified layer

readonlydeleteSmlFileCompleted : Event

Successful event of deleting server situation map file

readonlydeleteSmlFileFailed : Event

Failed to delete server situation map file

readonlygetSmlInfoCompleted : Event

Get the information of the specified situation map file information success event

readonlygetSmlInfoFailed : Event

Failed to get the information of the specified situation map file

readonlygetSmlInfosCompleted : Event

Get the success event of the situation map file list

readonlygetSmlInfosFailed : Event

Failed to get the situation map file list.

readonlyopenLocalSmlFileCompleted : Event

Open the local situation map file success event

readonlyopenLocalSmlFileFailed : Event

Failure to open the local situation map file

readonlyopenSmlFileCompleted : Event

Open the situation map file success event

readonlyopenSmlFileFailed : Event

Failed to open the situation map file

readonlysaveSmlFileCompleted : Event

Successful event of saving the situation map file

readonlysaveSmlFileFailed : Event

Failure to save the situation map file

readonlyscene : Scene

Current scene

readonlyserverUrl : String

Plotting service url

smlFileName : String

Current situation map name

smlInfo : SmlInfoStruct

Basic Information Structure of Situation Map

Methods

staticCesium.SitDataManager.getInstance(options)

Get the singleton of the situation map manager
Name Type Description
options Object optional The object has the following properties:
Name Type Description
scene scene optional Scenes:
serverUrl String optional Plotting service url
smlInfo Object optional Information about the currently open situation map
smlFileName String optional The name of the currently open situation map when it was published

addSmlFile(fileId, bAllLayer)

To superimpose the situation map file (local), first upload the local situation map file to the server, and then superimpose
Name Type Description
fileId String The id of the div of the situation map file to be uploaded to the server
bAllLayer Boolean Whether to superimpose all layers, if it is true, superimpose all layers on the current situation map. If it is false, only the same layer as the current situation map will be superimposed

addSmlFileOnServer(smlFileName, bAllLayer)

Superimpose the released situation map to the current situation map
Name Type Description
smlFileName String Name when saving the situation map file
bAllLayer boolean Whether to superimpose all layers, if it is true, all layers will be superimposed on the current situation map, if it is false, only the same layers as the current situation map will be superimposed

addSmlFileToLayer(fileId, layerName)

Superimpose the situation file (local) to the specified layer. First, upload the local situation map file to the server, and then overlay it.
Name Type Description
fileId String The id of the div of the situation map file to be uploaded to the server
layerName String The name of the layer to be superimposed

addSmlFileToLayerOnServer(smlFileName, layerName)

Superimpose the published situation map to the specified layer
Name Type Description
smlFileName String Name when saving the situation map file
layerName String Assigned layer name

deleteSmlFileOnServer(smlFileName)

Delete the specified posted situation map file
Name Type Description
smlFileName String File name of the situation map when saved to the server

downloadSmlFileUrl(smlFileName)

Get the download address of the specified situation file from the server
Name Type Description
smlFileName String Name when saving the situation map file

getPlottingLayers()Array.<PlottingLayer>

Get the current plot layer
Returns:

getSmlInfo(smlFileName)

Get the specified situation map information
Name Type Description
smlFileName string The name of the situation map file, which is the name used when saving to the server

getSmlInfos(page, pageSize)

Get the list of situation graph files posted by users on the server
Name Type Description
page Number Which page counts from the first page
pageSize Number Number of query records on each page

newSmlFile()

Create a new situation map, the current situation map will be cleared

openLocalSmlFile(fileId)

Open the situation map file (local). Delete all layers in the current situation map and reload the situation map
Name Type Description
fileId String The id of the local situation graph file div to be opened

openSmlFile(fileId)

Open the situation map file (local) and upload it to the server
Name Type Description
fileId String The id of the local situation graph file div to be opened

openSmlFileOnServer(smlFileName)

Open the specified published situation map file
Name Type Description
smlFileName String The name of the situation map file when it is saved to the server

saveAsSmlFile(smlFileName)

Save the current situation map data to the server
Name Type Description
smlFileName smlFileName File name of the situation map saved to the server

saveSitData()Object

Situation map to object
Returns:

saveSmlFile()

Save the current situation map data to the server, if the server already exists the situation map will be overwritten

uploadSmlFile(fileId, callback)

Upload situation map file
Name Type Description
fileId String The id of the div of the situation map file to be uploaded to the server
callback function Callback processing function for uploading situation files to the server (user specified)