Permalink
Browse files

Set up example for debugging

  • Loading branch information...
1 parent b0a7bad commit 8d5a45d827cef49e61fb68a9299476d6ae3c8c23 @tschaub tschaub committed Jan 24, 2013
Showing with 11 additions and 5 deletions.
  1. +7 −5 examples/vector-layer.html
  2. +4 −0 examples/vector-layer.js
View
@@ -5,18 +5,20 @@
<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%;
+ #map {
+ width: 512px;
+ height: 256px;
+ }
+ #canvas {
+ padding-top: 2em;
}
</style>
<link rel="stylesheet" href="../css/ol.css" type="text/css">
<title>ol3 vector demo</title>
</head>
<body>
<div id="map"></div>
+ <div id="canvas"></div>
<script src="loader.js?id=vector-layer" type="text/javascript"></script>
</body>
</html>
View
@@ -37,3 +37,7 @@ var map = new ol.Map({
zoom: 0
})
});
+
+// TODO: remove me
+document.getElementById('canvas').appendChild(
+ map.renderer_.getLayerRenderer(vector).canvas_);

0 comments on commit 8d5a45d

Please sign in to comment.