Simple Search Operators

I’ve long wanted to be able to do some simple, operated-powered searches within WordPress (especially relevant in a project I’m working on at Automattic). After a conversation with Allen, where he wanted to do the same thing, I figured I’d just whip up a quick plugin to see how hard it’d be. Turns out the answer is “not very”.

Simple Search Operators is a quick plugin that expands the functionality of the default search system in WordPress so that you can use a few useful operators (might look at adding some more at some point) [all links in the following list go to live searches on this site, using that operator]:

(more…)

WordCamp Saratoga

Through some lucky scheduling, I was able to attend both LevelUp Con and WordCamp Saratoga in a single trip. I spoke at WordCamp about how to build a quick Backbone.js application which used WordPress as the backend (interfacing via the REST API). I thought my talk went OK, although I didn’t love it to be honest, and in hindsight I kind of wish I’d dived a bit harder into some better examples of how Backbone works with Views and whatnot. Here are the slides I used:

(more…)

LevelUp Con

logo-lg

Last week, I attended the first ever LevelUp Con (which WordPress.com sponsored) in Saratoga Springs, New York. I was really impressed with the event, which was organized by the crew at Mad Glory to help draw attention to upstate New York’s tech scene, and to expand people’s horizons and help them cross-train a bit.

Apart from the wonderful people, beautiful setting (upstate NY is ridiculously gorgeous at this time of year) and smoothly-operated event logistics, there were a few really good talks that made the 2-day event click for me.

(more…)

My new @stranahans hat is the business! Thanks @akires :D

My new @stranahans hat is the business! Thanks @akires :D

Posted on Instagram 5:19 pm, October 13, 2014 jQuery(document).ready(function(){ var gmap_m7c673d9ee3591c51635211d419198b12 = { positions : { 908 : new google.maps.LatLng( ‘39.735583333’, ‘-104.97867’ ) }, bounds : new google.maps.LatLngBounds(), // empty for now, we’ll dynamically extend it later map : new google.maps.Map( document.getElementById( ‘gmap_m7c673d9ee3591c51635211d419198b12’ ), { 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_m7c673d9ee3591c51635211d419198b12.positions ) { gmap_m7c673d9ee3591c51635211d419198b12.bounds.extend( gmap_m7c673d9ee3591c51635211d419198b12.positions[m] ); } // Render markers for ( var m in gmap_m7c673d9ee3591c51635211d419198b12.positions ) { gmap_m7c673d9ee3591c51635211d419198b12.markers[m] = new google.maps.Marker( { clickable: true, map : gmap_m7c673d9ee3591c51635211d419198b12.map, position : gmap_m7c673d9ee3591c51635211d419198b12.positions[m] } ); } // Redraw map to fit our new marker-based bounds gmap_m7c673d9ee3591c51635211d419198b12.map.setCenter( gmap_m7c673d9ee3591c51635211d419198b12.positions[908] ); });

Posted on Instagram

Posted on Instagram 8:35 pm, October 10, 2014 jQuery(document).ready(function(){ var gmap_m4a3d6c36506ea1ab2a222e1f325851eb = { positions : { 589 : new google.maps.LatLng( ‘43.082350232’, ‘-73.784184905’ ) }, bounds : new google.maps.LatLngBounds(), // empty for now, we’ll dynamically extend it later map : new google.maps.Map( document.getElementById( ‘gmap_m4a3d6c36506ea1ab2a222e1f325851eb’ ), { 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_m4a3d6c36506ea1ab2a222e1f325851eb.positions ) { gmap_m4a3d6c36506ea1ab2a222e1f325851eb.bounds.extend( gmap_m4a3d6c36506ea1ab2a222e1f325851eb.positions[m] ); } // Render markers for ( var m in gmap_m4a3d6c36506ea1ab2a222e1f325851eb.positions ) { gmap_m4a3d6c36506ea1ab2a222e1f325851eb.markers[m] = new google.maps.Marker( { clickable: true, map : gmap_m4a3d6c36506ea1ab2a222e1f325851eb.map, position : gmap_m4a3d6c36506ea1ab2a222e1f325851eb.positions[m] } ); } // Redraw map to fit our new marker-based bounds gmap_m4a3d6c36506ea1ab2a222e1f325851eb.map.setCenter( gmap_m4a3d6c36506ea1ab2a222e1f325851eb.positions[589] ); });

Fishing on the Batten Kill with @blowrey

Fishing on the Batten Kill with @blowrey

Posted on Instagram 7:46 pm, October 10, 2014 jQuery(document).ready(function(){ var gmap_m139df10c16e7eae6e59b1ca24ac76c1c = { positions : { 254 : new google.maps.LatLng( ‘43.087558333’, ‘-73.345536667’ ) }, bounds : new google.maps.LatLngBounds(), // empty for now, we’ll dynamically extend it later map : new google.maps.Map( document.getElementById( ‘gmap_m139df10c16e7eae6e59b1ca24ac76c1c’ ), { 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_m139df10c16e7eae6e59b1ca24ac76c1c.positions ) { gmap_m139df10c16e7eae6e59b1ca24ac76c1c.bounds.extend( gmap_m139df10c16e7eae6e59b1ca24ac76c1c.positions[m] ); } // Render markers for ( var m in gmap_m139df10c16e7eae6e59b1ca24ac76c1c.positions ) { gmap_m139df10c16e7eae6e59b1ca24ac76c1c.markers[m] = new google.maps.Marker( { clickable: true, map : gmap_m139df10c16e7eae6e59b1ca24ac76c1c.map, position : gmap_m139df10c16e7eae6e59b1ca24ac76c1c.positions[m] } ); } // Redraw map to fit our new marker-based bounds gmap_m139df10c16e7eae6e59b1ca24ac76c1c.map.setCenter( gmap_m139df10c16e7eae6e59b1ca24ac76c1c.positions[254] ); });

Automattic Grand Meetup, 2014

Photo by Luca Sartoni

Once a year, all of Automattic gets together in one place for a full week of face-to-face work, learning, food and fun. We fly in from all around the world, shuttle to a hotel/resort/space of some sort, and then get together to work through a bunch of things. This year we descended upon Canyons Resort in Park City, Utah (another US state crossed off my list!). The week was roughly structured into a front-loaded, work-type-things section, and a tail end more loaded with activities. For my part, I:

(more…)

Phantogram Blew My Mind

Phantogram_in_2010

I just got back from seeing Phantogram play at the Ogden Theater here in Denver, CO, and they blew my mind. It was definitely one of the stand out shows that I’ve seen recently, which was extra impressive for a Monday night, at a venue I can walk to from my apartment, for $25.

Their set was super tight, and flowed really well. Instruments were switching constantly, and the four of them wove guitar, drums, keys, bass and samples together flawlessly. The two core members, Josh and Sarah, switched vocals every few tracks to provide a balance and variety that kept things interesting, while one of the best-executed light shows I’ve seen played on around them. Their stage presence was dramatic, powerful and engaging, when it wasn’t intimate and personal, depending on the track.

(more…)

Elk are not small animals.

Elk are not small animals.

Posted on Instagram 12:14 am, September 28, 2014 jQuery(document).ready(function(){ var gmap_m6037afb5eb19373a58246a2d78b3b960 = { positions : { 912 : new google.maps.LatLng( ‘40.366461229’, ‘-105.560970449’ ) }, bounds : new google.maps.LatLngBounds(), // empty for now, we’ll dynamically extend it later map : new google.maps.Map( document.getElementById( ‘gmap_m6037afb5eb19373a58246a2d78b3b960’ ), { 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_m6037afb5eb19373a58246a2d78b3b960.positions ) { gmap_m6037afb5eb19373a58246a2d78b3b960.bounds.extend( gmap_m6037afb5eb19373a58246a2d78b3b960.positions[m] ); } // Render markers for ( var m in gmap_m6037afb5eb19373a58246a2d78b3b960.positions ) { gmap_m6037afb5eb19373a58246a2d78b3b960.markers[m] = new google.maps.Marker( { clickable: true, map : gmap_m6037afb5eb19373a58246a2d78b3b960.map, position : gmap_m6037afb5eb19373a58246a2d78b3b960.positions[m] } ); } // Redraw map to fit our new marker-based bounds gmap_m6037afb5eb19373a58246a2d78b3b960.map.setCenter( gmap_m6037afb5eb19373a58246a2d78b3b960.positions[912] ); });

You’re pretty, CO.

You’re pretty, CO.

Posted on Instagram 12:12 am, September 28, 2014 jQuery(document).ready(function(){ var gmap_m912da56a54780ca541c92f5874e24894 = { positions : { 231 : new google.maps.LatLng( ‘40.441003729’, ‘-105.754434474’ ) }, bounds : new google.maps.LatLngBounds(), // empty for now, we’ll dynamically extend it later map : new google.maps.Map( document.getElementById( ‘gmap_m912da56a54780ca541c92f5874e24894’ ), { 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_m912da56a54780ca541c92f5874e24894.positions ) { gmap_m912da56a54780ca541c92f5874e24894.bounds.extend( gmap_m912da56a54780ca541c92f5874e24894.positions[m] ); } // Render markers for ( var m in gmap_m912da56a54780ca541c92f5874e24894.positions ) { gmap_m912da56a54780ca541c92f5874e24894.markers[m] = new google.maps.Marker( { clickable: true, map : gmap_m912da56a54780ca541c92f5874e24894.map, position : gmap_m912da56a54780ca541c92f5874e24894.positions[m] } ); } // Redraw map to fit our new marker-based bounds gmap_m912da56a54780ca541c92f5874e24894.map.setCenter( gmap_m912da56a54780ca541c92f5874e24894.positions[231] ); });

#burritofriday #redrocks #selfie!

#burritofriday #redrocks #selfie!

Posted on Instagram 6:21 pm, September 26, 2014 jQuery(document).ready(function(){ var gmap_macf015cba50d32f1b8c4be53d0cc7597 = { positions : { 899 : new google.maps.LatLng( ‘39.665590501’, ‘-105.20567503’ ) }, bounds : new google.maps.LatLngBounds(), // empty for now, we’ll dynamically extend it later map : new google.maps.Map( document.getElementById( ‘gmap_macf015cba50d32f1b8c4be53d0cc7597’ ), { 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_macf015cba50d32f1b8c4be53d0cc7597.positions ) { gmap_macf015cba50d32f1b8c4be53d0cc7597.bounds.extend( gmap_macf015cba50d32f1b8c4be53d0cc7597.positions[m] ); } // Render markers for ( var m in gmap_macf015cba50d32f1b8c4be53d0cc7597.positions ) { gmap_macf015cba50d32f1b8c4be53d0cc7597.markers[m] = new google.maps.Marker( { clickable: true, map : gmap_macf015cba50d32f1b8c4be53d0cc7597.map, position : gmap_macf015cba50d32f1b8c4be53d0cc7597.positions[m] } ); } // Redraw map to fit our new marker-based bounds gmap_macf015cba50d32f1b8c4be53d0cc7597.map.setCenter( gmap_macf015cba50d32f1b8c4be53d0cc7597.positions[899] ); });

13th and Grant.

13th and Grant.

Posted on Instagram 6:54 pm, September 25, 2014 jQuery(document).ready(function(){ var gmap_m5e0008ada91f37d7f2eeade40a2e5a40 = { positions : { 902 : new google.maps.LatLng( ‘39.736678333’, ‘-104.983933333’ ) }, bounds : new google.maps.LatLngBounds(), // empty for now, we’ll dynamically extend it later map : new google.maps.Map( document.getElementById( ‘gmap_m5e0008ada91f37d7f2eeade40a2e5a40’ ), { 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_m5e0008ada91f37d7f2eeade40a2e5a40.positions ) { gmap_m5e0008ada91f37d7f2eeade40a2e5a40.bounds.extend( gmap_m5e0008ada91f37d7f2eeade40a2e5a40.positions[m] ); } // Render markers for ( var m in gmap_m5e0008ada91f37d7f2eeade40a2e5a40.positions ) { gmap_m5e0008ada91f37d7f2eeade40a2e5a40.markers[m] = new google.maps.Marker( { clickable: true, map : gmap_m5e0008ada91f37d7f2eeade40a2e5a40.map, position : gmap_m5e0008ada91f37d7f2eeade40a2e5a40.positions[m] } ); } // Redraw map to fit our new marker-based bounds gmap_m5e0008ada91f37d7f2eeade40a2e5a40.map.setCenter( gmap_m5e0008ada91f37d7f2eeade40a2e5a40.positions[902] ); });

Gondola

Gondola

Posted on Instagram 5:40 pm, September 24, 2014 jQuery(document).ready(function(){ var gmap_mb4d85b5dc5c6817aa2fe553e646b3997 = { positions : { 250 : new google.maps.LatLng( ‘40.686056739’, ‘-111.561702451’ ) }, bounds : new google.maps.LatLngBounds(), // empty for now, we’ll dynamically extend it later map : new google.maps.Map( document.getElementById( ‘gmap_mb4d85b5dc5c6817aa2fe553e646b3997’ ), { 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_mb4d85b5dc5c6817aa2fe553e646b3997.positions ) { gmap_mb4d85b5dc5c6817aa2fe553e646b3997.bounds.extend( gmap_mb4d85b5dc5c6817aa2fe553e646b3997.positions[m] ); } // Render markers for ( var m in gmap_mb4d85b5dc5c6817aa2fe553e646b3997.positions ) { gmap_mb4d85b5dc5c6817aa2fe553e646b3997.markers[m] = new google.maps.Marker( { clickable: true, map : gmap_mb4d85b5dc5c6817aa2fe553e646b3997.map, position : gmap_mb4d85b5dc5c6817aa2fe553e646b3997.positions[m] } ); } // Redraw map to fit our new marker-based bounds gmap_mb4d85b5dc5c6817aa2fe553e646b3997.map.setCenter( gmap_mb4d85b5dc5c6817aa2fe553e646b3997.positions[250] ); });

Hiking #hyperlapse in Utah.

Hiking #hyperlapse in Utah.

Posted on Instagram 9:34 pm, September 20, 2014 jQuery(document).ready(function(){ var gmap_m12cf89b22351e8da39fbe1a33833be61 = { positions : { 788 : new google.maps.LatLng( ‘40.685043627’, ‘-111.55658947’ ) }, bounds : new google.maps.LatLngBounds(), // empty for now, we’ll dynamically extend it later map : new google.maps.Map( document.getElementById( ‘gmap_m12cf89b22351e8da39fbe1a33833be61’ ), { 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_m12cf89b22351e8da39fbe1a33833be61.positions ) { gmap_m12cf89b22351e8da39fbe1a33833be61.bounds.extend( gmap_m12cf89b22351e8da39fbe1a33833be61.positions[m] ); } // Render markers for ( var m in gmap_m12cf89b22351e8da39fbe1a33833be61.positions ) { gmap_m12cf89b22351e8da39fbe1a33833be61.markers[m] = new google.maps.Marker( { clickable: true, map : gmap_m12cf89b22351e8da39fbe1a33833be61.map, position : gmap_m12cf89b22351e8da39fbe1a33833be61.positions[m] } ); } // Redraw map to fit our new marker-based bounds gmap_m12cf89b22351e8da39fbe1a33833be61.map.setCenter( gmap_m12cf89b22351e8da39fbe1a33833be61.positions[788] ); });

Silverado Tablemates! #a8cgm

Silverado Tablemates! #a8cgm

Posted on Instagram 7:48 pm, September 17, 2014 jQuery(document).ready(function(){ var gmap_macb62596c27a7ebccd1f0f34b050ae76 = { positions : { 77 : new google.maps.LatLng( ‘40.685043627’, ‘-111.55658947’ ) }, bounds : new google.maps.LatLngBounds(), // empty for now, we’ll dynamically extend it later map : new google.maps.Map( document.getElementById( ‘gmap_macb62596c27a7ebccd1f0f34b050ae76’ ), { 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_macb62596c27a7ebccd1f0f34b050ae76.positions ) { gmap_macb62596c27a7ebccd1f0f34b050ae76.bounds.extend( gmap_macb62596c27a7ebccd1f0f34b050ae76.positions[m] ); } // Render markers for ( var m in gmap_macb62596c27a7ebccd1f0f34b050ae76.positions ) { gmap_macb62596c27a7ebccd1f0f34b050ae76.markers[m] = new google.maps.Marker( { clickable: true, map : gmap_macb62596c27a7ebccd1f0f34b050ae76.map, position : gmap_macb62596c27a7ebccd1f0f34b050ae76.positions[m] } ); } // Redraw map to fit our new marker-based bounds gmap_macb62596c27a7ebccd1f0f34b050ae76.map.setCenter( gmap_macb62596c27a7ebccd1f0f34b050ae76.positions[77] ); });

OMG Cain & Obenland! #a8cgm

OMG Cain & Obenland! #a8cgm

Posted on Instagram 2:08 am, September 17, 2014 jQuery(document).ready(function(){ var gmap_mf485e4374a8a91ef24999b4e5ef3fcaf = { positions : { 42 : new google.maps.LatLng( ‘40.68595’, ‘-111.556328333’ ) }, bounds : new google.maps.LatLngBounds(), // empty for now, we’ll dynamically extend it later map : new google.maps.Map( document.getElementById( ‘gmap_mf485e4374a8a91ef24999b4e5ef3fcaf’ ), { 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_mf485e4374a8a91ef24999b4e5ef3fcaf.positions ) { gmap_mf485e4374a8a91ef24999b4e5ef3fcaf.bounds.extend( gmap_mf485e4374a8a91ef24999b4e5ef3fcaf.positions[m] ); } // Render markers for ( var m in gmap_mf485e4374a8a91ef24999b4e5ef3fcaf.positions ) { gmap_mf485e4374a8a91ef24999b4e5ef3fcaf.markers[m] = new google.maps.Marker( { clickable: true, map : gmap_mf485e4374a8a91ef24999b4e5ef3fcaf.map, position : gmap_mf485e4374a8a91ef24999b4e5ef3fcaf.positions[m] } ); } // Redraw map to fit our new marker-based bounds gmap_mf485e4374a8a91ef24999b4e5ef3fcaf.map.setCenter( gmap_mf485e4374a8a91ef24999b4e5ef3fcaf.positions[42] ); });

#a8cgm learning Node and code name Calypso.

#a8cgm learning Node and code name Calypso.

Posted on Instagram 12:15 pm, September 16, 2014 jQuery(document).ready(function(){ var gmap_m86cfc53115bf7fdd537a168ace3dce91 = { positions : { 889 : new google.maps.LatLng( ‘40.686207537’, ‘-111.556048344’ ) }, bounds : new google.maps.LatLngBounds(), // empty for now, we’ll dynamically extend it later map : new google.maps.Map( document.getElementById( ‘gmap_m86cfc53115bf7fdd537a168ace3dce91’ ), { 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_m86cfc53115bf7fdd537a168ace3dce91.positions ) { gmap_m86cfc53115bf7fdd537a168ace3dce91.bounds.extend( gmap_m86cfc53115bf7fdd537a168ace3dce91.positions[m] ); } // Render markers for ( var m in gmap_m86cfc53115bf7fdd537a168ace3dce91.positions ) { gmap_m86cfc53115bf7fdd537a168ace3dce91.markers[m] = new google.maps.Marker( { clickable: true, map : gmap_m86cfc53115bf7fdd537a168ace3dce91.map, position : gmap_m86cfc53115bf7fdd537a168ace3dce91.positions[m] } ); } // Redraw map to fit our new marker-based bounds gmap_m86cfc53115bf7fdd537a168ace3dce91.map.setCenter( gmap_m86cfc53115bf7fdd537a168ace3dce91.positions[889] ); });

Utah clouding. #a8cmeetup

Utah clouding. #a8cmeetup

Posted on Instagram 5:42 pm, September 15, 2014 jQuery(document).ready(function(){ var gmap_m16786442fce495a68f67531645b086dc = { positions : { 469 : new google.maps.LatLng( ‘39.483546667’, ‘-110.512428333’ ) }, bounds : new google.maps.LatLngBounds(), // empty for now, we’ll dynamically extend it later map : new google.maps.Map( document.getElementById( ‘gmap_m16786442fce495a68f67531645b086dc’ ), { 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_m16786442fce495a68f67531645b086dc.positions ) { gmap_m16786442fce495a68f67531645b086dc.bounds.extend( gmap_m16786442fce495a68f67531645b086dc.positions[m] ); } // Render markers for ( var m in gmap_m16786442fce495a68f67531645b086dc.positions ) { gmap_m16786442fce495a68f67531645b086dc.markers[m] = new google.maps.Marker( { clickable: true, map : gmap_m16786442fce495a68f67531645b086dc.map, position : gmap_m16786442fce495a68f67531645b086dc.positions[m] } ); } // Redraw map to fit our new marker-based bounds gmap_m16786442fce495a68f67531645b086dc.map.setCenter( gmap_m16786442fce495a68f67531645b086dc.positions[469] ); });

#hyperlapse #a8cmeetup CO:UT

#hyperlapse #a8cmeetup CO:UT

Posted on Instagram 1:37 pm, September 15, 2014 jQuery(document).ready(function(){ var gmap_m9408d6d517dd1ac00541a3ceaa66551f = { positions : { 629 : new google.maps.LatLng( ‘39.680147753’, ‘-106.768818051’ ) }, bounds : new google.maps.LatLngBounds(), // empty for now, we’ll dynamically extend it later map : new google.maps.Map( document.getElementById( ‘gmap_m9408d6d517dd1ac00541a3ceaa66551f’ ), { 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_m9408d6d517dd1ac00541a3ceaa66551f.positions ) { gmap_m9408d6d517dd1ac00541a3ceaa66551f.bounds.extend( gmap_m9408d6d517dd1ac00541a3ceaa66551f.positions[m] ); } // Render markers for ( var m in gmap_m9408d6d517dd1ac00541a3ceaa66551f.positions ) { gmap_m9408d6d517dd1ac00541a3ceaa66551f.markers[m] = new google.maps.Marker( { clickable: true, map : gmap_m9408d6d517dd1ac00541a3ceaa66551f.map, position : gmap_m9408d6d517dd1ac00541a3ceaa66551f.positions[m] } ); } // Redraw map to fit our new marker-based bounds gmap_m9408d6d517dd1ac00541a3ceaa66551f.map.setCenter( gmap_m9408d6d517dd1ac00541a3ceaa66551f.positions[629] ); });