I using Cesium in my application. My application shows billboard on the map accordingly with received positions.
I would like to know the difference between Cesium.Viewer
and Cesium.CesiumWidget
. Is it possible to create entities using Cesium Widget? What is the advantage of using the Cesium.CesiumWidget
? Does it gives me the same functionality as Cesium.Viewer
but without all the extra widgets (such as timeline)?
Yes, Cesium.Viewer
includes the Cesium.CesiumWidget
to render the globe itself. Viewer
wraps CesiumWidget
along with the other widgets (timeline, baselayerpicker, etc). Viewer
also adds some extra logic for managing a list of dataSources, a clock, etc.
Generally if you're doing more than drawing a few graphics primitives, you should use Viewer
not CesiumWidget
, and just turn off the widgets you don't need via the viewer's constructor options.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With