![]() |
Bridges-Python 3.5.0
Bridges(Python API)
|
Public Member Functions | |
def | get_projection (self) |
def | get_overlay (self) |
def | get_data_structure_type (self) |
def | get_map_representation (self) |
Getter for the data structure's JSON representation. More... | |
def | get_map_representation (self) |
gets the JSON representation of the map data More... | |
def | __init__ (self, countries=None) |
Constructor: creates an object with the given country data. More... | |
list[Country] | countries (self) |
Returns a list of country objects. More... | |
def | countries (self, list[Country] countries) |
value a list of country objects More... | |
def | __init__ (self) |
def | get_projection (self) |
def | get_overlay (self) |
def | get_map_representation (self) |
def bridges.world_map.WorldMap.__init__ | ( | self, | |
countries = None |
|||
) |
Constructor: creates an object with the given country data.
@param countries country information for a set of countries
Reimplemented from bridges.map.Map.
list[Country] bridges.world_map.WorldMap.countries | ( | self | ) |
Returns a list of country objects.
def bridges.world_map.WorldMap.countries | ( | self, | |
list[Country] | countries | ||
) |
value a list of country objects
def bridges.world_map.WorldMap.get_data_structure_type | ( | self | ) |
def bridges.world_map.WorldMap.get_map_representation | ( | self | ) |
Getter for the data structure's JSON representation.
Reimplemented from bridges.map.Map.
def bridges.world_map.WorldMap.get_map_representation | ( | self | ) |
gets the JSON representation of the map data
Uses functions to convert the state and country attributes to objects before serialization into a JSON string
Reimplemented from bridges.map.Map.
def bridges.world_map.WorldMap.get_overlay | ( | self | ) |
Reimplemented from bridges.map.Map.
def bridges.world_map.WorldMap.get_projection | ( | self | ) |
Reimplemented from bridges.map.Map.