Search in sources :

Example 1 with ViewerCesiumNavigationMixinOptions

use of org.cesiumjs.cs.widgets.options.ViewerCesiumNavigationMixinOptions in project gwt-cs by iSergio.

the class CesiumNavigation method buildPanel.

@Override
public void buildPanel() {
    ViewerCesiumNavigationMixinOptions options = new ViewerCesiumNavigationMixinOptions();
    options.defaultResetView = Rectangle.fromDegrees(71, 3, 90, 14);
    options.enableCompass = true;
    options.enableZoomControls = true;
    options.enableDistanceLegend = true;
    options.enableCompassOuterRing = true;
    ViewerPanel csVPanel = new ViewerPanel();
    csVPanel.getViewer().extend(viewerCesiumNavigationMixin.instance(), options);
    contentPanel.add(new HTML("<p>Use CesiumNavigation plugin with GWT wrapper.</p>"));
    contentPanel.add(csVPanel);
    initWidget(contentPanel);
}
Also used : ViewerPanel(org.cesiumjs.cs.widgets.ViewerPanel) ViewerCesiumNavigationMixinOptions(org.cesiumjs.cs.widgets.options.ViewerCesiumNavigationMixinOptions) HTML(com.google.gwt.user.client.ui.HTML)

Aggregations

HTML (com.google.gwt.user.client.ui.HTML)1 ViewerPanel (org.cesiumjs.cs.widgets.ViewerPanel)1 ViewerCesiumNavigationMixinOptions (org.cesiumjs.cs.widgets.options.ViewerCesiumNavigationMixinOptions)1