Text Within Polyline Google Maps V3

前端 未结 3 923
温柔的废话
温柔的废话 2021-01-07 00:26

I need to be able to put text within my polyline like the embedded Google Maps does as you can see from the below screenshot...

3条回答
  •  再見小時候
    2021-01-07 01:05

    Adding text to polylines is not (currently) supported by the Google Maps Javascript API v3. You will need to create your own custom overlays to implement that. (I doubt you can make the text "follow" the polyline along a curve easily)

提交回复
热议问题