Maps.delay_draw#

Maps.delay_draw()#

A contextmanager to delay drawing until the context exits.

This is particularly useful to avoid intermediate draw-events when plotting a lot of features or datasets on the currently visible layer.

Examples

>>> m = Maps()
>>> with m.delay_draw():
>>>     m.add_feature.preset.coastline()
>>>     m.add_feature.preset.ocean()
>>>     m.add_feature.preset.land()