私はGoogle Maps MarkerLabelを追加する方法を理解しようとしています。GoogleマップMarkerLabelは関数ではありません
標準マーカーを表示することができますが、!
ラベルをマーカーに追加しようとすると、google.maps.MarkerLabel is not a function
と表示されます。
var marker = new google.maps.Marker({
animation: google.maps.Animation.DROP,
label: new google.maps.MarkerLabel({
text: '!'
}),
map: myMap,
position: myMapOptions.center
});
私はこのように新しいMarkerLabelオブジェクトをインスタンス化できないと思います。感嘆符を得るために私は何をするべきですのマーカー。
なぜダウン投票? – Quantastical