Open shinnobi opened 1 year ago
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: https://leafletjs.com/examples/map-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,