| 1 |
<!DOCTYPE html> |
| 2 |
<html> |
| 3 |
<head profile="http://www.w3.org/2002/12/namespace"> |
| 4 |
<link rel="stylesheet" type="text/css" href="../../../../../dijit/themes/dijit.css"> |
| 5 |
<link rel="stylesheet" type="text/css" href="../../../../../dijit/themes/tundra/tundra.css"> |
| 6 |
<title>Dojo Base Layers</title> |
| 7 |
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| 8 |
|
| 9 |
|
| 10 |
<script src="http://maps.google.com/maps/api/js?v=3&sensor=false"></script> |
| 11 |
|
| 12 |
|
| 13 |
<script type="text/javascript" src="http://openlayers.org/api/2/OpenLayers.js"></script> |
| 14 |
|
| 15 |
<script type="text/javascript" src="../../../../../dojo/dojo.js"></script> |
| 16 |
|
| 17 |
<script type="text/javascript"> |
| 18 |
require(["dojo/ready", "dojo/dom", "dojo/_base/html", "dojox/geo/openlayers/Map", "dojo/parser"], |
| 19 |
function(ready, dom, html, Map){ |
| 20 |
|
| 21 |
var map; |
| 22 |
|
| 23 |
ready(function(){ |
| 24 |
var options = { |
| 25 |
baseLayerName : "TheMap", |
| 26 |
baseLayerType : dojox.geo.openlayers.BaseLayerType.GOOGLE, |
| 27 |
touchHandler : true |
| 28 |
}; |
| 29 |
|
| 30 |
var div = dom.byId("map"); |
| 31 |
map = new Map(div, options); |
| 32 |
map.fitTo([-160, 70, 160, -70]); |
| 33 |
|
| 34 |
}); |
| 35 |
|
| 36 |
}); |
| 37 |
</script> |
| 38 |
|
| 39 |
<style type="text/css"> |
| 40 |
.olLayerGoogleCopyright { |
| 41 |
visibility: hidden; |
| 42 |
} |
| 43 |
body,html { |
| 44 |
height:100%; |
| 45 |
} |
| 46 |
</style> |
| 47 |
|
| 48 |
</head> |
| 49 |
<body class="tundra"> |
| 50 |
<div id="map" style="background-color: #b5d0d0; height:100%;"></div> |
| 51 |
</body> |
| 52 |
</html> |