You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On AC maps there is a noticeable delay (0.5s) when the visibility state of all neuron paths is changed. This appears to be due to a few things:
A single neuron path can consist of more than one line-string features and the visibility state of each feature has to be changed.
Path state is maintained both in a MapLibre layer and the DeckGL layer even though only one of these layers is visible. This is so the correct path state is used when layers are switched.
MapLibre doesn't have a way of disabling rendering while several features change state to then be redrawn together.
This may also be true of DeckGL, although we do have better low level control of its rendering.
The text was updated successfully, but these errors were encountered:
As an example of 1. above, enabling the bolser_12 nerve centreline (on human male), which has the single bolew-unbranched-12 neuron path associated with it, results in 14 features changing state -- 1 feature is the centreline, 13 are the path:
For the future, maplibre/maplibre-gl-js#4199 should provide a way to control feature visibility (and other styling) without using Map.setFeatureState() and likely be more efficient.
dbrnz
added a commit
to dbrnz/flatmap-viewer
that referenced
this issue
Sep 20, 2024
On AC maps there is a noticeable delay (0.5s) when the visibility state of all neuron paths is changed. This appears to be due to a few things:
The text was updated successfully, but these errors were encountered: