Monkeys Ahoy!
Posted on Flickr 9:34 pm, December 28, 2006 jQuery(document).ready(function(){ var gmap_m9d459aa8531eae3ef80c4fc81eeaa2f0 = { positions : { 891 : new google.maps.LatLng( ‘8.095005’, ‘98.457927’ ) }, bounds : new google.maps.LatLngBounds(), // empty for now, we’ll dynamically extend it later map : new google.maps.Map( document.getElementById( ‘gmap_m9d459aa8531eae3ef80c4fc81eeaa2f0’ ), { 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_m9d459aa8531eae3ef80c4fc81eeaa2f0.positions ) { gmap_m9d459aa8531eae3ef80c4fc81eeaa2f0.bounds.extend( gmap_m9d459aa8531eae3ef80c4fc81eeaa2f0.positions[m] ); } // Render markers for ( var m in gmap_m9d459aa8531eae3ef80c4fc81eeaa2f0.positions ) { gmap_m9d459aa8531eae3ef80c4fc81eeaa2f0.markers[m] = new google.maps.Marker( { clickable: true, map : gmap_m9d459aa8531eae3ef80c4fc81eeaa2f0.map, position : gmap_m9d459aa8531eae3ef80c4fc81eeaa2f0.positions[m] } ); } // Redraw map to fit our new marker-based bounds gmap_m9d459aa8531eae3ef80c4fc81eeaa2f0.map.setCenter( gmap_m9d459aa8531eae3ef80c4fc81eeaa2f0.positions[891] ); });
