Code Monkey home page Code Monkey logo

czmlserver's Introduction

An Akka websocket server and a Cesium client to excersice the ScalaCZML library

A basic Akka websocket server is using the ScalaCZML library to send a CZML document to a Cesium client, which then displays the result on the globe.

How to use

Download and unzip this repository.

Install Cesium and look at the getting started tutorial to setup the web Node server, typically in a terminal in the Cesium directory:

node server.js

This will run the local web server for Cesium.

Put the file CzmlClient.html in the Cesium "Apps" directory.

In another terminal navigate to the downloaded "czmlServer-master" directory and type:

sbt run

This will run the Akka websocket server that will send the CZML document to the "CzmlClient.html" for display.

Once the server is up and running, you should see at the terminal:

Akka server online at ws://localhost:3210/
press RETURN to stop the server...

Do not press RETURN yet.

Point your browser to "http://localhost:8080/Apps/CzmlClient.html" and the globe should be visible. Rotate the globe to Australia and you should see a TV test pattern image and a text label near Sydney.

In summary.

 in the "Cesium-x.xx" directory
 node server.js

 in the "czmlServer-master" directory
 sbt run 

 point your browser to http://localhost:8080/Apps/CzmlClient.html
 go to Sydney Australia

Dependencies

Cesium, SBT, Node.js and ScalaCZML.

See also the build.sbt file.

czmlserver's People

Contributors

workingdog avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.