Created
February 10, 2012 20:31
-
-
Save jlstr/1792561 to your computer and use it in GitHub Desktop.
After opening FancyBox
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
$ -> | |
new FancyMap() | |
class FancyMap | |
constructor: -> | |
@openMap @afterOpened | |
openMap: (callback)-> | |
$('a[href=#fancybox-container]').fancybox | |
maxWidth: 500 | |
maxHeight: 550 | |
fitToView: true | |
autoSize: true | |
closeClick: false | |
openEffect: 'none' | |
closeEffect: 'none' | |
onComplete: callback() | |
afterOpened: -> | |
options = | |
center: new google.maps.LatLng(6.191556, -75.579716) | |
zoom: 14 | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
@map = new google.maps.Map $('#fancybox-container')[0], options | |
window.FancyMap = FancyMap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment