Posted on 2005-06-18 18:45:48-07 by lunatic in response to 631
Re: GoogleMaps changed format
Hi,

I have an interim update on what seems to be changed with the Google maps.

First, there appear to be two possible acceptable version strings. One, that is otherwise compatible with the current GoogleMaps.pm, is to change line 57 from:

$self->{gm_version} ||= ".1";

to:

$self->{gm_version} ||= ".3";

This change restores the GoogleMaps.pm to functioning properly.

HOWEVER...

It seems they are also accepting (and requiring, if you want world-wide maps) a new version identifier: "w2.4" ("w" for "World" perhaps?). The tile sizes have changed from 128x128 to 256x256, zoom range has expanded from 0-14 to 0-17, and additionally, the offsets for tile x=0,y=0 have changed (it seems to start 0,0 at long/lat at the dateline,north pole).

See for example, the whole world, or zoom in one level to get an idea of how the offsets have changed.

I'm currently working on changing the offset code to handle the new positions, otherwise the rest of the module I think should work fine with a few tweaks.

I'll post a patch file once it seems to be working.

Anyone else on this track?

Cheers,


--Michael Burns
Cosbit Technologies
Direct Responses: 634 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.