Link Search Menu Expand Document

topojson.core.hashmap

Hashmap

Hashmap(self, data, options={})

hash arcs based on their type

to_dict

Hashmap.to_dict(self)

Convert the Hashmap object to a dictionary.

to_svg

Hashmap.to_svg(self, separate=False)

Display the linestrings and junctions as SVG.

Parameters

  • separate : boolean

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

to_json

Hashmap.to_json(self)

Convert the Hashmap object to a JSON object.

to_alt

Hashmap.to_alt(self, projection='identity')

Display as Altair visualization.

Parameters

  • projection : str

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