indicate_extent
- Maps.indicate_extent(x0, y0, x1, y1, crs=4326, npts=100, **kwargs)
Indicate a rectangular extent in a given crs on the map. (the rectangle is drawn as a polygon where each line is divided by “npts” points to ensure correct re-projection of the shape to other crs)
- Parameters
x0 (float) – the boundaries of the shape
y0 (float) – the boundaries of the shape
y1 (float) – the boundaries of the shape
y1 – the boundaries of the shape
npts (int, optional) – The number of points used to draw the polygon-lines. (e.g. to correctly display curvature in projected coordinate-systems) The default is 100.
crs (any, optional) – a coordinate-system identifier. The default is 4326 (e.g. lon/lat).
kwargs – additional keyword-arguments passed to m.add_gdf().