Skip to content

d3designs/StaticMap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Static Map

A super simple PHP class for the Google Static Maps API

(c) 2011 Jay Williams
https://github.com/d3designs/StaticMap
License: MIT

Example

<?php

include 'staticmap.class.php';

$options = array('size'=>'300x300');
$map = new StaticMap($options);

$map->add_marker('1600 Pennsylvania Ave NW, Washington D.C., DC 20500');

$styles = array('color'=>'blue');
$map->add_marker('Lincoln Memorial Circle, Washington D.C., DC 20037', $styles);

$styles = array('label'=>'C');
$map->add_marker('38.891300,-77.03000', $styles);

// Display Static Map (using magic methods)
echo "<img src=\"$map\" alt=\"Google Map\" $map->dimensions>";

?>

Result

Google Map

Google Static Maps API Documentation

http://code.google.com/apis/maps/documentation/staticmaps/

About

A super simple PHP class for the Google Static Maps API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages