Lamhot / php-google-map-api

Automatically exported from code.google.com/p/php-google-map-api
0 stars 0 forks source link

I can't use the script at all #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
I see blank page. There is no error or warning.It seems that long and lat is 
missing so I suspect there is something wrong with geolocation or database but 
I have no idea what.

Here is my page:
<?php
require_once('DB.php');
include_once("GoogleMap.php");
include_once("JSMin.php");

$MAP_OBJECT = new GoogleMapAPI(); 
$MAP_OBJECT->_minify_js = isset($_REQUEST["min"])?FALSE:TRUE;
$MAP_OBJECT->setDSN("mysql://user:passw@localhost/tables");
$MAP_OBJECT->addMarkerByAddress("Seattle,WA,USA","Marker Title", "Marker 
Description");
?>
<html>
<head>
<?=$MAP_OBJECT->getHeaderJS();?>
<?=$MAP_OBJECT->getMapJS();?>
</head>
<body>
<?=$MAP_OBJECT->printOnLoad();?>
<?=$MAP_OBJECT->printMap();?>
<?=$MAP_OBJECT->printSidebar();?>
</body>
</html>

Can someone help me? 

Is there any chance not use pear db?

Thanks.

Original issue reported on code.google.com by cernymic...@gmail.com on 28 Apr 2011 at 11:44

GoogleCodeExporter commented 9 years ago

Original comment by b...@mycnl.com on 25 Sep 2011 at 6:08