drawCircle method
Future<void>
drawCircle(
- CircleOSM circleOSM
)
inherited
Implementation
Future<void> drawCircle(CircleOSM circleOSM) async {
final opacity = circleOSM.color.opacity;
final shapeConfig = CircleShapeJS(
key: circleOSM.key,
center: circleOSM.centerPoint.toGeoJS(),
radius: circleOSM.radius,
color: circleOSM.color.withOpacity(1).toHexColor(),
borderColor: circleOSM.borderColor?.toHexColor(),
opacityFilled: opacity,
strokeWidth: circleOSM.strokeWidth,
);
await interop
.drawCircle(
mapIdMixin.toJS,
shapeConfig,
)
.toDart;
}