Port over the full-screen, geojson and geolocation-orientation examples

This commit is contained in:
Bart van den Eijnden
2015-04-02 15:53:17 +02:00
committed by Andreas Hocevar
parent 78ce9de4af
commit 2ebefc4466
5 changed files with 73 additions and 172 deletions

View File

@@ -0,0 +1,15 @@
.map:-moz-full-screen {
height: 100%;
}
.map:-webkit-full-screen {
height: 100%;
}
.map:-ms-fullscreen {
height: 100%;
}
.map:fullscreen {
height: 100%;
}
.ol-rotate {
top: 3em;
}

View File

@@ -1,70 +1,14 @@
<!doctype html> ---
<html lang="en"> template: "example.html"
<head> title: "Full screen control example"
<meta charset="utf-8"> shortdesc: "Example of a full screen control."
<meta http-equiv="X-UA-Compatible" content="chrome=1"> docs: >
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width"> <p>Click the control in the top right corner to go full screen. Click it again to exit full screen.</p>
<link rel="stylesheet" href="../css/ol.css" type="text/css"> <p>If there is no button on the map, your browser does not support the <a href="http://caniuse.com/#feat=fullscreen">Full Screen API</a>.</p>
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap.min.css" type="text/css"> tags: "full-screen, bing, bing-maps"
<link rel="stylesheet" href="../resources/layout.css" type="text/css"> ---
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap-responsive.min.css" type="text/css"> <div class="row-fluid">
<style> <div class="span12">
.map:-moz-full-screen { <div id="map" class="map"></div>
height: 100%; </div>
} </div>
.map:-webkit-full-screen {
height: 100%;
}
.map:-ms-fullscreen {
height: 100%;
}
.map:fullscreen {
height: 100%;
}
.ol-rotate {
top: 3em;
}
</style>
<title>Full screen control example</title>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="./"><img src="../resources/logo.png"> OpenLayers 3 Examples</a>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div id="map" class="map"></div>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<h4 id="title">Full screen control example</h4>
<p id="shortdesc">Example of a full screen control.</p>
<div id="docs">
<p>Click the control in the top right corner to go full screen. Click it again to exit full screen.</p>
<p>If there is no button on the map, your browser does not support the <a href="http://caniuse.com/#feat=fullscreen">Full Screen API</a>.</p>
<p>See the <a href="full-screen.js" target="_blank">full-screen.js source</a> to see how this is done.</p>
</div>
<div id="tags">full-screen, bing, bing-maps</div>
</div>
</div>
</div>
<script src="../resources/jquery.min.js" type="text/javascript"></script>
<script src="../resources/example-behaviour.js" type="text/javascript"></script>
<script src="loader.js?id=full-screen" type="text/javascript"></script>
</body>
</html>

View File

@@ -1,51 +1,13 @@
<!doctype html> ---
<html lang="en"> template: "example.html"
<head> title: "GeoJSON example"
<meta charset="utf-8"> shortdesc: "Example of GeoJSON features."
<meta http-equiv="X-UA-Compatible" content="chrome=1"> docs: >
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width"> Example of GeoJSON features.
<link rel="stylesheet" href="../css/ol.css" type="text/css"> tags: "geojson, vector, openstreetmap"
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap.min.css" type="text/css"> ---
<link rel="stylesheet" href="../resources/layout.css" type="text/css"> <div class="row-fluid">
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap-responsive.min.css" type="text/css"> <div class="span12">
<title>GeoJSON example</title> <div id="map" class="map"></div>
</head> </div>
<body> </div>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="./"><img src="../resources/logo.png"> OpenLayers 3 Examples</a>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div id="map" class="map"></div>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<h4 id="title">GeoJSON example</h4>
<p id="shortdesc">Example of GeoJSON features.</p>
<div id="docs">
<p>See the <a href="geojson.js" target="_blank">geojson.js source</a> to see how this is done.</p>
</div>
<div id="tags">geojson, vector, openstreetmap</div>
</div>
</div>
</div>
<script src="../resources/jquery.min.js" type="text/javascript"></script>
<script src="../resources/example-behaviour.js" type="text/javascript"></script>
<script src="loader.js?id=geojson" type="text/javascript"></script>
</body>
</html>

View File

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