Cesium GWT Wrapper based on GWT 2.8.x and JsInterop
CesiumJS GWT Wrapper based on JsInterop 1.0.2 for GWT 2.8.x.
Showcase:
Java API looks like as JavaScript.
What was done:
You not need include JavaScript of Cesium into main html file, injection realised in GWT code.
Now no need callback for ScriptInjection or AttachOrDetach, all worked “out from box”.
See Showcase or basic example:
public class HelloWorld extends AbstractExample {
@Inject
public HelloWorld(ShowcaseExampleStore store) {
super("Hello World", "Use Viewer to start building new applications or easily embed Cesium into existing applications", new String[]{"Showcase", "Cesium", "3d", "Viewer"}, store);
}
@Override
public void buildPanel() {
// Create Cesium Viewer
ViewerPanel csVPanel = new ViewerPanel();
contentPanel.add(new HTML("<p>Use Viewer to start building new applications or easily embed Cesium into existing applications.</p>"));
contentPanel.add(csVPanel);
initWidget(contentPanel);
}
@Override
public String[] getSourceCodeURLs() {
String[] sourceCodeURLs = new String[1];
sourceCodeURLs[0] = GWT.getModuleBaseURL() + "examples/" + "HelloWorld.txt";
return sourceCodeURLs;
}
}
==
You need Java 8 for build examples.
This project will be used in gwt-olcs and replace Cesium GWT