2017 © Pedro Peláez
 

laravel laravel-static-map

Generates a static image url of a position on earth, using geo coords

image

samjoyce777/laravel-static-map

Generates a static image url of a position on earth, using geo coords

  • Sunday, February 14, 2016
  • by samjoyce
  • Repository
  • 1 Watchers
  • 1 Stars
  • 25 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 9 % Grown

The README.md

Laravel Static Map Image Generator

This is mainly a Laravel wrapper for another package that gets the maps, just makes it nice for the framework. I have not gone through it much at the moment as this package will do what I need it to at the moment., (*1)

Installation

$ composer install samjoyce777/laravel-static-map --save

Add the service provider to the config.php, (*2)

$ \samjoyce777\LaravelStaticMap\MapServiceProvider::class,

Add the facade as well to make it all pretty, (*3)

$ 'Map' => \samjoyce777\LaravelStaticMap\Facades\Map::class,

Move the config file to make your customizations, (*4)

$ php artisan vendor:publish --tag=config

Usage

This will return URL of a map with default settings of London, (*5)

Map::getMap(51.5085300, -0.1257400);

This will get return URL of map generated with 'large' settings in the config., (*6)

Map::getMap(51.5085300, -0.1257400, 'large');

This will get return URL of map generated with 'large' settings in the config, with some overrides., (*7)

Map::getMap(51.5085300, -0.1257400, 'large', ['zoom' => 3, 'type' => 'hybrid');

The Versions

14/02 2016

v0.2.0

0.2.0.0

Generates a static image url of a position on earth, using geo coords

  Sources   Download

MIT

The Requires

 

The Development Requires

14/02 2016

dev-master

9999999-dev

Generates a static image url of a position on earth

  Sources   Download

MIT

The Requires

 

The Development Requires

14/02 2016

v0.1.0

0.1.0.0

Generates a static image url of a position on earth

  Sources   Download

MIT

The Requires

 

The Development Requires