I'm trying to get a map to appear in a modal but haven't worked out a solution yet.
I have a list of items and I would like a map with their locations to appear when I click a 'view map' button. I'm using Leaflet maps and Zurb Foundation, although I'm not sure if this affects the solution.
I can get this to sort of work if I include the map block in a the hidden modal div, but I would really only like the map to be loaded on request. (Also there seem to be map resizing issues when it is placed in a modal)
Another approach I tried was to register a path (of a views page) with hook_menu and then load this URL into the modal. This worked BUT included the site header & footer in the modal.
So I guess one solution is how to have just the unthemed views content attached to a path.
Any ideas?
Many thanks, Chris