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.