Port over epsg-4326, export-map, fractal and full-screen-drag-rotate-and-zoom examples

This commit is contained in:
Bart van den Eijnden
2015-04-02 14:51:14 +02:00
committed by Andreas Hocevar
parent 0882754b49
commit d0d61e68c7
6 changed files with 77 additions and 234 deletions
+13 -51
View File
@@ -1,51 +1,13 @@
<!doctype html> ---
<html lang="en"> template: "example.html"
<head> title: "EPSG:4326 example"
<meta charset="utf-8"> shortdesc: "Example of a map in EPSG:4326."
<meta http-equiv="X-UA-Compatible" content="chrome=1"> docs: >
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width"> This example shows how to create a map in EPSG:4326.
<link rel="stylesheet" href="../css/ol.css" type="text/css"> tags: "epsg4326"
<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>EPSG:4326 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">EPSG:4326 example</h4>
<p id="shortdesc">Example of a map in EPSG:4326.</p>
<div id="docs">
<p>See the <a href="epsg-4326.js" target="_blank">epsg-4326.js source</a> to see how this is done.</p>
</div>
<div id="tags">epsg4326</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=epsg-4326" type="text/javascript"></script>
</body>
</html>
+17 -55
View File
@@ -1,56 +1,18 @@
<!doctype html> ---
<html lang="en"> template: "example.html"
<head> title: "Export map example"
<meta charset="utf-8"> shortdesc: "Example of exporting a map as a PNG image."
<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 exporting a map as a PNG image.
<link rel="stylesheet" href="../css/ol.css" type="text/css"> tags: "export, png, 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>Export map example</title> <div id="map" class="map"></div>
</head> <div id="no-download" class="alert alert-error" style="display: none">
<body> This example requires a browser that supports the
<a href="http://caniuse.com/#feat=download">link download</a> attribute.
<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>
<a id="export-png" class="btn" download="map.png"><i class="icon-download"></i> Export PNG</a>
<div class="container-fluid"> </div>
</div>
<div class="row-fluid">
<div class="span12">
<div id="map" class="map"></div>
<div id="no-download" class="alert alert-error" style="display: none">
This example requires a browser that supports the
<a href="http://caniuse.com/#feat=download">link download</a> attribute.
</div>
<a id="export-png" class="btn" download="map.png"><i class="icon-download"></i> Export PNG</a>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<h4 id="title">Export map example</h4>
<p id="shortdesc">Example of exporting a map as a PNG image.</p>
<div id="docs">
<p>See the <a href="export-map.js" target="_blank">export-map.js source</a> to see how this is done.</p>
</div>
<div id="tags">export, png, 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=export-map" type="text/javascript"></script>
</body>
</html>
+6
View File
@@ -0,0 +1,6 @@
.map {
background: whitesmoke;
}
#depth {
width: 100px;
}
+18 -64
View File
@@ -1,64 +1,18 @@
<!doctype html> ---
<html lang="en"> template: "example.html"
<head> title: "Fractal Example"
<meta charset="utf-8"> shortdesc: "Example of a fractal."
<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 a fractal.
<link rel="stylesheet" href="../css/ol.css" type="text/css"> tags: "fractal, vector"
<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>Fractal Example</title> <div id="map" class="map"></div>
<style> <label for="depth">
.map { depth:&nbsp;
background: whitesmoke; <input id="depth" type="range" min="0" max="9" step="1" value="5">
} &nbsp;(<span id="count">#</span> points)
#depth { </label>
width: 100px; </div>
} </div>
</style>
</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">Fractal Example</h4>
<p id="shortdesc">Example of a fractal.</p>
<label for="depth">
depth:&nbsp;
<input id="depth" type="range" min="0" max="9" step="1" value="5">
&nbsp;(<span id="count">#</span> points)
</label>
<div id="docs">
<p>See the <a href="fractal.js" target="_blank">fractal.js source</a> to see how this is done.</p>
</div>
<div id="tags">fractal, vector</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=fractal" type="text/javascript"></script>
</body>
</html>
@@ -0,0 +1,9 @@
.map:-moz-full-screen {
height: 100%;
}
.map:-webkit-full-screen {
height: 100%;
}
.map:fullscreen {
height: 100%;
}
@@ -1,64 +1,14 @@
<!doctype html> ---
<html lang="en"> template: "example.html"
<head> title: "Full screen drag rotate and zoom example"
<meta charset="utf-8"> shortdesc: "Example of drag rotate and zoom control with full screen effect."
<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>Hold down <code>Shift</code> + drag to rotate and zoom. Click the button in the top right corner to go full screen. Then do the <code>Shift</code> + drag thing again.</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, drag, rotate, zoom, 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:fullscreen {
height: 100%;
}
</style>
<title>Full screen drag rotate and zoom 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 drag rotate and zoom example</h4>
<p id="shortdesc">Example of drag rotate and zoom control with full screen effect.</p>
<div id="docs">
<p>Hold down <code>Shift</code> + drag to rotate and zoom. Click the button in the top right corner to go full screen. Then do the <code>Shift</code> + drag thing again.</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-drag-rotate-and-zoom.js" target="_blank">full-screen-drag-rotate-and-zoom.js source</a> to see how this is done.</p>
</div>
<div id="tags">full-screen, drag, rotate, zoom, 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-drag-rotate-and-zoom" type="text/javascript"></script>
</body>
</html>