Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created April 23, 2014 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmcw/11231664 to your computer and use it in GitHub Desktop.
Save tmcw/11231664 to your computer and use it in GitHub Desktop.
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