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
Okay, so I moved the line code into onStyleLoadedCallback. And now it works. It is weird to setup though, since I have to export the controller out of the onMapCreated (callback) to use it in the onStyleLoadedCallback.
Edit: Nvm, I can just attach the callback to the controller directly.
I am currently trying to add lines to my map, but whenever I try that I get following error in my console:
This is the code for adding a new line;
The text was updated successfully, but these errors were encountered: