1 <html xmlns="http://www.w3.org/1999/xhtml">
3 <title>MultiMap SphericalMercator</title>
4 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
5 <link rel="stylesheet" href="style.css" type="text/css" />
6 <style type="text/css">
10 border: 1px solid gray;
15 <script type="text/javascript" src="http://clients.multimap.com/API/maps/1.1/metacarta_04"></script>
17 <script src="../lib/OpenLayers.js"></script>
18 <script type="text/javascript">
20 var map, ve, merc, vector;
24 projection: "EPSG:900913",
26 maxResolution: 156543.0339,
27 maxExtent: new OpenLayers.Bounds(-20037508, -20037508,
30 map = new OpenLayers.Map('map', options);
32 ve = new OpenLayers.Layer.MultiMap(
34 {'sphericalMercator': true}
36 merc = new OpenLayers.Layer.WMS("World Map",
37 "http://world.freemap.in/tiles/",
38 {'layers': 'factbook-overlay',
43 'wrapDateLine': true});
45 // create a vector layer for drawing
46 vector = new OpenLayers.Layer.Vector("Editable Vectors");
48 map.addLayers([ve, merc, vector]);
49 map.addControl(new OpenLayers.Control.LayerSwitcher());
50 map.addControl(new OpenLayers.Control.EditingToolbar(vector));
56 <body onload="init()">
57 <h3 id="title">MultiMap Mercator Example</h3>
59 This sphericalMercator example using multimap demonstrates that the
60 multimap layer does not fully support the sphericalMercator projection at
63 <div id="map" class="smallmap"></div>