Drawing anonymous circles in Google Maps

I'm trying to draw a google maps that has multiple Circle overlays, however I do not want to reveal the correct center of the radius. So for example, ``myLatlng`` is my lat/lon center of the radius, I want to draw a circle not around it, but a circle that will **include** that point. This is how I currently draw my circle: var myLatlng = new google.maps.LatLng(33.33333,22.22222); var circle = new google.maps.Circle({ map: map, radius: 3218, strokeColor: "#FFAA00", fillColor: "#00AAFF", fillOpacity: 0.3, center: myLatlng, zIndex: 99999, }); ``33.33333,22.22222`` is a 'secret' location that I do not want to reveal, however I would like to have that point within the circle. Is that possible? Thanks!
Could you just add some random small values to lat/long?

以上就是Drawing anonymous circles in Google Maps的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏