Here's one method you could try ... keeping your existing iframe approach:
1. set all your GM url's to have another parameter on them, such as: &dmode=inline
ie: index.php?main_page=index&cPath=66&dmode=inline
2. edit your custom template's tpl_main_page.php file:
Find this section:
Code:
// the following IF statement can be duplicated/modified as needed to set additional flags
if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
$flag_disable_right = true;
}
Add this below it:
Code:
if (isset($_GET['dmode']) && $_GET['dmode'] == 'inline') {
$flag_disable_left = true;
$flag_disable_right = true;
$flag_disable_header = true;
$flag_disable_footer = true;
}
That'll cause only the links generated from the map to display without any header, footer, left, or right sidebox data.