Skip to content

Commit 9739df9

Browse files
author
Galen Grover
committed
Change marker::getLatLng() to marker::getPosition()
1 parent 2a22c10 commit 9739df9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PHPGoogleMaps/Overlay/Marker.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public static function createFromUserLocation( array $options=null ){
276276
*
277277
* @return LatLng|null
278278
*/
279-
function getLatLng() {
279+
function getPosition() {
280280
return $this->position;
281281
}
282282

examples/map_simple.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
$map->addObject( $marker1 );
1616
$map->disableAutoEncompass();
1717
$map->setZoom( 10 );
18-
$map->setCenter( $marker1->getLatLng() );
18+
$map->setCenter( $marker1->getPosition() );
1919
$map->enableStreetView();
2020
$map->printHeaderJS();
2121
$map->printMapJS();

0 commit comments

Comments
 (0)