説明
		
			
			
		
マップをマルチウィンドウで表示するには以下のPrototype Window Classライブラリを利用します。
続きは書籍で、どうぞ...
				 
			
				
				
		<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
		<html xmlns="http://www.w3.org/1999/xhtml">
		<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
		<title>Sample</title>
		<link href="css/default.css" rel="stylesheet" type="text/css" >
		<script type="text/javascript" src="js/prototype.js"> </script> 
		<script type="text/javascript" src="js/effects.js"> </script>
		<script type="text/javascript" src="js/window.js"> </script>
		<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAasAJryKxWJnBFVJa487d9hTHGAxTVT7IRADYa-JdYz7xQ8IQZBSthgDZdggYpQHsmm6WYtHstQFfLA" type="text/javascript"></script>
		<script type="text/javascript">
		//<![CDATA[
		 window.onload = function() {
		  newGMapWindow("gMap1", "gmapArea1", 10, 20);
		  newGMapWindow("gMap2", "gmapArea2", 200, 200);
		 }
		 function newGMapWindow(id, mapID, x, y) {
		  var win = new Window(id, {
		   className: "dialog",
		   title: "地図", 
		   width:500,
		   height:400,
		   top:y,
		   left:x,
		   zIndex: 10,
		   resizable: true,
		   draggable:true });
		  win.show();
		  map = new GMap2(document.getElementById(mapID));
		  map.setCenter(new GLatLng(37, 138), 6);
		  map.addControl(new GLargeMapControl());
		  map.addControl(new GMapTypeControl());
		  win.getContent().appendChild(document.getElementById(mapID));
		 }
		//]]>
		</script>
		</head>
		<body>
		<div style="width:500px;height:400px;">
		<div id="gmapArea1" style="width:100%;height:100%"></div>
		</div>
		<div style="width:500px;height:400px;">
		<div id="gmapArea2" style="width:100%;height:100%"></div>
		</div>
		</body>
		</html>