Google Groups : Google-Maps-API

firefoxで開発するのが気づけばとても快適で、safariでデバッグするのが極めて苦痛に。safariでopenInfoWindowXslt()が動かず困って、えんえん調べてけっきょくはこんな話。

openInfoWindowXslt works in FF, not IE/Safari

Any progress? I’m trying my best to be lazy and use infoWindowXslt but
running into it not showing in Safari.
I’ve downloaded google-ajaxslt which I presume is the Javascript
fallback for Safari and found my original didn’t work with it but even
after changes that worked, no luck with the map itself.

なんかドキュメントには”ネイティブのXSLTサポートがない場合javascriptのXSLTパーサで変換してくれる”とかいてあるけど、実際には動かなそうな雰囲気。

Google Maps API Official Blog: Update on the upcoming API v2 によれば API version 2.x で openInfoWindowXslt() は廃止になるらしい。XSLTで記述するスマートさは捨て難いけれど、XSLTでHTMLを組み立てる場合、あとからデータを入れ替えてもう一度表示し直したいというのができないし(もちろん表示したエレメントを全部消して全部書き直すのならできるけど)、おとなしくjsで組み立てることにする。


About this entry