Skip to content
Vladimir Elistratov edited this page Dec 9, 2015 · 4 revisions

Mercedes 1904 Race Demo: Vehicle Tracking Simulation

Google Earth Javascript API engine Leaflet Library engine

20 Mercedes 1904 cars participate in a infinite race. 3D car models are used for Google Earth Javascript API.

Leaflet, Google Maps API, Yandex Maps API do not support icon orientation out of the box. It is simulated via pre-generated sprites. Google Maps API and Yandex Maps API can handle a single image with 360 icon orientations. 360 images each for a specific icon orientation are used to simulate icon orientation in Leaflet.

Use python scripts make_sprites.py or rotate_icon.py from https://github.com/vvoovv/djeo-utils to generate sprites. make_sprites.py generates a single image with 360 icon orientations. rotate_icon.py generates 360 images each for a specific icon orientation. Install PIL python library from http://www.pythonware.com/products/pil/ to run the scripts.