GithubHelp home page GithubHelp logo

Comments (7)

giswqs avatar giswqs commented on July 28, 2024

For reference, using the localtileserver binder, it takes less than two seconds to generate tiles.

from localtileserver.

giswqs avatar giswqs commented on July 28, 2024

I also noticed that the spinning wheel is staying a bit longer than it should be. It can be a bit annoying to keep seeing the spinning wheel. Can it be turned off?

Animation

from localtileserver.

banesullivan avatar banesullivan commented on July 28, 2024

I also noticed that the spinning wheel is staying a bit longer than it should be. It can be a bit annoying to keep seeing the spinning wheel. Can it be turned off?

I added this recently -- I'd like to keep it as I think it is valuable and it does accurately correspond to tiles loading. To disable it, simply pass show_loading=False when calling get_leaflet_tile_layer() or set that property on the leaflet.TileLayer: https://ipyleaflet.readthedocs.io/en/latest/layers/tile_layer.html#ipyleaflet.leaflet.TileLayer.show_loading

from localtileserver.

banesullivan avatar banesullivan commented on July 28, 2024

I noticed that localtileserver is very slow on Windows

I'll try to look into this when I have a chance. Timing the full execution of that script isn't very insightful, so I'll have to dig into each part of the script to figure out what's taking so long. Is it the import that takes a while or is it opening the raster, or what?... this will require more investigative work.

Further, how Python is running on the host windows machine can significantly impact performance, such as if it is running under the linux subsystem.

from localtileserver.

banesullivan avatar banesullivan commented on July 28, 2024

My windows machine is happy today, so I'm looking into this. I've at least narrowed it down to the get_leaflet_tile_layer() for the most part (ipyleaflet rendering the tiles also takes a few seconds).

Collecting the metadata for this raster seems to be the culprit and specifically when it's done through the rest interface.

I have a feeling there are a few things that need to be optimized and this will require me to really dig into this. To be honest, Windows is a pain for me to work on and I can't promise I'll get to this anytime soon

from localtileserver.

banesullivan avatar banesullivan commented on July 28, 2024

What I may do is change the implementation a bit under the hood to generally optimize the TileClient methods (regardless of OS) as I've been wanting to but again, this is something I can't give a timeline on as this is a fun little hobby project. It will likely come after/during #108

from localtileserver.

banesullivan avatar banesullivan commented on July 28, 2024

I've done most of the refactoring/optimization that I wanted to and this doesn't seem actionable any further. I'm hoping that whatever issue you were having have magically resolved themselves by switching to using rasterio instead of GDAL

from localtileserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.