How to test maplibre styles loading? #2193
-
Hi everyone, We are implementing tests to our application, however when testing maplibre load/reload styles we are facing lots of instability in our tests, one of our engineers wrote:
How are can make sure that maplibre load and applied all changes to the map before we assert something? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
My guess would be to listen to |
Beta Was this translation helpful? Give feedback.
My guess would be to listen to
data
events (see https://maplibre.org/maplibre-gl-js-docs/api/map/#map.event:data and https://maplibre.org/maplibre-gl-js-docs/api/events/#mapdataevent), looking for adataType
property with a value ofstyle
.