Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.map.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 6 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(
0037.4232),
                array(
01, -122.0853),
                array(
02'Work'),
                array(
1037.4289),
                array(
11, -122.1697),
                array(
12'University'),
                array(
2037.6153),
                array(
21, -122.3900),
                array(
22'Airport'),
            )
        );
echo 
$chart->render();

echo 
$chart->getReferenceLink();

?>
</body>
</html>