Vaadin Cesium Component

A Vaadin 7 component that creates a Cesium WebGL Globe

License

License

Categories

Categories

Vaadin User Interface Web Frameworks
GroupId

GroupId

com.github.lotsabackscatter
ArtifactId

ArtifactId

vaadin-cesium-component
Last Version

Last Version

1.3
Release Date

Release Date

Type

Type

jar
Description

Description

Vaadin Cesium Component
A Vaadin 7 component that creates a Cesium WebGL Globe
Project URL

Project URL

https://github.com/lotsabackscatter/vaadin-cesium-connector
Source Code Management

Source Code Management

https://github.com/lotsabackscatter/vaadin-cesium-component

Download vaadin-cesium-component

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.lotsabackscatter/vaadin-cesium-component/ -->
<dependency>
    <groupId>com.github.lotsabackscatter</groupId>
    <artifactId>vaadin-cesium-component</artifactId>
    <version>1.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.lotsabackscatter/vaadin-cesium-component/
implementation 'com.github.lotsabackscatter:vaadin-cesium-component:1.3'
// https://jarcasting.com/artifacts/com.github.lotsabackscatter/vaadin-cesium-component/
implementation ("com.github.lotsabackscatter:vaadin-cesium-component:1.3")
'com.github.lotsabackscatter:vaadin-cesium-component:jar:1.3'
<dependency org="com.github.lotsabackscatter" name="vaadin-cesium-component" rev="1.3">
  <artifact name="vaadin-cesium-component" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.lotsabackscatter', module='vaadin-cesium-component', version='1.3')
)
libraryDependencies += "com.github.lotsabackscatter" % "vaadin-cesium-component" % "1.3"
[com.github.lotsabackscatter/vaadin-cesium-component "1.3"]

Dependencies

compile (3)

Group / Artifact Type Version
com.vaadin : vaadin-server jar 7.1.15
com.google.code.findbugs : jsr305 jar 2.0.3
com.google.guava : guava jar 17.0

Project Modules

There are no modules declared in this project.

Vaadin Cesium Component

Add the Cesium WebGL Virtual Globe and Map Engine to your Vaadin 7 Application.

Build Status

Vaadin Cesium Example Image

Download

Download the latest release via Maven Central:

<dependency>
    <groupId>com.github.lotsabackscatter</groupId>
    <artifactId>vaadin-cesium-component</artifactId>
    <version>1.3</version>
</dependency>

Or Download the latest SNAPSHOT via the Sonatype Maven Repository:

<repositories>
    <repository>
        <id>oss-sonatype</id>
        <name>oss-sonatype</name>
        <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>
</repositories>

...

<dependency>
  <groupId>com.github.lotsabackscatter</groupId>
  <artifactId>vaadin-cesium-component</artifactId>
  <version>1.4-SNAPSHOT</version>
</dependency>

Usage

Simply create a layout and add the Cesium component to it!

VerticalLayout layout = new VerticalLayout();

Cesium cesium = new Cesium();
layout.addComponent(cesium);

You can even add billboards to the globe:

Cesium cesium = new Cesium();
cesium.addBillboard(-75.0, 40.0, "banana.jpg");

And respond to click events, on the billboards:

Cesium cesium = new Cesium();

BillboardClickListener listener = new BillboardClickListener() {

    @Override
    public void onClick() {
        Notification.show("Bananas", Notification.Type.TRAY_NOTIFICATION);
    }
};

cesium.addBillboard(-75.0, 40.0, "banana.jpg", listener);

Possible other examples include:

cesium.addLabel("Perth", -31.9522, 115.8589);
cesium.flyToMyLocation();
cesium.flyToPosition(-31.9522, 115.8589);

Developed By

License

Copyright 2014 Dylan Watson.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Versions

Version
1.3