betty.extension.maps package

Module contents

Integrate Betty with Leaflet.js.

final class betty.extension.maps.Maps[source]

Bases: Extension, WebpackEntryPointProvider

Provide interactive maps for use on web pages.

classmethod depends_on() set[MachineName][source]

The extensions this one depends on, and comes after.

classmethod plugin_description() Localizable[source]

Get the human-readable long plugin description.

classmethod plugin_id() MachineName[source]

Get the plugin ID.

IDs are unique per plugin type:

  • A plugin repository MUST at most have a single plugin for any ID.

  • Different plugin repositories MAY each have a plugin with the same ID.

classmethod plugin_label() Localizable[source]

Get the human-readable short plugin label.

webpack_entry_point_cache_keys() Sequence[str][source]

Get the keys that make a Webpack build for this provider unique.

Providers that can be cached regardless may return ().

classmethod webpack_entry_point_directory_path() Path[source]

Get the path to the directory with the entry point assets.

The directory must include at least a package.json and main.ts.