Figure 10: Embedding dynamic Google maps in a web page with example.php
<?php /** * Showing multiple points with Phoogle Maps * class developed by Justin Johnson <justinjohnson@system7designs.com> */ require_once 'phoogle.php'; $map = new PhoogleMap(); // get your own Google Maps key $map->setAPIKey("ABQIAAAAHbYourOwnKeyQm53U97g_KENmAYvVHzRRmYuBxajz9hYZQ9czEzjm-fYaGahRsmqNC-biCgOyOP2XjlfOPg"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <? $map->printGoogleJS(); ?> </head> <body> <? $map->addAddress('17 Franklin Tpk, Ramsey, NJ 07423'); $map->addAddress('263 E. Main St, Ramsey, NJ 07446'); $map->showMap(); ?> </body> </html>