Use the original geolocation-orientation example

This commit is contained in:
Bart van den Eijnden
2015-04-02 18:51:25 +02:00
committed by Andreas Hocevar
parent d10b83e8e1
commit e39a4561f6
2 changed files with 51 additions and 31 deletions

View File

@@ -1,13 +0,0 @@
#info {
position: absolute;
font-size: 0.7em;
top: 70px;
right: 30px;
background-color: lightgrey;
padding: 4px;
}
.button {
position: absolute;
bottom: 10px;
left: 30px;
}

View File

@@ -1,20 +1,53 @@
--- <!doctype html>
template: "example.html" <html lang="en">
title: "Mobile Geolocation Tracking with Orientation" <head>
shortdesc: "Example of a geolocated and oriented map." <meta charset="utf-8">
docs: > <meta http-equiv="X-UA-Compatible" content="chrome=1">
Geolocation tracking with orientation example. <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
tags: "fullscreen, geolocation, orientation, mobile" <link rel="stylesheet" href="../css/ol.css" type="text/css">
--- <link rel="stylesheet" href="../resources/bootstrap/css/bootstrap.min.css" type="text/css">
<div class="row-fluid"> <link rel="stylesheet" href="../resources/layout.css" type="text/css">
<div class="span12"> <link rel="stylesheet" href="../resources/bootstrap/css/bootstrap-responsive.min.css" type="text/css">
<div id="map" class="map"> <title>Mobile Geolocation Tracking with Orientation</title>
</div> <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>
</head>
<body>
<div id="map" class="map"></div>
<div id="info"></div>
<img id="geolocation_marker" src="data/geolocation_marker.png" />
<div class="button"> <div class="button">
<button id="geolocate">Geolocate Me!</button> <button id="geolocate">Geolocate Me!</button>
<button id="simulate">Simulate</button> <button id="simulate">Simulate</button>
</div> </div>
<div id="info"></div>
<img id="geolocation_marker" src="data/geolocation_marker.png" /> <script src="../resources/jquery.min.js" type="text/javascript"></script>
</div> <script src="../resources/example-behaviour.js" type="text/javascript"></script>
<script src="loader.js?id=geolocation-orientation" type="text/javascript"></script>
<div style="display: none;">
<div id="title">Geolocation tracking with orientation example</div>
<div id="shortdesc">Example of a geolocated and oriented map.</div>
<div id="tags">fullscreen, geolocation, orientation, mobile</div>
</div> </div>
</body>
</html>