How to integrate simple polyline function with Two canvas(Sandcastle)?

Included the function for generating polyline

var polyline = polylines.add();

Sandcastle.declare(polyline); // For highlighting on mouseover in Sandcastle.


Cesium.Cartographic.fromDegrees(-120.0, 40.0),

Cesium.Cartographic.fromDegrees(-110.0, 30.0)


And imported js files using


‘Cesium’, ‘Widgets/Dojo/CesiumViewerWidget’


But error says “require not defined”

It would be great if some one could provide some insights on this topic.