Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
マウスオーバーイベントでgoogle.maps.SymbolPath.CIRCLEマーカーの色を変更するにはどうすればよいですか?setIconメソッドについて読みましたが、円の色を変更するためだけに新しい画像を追加したくありません。
既存のシンボルの特定のプロパティを変更する方法はありません。
現在のsymbol(marker.getIcon())を取得して、新しいプロパティを設定し(円の場合、これはstrokeColor)、変更されたシンボルを引数として使用する必要があります。marker.setIcon()
marker.getIcon()
strokeColor
marker.setIcon()