Archive for the 'Fixes' Category



Rails 2 changed the way to_json works on ActiveRecord objects. Prior to Rails 2, to_json returned a hash of hashes — the first level hash had the key ‘attributes’, which in turn had another hash with your field name/values.
With Rails 2, calling to_json on an AR object just gives you a hash of field name/values. […]

In the last few weeks we’ve seen an explosion of people complaining about the lack of asinh() on the Windows version of PHP. We use the asinh() function extensively in Chapter 7 for the custom tile overlays. Admittedly, we didn’t test any of the code against windows versions of PHP (we’re LAMP folks), so until […]

UPDATE: A savvy reader Carl Olsen pointed out that it wasn’t actually necessary to check for the infoWindow state and the problem could simply be fixed by a check for an overlay. The post has been updated accordingly. Thanks Carl.

It seems that somewhere along the line something changed with the event handling and the Chapter […]