Created
April 23, 2014 20:41
-
-
Save tmcw/11231664 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
markerLayer.on('click', function (e) { | |
var n = e.layer.feature.properties; | |
var content= '<div id="myContainer"></div>'; | |
e.layer.bindPopup(content, { | |
closeButton: true, | |
minWidth: 600 | |
}); | |
e.layer.openPopup(); | |
// The zoomify code will look for a div with the id myContainer | |
// to be on the page, so it needs to be present when this is called - | |
// so we call e.layer.openPopup(); | |
Z.showImage("myContainer", n.Image); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment