An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

StaticMap
=========

[![Build Status](https://travis-ci.org/WyriHaximus/StaticMap.png)](https://travis-ci.org/WyriHaximus/StaticMap)
[![Latest Stable Version](https://poser.pugx.org/WyriHaximus/StaticMap/v/stable.png)](https://packagist.org/packages/WyriHaximus/StaticMap)
[![Total Downloads](https://poser.pugx.org/WyriHaximus/StaticMap/downloads.png)](https://packagist.org/packages/WyriHaximus/StaticMap)
[![Coverage Status](https://coveralls.io/repos/WyriHaximus/StaticMap/badge.png)](https://coveralls.io/r/WyriHaximus/StaticMap)
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/WyriHaximus/staticmap/trend.png)](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();
```