All pastes #483505 Raw Edit

Stuff

public text v1 · immutable
·published 2007-05-11 19:23 UTC
rendered paste body
<!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>Google Maps API Example - Geocoding API</title>
    <script src="http://maps.google.com/maps?file=api&amp;v=2.x&amp;key=ABQIAAAA0llBOGKH2i6qI0umE4kAihRWsVk4Vlmg7iEH3mqaRX_Tp4HpphTyy5yWdg_uV1Xcjeq2MvsccGQ4YQ" type="text/javascript"></script>
    <script type="text/javascript">
    //<![CDATA[

    var map = null;
    var geocoder = null;

	var address1="1600 Amphitheatre Pky, Mountain View, CA";
	var address2="177 greylock-pkwy belleville nj";
	var address3="120 greylock-pkwy belleville nj";	
	//var address3="1935 Hollywood Blvd.Hollywood, FL 33020 ";
	<?
//	$direccion=array('1600 Amphitheatre Pky, Mountain View, CA','177 greylock-pkwy belleville nj','1935 Hollywood Blvd.Hollywood, FL 33020');
	?>
	
   
	
    function load() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map"));
        geocoder = new GClientGeocoder();
	   // geocoder2 = new GClientGeocoder(); 
	  
    	
		if (geocoder) {
		
		
        geocoder.getLatLng(
         (address1),
          function(point) {          
               map.setCenter(point, 7);
			   var marker = new GMarker(point);
              map.addOverlay(marker);
              marker.openInfoWindowHtml(address1);           
          }

        );
	
				
			
	  }
	  
      }

    }


    //]]>
    </script>
  </head>

  <body onload="load()" onunload="GUnload()">
<!--    <form action="#" onsubmit="showAddress(this.address.value); return false">
      <p>
        <input type="text" size="60" name="address" value="1600 Amphitheatre Pky, Mountain View, CA" />
        <input type="submit" value="Go!" />
      </p>
     
    </form>
-->
 <div id="map" style="width: 500px; height: 300px"></div>
  </body>
</html>