Updated example.

This commit is contained in:
Tim Schaub
2012-06-22 20:08:28 +02:00
parent bc0614d3ee
commit f46a7dbc2a
+6 -5
View File
@@ -5,19 +5,20 @@
<script type="text/javascript" src="loader.js"></script> <script type="text/javascript" src="loader.js"></script>
<link rel="stylesheet" href="../css/ol.css" type="text/css"> <link rel="stylesheet" href="../css/ol.css" type="text/css">
<style type="text/css"> <style type="text/css">
#map {width: 512px; height: 512px;} #map {
.ol-viewport {border: 1px solid gray;} width: 512px; height: 350px;
}
</style> </style>
</head> </head>
<body> <body>
</body> </body>
<div id="map"></div> <div id="map"></div>
<script type="text/javascript"> <script type="text/javascript">
ol.map({ var map = ol.map({
renderTo: 'map', renderTo: 'map',
layers: [ol.layer.osm()], layers: [ol.layer.osm()],
center: [45, 5], center: [0, 0],
zoom: 10 zoom: 1
}); });
</script> </script>
</html> </html>