2017 © Pedro Peláez
 

library google-static-maps

generates google static map

image

jasekiw/google-static-maps

generates google static map

  • Wednesday, November 16, 2016
  • by jasekiw
  • Repository
  • 1 Watchers
  • 0 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

php-static-maps-generator

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/)., (*1)

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

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, (*3)

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., (*4)

The Versions

16/11 2016

dev-master

9999999-dev

generates google static map

  Sources   Download

Apache 2.0

The Requires

 

The Development Requires

by Avatar jasekiw

api generator google maps client static

16/11 2016

0.5.1

0.5.1.0

generates google static map

  Sources   Download

Apache 2.0

The Requires

 

The Development Requires

by Avatar jasekiw

16/11 2016

0.5.0

0.5.0.0

generates google static map

  Sources   Download

Apache 2.0

The Requires

  • php ^5.6.0 || ^7.0

 

The Development Requires

by Avatar jasekiw