且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Google Maps API v3:如何动态更改标记图标?

更新时间:2023-02-14 14:14:58

Call the marker.setIcon('newImage.png')... Look here for the docs.

Are you asking about the actual way to do it? You could just create each div, and a add a mouseover and mouseout listener that would change the icon and back for the markers.