Skip to content

Commit 797122f

Browse files
author
Galen Grover
committed
Update config, add simple map and geocoding cache example
1 parent 9739df9 commit 797122f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
examples/geocoding_cached_live.php

examples/_system/config.php

-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,5 @@
77
DEFINE( 'GITHUB_EXAMPLES_URL', 'https://github.com/galen/PHP-Google-Maps/blob/master/examples/' );
88
DEFINE( 'GITHUB_ISSUES_URL', 'https://github.com/galen/PHP-Google-Maps/issues/' );
99
DEFINE( 'GITHUB_CODE_URL', 'https://github.com/galen/PHP-Google-Maps/blob/master/' );
10-
DEFINE( 'CENTRAL_PARK_LAT', 40.77185 );
11-
DEFINE( 'CENTRAL_PARK_LNG', -73.97423 );
12-
DEFINE( 'CENTRAL_PARK_ZOOM', 13 );
1310

1411
?>

examples/geocoding_cached.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
if ( isset( $_GET['location'] ) && strlen( $_GET['location'] ) ) {
2222
// Create a PDO Geocode Cache connection and pass it to the caching geocoder
2323
try {
24-
$geoPDO = new \PHPGoogleMaps\Service\GeocodeCachePDO( 'localhost', 'username', 'password', 'database' );
24+
$geoPDO = new \PHPGoogleMaps\Service\GeocodeCachePDO( 'host', 'username', 'password', 'database' );
2525
}
2626
catch ( PDOException $e ) {
2727
die( 'Unable to connect to database' );

examples/map_simple.php

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
);
1313
$marker1 = \PHPGoogleMaps\Overlay\Marker::createFromLocation( 'New York, NY', $marker1_options );
1414

15+
$marker1->setIcon( 'http://galengrover.com/projects/PHP-Google-Maps/examples/_images/bullseye_marker.png' );
16+
1517
$map->addObject( $marker1 );
1618
$map->disableAutoEncompass();
1719
$map->setZoom( 10 );

0 commit comments

Comments
 (0)