Skip to content

Latest commit

 

History

History
102 lines (41 loc) · 1.51 KB

File metadata and controls

102 lines (41 loc) · 1.51 KB

Line

DantSu\OpenStreetMapStaticAPI\Line draw line on the map.

  • Full name: \DantSu\OpenStreetMapStaticAPI\Line
  • This class implements: \DantSu\OpenStreetMapStaticAPI\Interfaces\Draw

See Also:

Methods

->__construct

Line constructor.

Parameters:

Parameter Type Description
color string Hexadecimal string color
weight int pixel weight of the line

->addPoint

Add a latitude and longitude to the multi-points line

Parameters:

Parameter Type Description
latLng \DantSu\OpenStreetMapStaticAPI\LatLng Latitude and longitude to add

Return Value:

$this : Fluent interface


->draw

Draw the line on the map image.

Parameters:

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

Return Value:

$this : Fluent interface

See Also:



Automatically generated from source code comments on 2022-05-31 using phpDocumentor