Skip to content

HTTP web service to set Cesium camera position and return an image.

License

Notifications You must be signed in to change notification settings

cleroux/cesium-image-ws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cesium Image Web Service

Provides a HTTP Web Service that allows a client to set the Cesium camera position and orientation and returns the resulting canvas image as PNG. Allows any application to leverage Cesium functionality through HTTP. Intended for single-client use only.

Example

Install dependencies and launch the web service

npm install
npm start

Usage

Query Parameters

lat : Latitude in degrees (required)
lon : Longitude in degrees (required)
alt : Altitude in meters (required)
hdg : Heading in degrees (optional, defaults to 0.0)
pit : Pitch in degrees (optional, defaults to -90.0)
rol : Roll in degrees (optional, defaults to 0.0)

Example

http://localhost:8080/?lat=32.71&lon=-117.16&alt=5000&hdg=0.0&pit=-90.0&rol=0.0

Known bugs

Electron's executeJavaScript() does not resolve Promise or execute callback on Mac.

About

HTTP web service to set Cesium camera position and return an image.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published