komoot / staticmap

A small, python-based library for creating map images with lines, markers and polygons.

Home Page:https://www.komoot.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom Tile Server

maxwell-oroark opened this issue · comments

If we are fetching tiles from a server that requires we pass a Bearer {token} is there a way to pass this to the library so it can correctly supply it in the request?

It looks like it is. StaticMap takes headers parameter in constructor.
See https://github.com/komoot/staticmap/blob/master/staticmap/staticmap.py#L212