Maps.draw.new_drawer#
- draw.new_drawer(layer=None, dynamic=True)#
Initialize a new ShapeDrawer.
- Parameters:
layer (str) – The layer-name to put the shapes on. If None, the currently active layer will be used. The default is None.
dynamic (bool) – If True, shapes are added as dynamic artists to avoid re-drawing the background after the draw is finished. If False, the shapes are added as background-artists.
- Returns:
A new instance of the ShapeDrawer that can be used to draw shapes.
- Return type: