EasyGoogleMaps: Google Maps Library for PHP
Posted in API Libraries on December 7th, 2011 by admin – Be the first to commentEasyGoogleMaps is a free library that you can download and use to ease the use of Google Maps in your PHP applications. This PHP class can also be used in CodeIgniter by loading it as a CodeIgniter Library.
require'EasyGoogleMap.class.php';
$key ="XXX";
$maps = & new EasyGoogleMap($key);
$maps->SetMapZoom(10);
$maps->SetAddress("rambla, montevideo, uruguay");
$maps->SetInfoWindowText("First address");
Pass your $maps object to the view and then in your view or HTML page you can use it in this way:
<html> <head> <title>Google Maps example using EasyGoogleMaps</title> <?php echo $maps->GmapsKey(); ?> </head> <body> <?php echo $maps->MapHolder(); ?> <?php echo $maps->InitJs(); ?> <?php echo $maps->UnloadMap(); ?> </body> </html>
In CodeIgniter you can place the EasyGoogleMaps library in your libraries folder and then use $this->load->library(‘EasyGoogleMaps’, $key); to load it.
Download EasyGoogleMaps
Related searches:
- EasyGoogleMap class php
- easygooglemap codeigniter
- class easygooglemap
- codigniter googlemap php api
- easygooglemap class
- easygooglemap examples
- how to use easygooglemap




