1
<html xmlns="http://www.w3.org/1999/xhtml">
3
<style type="text/css">
7
border: 1px solid gray;
11
<script src='http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js'></script>
13
<script src="../../lib/OpenLayers.js"></script>
14
<script type="text/javascript">
16
// make map available for easy debugging
20
OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3;
21
OpenLayers.Util.onImageLoadErrorColor = "transparent";
25
projection: "EPSG:900913",
27
maxResolution: 156543.0339,
28
maxExtent: new OpenLayers.Bounds(-20037508, -20037508,
29
20037508, 20037508.34)
31
map = new OpenLayers.Map('map', options);
33
// create Virtual Earth layers
34
var veroad = new OpenLayers.Layer.VirtualEarth(
35
"Virtual Earth Raods",
36
{'type': VEMapStyle.Road, 'sphericalMercator': true}
40
var wms = new OpenLayers.Layer.WMS(
42
"http://world.freemap.in/tiles/",
43
{'layers': 'factbook-overlay', 'format':'png'},
46
'isBaseLayer': false,'wrapDateLine': true
50
map.addLayers([veroad, wms]);
57
<body onload="init()">
59
<p>The overlay should have an opacity of 40%.</p>