SitDataManager

new Cesium.SitDataManager(options)

Situation map 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 Currently open situational map information
smlFileName String optional The currently opened situation map name
sitData SitDataStruct optional Currently open situational map information structure

Members

readonlyaddSmlFileCompleted : Event

Overlay local situation map file success event

readonlyaddSmlFileFailed : Event

Overlay local situational map file failure event

readonlyaddSmlFileToLayerCompleted : Event

Superimpose the situation file to the specified layer success event

readonlyaddSmlFileToLayerFailed : Event

Overlay situation file to specified layer failure event

readonlydeleteSmlFileCompleted : Event

Delete server situation map file success event

readonlydeleteSmlFileFailed : Event

Delete server situation map file failure event

readonlygetSmlInfoCompleted : Event

Get the specified situation map file information success event

readonlygetSmlInfoFailed : Event

Get the specified situation map file information failure event

readonlygetSmlInfosCompleted : Event

Get situation map file list success event

readonlygetSmlInfosFailed : Event

Get situation map file list failure event

readonlyopenLocalSmlFileCompleted : Event

Open local situational map file success event

readonlyopenLocalSmlFileFailed : Event

Open local situational map file failure event

readonlyopenSmlFileCompleted : Event

Open the situation map file success event

readonlyopenSmlFileFailed : Event

Open situation map file failure event

readonlysaveSmlFileCompleted : Event

Save the situation map file success event

readonlysaveSmlFileFailed : Event

Save situation map file failure event

readonlyscene : Scene

Current scene

readonlyserverUrl : String

Plotting service url

smlFileName : String

Current situation map name

smlInfo : SmlInfoStruct

Situation map basic information structure

Methods

staticCesium.SitDataManager.getInstance(options)

Get the situation map manager singleton
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 Currently open situational map information
smlFileName String optional The name of the currently open situational graph at the time of publication

addSmlFile(fileId, bAllLayer)

To superimpose the situation map file (local), you first need to upload the local situation map file to the server and then superimpose it.
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 true, add all the layers to the current situational map. If false, only the same layer as the current situation map is superimposed

addSmlFileOnServer(smlFileName, bAllLayer)

Overlay the released situation map to the current situation map
Name Type Description
smlFileName String The name when saving the situation map file
bAllLayer boolean Whether to superimpose all layers, if true, add all the layers to the current situational map, if it is false, only superimpose the same layer as the current situational map

addSmlFileToLayer(fileId, layerName)

Superimpose the situation file (local) to the specified layer. First you need to upload the local situation map file to the server and then superimpose it.
Name Type Description
fileId String The id of the div of the situation map file to be uploaded to the server
layerName String Layer name to be overlaid

addSmlFileToLayerOnServer(smlFileName, layerName)

Overlay a published situational map to a specified layer
Name Type Description
smlFileName String The name when saving the situation map file
layerName String The specified layer name

deleteSmlFileOnServer(smlFileName)

删除指定的已发布态势图文件
Name Type Description
smlFileName String 保存到服务器时的态势图文件名称

downloadSmlFileUrl(smlFileName)

从服务器上获取指定的态势文件的下载地址
Name Type Description
smlFileName String 保存态势图文件时的名称

getPlottingLayers()Array.<PlottingLayer>

获取当前标绘图层
Returns:

getSmlInfo(smlFileName)

获取指定的态势图信息
Name Type Description
smlFileName string 态势图文件名称,即保存到服务器时使用的名称

getSmlInfos(page, pageSize)

获取服务器上用户发布的态势图文件列表
Name Type Description
page Number 第几页 从第一页开始计数
pageSize Number 每页上查询记录的条数

newSmlFile()

新建态势图,会清空当前态势图

openLocalSmlFile(fileId)

打开态势图文件(本地)。删除当前态势图中的所有图层,重新加载该态势图
Name Type Description
fileId String 要打开的本地态势图文件div的id

openSmlFile(fileId)

打开态势图文件(本地),并将其上传到服务器
Name Type Description
fileId String 要打开的本地态势图文件div的id

openSmlFileOnServer(smlFileName)

打开指定的已发布态势图文件
Name Type Description
smlFileName String 态势图文件保存到服务器时的名字

saveAsSmlFile(smlFileName)

另存当前态势图数据到服务器
Name Type Description
smlFileName smlFileName 保存到服务器的态势图文件名

saveSmlFile()

保存当前态势图数据到服务器,若服务器已存在该态势图则覆盖

uploadSmlFile(fileId, callback)

上传态势图文件
Name Type Description
fileId String 要上传到服务器的态势图文件的div的id
callback function 上传态势文件到服务器的回调处理函数(用户指定)