Draw radius around a point in Google map

前端 未结 6 2125
悲哀的现实
悲哀的现实 2020-12-02 03:39

I\'m using the Google Maps API and have added markers. Now I want to add a 10 mile radius around each marker, meaning a circle that behaves appropriately while zooming. I ha

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-02 04:31

    It seems that the most common method of achieving this is to draw a GPolygon with enough points to simulate a circle. The example you referenced uses this method. This page has a good example - look for the function drawCircle in the source code.

提交回复
热议问题