How to add CSS-Class to a GoogleMaps marker?

后端 未结 3 815
粉色の甜心
粉色の甜心 2021-01-01 14:15

I want to animate (fadein, fadeout) a marker in my GoogleMaps application (Web).

How can i assign any css class to a marker?

Or

3条回答
  •  臣服心动
    2021-01-01 15:10

    An easy way is, select the marker and add a class the that selection.But for that you have to give each marker a title. Any animation would not work except google ones.

    $("div[title=\"" + name+ "\"]").addClass("aClass")

    I hope this helps someone.

提交回复
热议问题