Google Maps Custom Projection

I have created a custom Google Maps projection using the Google Maps Javascript API V2. It looks like this, as per the API specification:

function PProjection(levels) {

 this.fromLatLngToPixel = function(latlng, zoom) {

 this.fromPixelToLatLng = function(pixel, zoom) {

 this.tileCheckRange = function(tile, zoom, tilesize) {

 this.getWrapWidth = function(zoom) {

Previously, I had my version of the API set to 2.147 and everything worked fine. However, Google recently made the lowest version available 2.193. This new version breaks my projection. Whenever I try to add a marker, I get the following error in Firebug:

d.getNearestImage is not a function

According to this post a new method called


was added in version 2.148, so it kind of makes sense that this problem would occur if I used a version of the API above 2.147. However, there is no note in the reference manual of an official change in the API. I added a dummy method of this name to my projection, but no luck. Any ideas on how to fix my projection or on how to revert to 2.147?


You can request a specific version through this method:


 ? Adding Multiple Markers on Google Map using api v2
 ? Display marker on top of other markers on google map
 ? Google Maps API v2 load() event not firing
 ? Can the opacity of a Google Maps GInfoWindow or GMarker be changed separately from the maps opacity?
 ? Getting wrong results from counting function
 ? check if a particular location falls on the path between two locations
 ? How to calculate the bounding box for a given lat/lng location?
 ? Google Geocoding v2 API stopped working suddenly
 ? How to determine a zip code and city from an IP address?
 ? Get nearest places on Google Maps, using MySQL spatial data