-
-
Notifications
You must be signed in to change notification settings - Fork 393
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
xarray content not displayed #1021
Comments
Try openning the network tab in the Chrome Developer Console and see what errors in the tile URLs. |
You also need to install jupyter-server-proxy. |
It seems there is a bug with the folium backed. The ipyleaflet backend works fine. import leafmap
m = leafmap.Map(center=[37.6, -119], zoom=9)
m.split_map(
dem_ds,
dem_class,
left_args={"layer_name": "DEM", "colormap": "terrain"},
right_args={"layer_name": "Classified DEM", "colormap": "coolwarm"},
)
m |
Thanks a lot!
Installing jupyter-server-proxy is not fixing the issue on my side. Maybe because I'm not using jupyter notebooks. My main issue is that In my case, if I could set the port explicitly, I would be able to forward the port and it works. I did that by scraping the port from the browsers network tab. However whenever I restart my app, the localtileserver is started on a different port. Do you know if it's possible to fix the localtileserver port to a specific number in the call to |
The add_raster method has the port parameter for setting the port number https://localtileserver.banesullivan.com/api/index.html#localtileserver.get_leaflet_tile_layer |
Environment Information
I'm not using conda to manage the dependencies, only pypi packages.
Description
The xarray-based examples on the leafmap website are not showing any content, e.g. the xarray part on 49_split_control. The same issue occurs when running the example in Colab. (JupyterLite and Binder fail for other reasons).
I experience a similar issue when running a marimo notebook plotting a leafmap from within a docker container. Running the notebook without docker container runs it just fine, but from within the docker container it does not work.
Could there be any dependencies missing which make it silently fail? I wouldn't know where to start debugging, since there are no warning or error messages.
There are no logs
What I Did
Relevant localtileserver issue and leafmap discussion. Note: I understand that this is a localtileserver issue, however, this is mainly about the non-working examples of leafmap.
The text was updated successfully, but these errors were encountered: