geopandas/xyzservices

Add method to check if token is required

martinfleis opened this issue · 0 comments

Some providers require an access token to get the tiles. It could be handy to have a method in TileProvider checking this requirement and returning boolean. Now you have to check if the accessToken key is present. Something like

>>> xyz.MapBox.requires_token()
True

>>> xyz.Stamen.Toner.requires_token()
False