1 | ---
|
2 | layout: example.html
|
3 | title: Device Orientation
|
4 | shortdesc: Listen to DeviceOrientation events.
|
5 | docs: >
|
6 | This example shows how to track changes in device orientation.
|
7 | tags: "orientation, openstreetmap"
|
8 | ---
|
9 | <div id="map" class="map"></div>
|
10 | <label>
|
11 | track changes
|
12 | <input id="track" type="checkbox"/>
|
13 | </label>
|
14 | <p>
|
15 | α : <code id="alpha"></code>
|
16 | β : <code id="beta"></code>
|
17 | γ : <code id="gamma"></code>
|
18 | heading : <code id="heading"></code>
|
19 | </p>
|