Skip to content

Instantly share code, notes, and snippets.

@christian-bromann
Created April 12, 2013 15:35
Show Gist options
  • Save christian-bromann/5372928 to your computer and use it in GitHub Desktop.
Save christian-bromann/5372928 to your computer and use it in GitHub Desktop.
activate keyboard bindings after page load on Google Maps APIv2
new GKeyboardHandler(map);
var mapContainer = document.getElementById("map_canvas");
GEvent.trigger(document, "click", {srcElement: mapContainer, target: mapContainer, nodeType: 1});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment