-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpanoramio.php
49 lines (35 loc) · 1.14 KB
/
panoramio.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
// This is for my examples
require( '_system/config.php' );
$relevant_code = array(
'\PHPGoogleMaps\Layer\PanoramioLayer',
'\PHPGoogleMaps\Layer\PanoramioLayerDecorator'
);
// Autoload stuff
require( '_system/autoload.php' );
$map = new \PHPGoogleMaps\Map;
$panoramio = new \PHPGoogleMaps\Layer\PanoramioLayer;
$panoramio->setTag( 'beach' );
//$panoramio->setUserID( 4106947 );
$map->addObject( $panoramio );
$map->setCenter( 'San Diego, CA' );
$map->setZoom( 10 );
$map->disableAutoEncompass();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Panoramio - <?php echo PAGE_TITLE ?></title>
<link rel="stylesheet" type="text/css" href="_css/style.css">
<?php $map->printHeaderJS() ?>
<?php $map->printMapJS() ?>
</head>
<body>
<h1>Panoramio Layer</h1>
<?php require( '_system/nav.php' ) ?>
<p>Implementation of the <a href="http://code.google.com/apis/maps/documentation/javascript/overlays.html#PanoramioLibrary">Google Panoramio Library</a>.</p>
<p>You can set a user_id or tag to limit the visible photos, but not both.</p>
<?php $map->printMap() ?>
</body>
</html>