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.

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 the distortion of the extent-rectangle when it is re-projected to another coordinate-system) 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().