Permalink
Browse files

New example style

  • Loading branch information...
1 parent ee75c4b commit 7f62b26c8026089422131d5790d782be76916f19 @tschaub tschaub committed Mar 8, 2013
Showing with 42 additions and 37 deletions.
  1. +41 −36 examples/vector-layer.html
  2. +1 −1 examples/vector-layer.js
@@ -1,47 +1,52 @@
-<!DOCTYPE html>
-<html>
+<!doctype html>
+<html lang="en">
<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 name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
- <link rel="stylesheet" href="style.css" type="text/css">
- <style type="text/css">
- html, body, #map {
- margin: 0;
- padding: 0;
- width: 100%;
- height: 100%;
- }
- #text {
- position: absolute;
- top: 8px;
- right: 8px;
- z-index: 20000;
- background-color: white;
- padding: 0 0.5em 0.5em 0.5em;
- border-radius: 4px;
- }
- @media only screen and (max-width: 600px) {
- #text {
- display: none;
- }
- }
- </style>
- <title>Vector Layer Example</title>
+ <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" type="text/css">
+ <link rel="stylesheet" href="examples.css" type="text/css">
+ <link rel="stylesheet" href="bootstrap/css/bootstrap-responsive.min.css" type="text/css">
+ <title>Vector layer example</title>
</head>
<body>
- <div id="map">
- <div id="text">
- <h1 id="title">Vector rendering example</h1>
- <div id="shortdesc">Uses a canvas renderer for drawing vector features.</div>
- <div id="docs">
- <p>See the
- <a href="vector-layer.js" target="_blank">vector-layer.js source</a>
- to see how this is done.</p>
+
+ <div class="navbar navbar-inverse navbar-fixed-top">
+ <div class="navbar-inner">
+ <div class="container">
+ <a class="brand" href="example-list.html">OpenLayers 3 Examples</a>
+ <ul class="nav pull-right">
+ <li><a href="https://github.com/openlayers/ol3"><i class="icon-github"></i></a></li>
+ <li><a href="https://twitter.com/openlayers"><i class="icon-twitter"></i></a></li>
+ </ul>
</div>
</div>
</div>
- <div id="tags">vector, feature, canvas</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="span4">
+ <h4 id="title">Vector layer example</h4>
+ <p id="shortdesc">Example of a vector layer.</p>
+ <div id="docs">
+ <p>See the <a href="vector-layer.js" target="_blank">vector-layer.js source</a> to see how this is done.</p>
+ </div>
+ <div id="tags">vector, geojson, style</div>
+ </div>
+
+ </div>
+
+ </div>
+
<script src="loader.js?id=vector-layer" type="text/javascript"></script>
+
</body>
</html>
@@ -64,6 +64,6 @@ var map = new ol.Map({
target: 'map',
view: new ol.View2D({
center: new ol.Coordinate(0, 0),
- zoom: 0
+ zoom: 1
})
});

0 comments on commit 7f62b26

Please sign in to comment.