tracktable.render module

User Accessible Submodules

Non-User Accessible Submodules

Module contents

Tracktable Trajectory Library - Render module

This module contains code to render points or trajectories either in regular Cartesian space or on a (world) map. The ‘maps’ module provides a friendly way to get a map of various parts of the world.

tracktable.render.folium_proxy_enabled() bool[source]

Is the Folium proxy module enabled?

If True (the default), we will try to import the module named in folium_proxy_module() first, then fall back to importing folium.

No arguments.

Returns:

Whether or not preferential import is enabled

Return type:

bool

tracktable.render.folium_proxy_name() str[source]

Get the name of the Folium proxy module

This is the name of the module that we will try to import whenever Folium is requested. Defaults to “offlinefolium”. Change with set_folium_proxy_name().

No arguments.

Returns:

Name of module as string

tracktable.render.set_folium_proxy_enabled(enabled: bool) None[source]

Enable or disable preferential import of offlinefolium

If True, we will try to import the proxy module first, then fall back to folium if it is not found. If False, we will only try to import folium.

Parameters:

enabled (bool) – Whether to do preferential import

Returns:

None

tracktable.render.set_folium_proxy_name(package_name: str) None[source]

Set the name of the Folium proxy module

Change the name of the module that we will try to import whenever Folium is requested.

Parameters:

package_name (str) – Name of module to try to import instead of Folium

Returns:

None