(geometry_name)
return geometry
Fetch a geometry.

    :returns:
        A python dictionary containing the geometry.

    :Examples:

    >>> import gmaps
    >>> import gmaps.geojson_geometries
    >>> gmaps.configure(api_key="AIza...")
    >>> countries_geojson = gmaps.geojson_geometries.load_geometry('countries')

    >>> fig = gmaps.figure()
    >>> gini_layer = gmaps.geojson_layer(countries_geojson)
    >>> fig.add_layer(gini_layer)
    >>> fig
Fetch a geometry.
Fetch a geometry .
def load_geometry(geometry_name):
    """
    Fetch a geometry.

    :returns:
        A python dictionary containing the geometry.

    :Examples:

    >>> import gmaps
    >>> import gmaps.geojson_geometries
    >>> gmaps.configure(api_key="AIza...")
    >>> countries_geojson = gmaps.geojson_geometries.load_geometry('countries')

    >>> fig = gmaps.figure()
    >>> gini_layer = gmaps.geojson_layer(countries_geojson)
    >>> fig.add_layer(gini_layer)
    >>> fig
    """
    url = METADATA[geometry_name]["url"]
    reader = codecs.getreader("utf-8")
    f = urlopen(url)
    geometry = json.load(reader(f))
    f.close()
    return geometry
def load_geometry ( geometry_name ) : url = METADATA [ geometry_name ] [ "url" ] reader = codecs . getreader ( "utf-8" ) f = urlopen ( url ) geometry = json . load ( reader ( f ) ) f . close ( ) return geometry