Me and Tim

Me and Tim

Me and Tim

Me and Tim

Posted on Flickr 10:47 am, October 29, 2011 jQuery(document).ready(function(){ var gmap_mae4e173d5e6aec6498c59ccf1c97a38b = { positions : { 250 : new google.maps.LatLng( ‘59.9605’, ‘10.666833’ ) }, bounds : new google.maps.LatLngBounds(), // empty for now, we’ll dynamically extend it later map : new google.maps.Map( document.getElementById( ‘gmap_mae4e173d5e6aec6498c59ccf1c97a38b’ ), { 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_mae4e173d5e6aec6498c59ccf1c97a38b.positions ) { gmap_mae4e173d5e6aec6498c59ccf1c97a38b.bounds.extend( gmap_mae4e173d5e6aec6498c59ccf1c97a38b.positions[m] ); } // Render markers for ( var m in gmap_mae4e173d5e6aec6498c59ccf1c97a38b.positions ) { gmap_mae4e173d5e6aec6498c59ccf1c97a38b.markers[m] = new google.maps.Marker( { clickable: true, map : gmap_mae4e173d5e6aec6498c59ccf1c97a38b.map, position : gmap_mae4e173d5e6aec6498c59ccf1c97a38b.positions[m] } ); } // Redraw map to fit our new marker-based bounds gmap_mae4e173d5e6aec6498c59ccf1c97a38b.map.setCenter( gmap_mae4e173d5e6aec6498c59ccf1c97a38b.positions[250] ); });