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
There is functionality that's currently in the @cesium/widgetsViewer class that is not in the @cesium/engineCesiumWidget class that is not directly related to the widgets we provide in @cesium/widgets but is valuable and useful to developers from an API perspective. Recently there was discussion of users wanting to use Cesium for the 3d view but roll their own UI and widgets. Installing only @cesium/engine and using the CesiumWidget is a great way to do that and reduce dependencies but there's more convenience we could offer like the Viewer does.
Things like:
Easy access to an entityCollection that's already set up to render in the viewer
a data source display already synced with the clock to update every tick (like needed in this forum question)
convenience functions like flyTo, zoomTo and trackedEntity
These make it harder and more confusing to developers that CesiumWidget is not a drop in replacement for Viewer when they don't want the extra widgets like the timeline or geolocator. I think we should move all the code in Viewer that doesn't interact with @cesium/widgets classes/components into the CesiumWidget so Viewer is more of a direct extends type class.
Feature
There is functionality that's currently in the
@cesium/widgets
Viewer
class that is not in the@cesium/engine
CesiumWidget
class that is not directly related to the widgets we provide in@cesium/widgets
but is valuable and useful to developers from an API perspective. Recently there was discussion of users wanting to use Cesium for the 3d view but roll their own UI and widgets. Installing only@cesium/engine
and using theCesiumWidget
is a great way to do that and reduce dependencies but there's more convenience we could offer like theViewer
does.Things like:
entityCollection
that's already set up to render in the viewerclock
to update every tick (like needed in this forum question)flyTo
,zoomTo
andtrackedEntity
These make it harder and more confusing to developers that
CesiumWidget
is not a drop in replacement forViewer
when they don't want the extra widgets like the timeline or geolocator. I think we should move all the code inViewer
that doesn't interact with@cesium/widgets
classes/components into theCesiumWidget
soViewer
is more of a directextends
type class.In other words I would expect:
to function the same as
The text was updated successfully, but these errors were encountered: