OK, I was busy but later had time to try that myself, it didn't really work. Here's a working demo. It will work with either the old links or the new, but if using the new style links you must provide both the href and the data-larger attribute* as shown:
Code:
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="googlemapselector.css" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
jQuery(function($){
var $lis = $('.location li'), $largermap = $('.largermap'), $mapframe = $('iframe[name="mapiframe1"]');
$('.location a[href*="maps"]').click(function(e){
$lis.removeClass('selected');
$mapframe.attr('src', this.href + '&output=embed');
$largermap.attr('href', /\/embed/.test(this.href)? $(this).data('larger') || 'http://maps.google.com' : this.href);
$(this).parent('li').addClass('selected');
e.preventDefault();
}).each(function(i, a){
if($(a).parent('li').hasClass('selected')){
return $(a).trigger('click');
}
});
});
</script>
</head>
<body>
<div id="mapcontainer">
<div id="addrcolumn">
<ul class="location">
<li class="selected"><a href="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d6658.173603480328!2d-83.206179!3d33.447045!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x88f6f26505fcbb81%3A0x374f1c7e6dd9fcfb!2s1020+Lake+Club+Dr%2C+Greensboro%2C+GA+30642!5e0!3m2!1sen!2sus!4v1488224891263" data-larger="https://goo.gl/maps/YRn5Cf83xg22">Reynolds Lake Oconee Tennis Courts</a><br />
</li>
<li><a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=CN+Tower,+Toronto,+Ontario,+Canada&sll=48.858842,2.294362&sspn=0.009402,0.027874&ie=UTF8&hq=CN+tower&hnear=CN+Tower,+Toronto,+Toronto+Division,+Ontario,+Canada&ll=43.642364,-79.38695&spn=0.01073,0.027874&z=16&iwloc=A">CN Tower</a><br />
</li>
<li><a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Big+Ben,+Bridge+Street,+London,+United+Kingdom&sll=27.173491,78.042068&sspn=0.025427,0.055747&ie=UTF8&hq=Big+Ben&hnear=Big+Ben,+Bridge+St,+Westminster,+London+SW1A+2,+United+Kingdom&ll=51.507888,-0.131664&spn=0.017789,0.055747&z=15&iwloc=A">Big Ben, London</a><br />
</li>
<li><a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=The+Leaning+Tower+of+Pisa&sll=40.771117,-73.974166&sspn=0.021646,0.055747&ie=UTF8&hq=&hnear=Leaning+Tower+of+Pisa,+Campo+dei+Miracoli+o+Piazza+del+Duomo,+Piazza+dei+Miracoli,+56100+Pisa,+Toscana,+Italy&ll=43.722669,10.3968&spn=0.010716,0.027874&z=16">The Leaning Tower of Pisa</a><br />
</li>
</ul>
</div>
<div id="mapcolumn">
<iframe name="mapiframe1" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com?output=embed"></iframe>
<br />+ <a href="http://maps.google.com" class="largermap"">View Larger Map</a>
</div>
</div>
</body>
</html>
NOTES: It still uses the googlemapselector.css but not the googlemapselector.js - do not include that js file. *if using the current link style of Google Maps, you must give the link the href attribute that is the src attribute of the "embed map" iframe and give it a data-larger attribute of the "share link" link. For that you can use the "short url". The on page script may be made external.
Any questions or problems, just let me know.
Bookmarks