マップの読み込み時に、このエラー代替テキスト http://img239.imageshack.us/img239/6936/jserror.pngが表示されます。
エラーは、元の変更されていない OpenLayers.js ファイルの次の行にあります。
return!!(document.namespaces);
私はそれを次のように書き直そうとしました:
return (typeof(document.namespaces) != 'undefined');
それは機能しましたが、document.namespaces へのさらなる参照で同じ「未指定」エラーが発生します。
if(!document.namespaces.olv){document.namespaces.add("olv",this.xmlns); ...
これを次のように書き換えてみました。
if(typeof(document.namespaces.olv) == 'undefined') { ...
しかし、同じ「不明なエラー」が発生します。
このエラーは Internet Explorer (私は 7 でテストしました) でのみ発生し、Firefox では発生しません。
手がかりはありますか?
ありがとう。