承接 jasekiw/google-static-maps 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

jasekiw/google-static-maps

Composer 安装命令:

composer require jasekiw/google-static-maps

包简介

generates google static map

README 文档

README

A PHP library to generate Google Static Map Links. The Google Static Maps Library (V2) is a free service, [made available by Google] (https://developers.google.com/maps/documentation/staticmaps/).

Using simple OO methods, this project will build the URL which can be used in an image tag.

Example Code:

$oStaticMap = new GoogleStaticMap();
$oStaticMap	->setCenter("London,UK")
			->setHeight(300)
			->setWidth(232)
			->setZoom(8)
			->setFormat("jpg")
			->setFeatureStyling(array(
				"feature" => "all",
				"element" => "all",
				"style" => array(
					"hue" => "#006400",
					"lightness" => 50
				)
			));

echo '<img src="' . $oStaticMap . '" height="' . $oStaticMap->getHeight() . '" width="' . $oStaticMap->getWidth() . '" />';

Example Output:

Sample map generated by the Class

Requirements:

This library requires no additional software beyond a functional version of PHP 5.2 (or greater) and if you wish to retrieve the Map image, a working Internet connection.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache
  • 更新时间: 2016-11-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固