barryhunter

Results 137 comments of barryhunter

oh, well went ahead and tried to implement it as method (on an extended TileLayer for now!) https://gist.github.com/barryhunter/e42f0c4756e34d5d07db4a170c7ec680 Can see in action https://www.geograph.org/leaflet/viewpoint-refresh.php#17/53.27258/-3.79788 This is good in that it uses...

The code is still in use in the 'production' map, and works (just checked). Although still using Leaflet 1.3.4, havent checked any later versions yet. Not technically a 'plugin', but...

Did consider that, but think would need very careful synchronization of two animations, if the removal was not synced exactly, so the 'crossover' happens at exact 50% opacity on both,...

Ah ok, yes, missed that the action DOM removal happens in 'tileload' event. - ie after the tile have been added to DOM. In many ways this behavour coudl happen...

Sorry! Accidently posted the previous comment, before was ready. did later find your hook in tileload, and updated the previous comment.

A pitfall of only having one tile and swaping the URL, is the image is first loaded offscreen (in Image object) if the image isnt allowed to be cached by...

I wonder if when there are multiple reloads in short timescale (like dragging slider), ie get a second reload, before the previous 250ms delay elapised, then the fact that just...

Oh, sorry about the demo, a upstream dependency (unrelated to the actual problem) has moved! Will update that. In theory would just include the code, https://gist.github.com/barryhunter/e42f0c4756e34d5d07db4a170c7ec680 then var timeWVTile =...

The demo is working again https://www.geograph.org/leaflet/viewpoint.php ... to see the fix *(although its the early version, not actully tileLayer2, but its the same principle. )* Just toggle the 'Geograph Subject...

You need to use the new 'refresh' method, rather than 'redraw', also pass second param to setUrl to prevent the automatic call of redraw(). (the code doesnt change the internal...