faculty_extras.geoplot.single_colour

faculty_extras.geoplot.single_colour(folium_map, feature_collection, fill_colour, feature_selection=None, feature_index_property='id', ignore_missing_features=False, **kwargs)

Plot GeoJSON features on a folium map.

Parameters
folium_mapfolium.Map

The folium map to plot on

feature_collectiondict

A GeoJSON FeatureCollection

fill_colourstr

A colour name or hex code

feature_selectionarray-like, optional

A selection to slice the feature collection with

feature_index_propertystr, optional

The property of features in feature_collection to use when extracting a selection (default: ‘id’)

ignore_missing_featuresbool, optional

When True, quitely ignore features in feature_selection missing from feature_collection (default: False)

**kwargs

Additional keyword arguments to pass to the folium choropleth method