We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a22c10 commit 9739df9Copy full SHA for 9739df9
PHPGoogleMaps/Overlay/Marker.php
@@ -276,7 +276,7 @@ public static function createFromUserLocation( array $options=null ){
276
*
277
* @return LatLng|null
278
*/
279
- function getLatLng() {
+ function getPosition() {
280
return $this->position;
281
}
282
examples/map_simple.php
@@ -15,7 +15,7 @@
15
$map->addObject( $marker1 );
16
$map->disableAutoEncompass();
17
$map->setZoom( 10 );
18
-$map->setCenter( $marker1->getLatLng() );
+$map->setCenter( $marker1->getPosition() );
19
$map->enableStreetView();
20
$map->printHeaderJS();
21
$map->printMapJS();
0 commit comments