Appearance
可视区域内显示所有点位
调用方法
setMapViewport(option)
option
名称 | 类型 | 说明 | 默认 |
---|---|---|---|
lnglats | lnglat[] | 经纬度数组,必填 | - |
success | function | 调用成功回调 | - |
fail | function | 调用失败回调 | - |
示例代码
javascript
const lnglats = [
[106.48541, 29.62373],
[106.49541, 29.63373],
[106.49841, 29.63573],
[106.49341, 29.63873],
[106.47541, 29.63173]
];
// mosowe-tdt
TDTRenderRef.value.setMapViewport({
lnglats: lnglats
});
// mosowe-tdt-x
TDTRenderRef.value?.setMapViewport?.({
lnglats: lnglats
});
贡献者
mosowe