Updated example.
This commit is contained in:
@@ -5,19 +5,20 @@
|
||||
<script type="text/javascript" src="loader.js"></script>
|
||||
<link rel="stylesheet" href="../css/ol.css" type="text/css">
|
||||
<style type="text/css">
|
||||
#map {width: 512px; height: 512px;}
|
||||
.ol-viewport {border: 1px solid gray;}
|
||||
#map {
|
||||
width: 512px; height: 350px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
<div id="map"></div>
|
||||
<script type="text/javascript">
|
||||
ol.map({
|
||||
var map = ol.map({
|
||||
renderTo: 'map',
|
||||
layers: [ol.layer.osm()],
|
||||
center: [45, 5],
|
||||
zoom: 10
|
||||
center: [0, 0],
|
||||
zoom: 1
|
||||
});
|
||||
</script>
|
||||
</html>
|
||||
Reference in New Issue
Block a user