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
Hi, I'm trying to add a custom map viewer (to use my own map image) by creating a CustomMapViewer that inherits from Viewer and also imported it it in the index.js file.
I am able to subscribe to the custom topic but the custom map viewer is not being loaded.
Managed to figure out why the custom viewer is not loading.
It is because in the Viewer base class there's a logic that appends "msg" to the message type if the splitted token is of length 2.
Therefore changing the CustomMapViewer.supportedTypes as shown below solves the issue.
Hi, I'm trying to add a custom map viewer (to use my own map image) by creating a CustomMapViewer that inherits from Viewer and also imported it it in the index.js file.
I am able to subscribe to the custom topic but the custom map viewer is not being loaded.
Below is my CustomMapViewer.js:
Can someone help to point out if there are any issue with my code or did I miss out any other places that need further configuration?
The text was updated successfully, but these errors were encountered: