Package Data | |
---|---|
Maintainer Username: | elmhurst |
Maintainer Contact: | samjoyce777@gmail.com (Sam Joyce) |
Package Create Date: | 2016-02-07 |
Package Last Update: | 2016-02-14 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-17 03:02:49 |
Package Statistics | |
---|---|
Total Downloads: | 782 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
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.
$ 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
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');