Hello,
I'm trying to get the directions created by my info bubble to display
in a custom sidebar beneath the map it self. I've looked at Mike's
tutorial at http://econym.org.uk/gmap/directions.htm and the help
given to a poster here:
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/86d152053aadc649/d641097481c36214?hl=en&lnk=gst&q=sidebar+with+directions+in+page#d641097481c36214
and I'm more confused now than when I started. Essentially, I just
want what the second guy has here: http://riochurch.com/maptest.html

The problem is that since my Java skills are at whatever comes before
novice, I don't know which parts of the code to pull or how to adapt
them to my needs. My map code is below, everything else is exactly how
I want it, I just need the directions results to show up underneath.
Thank you in advance for your time and effort.

- Erik



<script src="http://maps.google.com/maps?
file=api&v=1&key=ABQIAAAAgCNofnQyYJBK07n1VtBf9xTt1tW6zRC65NJAQPcgsPBJc0i9SRRDGhoMhDE0k6Aovlb_-
nua9321JA" type="text/javascript"></script>

  <body>



    <div id="crestline" style="width: 467px; height: 410px"></div>
    <script type="text/javascript">
    //<![CDATA[

var map1 = new GMap(document.getElementById("crestline"));
    map1.addControl(new GSmallMapControl());
    map1.centerAndZoom(new GPoint(-117.260538, 34.250333), 3);
var point = new GPoint(-117.260538, 34.250333);
var DIRECTION_CONTENT =
                   '<form action="http://maps.google.com/maps"; method="get"
target="_blank">' +
                   '<b>Get Directions to Shiloh of Crestline</b><br />' +
                   '<span class="descriptor">Start address:</span><br />' +
                   '<input type="text" SIZE=40 MAXLENGTH=40 name="saddr" 
id="saddr"
value="Street, City, State, Zip" class=descriptor' +
                   '  onFocus="this.value=\'\';" /><br>' +
           '<INPUT value="Get Directions" TYPE="SUBMIT"
class=descriptor>' +
           '<input type="hidden" name="daddr" value="34.250333,
-117.260538"/></form>';

                // Our info window content
                var infoTabs = [
                  new GInfoWindowTab("Directions", DIRECTION_CONTENT)
                ];

                // Place a marker in the center of the map and open the info 
window
                // automatically
                var marker = new GMarker(map1.getCenter());
                GEvent.addListener(marker, "click", function() {
                  marker.openInfoWindowTabsHtml(infoTabs);
                });
                map1.addOverlay(marker);
                marker.openInfoWindowTabsHtml(infoTabs);


    //]]>
    </script>
--~--~---------~--~----~------------~-------~--~----~
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