changePolygon method

  1. @override
Future<void> changePolygon(
  1. String shapeId,
  2. WebShapePoint point,
  3. String styleId
)
override

Implementation

@override
Future<void> changePolygon(
    String shapeId, WebShapePoint point, String styleId) async {
  final style = manager._polygonStyles[styleId]![0];
  final options = _webPolygonOption[shapeId]!;

  options.fillColor = _getColorCode(style.color);
  options.strokeColor = _getColorCode(style.strokeColor);
  options.strokeWeight = style.strokeWidth;

  _webPolygon[shapeId]?.setOptions(options);
  _webPolygonOption[shapeId] = options;
}