Wax plugin for markers with Modest Maps. Click anywhere.
Fork to improve or use the little script here.
wax.mm.modal(map, template, options);
The code that renders the map and provides the modal link looks like this.
var mm = com.modestmaps;
var url = 'http://api.tiles.mapbox.com/v3/yhahn.mapbox-streets-dev.jsonp';
wax.tilejson(url, function(tilejson) {
m = new mm.Map('map',
new wax.mm.connector(tilejson), null, [
new mm.MouseHandler(),
new mm.TouchHandler()
]
);
var form = document.getElementById('modal-content').innerHTML;
wax.mm.modal(m, form, {
linkTitle: 'Click me'
}).appendTo(m.parent);
m.setCenterZoom(new mm.Location(43.64828710639889,-79.44826701562498), 16);
});