Last active
May 25, 2016 20:20
-
-
Save kevinkraus92/6bde93e3a1d174e3249da37548d64475 to your computer and use it in GitHub Desktop.
This file contains 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
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