File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Generate OpenStreetMap static image with marker and line :
27
27
``` php
28
28
use \DantSu\OpenStreetMapStaticAPI\OpenStreetMap;
29
29
use \DantSu\OpenStreetMapStaticAPI\LatLng;
30
- use \DantSu\OpenStreetMapStaticAPI\Line ;
30
+ use \DantSu\OpenStreetMapStaticAPI\Polygon ;
31
31
use \DantSu\OpenStreetMapStaticAPI\Markers;
32
32
33
33
\header('Content-type: image/png');
@@ -40,14 +40,13 @@ use \DantSu\OpenStreetMapStaticAPI\Markers;
40
40
->addMarker(new LatLng(44.351873, 2.566250))
41
41
)
42
42
->addDraw(
43
- (new Line ('FF0000', 2))
43
+ (new Polygon ('FF0000', 2, 'FF0000DD' ))
44
44
->addPoint(new LatLng(44.351172, 2.571092))
45
45
->addPoint(new LatLng(44.352097, 2.570045))
46
46
->addPoint(new LatLng(44.352665, 2.568107))
47
47
->addPoint(new LatLng(44.352887, 2.566503))
48
48
->addPoint(new LatLng(44.352806, 2.565972))
49
49
->addPoint(new LatLng(44.351517, 2.565672))
50
- ->addPoint(new LatLng(44.351172, 2.571092))
51
50
)
52
51
->getImage()
53
52
->displayPNG();
You can’t perform that action at this time.
0 commit comments