From 28ccd43ba48408905d7fce17e46bf0d6d6fa4187 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Sat, 26 Feb 2011 15:21:40 +0000 Subject: [PATCH] Simple demo game-like thing showing how to use the accelerometer to control a vector feature on a map. git-svn-id: http://svn.openlayers.org/trunk/openlayers@11549 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- build/mobile.cfg | 1 + examples/game-accel-ball.html | 80 +++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 examples/game-accel-ball.html diff --git a/build/mobile.cfg b/build/mobile.cfg index 07c1690362..650fd6824e 100644 --- a/build/mobile.cfg +++ b/build/mobile.cfg @@ -16,6 +16,7 @@ OpenLayers/Control/Attribution.js OpenLayers/Control/SelectFeature.js OpenLayers/Layer/Vector.js OpenLayers/Renderer/SVG.js +OpenLayers/Renderer/Canvas.js OpenLayers/Format/GeoJSON.js [exclude] diff --git a/examples/game-accel-ball.html b/examples/game-accel-ball.html new file mode 100644 index 0000000000..ac4037fc87 --- /dev/null +++ b/examples/game-accel-ball.html @@ -0,0 +1,80 @@ + + + + + OpenLayers Game: Bounce Ball + + + + + + + + +

Accelerometer Example

+
+ mobile, game +
+
Simple acceleration demo; roll a vector feature around + on a map. (Only tested on iOS 4.)
+ +
+
+ Demo works best when device is locked in portrait mode. +
+ +