1 <html xmlns="http://www.w3.org/1999/xhtml">
3 <title>OpenLayers Google with Overlay Example</title>
4 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
5 <link rel="stylesheet" href="style.css" type="text/css" />
6 <!-- this gmaps key generated for http://openlayers.org/dev/ -->
7 <script src='http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ'></script>
8 <script src="../lib/OpenLayers.js"></script>
9 <script type="text/javascript">
13 map = new OpenLayers.Map('map');
15 var satellite = new OpenLayers.Layer.Google(
16 "Google Satellite" , {type: G_SATELLITE_MAP}
19 var wms = new OpenLayers.Layer.WMS(
21 "http://world.freemap.in/cgi-bin/mapserv",
23 map: '/www/freemap.in/world/map/factbooktrans.map',
30 map.addLayers([satellite, wms]);
32 map.setCenter(new OpenLayers.LonLat(10.205188,48.857593), 5);
33 map.addControl( new OpenLayers.Control.LayerSwitcher() );
37 <body onload="init()">
38 <h1 id="title">Google with Overlay Example</h1>
43 Demonstrate a Google basemap used with boundary overlay layer.
46 <div id="map" class="smallmap"></div>
49 An overlay in a Geographic projection can be stretched to somewhat
50 line up with Google tiles (in a Mercator projection). Results get
51 worse farther from the equator. Use the "reproject" option on a
52 layer to get this behavior. Use the sphericalMercator option on
53 a Google layer to get proper overlays (with other layers in