search

Home  >  Q&A  >  body text

Android百度地图怎样获取圆的外切矩形

百度地图知道中心点和半径,怎样获取外切矩形

阿神阿神2772 days ago558

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 09:16:25

    Suppose the coordinates of the center point are (x, y) and the radius r, then the upper left corner of the circumscribed rectangle (x-r, y-r), the width and height are both 2r. I don't know if what is needed is map coordinates or coordinates mapped to the screen. If you need to mark, just press this to draw a rectangular frame.

    reply
    0
  • Cancelreply