文档
测试
POST
{{host}}/api/marker/update

请求参数

参数名
类型
描述
必填
marker_id
int
图标ID
必填
level_id
int
层级ID
必填
axis_x
float
在地图上的x轴位置,默认0,单位:px
必填
axis_y
float
在地图上的y轴位置,默认0,单位:px
必填
zoom
int
图标缩放比例,默认100,单位:%
必填
rotate
int
旋转角度
必填

响应参数

参数名
类型
描述
必填
ret
int
返回码:0-正常,非0-失败
必填
msg
string
返回消息
必填

说明 / 示例

###### 示例代码 ```javascript //请求 let res = await post("api/marker/update", { marker_id: 1, level_id: 0, axis_x: 0, axis_y: 0, zoom: 100, rotate:0, icon_id: 1 }) //返回 res = { ret: 0, msg: "新增成功" } ```