Hi Guys, this is my script in asp to have some maps:

        <%
        Company = request.QueryString("Company")
        session("Company")=compagnia
        Address= request.QueryString("Address")
        session("Address")=indirizzo
        PostCode= request.QueryString("PostCode")
        session("PostCode")=cap
        City= request.QueryString("City")
        session("City")=citta
        Stato= request.QueryString("State")
        session("State")=stato
        Country= request.QueryString("Country")
        session("Country")=Country

        %>
   <title>Where is <%=Company%>?</title>
    <script src="http://maps.google.com/maps?file=api&v=2.x&key=MYKEY";
type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
var map = null;
var geocoder = null;

function load() {
  if (GBrowserIsCompatible()) {
    map = new GMap2(document.getElementById("map"));
    map.addControl(new GSmallMapControl());
    map.addControl(new GMapTypeControl());
    map.setCenter(new GLatLng(0, 0), 20);
    geocoder = new GClientGeocoder();
  }

}

function showAddress(address) {
  if (geocoder) {
    geocoder.getLatLng(
      address,
      function(point) {
        map.setCenter(point, 16);
        var marker = new GMarker(point);
        map.addOverlay(marker);
        marker.openInfoWindowHtml('<b><%=Company%></b><br><%=Address%>
- <%=PostCode%> -  <%=City%><br><%=Stato%> - <%=Country%> ');
      }
    );
  }
}
//]]>
</script>

 </head>
  <body onload="load();showAddress('<%=Address%>&nbsp;<%=PostCode
%>&nbsp;<%=City%>&nbsp;<%=Stato%>&nbsp;<%=Country%>');"
onunload="GUnload()">
  <div id="map" style="width: 500px; height: 500px"></div>

how can you see I use Geocoder method ....

I need to integrate my script with Street view, how can I do that?
Thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to