// This is for the examples require '_system/config.php'; // Autoload stuff require '../PHPGoogleMaps/Core/Autoloader.php'; $map_loader = new SplClassLoader('PHPGoogleMaps', '../'); $map_loader->register(); $map = new \PHPGoogleMaps\Map(); $map->enableStreetView(); $map->setCenter('Anchorage, AK'); $map2 = new \PHPGoogleMaps\Map(array('map_id' => 'map2')); $map2->enableStreetView(array('addressControl' => false, 'enableCloseButton' => false), 'container'); $map2->setCenter('San Diego, CA'); $map3 = new \PHPGoogleMaps\Map(array('map_id' => 'map3')); try { $map3->enableStreetView(array('position' => 'New Haven, CT')); } catch (GeocodeException $e) { echo $e->error; } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Streetview - <?php echo PAGE_TITLE; ?> </title> <link rel="stylesheet" type="text/css" href="_css/style.css"> <?php