-
-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error adding basemap to Lonboard Map #798
Comments
Try this: import leafmap.deckgl as leafmap
from lonboard import basemap
m = leafmap.Map(height=600)
m.add_basemap("CartoDB.DarkMatterNoLabels")
m |
This gives AttributeError: 'Map' object has no attribute 'add_basemap' error Reproducible example on Colab |
Thank you for report. It has been fixed in #799. Please update it to v0.35.1 import leafmap.deckgl as leafmap
from lonboard import basemap
m = leafmap.Map(height=600, basemap_style=basemap.CartoBasemap.DarkMatterNoLabels)
m |
My pleasure. That was an easy fix. I should improve the lonboard module when I have time. There is still a lot of room for improvement. |
Environment Information
Description
This results in an error TypeError: ViewState.new() got an unexpected keyword argument 'basemap_style'.
Diving into the code, this seems to be because the kwargs are passed on to view_state and not lonboard.Map
The text was updated successfully, but these errors were encountered: