DantSu\OpenStreetMapStaticAPI\Markers display markers on the map.
- Full name:
\DantSu\OpenStreetMapStaticAPI\Markers
See Also:
- https://github.com/DantSu/php-osm-static-api - Github page of this project
| Constant | Value |
|---|---|
\DantSu\OpenStreetMapStaticAPI\Markers::ANCHOR_LEFT |
'left' |
\DantSu\OpenStreetMapStaticAPI\Markers::ANCHOR_CENTER |
'center' |
\DantSu\OpenStreetMapStaticAPI\Markers::ANCHOR_RIGHT |
'right' |
\DantSu\OpenStreetMapStaticAPI\Markers::ANCHOR_TOP |
'top' |
\DantSu\OpenStreetMapStaticAPI\Markers::ANCHOR_MIDDLE |
'middle' |
\DantSu\OpenStreetMapStaticAPI\Markers::ANCHOR_BOTTOM |
'bottom' |
| Parameter | Type | Description |
|---|---|---|
pathImage |
mixed |
Add a marker on the map.
| Parameter | Type | Description |
|---|---|---|
coordinate |
\DantSu\OpenStreetMapStaticAPI\LatLng | Latitude and longitude of the marker |
$this : Fluent interface
Define the anchor point of the image marker.
| Parameter | Type | Description |
|---|---|---|
horizontalAnchor |
int|string | Horizontal anchor in pixel or you can use Markers::ANCHOR_LEFT, Markers::ANCHOR_CENTER, Markers::ANCHOR_RIGHT |
verticalAnchor |
int|string | Vertical anchor in pixel or you can use Markers::ANCHOR_TOP, Markers::ANCHOR_MIDDLE, Markers::ANCHOR_BOTTOM |
$this : Fluent interface
Draw markers on the image map.
| 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