google map static drawing “route” instead of straight line

后端 未结 4 1698
傲寒
傲寒 2020-12-15 11:48

I succeeded in getting a google static map displaying a path between 2 coordinates.

The problem is that the drawn path is just a straight line between the 2 points.<

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-15 12:11

    I think you cannot use this functionnality with the staticmap api. However you can use Directions with the JavaScript API V3.

提交回复
热议问题