Draw radius around a point in Google map

前端 未结 6 2127
悲哀的现实
悲哀的现实 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:20

    For a API v3 solution, refer to:

    http://blog.enbake.com/draw-circle-with-google-maps-api-v3

    It creates circle around points and then show markers within and out of the range with different colors. They also calculate dynamic radius but in your case radius is fixed so may be less work.

提交回复
热议问题