Add simplified API demo

This commit is contained in:
Tom Payne
2012-08-07 20:31:09 +02:00
parent 6cb362218b
commit 5062b71b3c
4 changed files with 39 additions and 1 deletions

6
demos/api1/api1.js Normal file
View File

@@ -0,0 +1,6 @@
var map = ol3.map({
renderTo: 'map',
layers: [ol3.layer.osm()],
center: [45, 5],
zoom: 10
});

19
demos/api1/index.html.in Normal file
View File

@@ -0,0 +1,19 @@
<!doctype html>
<html>
<head>
<style type="text/css">
.map {
width: 400px;
height: 400px;
border: thin solid;
}
</style>
<script src="@SRC@" type="text/javascript"></script>
<title>ol3 api1 demo</title>
</head>
<body>
<h1>ol3 api1 demo</h1>
<div class="map" id="map"></div>
<script src="api1.js" type="text/javascript"></script>
</body>
</html>