<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -220,6 +220,19 @@ module Ym4r
         end
       end
       
+      # Simple GDirections support
+      def directions(div, dir_points)
+        @init &lt;&lt; &quot;dir_div = document.getElementById('#{div}');&quot;
+        @init &lt;&lt; &quot;directions = new GDirections(#{@variable}, dir_div);&quot;
+        @init &lt;&lt; &quot;dir_point_array = new Array;&quot;
+        dir_points.each do |d|    
+            @init &lt;&lt; &quot;dir_point_array.push('#{d}');&quot;
+        end
+        # Error Handling
+        @init &lt;&lt; &quot;GEvent.addListener(directions, 'error', handleErrors);&quot;
+        
+        @init &lt;&lt; &quot;directions.loadFromWaypoints(dir_point_array);&quot;
+      end
       #Outputs the initialization code for the map. By default, it outputs the script tags, performs the initialization in response to the onload event of the window and makes the map globally available. If you pass +true+ to the option key &lt;tt&gt;:full&lt;/tt&gt;, the map will be setup in full screen, in which case it is not necessary (but not harmful) to set a size for the map div.
       def to_html(options = {})
         no_load = options[:no_load]</diff>
      <filename>lib/gm_plugin/map.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>bbfc9bcfaf961b8253a70f20848a2ec45804517f</id>
    </parent>
  </parents>
  <author>
    <name>jsimpson</name>
    <email>jsimpson@M070502.local</email>
  </author>
  <url>http://github.com/queso/ym4r-gm/commit/77821351d5f5b0c536e5fbdf89a4c853162ffa96</url>
  <id>77821351d5f5b0c536e5fbdf89a4c853162ffa96</id>
  <committed-date>2008-04-21T13:07:47-07:00</committed-date>
  <authored-date>2008-04-21T13:07:47-07:00</authored-date>
  <message>Basic direction functionality added</message>
  <tree>823a6d586d8c12c07eecc2beb2e86bb1e923436f</tree>
  <committer>
    <name>jsimpson</name>
    <email>jsimpson@M070502.local</email>
  </committer>
</commit>
