title: Meteor/Autoform-maps/Google-maps package error?
body: <p>I am using both the yogiben:autoform-map and the dburles:google-maps packages in my application. It seems that they dont work well together. The code that uses dburles:google-maps works fine, but the autoform map is throwing this error:</p>
  
  <pre><code>Exception from Tracker afterFlush function:
  TypeError: undefined is not a function
  at t.afMap.rendered (d56467d85b9f586916cc49f2dba3c180bfed1ddc.js:210)
  at p (d56467d85b9f586916cc49f2dba3c180bfed1ddc.js:154)
  at a (d56467d85b9f586916cc49f2dba3c180bfed1ddc.js:154)
  at d56467d85b9f586916cc49f2dba3c180bfed1ddc.js:66
  at Function.e._withTemplateInstanceFunc (d56467d85b9f586916cc49f2dba3c180bfed1ddc.js:66)
  at n (d56467d85b9f586916cc49f2dba3c180bfed1ddc.js:66)
  at null.&lt;anonymous&gt; (d56467d85b9f586916cc49f2dba3c180bfed1ddc.js:66)
  at d56467d85b9f586916cc49f2dba3c180bfed1ddc.js:65
  at Object.c._withCurrentView (d56467d85b9f586916cc49f2dba3c180bfed1ddc.js:65)
  at d56467d85b9f586916cc49f2dba3c180bfed1ddc.js:65
  </code></pre>
  
  <p>My html:</p>
  
  <pre><code>    {{#autoForm class="add" id="add" collection="ServiceProviders" type="insert"}} 
      {{&gt; afQuickField name="businessname"}} 
      {{&gt; afQuickField name="officelocation"}}
      &lt;button type="submit" class="btn"&gt;Create!&lt;/button&gt;
      {{/autoForm}}
  </code></pre>
  
  <p>My collection:</p>
  
  <pre><code>officelocation: {
  type: String,
  label: 'Location of Office',
  autoform: {
    type: 'map',
    afFieldInput: {
      type: 'map',
      geolocation: true,
      searchBox: true,
      autolocate: true
    }
  } }
  </code></pre>
  
  <p>Also, this autoform was working perfectly fine till I added the dburles:google-maps package. It seems that "GoogleMaps" is not ready yet when this code is being called in autoform-map.coffee</p>
  
  <pre><code>    GoogleMaps.init { libraries: 'places' }, () =&gt;
      mapOptions =
          zoom: 0
          mapTypeId: google.maps.MapTypeId[@data.options.mapType]
          streetViewControl: false
  </code></pre>
  
  <p>This seems weird because I am already doing on meteor startup:</p>
  
  <pre><code>Meteor.startup(function() {
      if (GoogleMaps.loaded()?false:true) {
          GoogleMaps.load();
      }
  </code></pre>
  
  <p>});</p>