Closed martinfleis closed 2 years ago
That makes sense. Asking the user for a provider would make it quicker.
from greppo import app
import xyzservices.providers as xyz
app.base_layer(
provider='CartoDB Positron',
visible=True,
)
I'll put together the new API for the next release.
@martinfleis base_layer now takes a provider
to support xyzservices. I'll soon publish a blog post on this. Nice work with xyzservices
.
As far a I can tell, a user needs to specify all details of a base layer when adding it to app.
You can make this easier if you make this dependent on the
xyzservices
package we have built for geopandas and contextily. It has all these info, so you could do something likeOr you can use its
query_name
method under the hood and simplify it toHappy to help with that if you need.