Files
openlayers/examples/device-orientation.html
2018-10-10 15:11:07 +02:00

19 lines
590 B
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
layout: example.html
title: Device Orientation
shortdesc: Listen to DeviceOrientation events.
docs: >
This example shows how to track changes in device orientation.
[gyronorm.js](https://github.com/dorukeker/gyronorm.js) library is used to access and
normalize the events from the browser.
tags: "device, orientation, gyronorm"
resources:
- https://unpkg.com/gyronorm@2.0.6/dist/gyronorm.complete.min.js
---
<div id="map" class="map"></div>
<p>
<div>α : <code id="alpha"></code></div>
<div>β : <code id="beta"></code></div>
<div>γ : <code id="gamma"></code></div>
</p>