mapshader.core.render_legend#
- mapshader.core.render_legend(source: MapSource)[source]#
Get the MapSource legend and return as a JSON string.
- Parameters:
source (mapshader.sources.MapSource) – The input datasource.
- Returns:
geojson
- Return type:
string