Google Maps API V3 をインストールしましたが、サイズ変更機能がうまく動作しません。リンクをクリックするとドロップダウンする区画にマップを表示するスクリプトを配置しましたが、側面に灰色の領域が表示されます。私が理解できることから、分割を表示するスクリプトにサイズ変更機能が必要な場合を読んだことがありますが、適切に実装するのに問題があります。
分割 (class="content") を明らかにするコードは次のとおりです。
$(function() {
$('.action').click(function() {
var name = $(this).attr("name");
var content = $('.content[name=' + name + ']');
$('.content').not(content).hide('fast');
content.slideToggle('fast');
});
ID「マップ」のdiv内にマップがあります。
<div class="map">
<div id="map_canvas""></div>
</div>
私は徹夜でサイトの他の部分に取り組んでおり、現時点ではかなりぼんやりしています。これを解決するために必要なものを投稿するのを忘れていたらごめんなさい。
前もってありがとう、BC。