Skip to content

topojson.core.hashmap

Hashmap

Bases: Dedup

hash arcs based on their type

to_dict

to_dict()

Convert the Hashmap object to a dictionary.

to_svg

to_svg(separate=False)

Display the linestrings and junctions as SVG.

Parameters:

Name Type Description Default
separate boolean

If True, each of the linestrings will be displayed separately. Default is False

False

to_json

to_json()

Convert the Hashmap object to a JSON object.

to_alt

to_alt(projection='identity')

Display as Altair visualization.

Parameters:

Name Type Description Default
projection str

Defines the projection of the visualization. Defaults to a non-geographic, Cartesian projection (known by Altair as identity).

'identity'