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);
}
Aggregations