google.maps.Circleによって作成されたサークルにinfoWindowを追加する方法はありますか?
このようなもの
var circ = new google.maps.Circle({
center:latlng,
clickable:false,
fillColor:colors[count],
fillOpacity:0.3,
map:map,
radius:radius,
strokeColor:colors[count],
strokeOpacity:0.3});
と
//create info window
var infoWindow= new google.maps.InfoWindow({
content: "Your info here"
});
//add a click event to the circle
google.maps.event.addListener(circ, 'click', function(){
//call the infoWindow
infoWindow.open(map, circ);
});
または、代わりに、クリックして情報ウィンドウにアクセスできる、円の中心に非表示のマーカーを作成する方法があります。