定制 samjoyce777/laravel-static-map 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

samjoyce777/laravel-static-map

Composer 安装命令:

composer require samjoyce777/laravel-static-map

包简介

Generates a static image url of a position on earth

README 文档

README

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');

统计信息

  • 总下载量: 784
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-02-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固