DantSu\OpenStreetMapStaticAPI\Polygon draw polygon on the map.
- Full name:
\DantSu\OpenStreetMapStaticAPI\Polygon - This class implements: \DantSu\OpenStreetMapStaticAPI\Interfaces\Draw
See Also:
- https://github.com/DantSu/php-osm-static-api - Github page of this project
Polygon constructor.
| Parameter | Type | Description |
|---|---|---|
strokeColor |
string | Hexadecimal string color |
strokeWeight |
int | pixel weight of the line |
fillColor |
string | Hexadecimal string color |
Add a latitude and longitude to the polygon
| Parameter | Type | Description |
|---|---|---|
latLng |
\DantSu\OpenStreetMapStaticAPI\LatLng | Latitude and longitude to add |
$this : Fluent interface
Draw the polygon on the map image.
| Parameter | Type | Description |
|---|---|---|
image |
\DantSu\PHPImageEditor\Image | The map image (An instance of DantSu\PHPImageEditor\Image) |
mapData |
\DantSu\OpenStreetMapStaticAPI\MapData | Bounding box of the map |
$this : Fluent interface
- https://github.com/DantSu/php-image-editor - See more about DantSu\PHPImageEditor\Image
Automatically generated from source code comments on 2022-05-31 using phpDocumentor