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
Right now there is no way to check if the RTL plugin has been requested or not, as such if we try to set it while it was already requested the following error occurs: setRTLTextPlugin cannot be called multiple times.. which is an expected behavior.
however, if this error is not caught it may block the controls from rendering.
In my case, i encountered this error in a vuejs component where I always initialize the RTL plugin when the component is loaded even tho I make sure to destroy the map using map.remove() after each time leaving the component the error still persists whenever I navigate back to that route (which loads that component again)
Design Alternatives
expose this function in the index.js or create a getter to pluginRequested variable to check if the RTL plugin has been requested
The text was updated successfully, but these errors were encountered:
Motivation
Right now there is no way to check if the RTL plugin has been requested or not, as such if we try to set it while it was already requested the following error occurs:
setRTLTextPlugin cannot be called multiple times.
. which is an expected behavior.however, if this error is not caught it may block the controls from rendering.
In my case, i encountered this error in a vuejs component where I always initialize the RTL plugin when the component is loaded even tho I make sure to destroy the map using
map.remove()
after each time leaving the component the error still persists whenever I navigate back to that route (which loads that component again)Design Alternatives
expose this function in the
index.js
or create a getter topluginRequested
variable to check if the RTL plugin has been requestedThe text was updated successfully, but these errors were encountered: