Hello,

First post so hope your patient. Trying to test out my map/key/code on
localhost.

First tried with my key for domain name. Error telling me key
violation. Grabbed a key for "localhost" trying to test it out in
Aptana Cloud. Cannot get past key violation.

Have found a couple short explanations but nothing very in depth. Have
local XAMPP running and can see XAMPP test page successful under
http://localhost/xampp/.

Sure would like to get this test up and running some time today. I
have straight Eclipse that I can use so any info would be helpful.

I am using copied code from the google site:


<!DOCTYPE html "-//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 JavaScript API Example</title>
                <script src="http://maps.google.com/maps?
file=api&amp;v=2&amp;key=***************************************&sensor=true_or_false"
            type="text/javascript"></script>
                        <script type="text/javascript">

    function initialize() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
        map.setUIToDefault();
      }
    }

    </script>

</head>
    <!--caused error ("missing ; before statement")
        <body onload="initialize()" onunload="GUnload()">
        -->
        <body onload="initialize()" >
    <div id="map_canvas" style="width: 500px; height: 300px"></div>
  </body>

</html>

Thanks,
Terry

--~--~---------~--~----~------------~-------~--~----~
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