https://github.com/wyrihaximus/staticmap
Static Google Maps clone in PHP
https://github.com/wyrihaximus/staticmap
hacktoberfest
Last synced: 26 days ago
JSON representation
Static Google Maps clone in PHP
- Host: GitHub
- URL: https://github.com/wyrihaximus/staticmap
- Owner: WyriHaximus
- License: mit
- Created: 2012-11-10T20:12:00.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2023-12-05T05:11:00.000Z (over 1 year ago)
- Last Synced: 2024-10-23T21:56:52.043Z (6 months ago)
- Topics: hacktoberfest
- Language: PHP
- Size: 450 KB
- Stars: 9
- Watchers: 5
- Forks: 3
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
StaticMap
=========[](https://travis-ci.org/WyriHaximus/StaticMap)
[](https://packagist.org/packages/WyriHaximus/StaticMap)
[](https://packagist.org/packages/WyriHaximus/StaticMap)
[](https://coveralls.io/r/WyriHaximus/StaticMap)
[](https://bitdeli.com/free "Bitdeli Badge")Static Google Maps clone in PHP
## Getting started ##
#### 1. Requirements ####
This plugin depends on the following plugins and libraries and are pulled in by composer later on:
- `ext-gd`
### 2. Installation ###
To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `~`.
```
composer require wyrihaximus/staticmap
```### 3. Example ###
```php
generate()->get('png', array(
'quality' => 9,
));
```### 4. Blips ###
Blips are markers on the map. Added them is simple:
```php
addBlip(Blip::create(new LatLng(123, 456), 'http://static.wyrimaps.net/icons/blip.png'));
```In case you just want one in the center this will suffice:
```php
addCenterBlip();
```