문제

How I can do something like here in image with google map, Is anybody know ho to do this.

So here is directions and area near route directions (green opacity area)

enter image description here

도움이 되었습니까?

해결책

I would approach this by using the Directions API and getting lat/lng of each step.

I would then use the Polygons API to draw circles of a chosen radius, every x meters along a straight path following the steps.

EDIT:

A better solution would be to use the steps with a Polyline, and give it a sufficiently thick strokeWidth

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top