-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Abhishek V. Potnis edited this page Aug 4, 2016
·
6 revisions
- Clone or download this repository
- cd into the directory of this repository
npm install
-
node server.js
to start the Node relayer. - Move this directory to host it on a server. On a Linux machine with an Apache server, it would be placed at /var/www/html/
- Rename the sample-web-config.js to web-config.js and sample-node-config.js to node-config.js. Populate the web-config.js with the Bing Maps API Key that can obtained from https://msdn.microsoft.com/en-us/library/ff428642.aspx
- You may change the Server address in node-config.js and web-config.js. By default it is set to 'localhost'.
- The application can now be accessed at http://localhost/cesium-lg/Master-Client.html and http://localhost/cesium-lg/Slave-Client.html on your web browser.
- Move the camera using the mouse on the Master display and the Slave will follow suit.
- Slave-Client.html expects a yaw parameter in the URL, if no yaw is provided, it mimics the Master. http://localhost/cesium-lg/Slave-Client.html?yaw=SOMEVALUE rotates the slave camera by that amount. One needs to try it out different yaw values depending on the size and orientation of the displays to achieve perfect aligning.
###Note
- As of now, there are separate files for Master and Slaves; but as this project progresses, a single file would serve for both Master and Slave displays with different URL parameters.