title: How to load google maps dependency with a function using require js shim?
body: <p>I have to load a JS file</p>
  
  <pre><code>requirejs([
  MyCode/mapview
      ],
      function   () {
  
  });
  </code></pre>
  
  <p>Now this depends on google maps 
  as I also do</p>
  
  <pre><code>require( ["http://maps.google.com/maps/api/js?v=3.2&amp;sensor=false"],
  function() {
                  var gm = document.createElement('script'); 
                  gm.type = 'text/javascript'; gm.async = true;
                  gm.src = document.location.protocol + "//maps.google.com/maps/api/js?v=3.2&amp;sensor=false";
                  var s = document.getElementsByTagName('script')[0]; 
                  s.parentNode.insertBefore(gm, s);
              }
   );
  </code></pre>
  
  <p>just before that in my reuqire js include file. I have used shim command to load other local JS dependencies, but I am confused as to how to assign this dependency (google maps, http accessed file) to my     MyCode/mapview.</p>
  
  <p>How should I do this in shim? and also run the function before I load mapview.js?</p>
  
  <pre><code>requirejs.config({
      shim: 
      {
          'MyCode/mapview': ['????'],         
      }
  });
  </code></pre>
  
  <p>I know of the dependency as I get this error, which is a google maps type
  Uncaught TypeError: Cannot read property 'HYBRID' of undefined </p>