Skip to content

Commit ec2ae46

Browse files
authored
Merge pull request #11 from madbob/patch-1
improved README
2 parents d859896 + 42168d9 commit ec2ae46

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ to the require section of your composer.json.
4949
## Usage
5050

5151
```php
52-
$map = new GoogleStaticMap('Place google map API key or leave it empty');
52+
$map = new \Mastani\GoogleStaticMap\GoogleStaticMap('Place google map API key or leave it empty');
5353
$url = $map->setCenter('Tehran')
54-
->setMapType(MapType::RoadMap)
54+
->setMapType(\Mastani\GoogleStaticMap\MapType::RoadMap)
5555
->setZoom(14)
5656
->setSize(600, 600)
57-
->setFormat(Format::JPG)
58-
->addMarker('Tehran', '1', 'red', Size::Small)
59-
->addMarkerLatLng(35.6907488, 51.3919293, '1', 'red', Size::Small)
57+
->setFormat(\Mastani\GoogleStaticMap\Format::JPG)
58+
->addMarker('Tehran', '1', 'red', \Mastani\GoogleStaticMap\Size::Small)
59+
->addMarkerLatLng(35.6907488, 51.3919293, '1', 'red', \Mastani\GoogleStaticMap\Size::Small)
6060
->make(); // Return url contain map address.
6161
// or
6262
->download($path); // Download map image

0 commit comments

Comments
 (0)