Skip to content

Instantly share code, notes, and snippets.

@kevinkraus92
Last active May 25, 2016 20:20
Show Gist options
  • Save kevinkraus92/6bde93e3a1d174e3249da37548d64475 to your computer and use it in GitHub Desktop.
Save kevinkraus92/6bde93e3a1d174e3249da37548d64475 to your computer and use it in GitHub Desktop.
var handler = Gmaps.build('Google');
handler.buildMap({ provider: {}, internal: {id: 'map'}}, function(){
markers = handler.addMarkers([
{
"lat": 0,
"lng": 0,
"picture": {
"url": "http://people.mozilla.com/~faaborg/files/shiretoko/firefoxIcon/firefox-32.png",
"width": 32,
"height": 32
},
"infowindow": "hello!"
}
]);
handler.bounds.extendWith(markers);
handler.fitMapToBounds();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment