Is it possible to write custom text on Google Maps API v3?

前端 未结 6 514
渐次进展
渐次进展 2020-11-30 01:15

Is it possible to write a custom text on Google Maps API v3 next to the marker, or I can use only the info window to do that?

6条回答
  •  没有蜡笔的小新
    2020-11-30 01:31

    To show custom text you need to create a custom overlay. Below is an example adapted from official Google documentation. You could also use this library for more "stylish" info windows

    
    
    
      
      
      
    
    
    
      

提交回复
热议问题