lets_plot.maptiles_lets_plot

lets_plot.maptiles_lets_plot(url: Optional[str] = None, theme: Optional[str] = None) dict

Make vector tiles config. Can be used individually in geom_livemap() or in every livemap via LetsPlot.set().

Parameters
urlstr

Address of the tile server. Can be ommited if URL is already set in global settings.

theme{‘color’, ‘light’, ‘dark’}

Tiles theme.

Returns
dict

Tile provider settings.

Examples

1from lets_plot import *
2LetsPlot.setup_html()
3tiles = maptiles_lets_plot(url='wss://tiles.datalore.jetbrains.com', theme='light')
4ggplot() + geom_livemap(tiles=tiles)