xarray_leaflet icon indicating copy to clipboard operation
xarray_leaflet copied to clipboard

xarray-leaflet not working properly on Windows

Open giswqs opened this issue 5 years ago • 7 comments

It seems xarray-leaflet is not working properly on Windows. The map tiles could not load. When checking the map tiles under the Temp folders, most tiles are empty. A relevant issue was reported by another geemap user.

OS: Windows 10 Python: v3.8 xarray-leaflet: v0.1.13 Notebook: xarray_leaflet/examples/introduction.ipynb

giswqs avatar Dec 08 '20 18:12 giswqs

Thanks for reporting @giswqs, I guess the time has come to have tests in xarray-leaflet! I will try to work on this soon.

davidbrochart avatar Dec 08 '20 19:12 davidbrochart

Hi ! Unfortunately the examples do not work on mac either ... I added layer controls to see if the layer is there and removed the dark basemap, but nothing worked.

I also tried displaying a band in an other projet by calling xarray.dataarray.plot(m=m) with no success: it's as if the generated layer were transparent or behind the basemap.

Screenshot 2021-10-01 at 17 00 28

Xabitsuki avatar Oct 01 '21 15:10 Xabitsuki

I'm trying to use this on Windows too, and finding that it doesn't work.

I'm a fairly experienced Python and geospatial developer, and happy to do some work to try and make this work on Windows. Do you have any idea what the problem is @davidbrochart? Or any pointers as to where to look?

robintw avatar Oct 20 '21 08:10 robintw

That would be great @robintw! I think it would be nice to have some tests in the CI. I can imagine using Galata to open a headless browser and execute a notebook, checking that tiles are written in the backend and displayed in the frontend...

davidbrochart avatar Oct 21 '21 06:10 davidbrochart

For an example of UI testing using Galata, see https://github.com/jupyter-widgets/ipyleaflet/pull/905.

davidbrochart avatar Dec 16 '21 16:12 davidbrochart

xarray-leaflet got its first test in #49 !

davidbrochart avatar Dec 21 '21 20:12 davidbrochart

@giswqs I have been using your library geemap. Everything is working fine but this part is not working even on linux for me. It doesn't load the tiff files. Let's wait for the positive news for both of us(developer like me and contributor like you so your library can work completing because xarray-leaflet is in dependencies of geemap) My environment: Python= v3.8 NAME="Ubuntu" VERSION="20.04.3 LTS (Focal Fossa)" xarray-leaflet: v0.10.1 also tried (0.10.2) and older versions (0.1.1) (0.3.1)

older versions show some errors so didn't proceed with those.

haseeb33 avatar Mar 29 '22 04:03 haseeb33

Hi, I just wanted to see if others still had issues with the layers not loading ? That's the case for me on Windows.

vdevauxchupin avatar Feb 16 '23 01:02 vdevauxchupin

Still having issues for me on Mac OS 13.4

lalligagger avatar May 28 '23 18:05 lalligagger