How to display a label next to a Marker for Google Maps?

后端 未结 6 490
醉酒成梦
醉酒成梦 2020-12-13 07:22

I would like to display a text label next to the markers on google maps. I\'ve used Virtual Earth before and I\'m just starting to use Google Maps. I tried setting the Tit

6条回答
  •  余生分开走
    2020-12-13 07:43

    If you just want to show label below the marker, then you can extend google maps Marker to add a setter method for label and you can define the label object by extending google maps overlayView like this..

    Demo: jsFiddle

    
    
    

    This will work.

提交回复
热议问题