def annotate_map(ax, gdf, annot, row_slice=slice(None), **kwargs):
    """
	Add annotations to a map.

	Parameters
	----------
	ax : Axes
	gdf : GeoDataFrame
	annot : str
		This is a format string, which will be populated
		using each row of `gdf`.
	row_slice : Slice, optional
		The slice of rows from `gdf` to use for annotation.
		This slice is passed to the `.loc` indexer.
	**kwargs
		Other keyword arguments are passed through to the
		`ax.annotate` command.
	"""
    gdf.loc[row_slice].apply(lambda x: ax.annotate(s=annot.format(**x), xy=
        x.geometry.centroid.coords[0], horizontalalignment='center', **
        kwargs), axis=1)
