Newer
Older
# GWT Cesium Wrapper
[CesiumJS](http://cesiumjs.org) GWT Wrapper based on JsInterop for [GWT 2.8.0](http://www.gwtproject.org/release-notes.html#Release_Notes_2_8_0).
Java API looks like as JavaScript.
What was done:
- [x] CesiumJS API like as native JavaScript. Based on CesiumJS source code
- [x] Simple support Promise
- [x] Simple support Callback functions.
- [x] Full Cesium documentation in javadoc. You can see they on official [CesiumJS](http://cesiumjs.org/refdoc.html) or on site [gwt-cs Documentation](http://sergeserver.noip.me/docs/gwt-cs)
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
- [x] [Examples showcase](http://sergeserver.noip.me/gwt-cs-test/).
### Getting started
You not need include JavaScript of Cesium into main html file, injection realised in GWT code.
See [Showcase](http://sergeserver.noip.me/gwt-cs-test/) or basic example:
```
private class ViewerPanel implements IsWidget {
private ViewerPanelAbstract _csPanelAbstract;
private ViewerPanel() {
super();
asWidget();
}
@Override
public Widget asWidget() {
if (_csPanelAbstract == null) {
final Configuration csConfiguration = new Configuration();
csConfiguration.setPath(GWT.getModuleBaseURL() + "JavaScript/Cesium");
_csPanelAbstract = new ViewerPanelAbstract(csConfiguration) {
@Override
public Viewer createViewer(Element element) {
Viewer csViewer = new Viewer(element);
return csViewer;
}
};
}
return _csPanelAbstract;
}
}
```
### Build library and examples:
==
You need Java 8 for build examples.
* mvn -U clean install
This project will be used in [gwt-olcs](https://github.com/iSergio/gwt-olcs) and replace [Cesium GWT](https://github.com/richkadel/cesium-gwt)