Google maps: place number in marker?

前端 未结 11 2171
感情败类
感情败类 2020-12-12 17:09

How can I display a number in the marker on a google map? I want to do server side clustering and I need to display how many points the cluster represents.

11条回答
  •  春和景丽
    2020-12-12 18:02

    You can use labels over markers, here is a tutorial about GIcon.label.

    You can also use GMarker.openInfoWindow.

    Tip: This is the best tutorial I found about google maps api (of course after Official documentation)

提交回复
热议问题