This sounds like something @hugobaeta would be into.
Posted on Instagram 4:07 pm, April 30, 2014 jQuery(document).ready(function(){ var gmap_m2c415722d8703ac1aec8fc5b001e8dcc = { positions : { 89 : new google.maps.LatLng( ‘53.34318’, ‘-6.263625’ ) }, bounds : new google.maps.LatLngBounds(), // empty for now, we’ll dynamically extend it later map : new google.maps.Map( document.getElementById( ‘gmap_m2c415722d8703ac1aec8fc5b001e8dcc’ ), { mapTypeId: google.maps.MapTypeId.ROADMAP, center: new google.maps.LatLng( 0, 0 ), zoom: 16 // Seems to be a good zoom for a single point } ), markers : {}, }; // end of gmap // Extend the bounds of interest based on our positions for ( var m in gmap_m2c415722d8703ac1aec8fc5b001e8dcc.positions ) { gmap_m2c415722d8703ac1aec8fc5b001e8dcc.bounds.extend( gmap_m2c415722d8703ac1aec8fc5b001e8dcc.positions[m] ); } // Render markers for ( var m in gmap_m2c415722d8703ac1aec8fc5b001e8dcc.positions ) { gmap_m2c415722d8703ac1aec8fc5b001e8dcc.markers[m] = new google.maps.Marker( { clickable: true, map : gmap_m2c415722d8703ac1aec8fc5b001e8dcc.map, position : gmap_m2c415722d8703ac1aec8fc5b001e8dcc.positions[m] } ); } // Redraw map to fit our new marker-based bounds gmap_m2c415722d8703ac1aec8fc5b001e8dcc.map.setCenter( gmap_m2c415722d8703ac1aec8fc5b001e8dcc.positions[89] ); });
