UNPKG

493 BHTMLView Raw
1---
2layout: example.html
3title: Device Orientation
4shortdesc: Listen to DeviceOrientation events.
5docs: >
6 This example shows how to track changes in device orientation.
7tags: "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>&nbsp;&nbsp;
16 β : <code id="beta"></code>&nbsp;&nbsp;
17 γ : <code id="gamma"></code>&nbsp;&nbsp;
18 heading : <code id="heading"></code>
19</p>