from typing import List


def _make_geojson_layer(features: List[dict], name: str):
    """

    :param features: List of geojson compliant dictionaries.
    :param name: The name attribute for the layer.
    :return:
    """

    # A geojson layer form looks like this.
    feature_layer = {
        "type": "FeatureCollection",
        "name": name,
        "crs": {
            "type": "name",
            "properties": {
                "name": "urn:ogc:def:crs:OGC:1.3:CRS84"
            },
        },
        "features": features
    }
    return feature_layer