samjoyce777/laravel-static-map

Generates a static image url of a position on earth, using geo coords
784 1
Install
composer require samjoyce777/laravel-static-map
Latest Version:v0.2.0
License:MIT
Last Updated:Feb 14, 2016
Links: GitHub  ·  Packagist
Maintainer: elmhurst

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.

Installation

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

Add the service provider to the config.php

$ \samjoyce777\LaravelStaticMap\MapServiceProvider::class,

Add the facade as well to make it all pretty

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

Move the config file to make your customizations

$ php artisan vendor:publish --tag=config

Usage

This will return URL of a map with default settings of London

Map::getMap(51.5085300, -0.1257400);

This will get return URL of map generated with 'large' settings in the config.

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

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

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

Related Packages

paxha/laravel-recursive-relationships

This Laravel Eloquent extension provides recursive relationships using common ta...

56,281 27
bertbijnens/laravel-fractal-paginate

Extending Spatie's laravel fractal package to support build-in pagination

17,826 2
wheredidgogogo/avanser

A Laravel package to connect to Avanser call tracking API

6,300 1
mrabbani/laravel-module-manager

Laravel Module Management

5,186 88
benbjurstrom/passport-custom-jwt-claims

Customize JWT claims in Laravel Passport access tokens

1,759 34