- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 60
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
disable animation #116
Comments
hi, @shinnobi . unfortunately, I'm not sure I can be of much help, but I'll do my best! Have you tried using a custom pane and then hiding/showing the map pane? It might help avoid some of the animation you are referencing. I'm not sure though. Here's some information about custom panes: |
@DanielJDufour Thank you for your answer i just provide example gif. When i click to layer control i want this layer only show when fully load ( disable animation) |
Hi, @shinnobi . Thank you for the extra details. I think I understand your problem now. Unfortunately, I don't have a clear solution to this issue. GeoRasterLayer is built on top of Leaflet's GridLayer and thus the mental model is about creating and displaying tiles as they are available. However, I love hacky workarounds, so let's try! You might be able to pass in a really large tile size when creating GeoRasterLayer. This will essentially represent one view of the map with one tile. For example: new GeoRasterLayer({ georaster, tileSize: 256 * 4 }) Does that work for your use case? |
Here's link to the Leaflet Documentation on tileSize: https://leafletjs.com/reference.html#gridlayer-tilesize |
@DanielJDufour thanks you for your solution, setting larger title size makes animation not showing but it makes my layer so terrible :( |
Increasing the resolution works to remove the blockiness that appears with larger tiles, but then rendering may become slow. |
Hi !
i need to load multiple file tiff (24 file) then i play it (with interval 2s then next to next tiff )
my approach is:
it's work so good but there is some animation when add new layer, how can stop it,
The text was updated successfully, but these errors were encountered: