51 lines
1.6 KiB
HTML
51 lines
1.6 KiB
HTML
---
|
|
layout: example-verbatim.html
|
|
title: Geolocation Tracking with Orientation
|
|
shortdesc: Example of a geolocated and oriented map.
|
|
tags: "fullscreen, geolocation, orientation, mobile"
|
|
---
|
|
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" type="text/css">
|
|
<link rel="stylesheet" href="./theme/ol.css" type="text/css">
|
|
<link rel="stylesheet" href="./theme/site.css" type="text/css">
|
|
<title>Mobile Geolocation Tracking with Orientation</title>
|
|
<style type="text/css">
|
|
html, body, .map {
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
#info {
|
|
position: absolute;
|
|
font-size: 0.7em;
|
|
top: 10px;
|
|
right: 10px;
|
|
background-color: lightgrey;
|
|
padding: 4px;
|
|
}
|
|
.button {
|
|
position: absolute;
|
|
bottom: 40px;
|
|
left: 10px;
|
|
}
|
|
</style>
|
|
<script src="https://unpkg.com/elm-pep@1.0.6/dist/elm-pep.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="map" class="map"></div>
|
|
<div id="info"></div>
|
|
<img id="geolocation_marker" src="data/geolocation_marker.png" />
|
|
<div class="button">
|
|
<button id="geolocate">Geolocate Me!</button>
|
|
<button id="simulate">Simulate</button>
|
|
</div>
|
|
<script src="common.js"></script>
|
|
<script src="geolocation-orientation.js"></script>
|
|
</body>
|
|
</html>
|