マップにマーカーを追加できます。マーカー ピンは問題なく表示されますが、タイトルが表示されません。
ストアをループして、次のように追加します。
//plot the points on the map
for (var i = 0; i < this.getCount(); i++)
{
var position = new google.maps.LatLng(this.getAt(i).data.Latitude, this.getAt(i).data.Longitude);
var marker = new google.maps.Marker({
position: position,
title : this.getAt(i).data.LocationDesc,
map: Ext.ComponentManager.get('jobmap').getMap()
});
}
ピンは表示されますが、テキスト タイトルはありません。データは問題ありません。ハード コードされた文字列も試しました。ある種のオーバーレイ/マスク プロパティはありますか? タイトルを表示するにはどうすればよいですか?
編集:以下の解決策で問題が解決しますが、私が抱えていた関連する問題の解決策を投入したいとも思いました。
ポップアップ情報ウィンドウを複数のマーカーに配置したい場合は、これを読む必要があります: Trying to bind multiple InfoWindows to multiple Markers on a Google Map and failing
フォントを非白にするまで、infoWindows は空白になります。Google Maps API InfoWindow にコンテンツが表示されない