PHP Classes

File: sample.map.php

Recommend this page to a friend!
  Classes of Tom Schaefer   QGoogleVisualizationAPI   sample.map.php   Download  
File: sample.map.php
Role: Example script
Content type: text/plain
Description: Map Sample
Class: QGoogleVisualizationAPI
Google Visualization API (deprecated)
Author: By
Last change:
Date: 15 years ago
Size: 654 bytes
 

Contents

Class file image Download
<html>
<head>
</head>

<body>
<?php

include_once 'config.inc.php';

$chart = new QMapGoogleGraph;
$chart ->addColumns(
            array(
                array(
'number', 'Lat'),
                array(
'number', 'Lon'),
                array(
'string', 'Name')
                )
            )
        ->
setValues(
            array(
                array(
0, 0, 37.4232),
                array(
0, 1, -122.0853),
                array(
0, 2, 'Work'),
                array(
1, 0, 37.4289),
                array(
1, 1, -122.1697),
                array(
1, 2, 'University'),
                array(
2, 0, 37.6153),
                array(
2, 1, -122.3900),
                array(
2, 2, 'Airport'),
            )
        );
echo
$chart->render();

echo
$chart->getReferenceLink();

?>
</body>
</html>