gws.plugin.mbtiles_layer.provider

MBTiles provider.

Source code: gws.plugin.mbtiles_layer.provider

Module Contents

class gws.plugin.mbtiles_layer.provider.Config(*args, **kwargs)

Bases: gws.Config

Access to an MBTiles file.

path: gws.FilePath

Path to the MBTiles file.

class gws.plugin.mbtiles_layer.provider.Object

Bases: gws.Node

MBTiles file provider.

path: str

Path to the MBTiles file.

cache_hash()

Return a hash that identifies the data of the provider.

Returns:

A hash of the file path.

configure()

Configuration hook.

Called when the node is initialized. Raising an exception here aborts the creation of the node.