Comments (7)
For reference, using the localtileserver binder, it takes less than two seconds to generate tiles.
from localtileserver.
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?
from localtileserver.
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.
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.
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.
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.
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)
- add_raster() isn't adding the downloaded image into the map HOT 15
- add_layer doesn't work with GeoTIFF file converted from xarray Dataset HOT 11
- can't add local raster file in windows HOT 4
- Use ipyleaflet's as_leaflet_layer interface
- Cannot display raster in Google Colab HOT 5
- Generated PNG tiles are not transparent (have black background) HOT 3
- Remote COG no longer works HOT 4
- Tiff file saving to HTML using folium HOT 1
- Tileclient does not show when run dash app python on docker HOT 3
- localtileserver fails with flask==3 HOT 2
- localtileserver not working with Leafmap on Docker HOT 4
- localtileserver client cannot work after setting the http proxy HOT 4
- not working on VS code remote notebook HOT 1
- Passing rasterio.Env context to tile server HOT 5
- nodata causes padding HOT 15
- The vmin and vmax parameters have no effect HOT 2
- Support custom colormaps
- Generate thumbnails in a projection
- Rasters do not render when using solara HOT 2
- Regarding code: errors related to import localileserver HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from localtileserver.