Vaadin Cesium Component

A Vaadin 7 component that creates a Cesium WebGL Globe

Лицензия

Лицензия

Категории

Категории

Vaadin Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

com.github.lotsabackscatter
Идентификатор

Идентификатор

vaadin-cesium-component
Последняя версия

Последняя версия

1.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

Vaadin Cesium Component
A Vaadin 7 component that creates a Cesium WebGL Globe
Ссылка на сайт

Ссылка на сайт

https://github.com/lotsabackscatter/vaadin-cesium-connector
Система контроля версий

Система контроля версий

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

Скачать vaadin-cesium-component

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
com.vaadin : vaadin-server jar 7.1.15
com.google.code.findbugs : jsr305 jar 2.0.3
com.google.guava : guava jar 17.0

Модули Проекта

Данный проект не имеет модулей.

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.

Версии библиотеки

Версия
1.3