Appearance
设置地图的显示范围
调用方法
setMapMaxBounds(option)
option
名称 | 类型 | 说明 | 默认 |
---|---|---|---|
lnglats | lnglat[] | 矩形范围内的西南角与东北角经纬度:[西南角坐标,东北角坐标],必填 | - |
success | function | 调用成功回调 | - |
fail | function | 调用失败回调 | - |
示例代码
javascript
// mosowe-tdt
TDTRenderRef.value.setMapMaxBounds({
lnglats: [
[106.48541, 29.62373],
[106.49541, 29.63373]
]
});
// mosowe-tdt-x
TDTRenderRef.value?.setMapMaxBounds?.({
lnglats: [
[106.48541, 29.62373],
[106.49541, 29.63373]
]
});
贡献者
mosowe