changeset 175:a1a725a9541d gmap2

Fix panning to marker.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 11 Mar 2014 22:33:29 +0200
parents d68af0d5b924
children d68111417b8e
files markers.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/markers.js	Tue Mar 11 22:32:46 2014 +0200
+++ b/markers.js	Tue Mar 11 22:33:29 2014 +0200
@@ -23,7 +23,7 @@
 
 function pmapMyClick(i)
 {
-  map.panTo(pmapMarkers[i].getLatLng());
+  pmap.panTo(pmapMarkers[i].getPosition());
   setTimeout("pmapShowInfo("+ i +")", 1000);
 }