Mars flight simulator (beta)

Mars flight simulator using ARCGIS javascript API and a synchronized control panel in Max/MSP

This project is under construction. And not yet available.

temporary files

internetsensors/arcgis

  • mars7.html – ARCGIS API javascript code (run in browser)
  • maxplanet.maxpat (Max control panel)
  • maxplanet.js (node.js maxAPI interface for web sockets)
notes

The js code in the html file is completely self contained. ie., will run without Max. The control panel is synchronized with the Max control panel using mutation observers in javascript to watch for changes to the control panel objects and notify the Max patch

to be done:
  • Need to get permission from ARCGIS to release this as open source.
  • Music and sound
  • Improve animation with better acceleration/deceleration in animations

 

Realtime Boston train map

Animated symbols on a map using Leaflet (open street map) and node.js

This project is under construction:

It uses Leaflet to handle map graphic layers and Stamen for the underlying map.

The data is provided via websockets using a node server

Temporary local files

internetsensors/mbtanode:

  • tn.js (background node server: mbta api and websockets)
  • leafredline1.html (handles leaflet code) and must be run on a web server.

After the map loads, scroll down and send the message “go” to open the websocket.

notes:

The animation of the train symbols is very primitive. It redraws the entire train line with each polling request.

There are better methods to move symbols on a leaflet map – to be used in subsequent versions.