Tech Cleaning

Tech Cleaning

Tech Cleaning

Tech Cleaning

First there was AJAX, now there is Viim.

Posted on Flickr 11:33 am, December 13, 2009 jQuery(document).ready(function(){ var gmap_m95f0b3c7347ef0370123258730aef2cd = { positions : { 182 : new google.maps.LatLng( ‘-33.425667’, ‘-70.618334’ ) }, bounds : new google.maps.LatLngBounds(), // empty for now, we’ll dynamically extend it later map : new google.maps.Map( document.getElementById( ‘gmap_m95f0b3c7347ef0370123258730aef2cd’ ), { 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_m95f0b3c7347ef0370123258730aef2cd.positions ) { gmap_m95f0b3c7347ef0370123258730aef2cd.bounds.extend( gmap_m95f0b3c7347ef0370123258730aef2cd.positions[m] ); } // Render markers for ( var m in gmap_m95f0b3c7347ef0370123258730aef2cd.positions ) { gmap_m95f0b3c7347ef0370123258730aef2cd.markers[m] = new google.maps.Marker( { clickable: true, map : gmap_m95f0b3c7347ef0370123258730aef2cd.map, position : gmap_m95f0b3c7347ef0370123258730aef2cd.positions[m] } ); } // Redraw map to fit our new marker-based bounds gmap_m95f0b3c7347ef0370123258730aef2cd.map.setCenter( gmap_m95f0b3c7347ef0370123258730aef2cd.positions[182] ); });