Port canvas tiles example to Bootstrap
This commit is contained in:
committed by
Frederic Junod
parent
d20aa69f5f
commit
34c6652ed6
+46
-31
@@ -1,40 +1,55 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||||
<link rel="stylesheet" href="style.css" type="text/css">
|
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
|
||||||
<style type="text/css">
|
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" type="text/css">
|
||||||
.map {
|
<link rel="stylesheet" href="examples.css" type="text/css">
|
||||||
width: 400px;
|
<link rel="stylesheet" href="bootstrap/css/bootstrap-responsive.min.css" type="text/css">
|
||||||
height: 400px;
|
<title>Canvas tiles example</title>
|
||||||
border: thin solid #cccccc;
|
|
||||||
margin: 1em;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<title>ol3 canvas tiles demo</title>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id="title">Canvas tiles example</h1>
|
|
||||||
<div id="shortdesc">The black grid tiles are generated on the client with an HTML5 canvas. Note that the tile coordinates are ol3 normalized tile coordinates (origin bottom left), not OSM tile coordinates (origin top left).</div>
|
<div class="navbar navbar-inverse navbar-fixed-top">
|
||||||
<table>
|
<div class="navbar-inner">
|
||||||
<tr>
|
<div class="container">
|
||||||
<th>DOM</th>
|
<a class="brand" href="examples-list.html">OpenLayers 3 Examples</a>
|
||||||
<th>WebGL</th>
|
</div>
|
||||||
<th>Canvas</th>
|
</div>
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><div id="domMap" class="map"></div></td>
|
|
||||||
<td><div id="webglMap" class="map"></div></td>
|
|
||||||
<td><div id="canvasMap" class="map"></div></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<div id="docs">
|
|
||||||
<p>See the
|
|
||||||
<a href="canvas-tiles.js" target="_blank">canvas-tiles.js source</a>
|
|
||||||
to see how this is done.</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div id="tags">layers, stamen, canvas</div>
|
|
||||||
|
<div class="container-fluid">
|
||||||
|
|
||||||
|
<div class="row-fluid">
|
||||||
|
<div class="span4">
|
||||||
|
<h4>Canvas</h4>
|
||||||
|
<div id="canvasMap" class="map"></div>
|
||||||
|
</div>
|
||||||
|
<div class="span4">
|
||||||
|
<h4>WebGL</h4>
|
||||||
|
<div id="webglMap" class="map"></div>
|
||||||
|
</div>
|
||||||
|
<div class="span4">
|
||||||
|
<h4>DOM</h4>
|
||||||
|
<div id="domMap" class="map"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row-fluid">
|
||||||
|
|
||||||
|
<div class="span4">
|
||||||
|
<h4 id="title">Canvas tiles example</h4>
|
||||||
|
<p id="shortdesc">The black grid tiles are generated on the client with an HTML5 canvas. Note that the tile coordinates are ol3 normalized tile coordinates (origin bottom left), not OSM tile coordinates (origin top left).</p>
|
||||||
|
<div id="docs">
|
||||||
|
<p>See the <a href="canvas-tiles.js" target="_blank">canvas-tiles.js source</a> to see how this is done.</p>
|
||||||
|
</div>
|
||||||
|
<div id="tags">layers, openstreetmap, canvas</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<script src="loader.js?id=canvas-tiles" type="text/javascript"></script>
|
<script src="loader.js?id=canvas-tiles" type="text/javascript"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user