ShapeDrawer

class eomaps.draw.ShapeDrawer(m, layer=None, dynamic=True)

Base-class for drawing shapes on a map.

Methods

__init__(m[, layer, dynamic])

Base-class for drawing shapes on a map.

circle(**kwargs)

Draw a circle.

new_drawer([layer, dynamic])

Initialize a new ShapeDrawer.

polygon([smooth, draw_on_drag])

Draw arbitarary polygons

rectangle(**kwargs)

Draw a rectangle.

redraw([blit])

Trigger re-drawing shapes.

remove_last_shape()

Remove the most recently plotted polygon from the map.

save_shapes(filename, **kwargs)

Save the drawn shapes to a file.

set_layer([layer])

Set the layer to which the final shape will be added.

Attributes

layer