Google Map API Version2

ymlab2006-04-28

ネットサーフィンしていると、
Official Google Maps API Blog: Google Maps API Version 2
こんなサイトを発見した。

Google Maps APIのバージョン2だ!
メモリリークが減少し、高速になったらしい。
どうやったらバージョンアップできるのかを調べたいが、
今強烈に眠い上に英語のドキュメントなので思いっきり流し読み。

どこを読めばよいのかを、近眼の目でだらだら見た後、
下の文章を読めばよいっぽいので、色眼鏡をかけてみてみると、(比喩)

Upgrading from Version 1 to Version 2
Version 2 of the Maps API is designed to be 99% 
backwards-compatible with the previous version 
of the API. To accomplish this Version 2 introduces
 a new map class, GMap2, that contains an updated
 interface with new method names. The old map
 class, GMap, will continue to exist in Version 2 of
 the API and contains the same documented
 interface as Version 1 of the API.

Given this design, you should theoretically be able 
to update your Maps API <script> URL to refer to 
"v=2" instead of "v=1," and your site will just work.
 Remember, though, that we're engineers, not
 magicians, so things may be slightly more complex
 in practice. ;-) In particular, we did not preserve
 many of the undocumented functions - so many
 sites will have to update their scripts to
 accommodate this change.

要するに、バージョンを上げたければ、
自分のページの

こんなところのv=1をv=2に変えればいいわけね。
で、我々google のスタッフは、エンジニアであって、マジシャンではないので、バージョンアップに伴い、プログラムによっては、スクリプトも改変しないといけないのかな。
 それは、google map APIを使ったソフトウェアを開発したソフトウェア企業は、大変だ。プロジェクトによっては、2、3日徹夜しないといけないかもしれないなあ。

まぁ、今はプログラマではないので、人ごとだ。というわけで早速変えてみた。

でも実際に見てみると、バージョン2ではサテライトにすると、雲が登場して、見えない・・。
ありえへん。
なので、両方公開。

バージョン2 (メモリリークが減少したバージョン。細い回線でもOKらしい。でも、雲が邪魔。実際レンダリングがとても高速になっている。)
http://caitest.yh.land.to/googlemap2/

前のバージョン
http://caitest.yh.land.to/googlemap/