Use of Play! 2.0 (Java API) with Twitter Bootstrap, WebSockets, Akka and OpenLayers.
The purpose of this project is to show a moving vehicle on a map. The location of the vehicle is sent to the server through a REST call, and the connected users can see the vehicle moving in real-time on their map.
Please take a look at this article to have explanations.
It may not work under Windows, because of a Play bug :
java.lang.RuntimeException: java.lang.RuntimeException: com.google.javascript.js
comp.deps.SortedDependencies$MissingProvideException: module$maptracker
To solve this, move maptracker.js
from app/asset/javascript
to public/javascript
.
The following libraries have been used in the project :
- Twitter Bootstrap 2.0.1
- OpenLayers 2.10 (API here: http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Map-js.html)
http://mapicons.nicolasmollet.com/ for the icons.