Skip to content

Instantly share code, notes, and snippets.

@jasonwyatt
Created February 21, 2012 16:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save jasonwyatt/1877354 to your computer and use it in GitHub Desktop.
Save jasonwyatt/1877354 to your computer and use it in GitHub Desktop.
Google Maps RequireJS Module
(function(){
var callback = function(){},
callbackName = 'gmapscallback'+(new Date()).getTime();
window[callbackName] = callback;
define(['http://maps.googleapis.com/maps/api/js?sensor=true&callback=' + callbackName], function(){
return google.maps;
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment