openlayers
Version:
Build tools and sources for developing OpenLayers based mapping applications
20 lines (19 loc) • 493 B
HTML
---
layout: example.html
title: Device Orientation
shortdesc: Listen to DeviceOrientation events.
docs: >
This example shows how to track changes in device orientation.
tags: "orientation, openstreetmap"
---
<div id="map" class="map"></div>
<label>
track changes
<input id="track" type="checkbox"/>
</label>
<p>
α : <code id="alpha"></code>
β : <code id="beta"></code>
γ : <code id="gamma"></code>
heading : <code id="heading"></code>
</p>