Fish in the Coals
Standard class, Tracker School.
Posted on Flickr 3:44 pm, April 9, 2010 jQuery(document).ready(function(){ var gmap_maf719b135698252b375b58eedfe7f3cd = { positions : { 693 : new google.maps.LatLng( ‘37.177141’, ‘-122.116744’ ) }, bounds : new google.maps.LatLngBounds(), // empty for now, we’ll dynamically extend it later map : new google.maps.Map( document.getElementById( ‘gmap_maf719b135698252b375b58eedfe7f3cd’ ), { 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_maf719b135698252b375b58eedfe7f3cd.positions ) { gmap_maf719b135698252b375b58eedfe7f3cd.bounds.extend( gmap_maf719b135698252b375b58eedfe7f3cd.positions[m] ); } // Render markers for ( var m in gmap_maf719b135698252b375b58eedfe7f3cd.positions ) { gmap_maf719b135698252b375b58eedfe7f3cd.markers[m] = new google.maps.Marker( { clickable: true, map : gmap_maf719b135698252b375b58eedfe7f3cd.map, position : gmap_maf719b135698252b375b58eedfe7f3cd.positions[m] } ); } // Redraw map to fit our new marker-based bounds gmap_maf719b135698252b375b58eedfe7f3cd.map.setCenter( gmap_maf719b135698252b375b58eedfe7f3cd.positions[693] ); });
