new FdLabelServer()
Methods
-
<static> addLabelToLayer(data, layreId, baseURL, token, callback)
-
添加图层标注
Parameters:
Name Type Description data
Object 标注内容
Properties
Name Type Description layerid
String 图层ID
label
Object 标注对象
compid
String 部件ID
comment
String 评论
layreId
String 图层名
baseURL
String 域名
token
String 用户权限token
callback
FdServer.FdLabelServer~FdLabelServerCallback 事件完成回调函数
-
<static> getLabelsByComponent(data, baseURL, token, callback)
-
根据部件ID获取标注
Parameters:
Name Type Description data
Object 标注内容
Properties
Name Type Description layerid
String 图层ID
compid
String 部件ID
baseURL
String 域名
token
String 用户权限token
callback
FdServer.FdLabelServer~FdLabelServerCallback 事件完成回调函数
-
<static> getLabelsByLabelID(data, layreId, baseURL, token, callback)
-
根据标注ID获取标注
Parameters:
Name Type Description data
Object 标注内容
Properties
Name Type Description labelid
String 标注ID
layreId
String 图层名
baseURL
String 域名
token
String 用户权限token
callback
FdServer.FdLabelServer~FdLabelServerCallback 事件完成回调函数
-
<static> getLabelsFromLayer(data, layreId, baseURL, token, callback)
-
根据图层ID获取标注
Parameters:
Name Type Description data
Object 标注内容
Properties
Name Type Description layerid
String 图层ID
layreId
String 图层名
baseURL
String 域名
token
String 用户权限token
callback
FdServer.FdLabelServer~FdLabelServerCallback 事件完成回调函数
-
<static> insertComment(data, layreId, baseURL, token, callback)
-
添加标注评论
Parameters:
Name Type Description data
Object 标注内容
Properties
Name Type Description layerid
String 图层ID
labelid
String 标注ID
comment
String 评论内容
layreId
String 图层名
baseURL
String 域名
token
String 用户权限token
callback
FdServer.FdLabelServer~FdLabelServerCallback 事件完成回调函数
-
<static> removeAllLabelInLayer(data, baseURL, token, callback)
-
根据图层ID删除图层标注--删除图层所有标注
Parameters:
Name Type Description data
Object 标注内容
Properties
Name Type Description layerid
String 图层ID
baseURL
String 域名
token
String 用户权限token
callback
FdServer.FdLabelServer~FdLabelServerCallback 事件完成回调函数
-
<static> removeLabelByLabelID(data, baseURL, token, callback)
-
根据标注ID删除图层标注--精确删除某标注
Parameters:
Name Type Description data
Object 标注内容
Properties
Name Type Description labelid
String 标注ID
baseURL
String 域名
token
String 用户权限token
callback
FdServer.FdLabelServer~FdLabelServerCallback 事件完成回调函数
-
<static> updateLabel(data, layreId, baseURL, token, callback)
-
更新标注实体内容
Parameters:
Name Type Description data
Object 标注内容
Properties
Name Type Description layerid
String 图层ID
labelid
String 标注ID
label
Object 标注实体内容
layreId
String 图层名
baseURL
String 域名
token
String 用户权限token
callback
FdServer.FdLabelServer~FdLabelServerCallback 事件完成回调函数