There were actually a couple of problems with your source code.
- The
initialize()
function is created, but never called - The
$(document).ready
should be called after jQuery us loaded - The
map
should be a global variable (like @Cristiano Fontes said) and not avar map
- (Important) The
click
event is never called. You’re trying to combine the two methods Reveal from Zurb provides to open a dialog (one with JS, one with only HTML). You need to use the only JS method. - You’re using the wrong ID (
#myModal1
is never located in the HTML).
And now: Download the solution (Please provide us with a download/JSFiddle next time, so we don’t need to create this ourselves).
Hope it helped!