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
The problem is that main orb object handles different views through orb.setView where each view can have different settings so orb.view.setSettings is not able to apply correct Typescript interface (at least with the current latest TS version).
The solution could be to create a new instance on view changes, e.g.
constorb=newOrb({ generalSettings });constview=orb.createView((context)=>newDefaultView(container1,{ viewSettings }));// Use view from now onview.render(()=>{view.recenter();});constnewView=orb.createView((context)=>newMapView(container2,{ viewSettings }));
The text was updated successfully, but these errors were encountered:
Issue: Typescript interface is not correctly applied to view (
DefaultView
,MapView
) settingsDetails can be read on Stackoverflow: How to setup typescript generics in class constructors and functions
The problem is that main
orb
object handles different views throughorb.setView
where each view can have different settings soorb.view.setSettings
is not able to apply correct Typescript interface (at least with the current latest TS version).The solution could be to create a new instance on
view
changes, e.g.The text was updated successfully, but these errors were encountered: