Jackolanterns!
Posted on Flickr 1:56 pm, October 24, 2010 jQuery(document).ready(function(){ var gmap_mb3bb0847ef1e33566e6cf5a84f9d744c = { positions : { 680 : new google.maps.LatLng( ‘37.795666’, ‘-122.425167’ ) }, bounds : new google.maps.LatLngBounds(), // empty for now, we’ll dynamically extend it later map : new google.maps.Map( document.getElementById( ‘gmap_mb3bb0847ef1e33566e6cf5a84f9d744c’ ), { 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_mb3bb0847ef1e33566e6cf5a84f9d744c.positions ) { gmap_mb3bb0847ef1e33566e6cf5a84f9d744c.bounds.extend( gmap_mb3bb0847ef1e33566e6cf5a84f9d744c.positions[m] ); } // Render markers for ( var m in gmap_mb3bb0847ef1e33566e6cf5a84f9d744c.positions ) { gmap_mb3bb0847ef1e33566e6cf5a84f9d744c.markers[m] = new google.maps.Marker( { clickable: true, map : gmap_mb3bb0847ef1e33566e6cf5a84f9d744c.map, position : gmap_mb3bb0847ef1e33566e6cf5a84f9d744c.positions[m] } ); } // Redraw map to fit our new marker-based bounds gmap_mb3bb0847ef1e33566e6cf5a84f9d744c.map.setCenter( gmap_mb3bb0847ef1e33566e6cf5a84f9d744c.positions[680] ); });
