1 | ---
|
2 | layout: example-verbatim.html
|
3 | title: Geolocation Tracking with Orientation
|
4 | shortdesc: Example of a geolocated and oriented map.
|
5 | tags: "fullscreen, geolocation, orientation, mobile"
|
6 | ---
|
7 | <!doctype html>
|
8 | <html lang="en">
|
9 | <head>
|
10 | <meta charset="utf-8">
|
11 | <meta http-equiv="X-UA-Compatible" content="chrome=1">
|
12 | <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
|
13 | <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" type="text/css">
|
14 | <link rel="stylesheet" href="../css/ol.css" type="text/css">
|
15 | <link rel="stylesheet" href="./resources/layout.css" type="text/css">
|
16 | <title>Mobile Geolocation Tracking with Orientation</title>
|
17 | <style type="text/css">
|
18 | html, body, .map {
|
19 | margin: 0;
|
20 | padding: 0;
|
21 | width: 100%;
|
22 | height: 100%;
|
23 | }
|
24 | #info {
|
25 | position: absolute;
|
26 | font-size: 0.7em;
|
27 | top: 10px;
|
28 | right: 10px;
|
29 | background-color: lightgrey;
|
30 | padding: 4px;
|
31 | }
|
32 | .button {
|
33 | position: absolute;
|
34 | bottom: 40px;
|
35 | left: 10px;
|
36 | }
|
37 | </style>
|
38 | </head>
|
39 | <body>
|
40 | <div id="map" class="map"></div>
|
41 | <div id="info"></div>
|
42 | <img id="geolocation_marker" src="data/geolocation_marker.png" />
|
43 | <div class="button">
|
44 | <button id="geolocate">Geolocate Me!</button>
|
45 | <button id="simulate">Simulate</button>
|
46 | </div>
|
47 | <script src="./resources/common.js" type="text/javascript"></script>
|
48 | <script src="loader.js?id=geolocation-orientation" type="text/javascript"></script>
|
49 | </body>
|
50 | </html>
|