Search in sources :

Example 1 with GoogleEarthEnterpriseMetadata

use of org.cesiumjs.cs.core.GoogleEarthEnterpriseMetadata in project gwt-cs by iSergio.

the class GoogleEarthEnterprise method buildPanel.

@Override
public void buildPanel() {
    GoogleEarthEnterpriseMetadata geeMetadata = GoogleEarthEnterpriseMetadata.create("http://www.earthenterprise.org/3d");
    ViewerOptions options = new ViewerOptions();
    options.imageryProvider = GoogleEarthEnterpriseImageryProvider.create(geeMetadata);
    options.terrainProvider = GoogleEarthEnterpriseTerrainProvider.create(geeMetadata);
    options.baseLayerPicker = false;
    ViewerPanel csVPanel = new ViewerPanel(options);
    ViewOptions viewOptions = new ViewOptions();
    viewOptions.destinationRec = Rectangle.fromDegrees(-123.0, 36.0, -121.7, 39.0);
    csVPanel.getViewer().camera.setView(viewOptions);
    contentPanel.add(new HTML("<p>Add imagery from a Web Map Service (WMS) server.</p>"));
    contentPanel.add(csVPanel);
    initWidget(contentPanel);
}
Also used : GoogleEarthEnterpriseMetadata(org.cesiumjs.cs.core.GoogleEarthEnterpriseMetadata) ViewerPanel(org.cesiumjs.cs.widgets.ViewerPanel) ViewOptions(org.cesiumjs.cs.scene.options.ViewOptions) ViewerOptions(org.cesiumjs.cs.widgets.options.ViewerOptions) HTML(com.google.gwt.user.client.ui.HTML)

Aggregations

HTML (com.google.gwt.user.client.ui.HTML)1 GoogleEarthEnterpriseMetadata (org.cesiumjs.cs.core.GoogleEarthEnterpriseMetadata)1 ViewOptions (org.cesiumjs.cs.scene.options.ViewOptions)1 ViewerPanel (org.cesiumjs.cs.widgets.ViewerPanel)1 ViewerOptions (org.cesiumjs.cs.widgets.options.ViewerOptions)1