Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
DantSu committed Sep 8, 2021
1 parent a5bce47 commit 0fdad7a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ use \DantSu\FrenchCadastralMapStaticAPI\LatLng;
use \DantSu\FrenchCadastralMapStaticAPI\Line;
use \DantSu\FrenchCadastralMapStaticAPI\Markers;

header('Content-type: image/png');
(new FrenchCadastralMap(12202, new LatLng(44.351933, 2.568113), 18, 600, 400))
\header('Content-type: image/png');
(new FrenchCadastralMap(12202, new LatLng(44.351933, 2.568113), 17, 600, 400))
->setLayers([
FrenchCadastralMap::LAYER_AMORCES_CAD,
FrenchCadastralMap::LAYER_CADASTRAL_PARCEL,
Expand All @@ -41,6 +41,7 @@ header('Content-type: image/png');
->setDisplayOpenStreetMap(true)
->addMarkers(
(new Markers(__DIR__ . '/resources/marker.png'))
->setAnchor(Markers::ANCHOR_CENTER, Markers::ANCHOR_BOTTOM)
->addMarker(new LatLng(44.351933, 2.568113))
)
->addLine(
Expand All @@ -57,6 +58,8 @@ header('Content-type: image/png');
->displayPNG();
```

![Exported French Cadastral image](./src/samples/resources/sample1.png)

## Documentation

| Class | Description |
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added src/samples/resources/sample1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions src/samples/sample1.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use \DantSu\FrenchCadastralMapStaticAPI\Line;
use \DantSu\FrenchCadastralMapStaticAPI\Markers;

header('Content-type: image/png');
(new FrenchCadastralMap(12202, new LatLng(44.351933, 2.568113), 18, 600, 400))
\header('Content-type: image/png');
(new FrenchCadastralMap(12202, new LatLng(44.351933, 2.568113), 17, 600, 400))
->setLayers([
FrenchCadastralMap::LAYER_AMORCES_CAD,
FrenchCadastralMap::LAYER_CADASTRAL_PARCEL,
Expand All @@ -22,6 +22,7 @@
->setDisplayOpenStreetMap(true)
->addMarkers(
(new Markers(__DIR__ . '/resources/marker.png'))
->setAnchor(Markers::ANCHOR_CENTER, Markers::ANCHOR_BOTTOM)
->addMarker(new LatLng(44.351933, 2.568113))
)
->addLine(
Expand Down

0 comments on commit 0fdad7a

Please sign in to comment.