Updated
This commit is contained in:
51
master/examples/test_nonWidget.html
Normal file
51
master/examples/test_nonWidget.html
Normal file
@@ -0,0 +1,51 @@
|
||||
<html>
|
||||
<head profile="http://www.w3.org/2002/12/namespace">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../dijit/themes/dijit.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../dijit/themes/tundra/tundra.css">
|
||||
<title>Dojo Base Layers</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
|
||||
<!-- Google API -->
|
||||
<script src="http://maps.google.com/maps/api/js?v=3&sensor=false"></script>
|
||||
|
||||
<!-- hosted version -->
|
||||
<script type="text/javascript" src="http://openlayers.org/api/OpenLayers.js"></script>
|
||||
|
||||
<script type="text/javascript" src="../../../../../dojo/dojo.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
require(["dojo/ready", "dojo/dom", "dojo/_base/html", "dojox/geo/openlayers/Map", "dojo/parser"],
|
||||
function(ready, dom, html, Map){
|
||||
|
||||
var map;
|
||||
|
||||
ready(function(){
|
||||
var options = {
|
||||
baseLayerName : "TheMap",
|
||||
baseLayerType : dojox.geo.openlayers.BaseLayerType.GOOGLE,
|
||||
touchHandler : true
|
||||
};
|
||||
|
||||
var div = dom.byId("map");
|
||||
map = new Map(div, options);
|
||||
map.fitTo([-160, 70, 160, -70]);
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
.olLayerGoogleCopyright {
|
||||
visibility: hidden;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body class="tundra">
|
||||
</head>
|
||||
|
||||
<div id="map" style="background-color: #b5d0d0; width: 100%; height: 100%;"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user