updateCoordinates method
- List<
BMFCoordinate> coordinates
更新经纬度数组
List<BMFCoordinate
> coordinates arcline经纬度数组
Implementation
Future<bool> updateCoordinates(List<BMFCoordinate> coordinates) async {
if (null == coordinates) {
return false;
}
bool ret = await BMFMapDispatcherFactory.instance.overlayDispatcher
.updateArclineMember(this.methodChannel, {
'id': this.Id,
'member': 'coordinates',
'value': coordinates?.map((coordinate) => coordinate?.toMap())?.toList()
});
if (ret) {
this.coordinates = coordinates;
}
return ret;
}