Updated example.
This commit is contained in:
+6
-5
@@ -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>
|
||||||
Reference in New Issue
Block a user