Created
February 21, 2012 16:55
-
-
Save jasonwyatt/1877354 to your computer and use it in GitHub Desktop.
Google Maps RequireJS Module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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