Files
openlayers/examples/notile.html
crschmidt 4b7b1cb700 Untiled WMS defaults to not having a base layer, which doesn't work so much
with the whole 'only layer in the example' thing. (Working on fixing #137 .)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@1217 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-15 14:22:31 +00:00

31 lines
914 B
HTML

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 512px;
height: 512px;
border: 1px solid black;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
<!--
function init(){
var map = new OpenLayers.Map('map', {maxResolution: 'auto'});
var ol_wms = new OpenLayers.Layer.WMS.Untiled( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'} );
ol_wms.isBaseLayer = true;
map.addLayers([ol_wms]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.setCenter(new OpenLayers.LonLat(0, 0), 0);
}
// -->
</script>
</head>
<body onload="init()">
<h1>OpenLayers Example</h1>
<div id="map"></div>
</body>
</html>