DantSu\OpenStreetMapStaticAPI\OpenStreetMap is a PHP library created for easily get static image from OpenStreetMap with markers, lines, polygons and circles.
- Full name:
\DantSu\OpenStreetMapStaticAPI\OpenStreetMap
See Also:
- https://github.com/DantSu/php-osm-static-api - Github page of this project
OpenStreetMap constructor.
| Parameter | Type | Description |
|---|---|---|
centerMap |
\DantSu\OpenStreetMapStaticAPI\LatLng | Latitude and longitude of the map center |
zoom |
int | Zoom |
imageWidth |
int | Width of the generated map image |
imageHeight |
int | Height of the generated map image |
tileServer |
\DantSu\OpenStreetMapStaticAPI\TileLayer | Tile server configuration, defaults to OpenStreetMaps tile server |
Add tile layer to the map
| Parameter | Type | Description |
|---|---|---|
layer |
\DantSu\OpenStreetMapStaticAPI\TileLayer | An instance of TileLayer |
$this : Fluent interface
Add markers on the map
| Parameter | Type | Description |
|---|---|---|
markers |
\DantSu\OpenStreetMapStaticAPI\Markers | An instance of Markers |
$this : Fluent interface
Add a line on the map
| Parameter | Type | Description |
|---|---|---|
draw |
\DantSu\OpenStreetMapStaticAPI\Interfaces\Draw | An instance of Line |
$this : Fluent interface
Get data about the generated map (bounding box, size, OSM tile ids...)
\DantSu\OpenStreetMapStaticAPI\MapData : data about the generated map (bounding box, size, OSM tile ids...)
- https://github.com/DantSu/php-osm-static-api/blob/master/docs/classes/DantSu/OpenStreetMapStaticAPI/MapData.md - See more about MapData
Get the map image with markers and lines.
\DantSu\PHPImageEditor\Image : An instance of DantSu\PHPImageEditor\Image
- 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