Skip to content

Instantly share code, notes, and snippets.

View signed0's full-sized avatar

Nathan Villaescusa signed0

View GitHub Profile
@jasonwyatt
jasonwyatt / googlemaps.js
Created February 21, 2012 16:55
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;
});
})();