Help!  I am new to the Maps API world and am trying to figure out how
to visualize a .kml file in my Google Map.  The catch is that I can
only work from my local machine, so from what I have read the GGeoXml
functionality won't work since the reference to my .kml file will be
http://localhost/...kml and not a public URL that google has access
to.

I came across the GeoXML functionality from http://www.dyasdesigns.com/geoxml/.

Am I right in that you can use this geoxmlfull.js script instead of
the GGeoXml function?

I am having trouble getting anything to work from this geoxmlfull.js
script.  I have downloaded the script and placed it in my http://localhost
folder.  Below is the code I am using to try and visualize someone
else's .kml file.  I have also tried this code to visualize my own kml
file which also resides in the http://localhost folder.  Can anyone
help?  My goal is to be able to see the .kml file in the http://localhost
folder.  The key I got from google was for the http://localhost URL.

I am sorry about the code post, but I don't know how to share any more
efficiently.

Thank you!!!!

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

        <script src="geoxmlfull.js" type="text/javascript"></script>
  </head>


  <body onunload="GUnload()">
    <div id="map_canvas" style="width: 500px; height: 300px"></div>

        <script type="text/javascript">



        if (GBrowserIsCompatible()) {
                //<![CDATA[
                map = new GMap2(document.getElementById("map_canvas"),
{draggableCursor: 'crosshair', draggingCursor: 'move',
iconFromDescription:true});

                map.addControl(new GLargeMapControl());
                map.setCenter(new GLatLng(41.897332, -87.749474), 10);
                map.addControl(new GLargeMapControl());
                map.enableScrollWheelZoom();
                map.enableDoubleClickZoom();

                var path = ["http://mapgadgets.googlepages.com/cta.kml";];
                var exml = new GeoXml("exml", map, path);
                exml.parse();
                //]]>

      }
         </script>
  </body>
</html>

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