Add consistent API demo
This commit is contained in:
30
demos/api/full-screen.html
Normal file
30
demos/api/full-screen.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
|
||||
<style type="text/css">
|
||||
html, body, #map {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="../../css/ol.css" type="text/css">
|
||||
<title>ol3 full-screen demo</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="map"></div>
|
||||
<script src="../../build/ol.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
var layer = new ol.layer.MapQuestOpenAerial();
|
||||
var map = new ol.Map(document.getElementById('map'), {
|
||||
center: new ol.Coordinate(0, 0),
|
||||
layers: new ol.Collection([layer]),
|
||||
zoom: 0
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user