From be3627c0299148be6b20556c9e3eedd74eae03cb Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Wed, 9 Apr 2014 12:59:34 +0400 Subject: [PATCH] =?UTF-8?q?=D0=AF=20=D0=BD=D0=B0=20=D0=BA=D0=B0=D1=80?= =?UTF-8?q?=D1=82=D0=B5=20-=20WTYNHJDRF=20RFHNS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/js/main.js b/public/js/main.js index 334c23a..3f4ef62 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -125,6 +125,7 @@ function showMeOnTheMap() } ) ); + myMap.setCenter([userLat, userLng]); }, function(){ userLat = ymaps.geolocation.latitude; userLng = ymaps.geolocation.longitude; @@ -143,5 +144,6 @@ function showMeOnTheMap() } ) ); + myMap.setCenter([userLat, userLng]); }); }