|
| 1 | + |
| 2 | +# Circle |
| 3 | + |
| 4 | +DantSu\OpenStreetMapStaticAPI\Circle draw circle on the map. |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | +* Full name: `\DantSu\OpenStreetMapStaticAPI\Circle` |
| 9 | +* This class implements: \DantSu\OpenStreetMapStaticAPI\Interfaces\Draw |
| 10 | + |
| 11 | +**See Also:** |
| 12 | + |
| 13 | +* https://github.com/DantSu/php-osm-static-api - Github page of this project |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | +## Methods |
| 18 | + |
| 19 | +- [__construct](#-__construct) |
| 20 | +- [setEdgePoint](#-setedgepoint) |
| 21 | +- [setRadius](#-setradius) |
| 22 | +- [draw](#-draw) |
| 23 | + |
| 24 | +### ->__construct |
| 25 | + |
| 26 | +Circle constructor. |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | +#### Parameters: |
| 36 | + |
| 37 | +| Parameter | Type | Description | |
| 38 | +|-----------|------|-------------| |
| 39 | +| `center` | **\DantSu\OpenStreetMapStaticAPI\LatLng** | Latitude and longitude of the circle center | |
| 40 | +| `strokeColor` | **string** | Hexadecimal string color | |
| 41 | +| `strokeWeight` | **int** | pixel weight of the line | |
| 42 | +| `fillColor` | **string** | Hexadecimal string color | |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | +--- |
| 48 | +### ->setEdgePoint |
| 49 | + |
| 50 | +Set a latitude and longitude to define the radius of the circle. |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | +#### Parameters: |
| 60 | + |
| 61 | +| Parameter | Type | Description | |
| 62 | +|-----------|------|-------------| |
| 63 | +| `edge` | **\DantSu\OpenStreetMapStaticAPI\LatLng** | Latitude and longitude of the edge point of a circle | |
| 64 | + |
| 65 | + |
| 66 | +#### Return Value: |
| 67 | + |
| 68 | + **$this** : Fluent interface |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | +--- |
| 73 | +### ->setRadius |
| 74 | + |
| 75 | +Set the radius of the circle in meters. |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | +#### Parameters: |
| 85 | + |
| 86 | +| Parameter | Type | Description | |
| 87 | +|-----------|------|-------------| |
| 88 | +| `radius` | **float** | radius of a circle in meters | |
| 89 | + |
| 90 | + |
| 91 | +#### Return Value: |
| 92 | + |
| 93 | + **$this** : Fluent interface |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | +--- |
| 98 | +### ->draw |
| 99 | + |
| 100 | +Draw the circle on the map image. |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | +#### Parameters: |
| 110 | + |
| 111 | +| Parameter | Type | Description | |
| 112 | +|-----------|------|-------------| |
| 113 | +| `image` | **\DantSu\PHPImageEditor\Image** | The map image (An instance of DantSu\PHPImageEditor\Image) | |
| 114 | +| `mapData` | **\DantSu\OpenStreetMapStaticAPI\MapData** | Bounding box of the map | |
| 115 | + |
| 116 | + |
| 117 | +#### Return Value: |
| 118 | + |
| 119 | + **$this** : Fluent interface |
| 120 | + |
| 121 | + |
| 122 | +#### See Also: |
| 123 | + |
| 124 | +* https://github.com/DantSu/php-image-editor - See more about DantSu\PHPImageEditor\Image |
| 125 | + |
| 126 | +--- |
| 127 | + |
| 128 | + |
| 129 | +--- |
| 130 | +> Automatically generated from source code comments on 2022-05-24 using [phpDocumentor](http://www.phpdoc.org/) |
0 commit comments