マーカーツールチップのテキストに改行を挿入するにはどうすればよいですか?私は\n
を使用していますが、動作していないようです。複数の行にマーカーツールチップのテキストを書式設定するGoogle
を参照してくださいコード:
mark = new google.maps.Marker({
map: map,
position: center,
title:inspStates[i].name+ "\n"+"total: "+inspStates[i].totalInsp+ "\n"+ info,
zIndex:3
});
\ nはInternet Explorerで動作しますが、Firefoxでは動作しません – trs