> No. You need to get the right key for the domain, and include it in > the API's <script> tag. There is no provision for including a key > anywhere else.
Is it this API's <script> tag? ⇒<script src="http://maps.google.com/maps? file=api&v=2&sensor=true&key=2Ase-AXde" type="text/ javascript"></script> It arranges to a WEB site, and it will become an error if it changes from a menu. ※If local, an error will not occur. Source is attached. ■menu.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http:// www.w3.org/TR/html4/loose.dtd"> <html lang="ja"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>SAMPLE</title> </head> <body> <a href="./map.html">Access.</a> </body> </html> ■map.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http:// www.w3.org/TR/html4/loose.dtd"> <html lang="ja"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript"> function initialize(latitude, longitude) { if (GBrowserIsCompatible()) { var point = new GLatLng(latitude, longitude); var map = new GMap2(document.getElementById("map.canvas")); map.addControl(new GSmallMapControl()); map.addControl(new GMapTypeControl()); map.addControl(new GOverviewMapControl()); map.addControl(new GScaleControl()); map.setCenter((point), 13); var marker = new GMarker(point); map.addOverlay(marker); var geocoder = new GClientGeocoder(); geocoder.getLocations(point, function(addresses) { if(addresses.Status.code != 200) { alert("reverse geocoder failed to find an address for " + point.toUrlValue() + "("+ addresses.Status.code +")"); } else { var place = addresses.Placemark[0]; document.getElementById("lastupdate.positionaddress").value = place.address; } }); } } </script> <title>SAMPLE</title> </head> <body> <form name="terminalLocationActionForm" method="post" action="/ kodama_adm/terminalLocation/"> <div class="location"> Address : <input type="text" id="lastupdate.positionaddress" size="50" /> <div id="map.canvas" style="width: 755px; height: 500px"/></div> </div> </form> </body> </html> <script src="http://maps.google.com/maps? file=api&v=2&sensor=true&key=2Ase-AXde" type="text/ javascript"></script> <script type="text/javascript"> <!-- initialize(35.64190977,139.74142059); --> </script> -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
